sync-ai-tools
Sync Claude Code AI tooling (skills, MCP servers, rules) across Warp, Cursor, and VSCode. Idempotent — safe to re-run. Use when onboarding a new editor, after adding MCP servers, or when standards files change.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 1
- Forks
- 1
01 前言 Front Matter
- name
- sync-ai-tools
- description
- Sync Claude Code AI tooling (skills, MCP servers, rules) across Warp, Cursor, and VSCode. Idempotent — safe to re-run. Use when onboarding a new editor, after adding MCP servers, or when standards files change.
02 资源文件 2
- 参考文档references/change-playbook.md11.8 KB
- 脚本sync.sh2.2 KB
03 SKILL.md 正文
Sync AI Tools
Keeps Claude Code as the source of truth and mirrors the relevant parts to Warp, Cursor, and VSCode so the same skills, MCP servers, and standards apply everywhere.
What it syncs
| Asset | Source | Targets |
|---|---|---|
| Skills | ~/.claude/skills/ |
~/.agents/skills/ (Cursor reads via ~/.cursor/skills symlink) |
| MCP servers | ~/.cursor/mcp.json |
~/Library/Application Support/Code/User/mcp.json, ~/.claude.json (Warp File-based MCP reads this) |
| Standards | ~/.claude/standards/*.md |
~/.cursor/rules/lucas-*.mdc (agnostic subset only) |
Run
bash ~/.claude/skills/sync-ai-tools/sync.sh
Prints a diff-style report of what changed.
Prereqs
- Claude Code installed with skills in
~/.claude/skills/ - Cursor installed (for
~/.cursor/) - VSCode installed (for
~/Library/Application Support/Code/User/) - Warp: enable Settings → AI → MCP Servers → File-based MCP Servers (one-time UI toggle — see
warp-ai-setupskill)
What it does NOT sync
- Claude-mechanism-specific standards (
rtk.md,session-budget.md, hooks) — those rely on Claude Code internals that don't exist in Cursor/VSCode - Claude hooks (settings.json PreToolUse/PostToolUse) — editor-specific, no 1:1 mapping
- Warp Workflows — managed separately in
~/.warp/workflows/
Re-running
Safe. Uses rsync --delete-after for skills and overwrites MCP configs. Prompts before deleting files in targets.
04 同仓库更多 Skills
token-audit
Audit historical Claude Code token usage from JSONL session files — shows total spend, cache hit rates, top costly sessions, weekly trends, and where tokens are going. Run after heavy sessions or weekly to measure optimization impact. Answers how many tokens a session used, how expensive was that session, session cost, and token usage report.
smart-model-route
Auto-classify prompt complexity via Haiku (with heuristic fallback) and inject model routing hints for Agent tool calls. Wired as a UserPromptSubmit hook — fires on every prompt, routes low tasks to Haiku, standard to Sonnet, complex to Sonnet with thorough reasoning, and critical (security/arch/migrations) to Opus. Handles model selection, for example choose model by task complexity.
smart-commands
Decision guide for when to proactively use Claude Code slash commands — /think, /model, /compact, /clear. Use when choosing whether to invoke a command before or during a task, or when a complexity-classifier hook has flagged a task as high or critical. Pairs with the complexity-classifier UserPromptSubmit hook. Answers when to compact, should I switch models, and whether to use extended thinking. Use to pick the right /model command and switch model.
spec-ship
暂无简介
spec-new
Create a committed per-feature spec under `docs/specs/YYYY-MM-DD-<slug>/{spec,tasks}.md` with frontmatter (status, created, owner, pr, tags). Promotes an ephemeral `.claude/plans/<name>.md` into a persistent, searchable artifact. Use when starting a feature that's larger than a one-shot PR.
roadmap-refresh
Regenerate `docs/roadmap.md` for a repo from all specs under `docs/specs/` + their frontmatter (status, tags, pr). Produces Now/Next/Recently-shipped sections. Run after creating / shipping a spec, or at the start of a new session for orientation.