技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
evolve-skill【数据与研究】Evolve an existing skill by refining its content in-place or creating an advanced variant. Covers assessing the current skill, gathering evolution requirements, choosing scope (refinement vs. variant), applying changes, updating version metadata, and synchronizing the registry and cross-references. Use when a skill's procedure steps are outdated, use…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Improve, extend, or create advanced variant of skill originally made w/ create-skill. Covers maintenance: assess gaps, apply improvements, bump versions, sync registry + cross-refs.
create-r-package + create-r-package-advanced)Read SKILL.md + eval each section vs checklist:
| Section | Check | Common Issues |
|---|---|---|
| Frontmatter | Required fields, description <1024 | Missing tags, stale version |
| When to Use | 3-5 concrete triggers | Vague/overlapping |
| Inputs | Required vs optional separated | Missing defaults |
| Procedure | Each step code + Expected + On failure | Missing On failure, pseudocode not real |
| Validation | Binary pass/fail | Subjective ("clean") |
| Common Pitfalls | 3-6 w/ cause + avoidance | Too generic ("be careful") |
| Related Skills | 2-5 valid refs | Stale to renamed/removed |
# Read the skill
cat skills/<skill-name>/SKILL.md
# Check frontmatter parses
head -20 skills/<skill-name>/SKILL.md
# Verify related skills still exist
grep -oP '`[\w-]+`' skills/<skill-name>/SKILL.md | sort -u
→ List specific gaps.
If err: no SKILL.md or no frontmatter → skill N/A, use create-skill from scratch.
Identify + categorize trigger:
| Trigger | Example | Scope |
|---|---|---|
| User feedback | "Step 3 unclear" | Refinement |
| Tooling change | New API, deprecated cmd | Refinement |
| Discovered pitfall | Common failure undocumented | Refinement |
| Complexity upgrade | Too shallow for real use | Refinement or variant |
| New related | Adjacent skill added | Refinement (cross-refs) |
| Advanced use case | Power users deeper | Variant |
Document changes + target sections before edit.
→ Concrete list (e.g., "Add On failure Step 4", "Add Step 6 edge case X", "Update Related → new-skill").
If err: unclear → consult user. Vague goals → vague improvements.
Decision matrix:
| Criteria | Refinement (in-place) | Variant (new skill) |
|---|---|---|
| Skill ID | Unchanged | <skill>-advanced |
| File path | Same SKILL.md | New dir |
| Version bump | Minor (major only if breaking) | Starts 1.0 |
| Complexity | May increase | Higher than original |
| Registry | No new entry | New entry |
| Symlinks | No change | New symlinks |
| Original | Modified directly | Left intact, gains cross-ref |
Refinement: Improve quality, fix gaps, modest new. Keeps identity.
Variant: Doubles length, diff audience, diff inputs. Original stays for simpler uses.
→ Clear decision + rationale.
If err: unsure → default refinement. Extract variant later easier than merge back.
Edit existing SKILL.md directly:
Editing rules:
# Create the variant directory
mkdir -p skills/<skill-name>-advanced/
# Copy the original as a starting point
cp skills/<skill-name>/SKILL.md skills/<skill-name>-advanced/SKILL.md
# Edit the variant:
# - Change `name` to `<skill-name>-advanced`
# - Update `description` to reflect the advanced scope
# - Raise `complexity` (e.g., intermediate → advanced)
# - Reset `version` to "1.0"
# - Add/expand procedure steps for the advanced use case
# - Reference the original in Related Skills as a prerequisite
→ SKILL.md (refined/variant) passes Step 1 checklist.
If err: edit breaks structure → git diff review, revert git checkout -- <file>.
Required when translations exist. Applies human authors + AI agents. No skip — stale
source_commit→npm run validate:translationsfalse staleness across locales.
Check + update translations:
# Check for existing translations
ls i18n/*/skills/<skill-name>/SKILL.md 2>/dev/null
npm run validate:translations
source_commit each translated:npm run check:fence-propagation -- --id <skill-name>
node tools/provenance-field.mjs --field fence_basis_commit --set $(git rev-parse --short HEAD) <mirror paths>
evolve(<skill-name>): <description of changes>
Translations flagged for re-sync: de, zh-CN, ja, es
Changed sections: <list sections that changed>
npm run translation:status
No action. Proceed Step 5.
Defer translation new variants until stabilize (1-2 versions). Translating v1.0 variant that may change by v1.2 wastes effort. Add after refinement.
→ All translated source_commit updated. Commit msg notes locales + sections. npm run translation:status exits 0.
If err: sed fails match field → translated file non-standard. Open manually, verify source_commit in YAML. Missing → re-scaffold npm run translate:scaffold.
Bump version:
| Change | Bump | Example |
|---|---|---|
| Typo/wording | Minor: 1.0 → 1.1 | Fixed unclear sentence |
| New step/pitfall/table | Minor: 1.0 → 1.1 | Added Step 7 edge case |
| Restructured, inputs changed | Major: 1.0 → 2.0 | Reorganized 5 → 8 steps |
Also update:
complexity if scope expanded (basic → intermediate)tags if coverage changeddescription if scope materially diff→ version reflects magnitude. New variants start "1.0".
If err: forget bump → no track. Always bump before commit.
No registry changes (path unchanged). Update cross-refs only if Related Skills changed in other skills:
# Check if any skill references the evolved skill
grep -r "<skill-name>" skills/*/SKILL.md
Add new skill to skills/_registry.yml:
- id: <skill-name>-advanced
path: <skill-name>-advanced/SKILL.md
complexity: advanced
language: multi
description: One-line description of the advanced variant
Then:
total_skills top of registry# Project-level
ln -s ../../skills/<skill-name>-advanced .claude/skills/<skill-name>-advanced
# Global
ln -s /mnt/d/dev/p/agent-almanac/skills/<skill-name>-advanced ~/.claude/skills/<skill-name>-advanced
→ Registry total_skills = find skills -name SKILL.md | wc -l. Cross-refs bidirectional.
If err: count wrong → find skills -name SKILL.md | wc -l get truth + correct. Broken symlinks → readlink -f debug.
Full checklist:
version bumped (refinement) or "1.0" (variant)total_skills matches actual diskgit diff no accidental deletionssource_commit updated or flagged re-sync# Verify frontmatter
head -20 skills/<skill-name>/SKILL.md
# Count skills on disk vs registry
find skills -name SKILL.md | wc -l
grep total_skills skills/_registry.yml
# Check symlinks (for variants)
ls -la .claude/skills/<skill-name>-advanced
readlink -f .claude/skills/<skill-name>-advanced/SKILL.md
# Review all changes
git diff
→ All pass. Ready to commit.
If err: address each. Most common: stale total_skills — always verify last.
version reflects changestotal_skills matches disk_registry.yml correct path.claude/skills/ + ~/.claude/skills/git diff no accidental removalsource_commit updated or flaggedversion before commit.git diff before commit.total_skills. Forget → validation failures elsewhere.ls i18n/*/skills/<skill-name>/SKILL.md + update source_commit or flag re-translation. Skip → npm run validate:translations stale warnings.git mv on NTFS (WSL): /mnt/ paths, git mv for dirs → broken permissions (d?????????). Use mkdir -p + copy + git rm old. See env guide troubleshooting.create-skill — foundation new skills; evolve-skill assumes this followedcommit-changes — commit evolved skill w/ descriptive msgconfigure-git-repository — version-controlled changessecurity-audit-codebase — review for accidentally included secrets