MCP HubMCP Hub
스킬 목록으로 돌아가기

evolve-skill

pjt222
업데이트됨 2 days ago
2 조회
17
2
17
GitHub에서 보기
메타designdata

정보

`evolve-skill` 스킬은 기존 스킬을 업데이트하여, 내용을 그 자리에서 개선하거나 더 고급의 변형을 생성합니다. 요구사항 수집부터 변경 사항 적용, 버전 메타데이터 업데이트, 그리고 상호 참조 동기화에 이르는 전체 과정을 처리합니다. 스킬의 단계가 구식이 되었거나, 피드백에서 결함이 발견되었을 때, 혹은 복잡성 업그레이드가 필요할 때 사용하세요.

빠른 설치

Claude Code

추천
기본
npx skills add pjt222/agent-almanac -a claude-code
플러그인 명령대체
/plugin add https://github.com/pjt222/agent-almanac
Git 클론대체
git clone https://github.com/pjt222/agent-almanac.git ~/.claude/skills/evolve-skill

Claude Code에서 이 명령을 복사하여 붙여넣어 스킬을 설치하세요

문서

Evolve an Existing Skill

Improve, extend, or create an advanced variant of a skill that was originally authored with create-skill. This procedure covers the maintenance side of the skill lifecycle: assessing gaps, applying targeted improvements, bumping versions, and keeping the registry and cross-references in sync.

When to Use

  • A skill's procedure steps are outdated or incomplete after tooling changes
  • User feedback reveals missing pitfalls, unclear steps, or weak validation
  • A skill needs to grow from basic to intermediate (or intermediate to advanced)
  • An advanced variant is needed alongside the original (e.g., create-r-package and create-r-package-advanced)
  • Related skills were added or removed and cross-references are stale

Inputs

  • Required: Path to the existing SKILL.md to evolve
  • Required: Evolution trigger (feedback, tooling change, complexity upgrade, new related skills, discovered pitfalls)
  • Optional: Target complexity level if changing (basic, intermediate, advanced)
  • Optional: Whether to create an advanced variant instead of refining in-place (default: refine in-place)

Procedure

Step 1: Assess the Current Skill

Read the existing SKILL.md and evaluate each section against the quality checklist:

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

Got: A list of specific gaps, weaknesses, or improvement opportunities.

If fail: If the SKILL.md doesn't exist or has no frontmatter, this skill doesn't apply — use create-skill instead to author it from scratch.

Step 2: Gather Evolution Requirements

Identify and categorize what triggered the evolution:

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

Document the specific changes needed before editing. List each change with its target section.

Got: A concrete list of changes (e.g., "Add On failure to Step 4", "Add new Step 6 for edge case X", "Update Related Skills to include new-skill").

If fail: If the changes are unclear, consult the user for clarification before proceeding. Vague evolution goals produce vague improvements.

Step 3: Choose Evolution Scope

Use this decision matrix to determine whether to refine in-place or create a variant:

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

Refinement: Choose when improving quality, fixing gaps, or adding modest new content. The skill keeps its identity.

Variant: Choose when the evolved version would double the length, change the target audience, or require substantially different inputs. The original stays as-is for simpler use cases.

Got: A clear decision — refinement or variant — with rationale.

If fail: If unsure, default to refinement. You can always extract a variant later; it's harder to merge one back.

Step 4: Apply Content Changes

For Refinements

Edit the existing SKILL.md directly:

# 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

Follow these editing rules:

  • Preserve all existing sections — add content, don't remove sections
  • Keep step numbering sequential after insertions
  • Every new or modified step must have both Expected and On failure
  • New pitfalls go at the end of the Common Pitfalls section
  • New related skills go at the end of the Related Skills section

For Variants

# 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

Got: The SKILL.md (refined or new variant) passes the assessment checklist from Step 1.

If fail: If a step edit breaks the document structure, use git diff to review changes and revert partial edits with git checkout -- <file>.

Step 4.5: Sync Translated Variants

Required when translations exist. This step applies to both human authors and AI agents following this procedure. Do not skip — stale source_commit values cause npm run validate:translations to report false staleness warnings across all locales.

