Back to Skills

evolve-skill

pjt222
Updated Yesterday
7 views
17
2
17
View on GitHub
Metadesigndata

About

The `evolve-skill` skill updates an existing skill by either refining its current content or creating an advanced variant. It handles assessment, requirement gathering, change application, and updating version metadata and cross-references. Use it when a skill's steps are outdated, feedback reveals gaps, or a complexity upgrade is needed.

Quick Install

Claude Code

Recommended
Primary
npx skills add pjt222/agent-almanac -a claude-code
Plugin CommandAlternative
/plugin add https://github.com/pjt222/agent-almanac
Git CloneAlternative
git clone https://github.com/pjt222/agent-almanac.git ~/.claude/skills/evolve-skill

Copy and paste this command in Claude Code to install this skill

Documentation

演既有技

改、擴、或造以 create-skill 所造技之進變體。此術司技生之維:評缺、施針對改、升版、保 registry 與互引同步。

用時

  • 工具易後技步陳或缺
  • 用戶回示缺陷、不明步、弱驗
  • 技須自 basic 升 intermediate(或中升 advanced)
  • 原外需進變體(如 create-r-packagecreate-r-package-advanced
  • 加去相關技而互引陳

  • 必要:欲演 SKILL.md 之路
  • 必要:演之因(回、工具易、繁升、新相關技、察陷)
  • 可選:易時之目標繁級(basic、intermediate、advanced)
  • 可選:是否造變體而非就地改(默:就地改)

第一步:評當技

讀 SKILL.md 並按質清單評各節:

SectionWhat to CheckCommon Issues
FrontmatterAll required fields present, description < 1024 charsMissing tags, stale version
When to Use3-5 concrete trigger conditionsVague or overlapping triggers
InputsRequired vs optional clearly separatedMissing defaults for optional inputs
ProcedureEach step has code + Expected + On failureMissing On failure blocks, pseudocode instead of real commands
ValidationEach item is binary pass/failSubjective criteria ("code is clean")
Common Pitfalls3-6 with cause and avoidanceToo generic ("be careful")
Related Skills2-5 valid skill referencesStale references to renamed/removed skills
# 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

得: 具體缺、弱、或改機之列。

敗則: 若 SKILL.md 不存或無 frontmatter,此技不適——當用 create-skill 從頭造。

第二步:集演求

識並類演之因:

TriggerExampleTypical Scope
User feedback"Step 3 is unclear"Refinement
Tooling changeNew API version, deprecated commandRefinement
Discovered pitfallCommon failure not documentedRefinement
Complexity upgradeSkill is too shallow for real useRefinement or variant
New related skillsAdjacent skill was addedRefinement (cross-refs)
Advanced use casePower users need deeper coverageVariant

編前記具體改。各改附目節。

得: 具體改之列(如「加 On failure 於第四步」「加新第六步於邊例 X」「更 Related Skills 含 new-skill」)。

敗則: 若改不明,進前請用戶澄。模糊演目生模糊改。

第三步:擇演範

用此決表定就地改或造變體:

CriteriaRefinement (in-place)Advanced Variant (new skill)
Skill IDUnchangedNew ID: <skill>-advanced
File pathSame SKILL.mdNew directory
Version bumpPatch or minorStarts at 1.0
ComplexityMay increaseHigher than original
RegistryNo new entryNew entry added
SymlinksNo changeNew symlinks needed
Original skillModified directlyLeft intact, gains cross-reference

:提質、修缺、或加少容時擇。技保其身。

變體:演後版倍長、易眾、或需顯異之入時擇。原留供簡用。

得: 明決——改或變——附理。

敗則: 不確時默改。後可析變體;合回更難。

第四步:施容改

於改

直編 SKILL.md:

# Open for editing
# Add/revise procedure steps
# Strengthen Expected/On failure pairs
# Add tables or examples
# Update When to Use triggers
# Revise Inputs if scope changed

循此編則:

  • 保諸有節——加容,勿去節
  • 插後步號保序
  • 新或改步皆須有 Expected 與 On failure
  • 新陷置 Common Pitfalls 節末
  • 新相關技置 Related Skills 節末

於變體

# 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(改或新變體)過第一步之評清單。

敗則: 若編破文構,用 git diff 審改並以 git checkout -- <file> 回退部分編。

第四·五步:同譯變體

譯存時必需。 此步適人與 AI 二者。勿略——陳 source_commitnpm run validate:translations 於諸 locale 生誤陳警。

察演技是否有譯並更譯以映新源態:

# Check for existing translations
ls i18n/*/skills/<skill-name>/SKILL.md 2>/dev/null

譯存之時

  1. 取當源提交哈:
SOURCE_COMMIT=$(git rev-parse HEAD)
  1. 於各譯文 frontmatter 更 source_commit
for locale_file in i18n/*/skills/<skill-name>/SKILL.md; do
  sed -i "s/^source_commit: .*/source_commit: $SOURCE_COMMIT/" "$locale_file"
done
  1. 於提交訊中標所涉 locale 以供重譯:
evolve(<skill-name>): <description of changes>

Translations flagged for re-sync: de, zh-CN, ja, es
Changed sections: <list sections that changed>
  1. 重生譯狀文:
npm run translation:status

無譯之時

無須行。進第五步。

於變體

新變體之譯延至變體穩(1-2 版)。譯 v1.0 變體而 v1.2 或大變廢工。變體改至少一次後方加譯。

得: 諸譯文 source_commit 更至當提交。提交訊記何 locale 須重譯、何節易。npm run translation:status 出 0。

敗則:sed 不配 frontmatter 域,譯文或有非標格式。手開驗其 YAML frontmatter 含 source_commit。若缺,文未正造——以 npm run translate:scaffold 再造。

第五步:更版與元數

於 frontmatter 升 version,循 semver:

Change TypeVersion BumpExample
Typo fix, wording clarificationPatch: 1.0 → 1.1Fixed unclear sentence in Step 3
New step, new pitfall, new tableMinor: 1.0 → 2.0Added Step 7 for edge case handling
Restructured procedure, changed inputsMajor: 1.0 → 2.0Reorganized from 5 to 8 steps

亦更:

  • complexity 若範擴(如 basic → intermediate)
  • tags 若覆域易
  • description 若技範實異

得: Frontmatter version 映改之大。新變體始於 "1.0"

敗則: 若忘升版,下演無法辨當態與前。提交前必升。

第六步:更 Registry 與互引

於改

無須更 registry(路不易)。唯他技之 Related Skills 改時更互引:

# Check if any skill references the evolved skill
grep -r "<skill-name>" skills/*/SKILL.md

於變體

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

然後:

  1. 增 registry 頂之 total_skills
  2. 於原技 Related Skills 加指變體之引
  3. 於變體 Related Skills 加指原之引
  4. 為斜線命發現造 symlink:
# 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_skillsfind skills -name SKILL.md | wc -l。互引雙向。

敗則: 若 registry 計誤,運 find skills -name SKILL.md | wc -l 取實數正 registry。Symlink 破則以 readlink -f 查。

第七步:驗演技

行全驗清單:

  • SKILL.md 存於預路
  • YAML frontmatter 解無誤
  • version 已升(改)或設「1.0」(變)
  • 諸節存:When to Use、Inputs、Procedure、Validation、Common Pitfalls、Related Skills
  • 諸步皆有 Expected 與 On failure
  • Related Skills 引有效存
  • Registry 條存附正路(唯變體)
  • total_skills 合盤實數
  • Symlink 正解(唯變體)
  • git diff 示原容無誤刪
  • 有譯之改:source_commit 已更或譯已標供重譯
# 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

得: 清單皆過。演技可提交。

敗則: 各敗項各處。最常演後問為陳 total_skills——最後必驗。

  • SKILL.md 存且 YAML frontmatter 有效
  • version 映所改
  • 諸步皆有 Expected 與 On failure
  • Related Skills 引有效(無破互引)
  • Registry total_skills 合盤實數
  • 變體時:_registry.yml 新條附正路
  • 變體時:.claude/skills/~/.claude/skills/ 造 symlink
  • git diff 確無誤刪
  • 有譯之改:source_commit 已更或譯已標供重譯

  • 忘升版:無升則不能追何變何時。提交前必更 frontmatter version
  • 誤刪容:重構步時易落 On failure 或表行。提交前必審 git diff
  • 陳互引:造變體時原與變須互引。單向引令圖不全
  • Registry 計漂:造變體後必增 total_skills。忘則他技察 registry 時驗敗
  • 演後陳譯:庫中 1,288 譯文,每技演引至 4 locale 文陳。必以 ls i18n/*/skills/<skill-name>/SKILL.md 察並更各譯文 source_commit,或於提交訊標供重譯。略則 npm run validate:translations 報陳警
  • 改中目擴:改而使技倍長或宜為變體。若加逾三新步,復察第三步決
  • NTFS 掛路(WSL)避 git mv:於 /mnt/ 路,目錄之 git mv 或生壞權(d?????????)。用 mkdir -p + 複製 + git rm 舊路。見環境指之排疑節

  • create-skill — 造新技之基;evolve-skill 假此先循
  • commit-changes — 以述訊提交演技
  • configure-git-repository — 版控技之改
  • security-audit-codebase — 審演技免誤含秘

GitHub Repository

pjt222/agent-almanac
Path: i18n/wenyan/skills/evolve-skill
0
agentsagentskillsai-assisted-developmentclaude-codeskillsteams

Related Skills

content-collections

Meta

This skill provides a production-tested setup for Content Collections, a TypeScript-first tool that transforms Markdown/MDX files into type-safe data collections with Zod validation. Use it when building blogs, documentation sites, or content-heavy Vite + React applications to ensure type safety and automatic content validation. It covers everything from Vite plugin configuration and MDX compilation to deployment optimization and schema validation.

View skill

polymarket

Meta

This skill enables developers to build applications with the Polymarket prediction markets platform, including API integration for trading and market data. It also provides real-time data streaming via WebSocket to monitor live trades and market activity. Use it for implementing trading strategies or creating tools that process live market updates.

View skill

creating-opencode-plugins

Meta

This skill helps developers create OpenCode plugins that hook into 25+ event types like commands, files, and LSP operations. It provides the plugin structure, event API specifications, and implementation patterns for JavaScript/TypeScript modules. Use it when you need to intercept, monitor, or extend the OpenCode AI assistant's lifecycle with custom event-driven logic.

View skill

sglang

Meta

SGLang is a high-performance LLM serving framework that specializes in fast, structured generation for JSON, regex, and agentic workflows using its RadixAttention prefix caching. It delivers significantly faster inference, especially for tasks with repeated prefixes, making it ideal for complex, structured outputs and multi-turn conversations. Choose SGLang over alternatives like vLLM when you need constrained decoding or are building applications with extensive prefix sharing.

View skill