协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
distribute-skill-to-all-agents【开发与工程】Distribute global skills across Codex, Claude Code, Pi, Hermes, and Cursor. Use for "distribute this skill", "sync skills across agents", or after creating or updating a global skill.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
A global skill must exist at all five locations on the user's Mac, directly or via symlink, for every agent to discover it.
~/.agents/skills/ is canonical. Author skills here first.~/.claude/skills/ → ~/.agents/skills/; covered automatically.~/.pi/agent/skills/ → ~/.agents/skills/; covered automatically. The nested /agent/ is required, not ~/.pi/skills/.~/.hermes/skills/ is an independent copy; only Hermes needs copying.~/.cursor/skills/ is a real folder that does not reliably read ~/.agents/skills/. Add one symlink per skill. Never use ~/.cursor/skills-cursor/; it holds Cursor's built-ins.~/.agents/skills/<skill-name>/SKILL.md, following effective-agent-skills.ls -la ~/.claude/skills
# Expect: ~/.claude/skills -> ~/.agents/skills
If it is a real directory, copies have diverged — ask before touching.SKILL=<skill-name>
cp -r ~/.agents/skills/$SKILL ~/.hermes/skills/
[ -e ~/.cursor/skills/$SKILL ] || ln -s ~/.agents/skills/$SKILL ~/.cursor/skills/$SKILL
If a real Cursor copy exists and differs, compare versions and ask before replacing.for p in ~/.agents/skills/$SKILL ~/.claude/skills/$SKILL ~/.pi/agent/skills/$SKILL ~/.hermes/skills/$SKILL ~/.cursor/skills/$SKILL; do
echo "$p: $(wc -c < $p/SKILL.md) bytes"
done
All five numbers must match. If Claude, Pi, or Cursor differs, investigate the symlink before proceeding.Re-copy from ~/.agents/skills/ to ~/.hermes/skills/; Claude, Pi, and symlinked Cursor skills update automatically. cp -r overwrites by default. Use rsync -a --delete when nested files may have been removed:
rsync -a --delete ~/.agents/skills/$SKILL/ ~/.hermes/skills/$SKILL/
~/.pi/skills/ is the wrong global location. Pi loads from ~/.pi/agent/skills/; skills in the former are invisible orphans. Confirm with the user before deleting them.~/.agents/skills/; copying there errors with "are identical". Only Hermes is independent. Do not replace it with a symlink unless the user asks../.pi/agent/skills/ or .pi/skills/ inside a repo. This workflow handles only global distribution.SKILL.md../.claude/skills/, ./.pi/agent/skills/, etc.rm -rf from ~/.agents/skills/ (covers Claude and Pi) ~/.hermes/skills/, and the ~/.cursor/skills/ symlink.