Check whether translations exist for the evolved skill and update them to reflect the new source state:

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

If translations exist

  1. Get the current source commit hash:
SOURCE_COMMIT=$(git rev-parse HEAD)
  1. Update source_commit in each translated file's frontmatter:
for locale_file in i18n/*/skills/<skill-name>/SKILL.md; do
  sed -i "s/^source_commit: .*/source_commit: $SOURCE_COMMIT/" "$locale_file"
done
  1. Flag files for re-translation by including affected locales in the commit message:
evolve(<skill-name>): <description of changes>

Translations flagged for re-sync: de, zh-CN, ja, es
Changed sections: <list sections that changed>
  1. Regenerate translation status files:
npm run translation:status

If no translations exist

No action needed. Proceed to Step 5.

For variants

Defer translation of new variants until the variant stabilizes (1-2 versions). Translating a v1.0 variant that may change substantially by v1.2 wastes effort. Add translations after the variant has been refined at least once.

Got: All translated files have source_commit updated to the current commit. The commit message notes which locales need re-translation and which sections changed. npm run translation:status exits 0.

If fail: If sed fails to match the frontmatter field, the translated file may have non-standard formatting. Open it manually and verify it has source_commit in its YAML frontmatter. If the field is missing, the file was not scaffolded correctly — re-scaffold with npm run translate:scaffold.

Step 5: Update Version and Metadata

Bump the version field in frontmatter following semver conventions:

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

Also update:

  • complexity if the scope expanded (e.g., basic → intermediate)
  • tags if the coverage area changed
  • description if the skill's scope is materially different

Got: Frontmatter version reflects the magnitude of changes. New variants start at "1.0".

If fail: If you forget to bump the version, the next evolution will have no way to distinguish the current state from the previous one. Always bump before committing.

Step 6: Update Registry and Cross-References

For Refinements

No registry changes are needed (path unchanged). Update cross-references only if Related Skills changed in other skills:

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

For Variants

Add the 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:

  1. Increment total_skills at the top of the registry
  2. Add Related Skills cross-reference in the original skill pointing to the variant
  3. Add Related Skills cross-reference in the variant pointing to the original
  4. Create symlinks for slash command discovery:
# 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

Got: Registry total_skills matches find skills -name SKILL.md | wc -l. Cross-references are bidirectional.

If fail: If the registry count is wrong, run find skills -name SKILL.md | wc -l to get the true count and correct the registry. For broken symlinks, use readlink -f to debug resolution.

Step 7: Validate the Evolved Skill

Run the full validation checklist:

  • SKILL.md exists at the expected path
  • YAML frontmatter parses without errors
  • version was bumped (refinement) or set to "1.0" (variant)
  • All sections present: When to Use, Inputs, Procedure, Validation, Common Pitfalls, Related Skills
  • Every procedure step has Expected and On failure blocks
  • Related Skills reference valid, existing skill names
  • Registry entry exists with correct path (variants only)
  • total_skills count matches actual skill count on disk
  • Symlinks resolve correctly (variants only)
  • git diff shows no accidental deletions from the original content
  • For refinements with translations: source_commit updated or translations flagged for 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

Got: All checklist items pass. The evolved skill is ready to commit.

If fail: Address each failing item individually. The most common post-evolution issue is a stale total_skills count — always verify it last.

Validation

  • SKILL.md exists and has valid YAML frontmatter
  • version field reflects the changes made
  • All procedure steps have Expected and On failure blocks
  • Related Skills references are valid (no broken cross-references)
  • Registry total_skills matches actual count on disk
  • For variants: new entry in _registry.yml with correct path
  • For variants: symlinks created at .claude/skills/ and ~/.claude/skills/
  • git diff confirms no accidental content removal
  • For refinements with translations: source_commit updated or translations flagged for re-sync

