From claude-skills
Analyzes Claude Code conversation history, git commits, and codebase to identify recurring patterns and generate project-specific agents and skills. Invoke with "/skill-from-history:learn-gen" or when user asks to "create skills from history", "analyze patterns", "generate agents".
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-skills:skill-from-historyThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
A meta-skill that discovers recurring patterns from your project's history and generates reusable Claude Code **agents** and **skills**. Agents define roles/perspectives; skills define workflows/procedures. Agents are generated first, then skills can reference them.
commands/learn-check.mdcommands/learn-gen.mdcommands/learn-init.mdcommands/learn-promote.mdcommands/learn-status.mdreferences/adr-lite.mdreferences/agent-detection.mdreferences/agent-lint.mdreferences/agent-template.mdreferences/anti-pattern-detection.mdreferences/conflict-detection.mdreferences/evaluation.mdreferences/evidence-format.mdreferences/execution-details.mdreferences/global-skills.mdreferences/glossary.mdreferences/golden-tasks.mdreferences/lifecycle.mdreferences/orchestrator.mdreferences/pattern-detection.mdA meta-skill that discovers recurring patterns from your project's history and generates reusable Claude Code agents and skills. Agents define roles/perspectives; skills define workflows/procedures. Agents are generated first, then skills can reference them.
Input: Claude Code history + Git commits + Codebase
Output: .claude/agents/[name]/AGENT.md + .claude/skills/[name]/SKILL.md
Process: 9 steps (Gather → Agents → Skills → Conflict → Propose → Generate)
Quick Actions:
/skill-from-history:learn-gen - Generate agents + skills (recommended)/skill-from-history:learn-gen --agents - Agents only/skill-from-history:learn-gen --skills - Skills onlyInvoke this skill when:
Trigger phrases: "create skills from history", "analyze patterns", "generate skills", "suggest skills", "skill from history"
| Source | Location | Extracted Information |
|---|---|---|
| Conversation History | ~/.claude/projects/[encoded-path]/ | User prompts, tool calls, rejections |
| Git Commits | git log | Commit patterns, file frequencies |
| Codebase | Source files | Directory structure, code patterns |
.claude/skills/ and .claude/agents/詳細: references/execution-details.md
.claude/
├── agents/[name]/
│ └── AGENT.md
├── skills/[name]/
│ ├── SKILL.md
│ └── references/
│ └── patterns.md
└── commands/[skill-name].md # Optional
name (max 64 chars), description (max 1024 chars)[E#] references詳細: references/skill-template.md, references/agent-template.md
| Level | 説明 | 強制力 |
|---|---|---|
| Draft | 提案段階 | Warning のみ |
| Accepted | 承認済み | Warning + CI Warning |
| Canonical | 標準規則 | Error + CI Block |
| Deprecated | 非推奨 | Info のみ |
昇格には: Eval Pass + Staleness Check + Rationale 記録が必要。
ALLOW_CONSTRAINT: CONS-XXX + REASON で例外許可制約の有効性を検証するテストスイート:
/skill-from-history:learn-check # 実行
/skill-from-history:learn-check --baseline # ベースライン比較
詳細: references/golden-tasks.md
| Setting | Default |
|---|---|
| Minimum frequency | 3+ occurrences |
| Minimum confidence | 60% |
| Git history | Last 100 commits |
| Analysis scope | Active source files only |
| Issue | Solution |
|---|---|
| No patterns found | Check history exists at ~/.claude/projects/ |
| Too many similar suggestions | Increase similarity threshold, focus categories |
| Large history files | Limit to recent sessions, use sampling |
| コマンド | 説明 |
|---|---|
/skill-from-history:learn-status | 現在のステータス表示 |
/skill-from-history:learn-init | Golden Tasks初期化 |
/skill-from-history:learn-gen | Agent/Skill生成 |
/skill-from-history:learn-check | 評価実行 |
/skill-from-history:learn-promote | 成熟度昇格 |
.claude/agents/[name]/AGENT.md (generated first).claude/skills/[name]/SKILL.md (can reference agents)skills:) and Skill→Agent (agents:)ALLOW_CONSTRAINT: CONS-XXX with REASON~/.claude/global-skills/ for cross-project sharingexternal: truenpx claudepluginhub usedhonda/claude-skills --plugin skill-from-historyGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.