一键导入
skills-sync
Sync .agents/skills with the canonical agent-skills repo. Use when asked to "sync skills", "publish skills", or "pull skills" between projects.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Sync .agents/skills with the canonical agent-skills repo. Use when asked to "sync skills", "publish skills", or "pull skills" between projects.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
File-based inter-agent messaging. Check inbox, send bugs/requests to other projects, acknowledge resolved issues. Use for cross-project agent communication.
Search arXiv for academic papers. Use when user says "find papers on", "search arxiv", "look up research", "academic papers about", "what papers exist on", "use your arxiv tool", or asks about scientific/ML research topics.
Step back and critically reassess project state. Use when asked to "assess", "step back", "fresh eyes", "check alignment", "sanity check", "health check", or "evaluate what's working". Offer to run after major changes (don't auto-run).
Free web and local search via Brave Search API. Use when user says "brave search", "search with brave", "brave web search", "brave local search", "local search", "find businesses near", or "near me".
Submit code review requests to multiple AI providers (GitHub Copilot, Anthropic Claude, OpenAI Codex, Google Gemini) and get patches back. Use when user says "code review", "review this code", "get a patch for", or needs AI-generated unified diffs for code fixes.
Fetch up-to-date library documentation from Context7 API. Use when user asks "how do I use this library", "show me docs for", "library documentation", "API reference for", or needs current documentation for any code library.
| name | skills-sync |
| description | Sync .agents/skills with the canonical agent-skills repo. Use when asked to "sync skills", "publish skills", or "pull skills" between projects. |
| allowed-tools | Bash, Read |
| triggers | ["sync skills","publish skills","push skills","pull skills","update shared skills"] |
| metadata | {"short-description":"Sync local skills with agent-skills repo"} |
Synchronize the local .agents/skills/ directory with the upstream
agent-skills repository.
rsync installed (default on this machine)$HOME/workspace/experiments/agent-skills if present)Override with environment variables:
| Variable | Purpose |
|---|---|
SKILLS_UPSTREAM_REPO | Absolute path to the canonical agent-skills repo (default $HOME/workspace/experiments/agent-skills) |
SKILLS_LOCAL_DIR | Path to the local .agents/skills directory (auto-detected) |
SKILLS_FANOUT_PROJECTS | Colon-separated list of project roots that should also receive .agents/skills when --fanout is used (e.g., $HOME/workspace/experiments/fetcher:$HOME/workspace/experiments/extractor:$HOME/.codex/skills) |
SKILLS_SYNC_AUTOCOMMIT | If set to 1, automatically commit/push in the upstream repo after a push |
# Inspect current wiring (paths, fanout targets)
.agents/skills/skills-sync/skills-sync info
# alias: "find" if you prefer `skills-sync find`
# Push local changes into upstream repo (default)
.agents/skills/skills-sync/skills-sync push
# Pull from upstream repo into this project
.agents/skills/skills-sync/skills-sync pull
# Dry-run to review rsync plan
.agents/skills/skills-sync/skills-sync push --dry-run
# Push local skills AND fan out to other projects
SKILLS_FANOUT_PROJECTS="$HOME/workspace/experiments/fetcher:$HOME/workspace/experiments/extractor:$HOME/.codex/skills:$HOME/.pi/agent" \
.agents/skills/skills-sync/skills-sync push --fanout
# Push + auto-commit upstream (if SKILLS_SYNC_AUTOCOMMIT=1)
SKILLS_SYNC_AUTOCOMMIT=1 .agents/skills/skills-sync/skills-sync push
# Push + fanout + auto-commit
SKILLS_FANOUT_PROJECTS="..." SKILLS_SYNC_AUTOCOMMIT=1 \
.agents/skills/skills-sync/skills-sync push --fanout
.agents/skills/ → $SKILLS_UPSTREAM_REPO/skills/$SKILLS_UPSTREAM_REPO/skills/ → local .agents/skills/After a push, commit and push from the upstream repo so other projects stay current
(auto-commit runs this for you when SKILLS_SYNC_AUTOCOMMIT=1):
cd "$SKILLS_UPSTREAM_REPO"
git status
git commit -am "Update shared skills"
git push
--dry-run – Preview rsync without modifying files--delete is always enabled so removed files stay in sync--fanout – When pushing, also copy local skills into every project listed in SKILLS_FANOUT_PROJECTS (each root is expected to contain .agents/skills/)--fanout-targets path1:path2 – Override SKILLS_FANOUT_PROJECTS inline--no-autocommit – Disable auto-commit even if SKILLS_SYNC_AUTOCOMMIT=1info / find – Read-only discovery helper that prints the detected local directory,
upstream repo, and every configured fanout root plus whether it already has a
.agents/skills/ folder.--dry-run first if unsure.SKILLS_FANOUT_PROJECTS (e.g., $HOME/workspace/experiments/fetcher:$HOME/workspace/experiments/extractor) to broadcast updates to
additional repos once your upstream copy is ready.SKILLS_SYNC_AUTOCOMMIT=1 to have the script run git add/commit/push in the upstream repo after push. Use --no-autocommit to temporarily disable.