Pitfalls

  • Forgetting to bump version: Without version bumps, there's no way to track what changed or when. Always update version in frontmatter before committing.
  • Accidental content deletion: When restructuring steps, it's easy to drop an On failure block or a table row. Always review git diff before committing.
  • Stale cross-references: When creating a variant, both the original and the variant need to reference each other. One-directional references leave the graph incomplete.
  • Registry count drift: After creating a variant, the total_skills count must be incremented. Forgetting this causes validation failures in other skills that check the registry.
  • Stale translations after evolution: With 1,288 translation files in the repo, every skill evolution triggers staleness in up to 4 locale files. Always check for existing translations with ls i18n/*/skills/<skill-name>/SKILL.md and update source_commit in each translated file's frontmatter, or flag them for re-translation in the commit message. Skipping this causes npm run validate:translations to report stale warnings.
  • Scope creep during refinement: A refinement that doubles the skill's length should probably be a variant instead. If you're adding more than 3 new procedure steps, reconsider the scope decision from Step 3.
  • Avoid git mv on NTFS-mounted paths (WSL): On /mnt/ paths, git mv for directories can create broken permissions (d?????????). Use mkdir -p + copy files + git rm the old path instead. See the environment guide troubleshooting section.

Related Skills

  • create-skill — foundation for authoring new skills; evolve-skill assumes this was followed originally
  • commit-changes — commit the evolved skill with a descriptive message
  • configure-git-repository — version-controlled skill changes
  • security-audit-codebase — review evolved skills for accidentally included secrets

GitHub 저장소

pjt222/agent-almanac
경로: i18n/caveman-lite/skills/evolve-skill
0
agentsagentskillsai-assisted-developmentclaude-codeskillsteams

연관 스킬

content-collections

메타

이 스킬은 콘텐츠 콜렉션(Content Collections)을 위한 프로덕션 검증된 설정을 제공합니다. 콘텐츠 콜렉션은 Markdown/MDX 파일을 Zod 검증이 포함된 타입 안전한 데이터 콜렉션으로 변환해주는 TypeScript 최우선 도구입니다. 블로그, 문서 사이트 또는 콘텐츠 중심의 Vite + React 애플리케이션을 구축할 때 타입 안전성과 자동 콘텐츠 검증을 보장하기 위해 사용하세요. Vite 플러그인 구성과 MDX 컴파일부터 배포 최적화 및 스키마 검증에 이르기까지 모든 것을 다룹니다.

스킬 보기

polymarket

메타

이 스킬은 개발자들이 Polymarket 예측 시장 플랫폼을 활용한 애플리케이션을 구축할 수 있도록 지원하며, 거래 및 시장 데이터를 위한 API 통합 기능을 포함합니다. 또한 WebSocket을 통한 실시간 데이터 스트리밍을 제공하여 실시간 거래와 시장 활동을 모니터링할 수 있습니다. 이를 통해 거래 전략을 구현하거나 실시간 시장 업데이트를 처리하는 도구를 생성하는 데 활용할 수 있습니다.

스킬 보기

creating-opencode-plugins

메타

이 스킬은 개발자들이 명령어, 파일, LSP 작업 등 25개 이상의 이벤트 유형에 연결되는 OpenCode 플러그인을 만들 수 있도록 돕습니다. JavaScript/TypeScript 모듈을 위한 플러그인 구조, 이벤트 API 명세, 구현 패턴을 제공합니다. OpenCode AI 어시스턴트의 라이프사이클을 사용자 정의 이벤트 기반 로직으로 가로채거나, 모니터링하거나, 확장해야 할 때 사용하세요.

스킬 보기

sglang

메타

SGLang은 RadixAttention 프리픽스 캐싱을 활용하여 JSON, 정규식, 에이전트 워크플로우를 위한 고속 구조화 생성에 특화된 고성능 LLM 서빙 프레임워크입니다. 특히 반복되는 프리픽스가 있는 작업에서 상당히 빠른 추론 속도를 제공하여 복잡한 구조화 출력 및 다중 턴 대화에 이상적입니다. 제약 디코딩이 필요하거나 광범위한 프리픽스 공유가 있는 애플리케이션을 구축할 때는 vLLM과 같은 대안보다 SGLang을 선택하십시오.

스킬 보기