From bookmark-sync
Manages bookmark research pipeline: fetches X bookmarks via bre CLI, triages by research interests, spawns parallel deep-dive agents, generates reports. For sync, triage, or review workflows.
npx claudepluginhub k3nnethfrancis/agent-utils --plugin bookmark-syncThis skill uses the workspace's default tool permissions.
Research pipeline that turns X bookmarks into ranked, analyzed research briefs. Supports both automated (launchd/cron) and interactive (in-session) workflows.
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Performs token-optimized structural code search using tree-sitter AST parsing to discover symbols, outline files, and unfold code without reading full files.
Research pipeline that turns X bookmarks into ranked, analyzed research briefs. Supports both automated (launchd/cron) and interactive (in-session) workflows.
Before using this skill, set up two things:
bookmark-review-guidance.md file defining your research categories and tier heuristics (see Customization section)Check pipeline health and pending work. Use this first when the user mentions bookmarks.
tail -30 $BOOKMARK_SYNC_DIR/sync.log
cat $BOOKMARK_TOOL_DIR/.state/pending-bookmarks.json | python3 -c "import json,sys; d=json.load(sys.stdin); print(f'Pending: {d.get(\"count\", len(d.get(\"bookmarks\", [])))}')"
ls -lt $BOOKMARKS_DIR/triage/ | head -5
ls -lt $BOOKMARKS_DIR/reports/ | head -10
Pull new bookmarks from X into the pending queue. Uses the bookmark-research-engine (bre CLI).
bre fetch -n 50
Or with a specific folder:
bre fetch -n 50 --folder research
First-time setup: bre setup (prompts for X cookies, tests auth, scaffolds vault).
Then check what came in and summarize — authors, topics, link count.
Rank pending bookmarks against your research interests. Two sub-modes:
Interactive triage (preferred when user is present):
$BOOKMARKS_DIR/triage/YYYY-MM-DD-approved.mdAutomated triage (for unattended runs):
Follow the triage prompt at $BOOKMARK_SYNC_DIR/TRIAGE_PROMPT.md. Read the guidance doc at $BOOKMARKS_DIR/bookmark-review-guidance.md for category definitions and tier heuristics.
Ranking heuristics (customize in guidance doc):
Spawn parallel research agents for approved bookmarks. This is the core value — turning bookmarks into analyzed research briefs.
$BOOKMARKS_DIR/triage/$BOOKMARKS_DIR/bookmark-review-guidance.md$BOOKMARKS_DIR/reports/ — skip duplicates$BOOKMARKS_DIR/reports/{slug}.mdAgent prompt template — see references/deepdive-agent-prompt.md for the full template. Each agent gets the bookmark content, matched categories, and instructions to investigate and write a structured report.
Report format — see references/report-format.md for the full template.
Parallelism: Up to 7 agents concurrently. Use run_in_background=true on all Agent calls.
processed: true)Discuss completed reports and connect findings to active projects.
$BOOKMARKS_DIR/reports/Guide through initial setup of the bookmark pipeline. Only needed once per machine.
# Install the bookmark research engine
pip install git+https://github.com/k3nnethfrancis/bookmark-research-engine.git
# Interactive setup — prompts for X cookies, tests auth, scaffolds vault
bre setup
See references/setup-guide.md for the full walkthrough.
Update these to match your workspace:
| What | Where |
|---|---|
| Pipeline scripts | $BOOKMARK_SYNC_DIR (e.g. automations/bookmark-sync/) |
| Pending bookmarks | $BOOKMARK_TOOL_DIR/.state/pending-bookmarks.json |
| Inbox | $BOOKMARKS_DIR/inbox.md |
| Research guidance | $BOOKMARKS_DIR/bookmark-review-guidance.md |
| Triage reports | $BOOKMARKS_DIR/triage/ |
| Triage log | $BOOKMARKS_DIR/triage-log.md |
| Deep dive reports | $BOOKMARKS_DIR/reports/ |
| Engagement log | $BOOKMARKS_DIR/engagement-log.md |
| Feedback reports | $BOOKMARKS_DIR/feedback/ |
| Sync log | $BOOKMARK_SYNC_DIR/sync.log |
Create $BOOKMARKS_DIR/bookmark-review-guidance.md with your research interests organized into categories. Example categories:
## Categories
### multi-agent-systems
Papers, tools, and findings about multi-agent coordination, communication, and orchestration.
### reinforcement-learning
RL training methods, reward design, RLHF/RLAIF, policy optimization.
### developer-tooling
Agent frameworks, IDE integrations, evaluation harnesses, developer experience.
Define as many or few categories as match your interests. These become the canonical slugs used in report frontmatter.
In the same guidance doc, define what makes something Tier 1 vs Tier 2 vs Tier 3:
date command for timestamps — never guess- **read**: \reports/{filename}.md` — {context}`auth_token and ct0 rotate periodically. If fetch returns 0 new bookmarks, run bre setup to update cookies.bre fetch returns 404/422, run bre refresh-ids.processed: true on its own line to be skipped by subsequent runs. Append it, don't rewrite.bookmark-review-guidance.md, triage has nothing to rank against. bre setup creates a template.