协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
sync-skills【开发与工程】Fetch skills from projects on the current system, genericize them, and add to the claude-skills repository. Use when user says "sync skills", "fetch skills", "import skills from projects", or wants to pull skills from their local projects into this public repo.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
This skill scans projects on the current system for Claude Code skills (.claude/skills/ directories), identifies new or updated skills, genericizes them by stripping project-specific content, and adds them to this repository.
The target repo is the claude-skills project. Confirm its location - it should be the current working directory or specified by the user.
Search for skills across local projects:
Find all directories matching: <projects-root>/*/.claude/skills/*/SKILL.md
Default projects root: [your projects root] (e.g. ~/Documents/Projects/). The user may override this with a different path.
For each found skill, collect:
references/, assets/, scripts/ subdirectoriesCompare found skills against skills already in skills/by-role/ and skills/shared/ directories of this repo:
For each new skill, determine which role folder it belongs in:
Valid roles: pm, engineer, qa, designer, content-creator, devops, shared, leadership, program-delivery-manager, customer-success, recruiter, consultant, sales, marketing, founder, data-scientist, data-engineer, security
If the role is unclear, ask the user before proceeding.
For each new or updated skill, apply these transformations:
Replace personal references:
[your name][your newsletter]name.substack.com) -> [your-domain][your niche] or [your topic][your company][your team][your client][your program]Remove project-specific content:
Preserve:
Verify:
name and description fieldsFor each genericized skill, use init_skill.py to scaffold and register in skills.json:
python3 scripts/init_skill.py <skill-name> --role <role> --description "<one-liner>" --tags "<tag1,tag2>"
This creates skills/by-role/<role>/<skill-name>/SKILL.md and adds the entry to skills.json automatically.
Then overwrite the scaffolded SKILL.md with the genericized content.
Do not manually edit install.sh - it reads from skills.json. The registry is the source of truth.
python3 scripts/validate_skill.py
All skills must pass before committing.
Add a row to the correct role table in README.md:
| `skill-name` | What it does | Book/methodology source |
Output a summary:
Commit with a clear message:
git add skills/by-role/<role>/<skill-name>/ skills.json README.md
git commit -m "sync <skill-name> from [source project]"
Don't blindly copy. Always read the source skill first. Some skills are deeply project-specific and can't be genericized.
Don't merge skills. If two projects have different versions of the same skill, ask the user which to keep.
Don't strip too much. The goal is to remove personal references, not gut the content. Frameworks, examples, and checklists should survive intact.
Don't forget supporting files. Check for references/, assets/, scripts/ subdirectories and copy them too.
Don't edit install.sh directly. Use init_skill.py to register skills. install.sh reads from skills.json - the hardcoded array no longer exists.
Before completing sync:
init_skill.py (creates folder + registers in skills.json)[your niche], [your newsletter], [your-domain], [your name], [your company], [your team], [your client]python3 scripts/validate_skill.py passes