/bodnar-skills:bookmark-tab-managerfrom bodnar-skills
Manage Chrome bookmarks (30k+), tabs, tab groups, and GitHub stars (15k+) through headless Chrome automation via systemd. Handles organization, AI-powered classification (Gemini Nano/Claude), deduplication, and metadata enrichment with performance-optimized operations for large-scale datasets. Use when organizing bookmarks, managing tabs, syncing GitHub stars, or building bookmark/tab management tools.
Ships in bodnar-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Comprehensive Chrome bookmark and tab management system with AI-powered classification, GitHub stars sync, and performance-optimized operations for large datasets (30k+ bookmarks, 15k+ GitHub stars).
bun init
bun add @playwright/mcp playwright zod @evan/duckdb
bun add -d @types/node typescript @biomejs/biome
bun add @mozilla/readability unified rehype-parse remark-parse jsdom
bunx oxlint@latest --init
bunx @biomejs/biome init
Create systemd service: See scripts/chrome-headless-template.service
Configure runtime: See references/configuration-schema.md for complete Zod schema
Organize bookmarks:
import { BookmarkManager } from './src/bookmark-manager';
const manager = new BookmarkManager({ profile: 'Default' });
await manager.organize({ strategy: 'ai-classify', batchSize: 100 });
Sync GitHub stars:
import { GitHubStarSync } from './src/github-sync';
const sync = new GitHubStarSync({ token: process.env.GITHUB_TOKEN });
await sync.syncStars({ classify: true });
Manage tabs:
import { TabManager } from './src/tab-manager';
const tabs = new TabManager();
await tabs.groupByDomain();
For 30k+ bookmarks, performance is critical:
This skill uses progressive disclosure to manage context efficiently:
API Documentation:
references/webextensions-api.md - Bookmarks, Tabs, TabGroups APIsreferences/chrome-devtools-protocol.md - CDP for advanced controlreferences/github-api.md - REST v3 & GraphQL v4 for stars syncreferences/firefox-places.md - SQLite schema for cross-browser importConfiguration & Schemas:
references/configuration-schema.md - Complete Zod configuration schemareferences/metadata-standards.md - Open Graph, JSON-LD, Schema.orgreferences/bookmark-formats.md - Netscape format, JSONLImplementation Guides:
references/performance-optimization.md - Batching, indexing, caching strategiesreferences/ai-classification.md - Gemini Nano + Claude hybrid approachreferences/deduplication.md - Non-destructive duplicate handlingDevelopment Resources:
references/typescript-patterns.md - Bun-specific patterns, async/awaitreferences/systemd-integration.md - Service templates, environment handlingreferences/testing-validation.md - oxlint, Zod, integration testsSystem Integration:
scripts/chrome-headless-template.service - systemd template servicescripts/setup-systemd.sh - Install and enable Chrome servicescripts/profile-discovery.sh - Auto-discover Chrome profilesTypeScript Boilerplate:
scripts/bookmark-manager-template.ts - Bookmark operations structurescripts/classification-pipeline.ts - AI classification workflowscripts/github-sync-template.ts - GitHub stars sync structureUtilities:
scripts/batch-processor.ts - Generic batching with progressscripts/cache-manager.ts - Classification cache with TTLscripts/duckdb-index.ts - External index initializationConfiguration Templates:
assets/default-config.json - Sane defaults for 30k+ bookmarksassets/taxonomy-example.json - Example category structureassets/tsconfig.json - TypeScript configurationassets/biome.json - Biome formatter configSchema Definitions:
assets/bookmark-schema.zod.ts - Zod bookmark typeassets/github-star-schema.zod.ts - Zod GitHub star typeassets/classification-schema.zod.ts - AI classification resultAlways load first:
references/configuration-schema.md - For any config-related workreferences/performance-optimization.md - Before implementing operationsLoad for specific tasks:
references/webextensions-api.md, references/chrome-devtools-protocol.mdreferences/github-api.mdreferences/metadata-standards.mdreferences/firefox-places.md, references/bookmark-formats.mdreferences/ai-classification.mdreferences/deduplication.mdasync function batchOperation<T>(
items: T[],
processor: (batch: T[]) => Promise<void>,
options: { batchSize: number; delayMs: number }
) {
for (let i = 0; i < items.length; i += options.batchSize) {
const batch = items.slice(i, i + options.batchSize);
await processor(batch);
await new Promise(resolve => setTimeout(resolve, options.delayMs));
console.log(`Progress: ${i + batch.length}/${items.length}`);
}
}
// Good: Single read, accumulate changes, single write
const bookmarks = await chrome.bookmarks.getTree();
const changes = await processInMemory(bookmarks);
await chrome.bookmarks.applyBatch(changes);
// Bad: Multiple reads/writes in loop
for (const bookmark of bookmarks) {
await chrome.bookmarks.update(bookmark.id, changes);
}
import duckdb from '@evan/duckdb';
// Initialize index once
const db = duckdb.Database.create(':memory:');
await db.exec('CREATE TABLE bookmarks AS SELECT * FROM read_json_auto(?)');
// Query against index
const results = await db.all('SELECT * FROM bookmarks WHERE url LIKE ?');
// Sync back to Chrome once
await chrome.bookmarks.applyBatch(results);
# Required
GITHUB_TOKEN=ghp_xxx # GitHub PAT for stars sync
# Optional
CHROME_PROFILE=Default # Chrome profile name
CHROME_USER_DATA_DIR=~/.config/google-chrome # Chrome user data
GEMINI_API_KEY=xxx # For Gemini classification
ANTHROPIC_API_KEY=xxx # For Claude classification
CONFIG_PATH=~/.config/bookmark-manager/config.json
# Auto-discover profiles
./scripts/profile-discovery.sh
# Or specify explicitly
export CHROME_PROFILE="Profile 1"
# Enable service for specific profile
systemctl --user enable --now [email protected]
# Check status
systemctl --user status [email protected]
# View logs
journalctl --user -u [email protected] -f
import { classify } from './src/classifier';
const result = await classify(bookmark, {
provider: 'hybrid',
confidenceThreshold: 0.7,
fallbackToCloud: true
});
bunx oxlint --fix .bunx @biomejs/biome format --write .bun run tsc --noEmitlychee --cache bookmarks.html~/.config/systemd/user/[email protected]CHROME_USER_DATA_DIR path existsjournalctl --user -u [email protected]performance.batch_size: 500max_concurrent_operations: 3references/github-api.md)confidence_threshold (lower = more Claude escalation)references/configuration-schema.md for complete config optionsreferences/performance-optimization.md for large dataset handlingscripts/ directory for implementation patternsassets/biome.json (opens in a new tab)assets/default-config.json (opens in a new tab)assets/tsconfig.json (opens in a new tab)references/ai-classification.md (opens in a new tab)references/configuration-schema.md (opens in a new tab)references/deduplication.md (opens in a new tab)references/github-api.md (opens in a new tab)references/performance-optimization.md (opens in a new tab)references/webextensions-api.md (opens in a new tab)scripts/batch-processor.ts (opens in a new tab)scripts/chrome-headless-template.service (opens in a new tab)scripts/profile-discovery.sh (opens in a new tab)scripts/setup-systemd.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub danielbodnar/agent-plugins --plugin bodnar-skills28 skills in this plugin
/act-platform-engineeringToolkit for Daniel Bodnar's Animal Care Technologies (ACT) platform engineering, SRE, sysadmin, and DBA work. Use this skill whenever the user mentions ACT, vsurv_production, dbprimary, pimsserver, payment gateway reliability, Zach's Bodnar Tasks, Internal Needs (EC-142), Sysadmin/IAC (EC-120), Zoho Projects task or issue creation, PostgreSQL or ZFS assessment on ACT infrastructure, PVE nodes (10.0.50.1-3), the act-infra repo, WAL shipping, dbhotswap failover, PVE3 failing drives, PowerEdge 730, Pims Garden, Miller, Ben Jumper, the assessment cheatsheet or checklist, observability deployment (Grafana, Netdata), centralized log management, secrets management, or pimsserver branch consolidation. Trigger even when the user uses shorthand like "the assessment", "the checklist", "INT-XX", "SY1-XX", or references infrastructure work without explicit naming. Also use when drafting Zoho tasks/issues, running assessment commands on dbprimary, or generating documentation for ACT infrastructure./aitmpl-composeAuthor and compose `claude-code-templates` (aitmpl.com) workflows. Use whenever the user wants to bundle catalog components (agents, commands, MCPs, hooks, settings, skills) into a reusable `workflow.yaml` or `template.json`, merge multiple templates or workflows, expand Bodnar `pack` macros, validate a workflow against the live catalog, or scaffold `.claude/workflows/`. Trigger on "aitmpl", "claude-code-templates", "compose templates", "merge templates", "scaffold a workflow", "share my Claude Code setup", "author a workflow", "author a template", "make a pack", "new pack", "expand pack", "validate workflow.yaml", or any mention of `npx claude-code-templates@latest --workflow` or `--template`. Also use when the user lists components to assemble, or describes a project intent (such as a Cloudflare Worker scaffold with security hardening) that should resolve to a concrete component bundle. Output is upstream-native YAML in `.claude/workflows/`; never invent a parallel bundle format.