Agent skill
skill-create
Analyze git history and instincts to auto-generate a learned skill
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/skill-create
SKILL.md
Skill Create
Generate a learned skill from git history patterns and accumulated instincts.
Arguments
- First argument: skill name (kebab-case, required)
--category <cat>: category (error_resolution, convention, debugging, workaround)--from-instincts: generate from high-confidence instincts only--from-git: generate from git history analysis only
Process
1. Gather Evidence
If --from-instincts:
Read .claude/instincts/instincts.jsonl
Filter to instincts with confidence >= 0.5 in the specified category.
If --from-git (or default):
Run: git log --oneline -50 to see recent commit patterns.
Run: git log --all --diff-filter=M --name-only --pretty=format: -- '*.ts' '*.tsx' | sort | uniq -c | sort -rn | head -20
This shows the most frequently modified files — common edit targets suggest recurring patterns.
Both by default — combine instinct data with git history.
2. Analyze Patterns
Look for:
- Files that are frequently edited together (co-change patterns)
- Repeated error-to-fix cycles (from instincts)
- Common debugging sequences (from instincts)
- Project conventions that are frequently enforced (from instincts)
3. Generate Skill
Create ~/.claude/skills/learned/<project-slug>/<name>.md (get project-slug from .claude/hooks/continuous-learning-config.json):
---
name: <name>
description: <auto-generated description>
source: skill-create
date: <today>
category: <category>
confidence: <average confidence of source instincts>
source_instincts: [<instinct IDs>]
---
# <Name>
<Generated skill content based on patterns found>
4. Confirm with User
Show the generated skill content and ask:
- "Does this look right?"
- "Any adjustments needed?"
Save only after user approval.
5. Output
Skill created: ~/.claude/skills/learned/<project-slug>/<name>.md
Based on: N instincts, M git patterns
Confidence: 0.X
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?