fieldtheory-cli-bookmarks
БесплатноБез исполняемых скриптовНе проверенSync, search, classify, and query X/Twitter bookmarks locally using the Field Theory CLI
от reason-machines★ 99 звёзд на GitHubОб этом скилле
Field Theory CLI — X/Twitter Bookmark Manager
Skill by ara.so — Daily 2026 Skills collection.
Field Theory CLI (ft) syncs all your X/Twitter bookmarks locally, indexes them for full-text search, classifies them by category and domain, and exposes them to AI agents via shell commands. No official API required for the default sync mode.
Installation
npm install -g fieldtheory
Requirements:
- Node.js 20+
- Google Chrome (logged into X/Twitter) for default sync mode
- macOS for Chrome session sync; Linux/Windows use OAuth mode
Verify installation:
ft --version
ft status
Quick Start
# Sync bookmarks (reads Chrome session automatically)
ft sync
# Search immediately
ft search "machine learning"
# Explore with terminal dashboard
ft viz
Data is stored at ~/.ft-bookmarks/ by default.
Core Commands
Syncing
# Incremental sync (new bookmarks only)
ft sync
# Sync then auto-classify with LLM
ft sync --classify
# Full history crawl from the beginning
ft sync --full
# Sync via OAuth API (cross-platform, no Chrome needed)
ft sync --api
# Show sync status
ft status
Searching
# Full-text BM25 search
ft search "distributed systems"
ft search "rust async runtime"
ft search "cancer immunotherapy"
# Filter results
ft list --author elonmusk
ft list --category tool
ft list --domain ai
ft list --since 2024-01-01
ft list --category research --domain biology
# Show a single bookmark by ID
ft show 1234567890
Classification
# LLM-powered classification (requires LLM access)
ft classify
# Regex-based classification (no LLM needed, faster)
ft classify --regex
# Rebuild search index (preserves existing classifications)
ft index
Exploration & Stats
# Terminal dashboard with sparklines and charts
ft viz
# Category distribution
ft categories
# Subject domain distribution
ft domains
# Top authors, languages, date range
ft stats
# Print data directory path
ft path
Media
# Download static images from bookmarks
ft fetch-media
OAuth Setup (Cross-Platform / API Mode)
# Interactive OAuth setup
ft auth
# Then sync via API
ft sync --api
OAuth token stored at ~/.ft-bookmarks/oauth-token.json with chmod 600.
Configuration
Custom Data Directory
# Set in shell profile (~/.zshrc or ~/.bashrc)
export FT_DATA_DIR=/path/to/custom/dir
# Or per-command
FT_DATA_DIR=/Volumes/external/bookmarks ft sync
Data File Layout
~/.ft-bookmarks/
bookmarks.jsonl # raw bookmarks, one JSON object per line
bookmarks.db # SQLite FTS5 search index
bookmarks-meta.json # sync cursor and metadata
oauth-token.json # OAuth credentials (API mode only)
Scheduling Sync
Add to crontab (crontab -e):
# Sync every morning at 7am
0 7 * * * ft sync
# Sync and classify every morning at 7am
0 7 * * * ft sync --classify
# Full sync every Sunday at midnight
0 0 * * 0 ft sync --full
Categories Reference
| Category | Description |
|---|---|
tool |
GitHub repos, CLI tools, npm packages, open-source |
security |
CVEs, vulnerabilities, exploits, supply chain |
technique |
Tutorials, demos, code patterns, how-to threads |
launch |
Product launches, announcements, "just shipped" |
research |
ArXiv papers, studies, academic findings |
opinion |
Takes, analysis, commentary, threads |
commerce |
Products, shopping, physical goods |
Working with Bookmark Data (TypeScript/Node.js)
The bookmarks.jsonl file can be consumed directly in scripts:
import { createReadStream } from "fs";
import { createInterface } from "readline";
import { homedir } from "os";
import { join } from "path";
interface Bookmark {
id: string;
text: string;
author: string;
created_at: string;
url: string;
category?: string;
domain?: string;
media?: string[];
}
async function loadBookmarks(): Promise<Bookmark[]> {
const dataDir = process.env.FT_DATA_DIR ?? join(homedir(), ".ft-bookmarks");
const filePath = join(dataDir, "bookmarks.jsonl");
const bookmarks: Bookmark[] = [];
const rl = createInterface({
input: createReadStream(filePath),
crlfDelay: Infinity,
});
for await (const line of rl) {
if (line.trim()) {
bookmarks.push(JSON.parse(line));
}
}
return bookmarks;
}
// Usage
const bookmarks = await loadBookmarks();
const tools = bookmarks.filter((b) => b.category === "tool");
console.log(`Found ${tools.length} tool bookmarks`);
Query SQLite Index Directly
import Database from "better-sqlite3";
import { join } from "path";
import { homedir } from "os";
const dataDir = process.env.FT_DATA_DIR ?? join(homedir(), ".ft-bookmarks");
const db = new Database(join(dataDir, "bookmarks.db"), { readonly: true });
// Full-text search using SQLite FTS5
function searchBookmarks(query: string, limit = 20)
Установить fieldtheory-cli-bookmarks в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл fieldtheory-cli-bookmarks?
Sync, search, classify, and query X/Twitter bookmarks locally using the Field Theory CLI
Как установить скилл fieldtheory-cli-bookmarks?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл fieldtheory-cli-bookmarks запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
agent-skill-stack
Find, evaluate, and assemble the smallest compatible set of AI Agent Skills for an end-to-end natural-language goal. Use when a user wants Skills for a…
от GitHubbuild-evidence-map
Build an auditable evidence map for a contested technical choice, research synthesis, proposal review, or consequential decision. Use when Copilot must…
от GitHubpinecone-rag
Build production RAG pipelines and persistent agent memory using Pinecone as the vector database backend. ALWAYS USE THIS SKILL when the user mentions…
от GitHubqdrant-monitoring-debugging
Diagnoses Qdrant production issues using metrics and observability tools. Use when someone reports 'optimizer stuck', 'indexing too slow', 'memory too high'…
от GitHub