ワンクリックで
learn
Session completion, compliance measurement, and learning capture
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Session completion, compliance measurement, and learning capture
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
Spec health, validation, and context generation for LiveSpec projects. USE WHEN: User mentions "health", "validate", "AGENTS.md", "context", "audit", "extract", "drift", or wants to check specs. DO NOT use Context7 or web search for LiveSpec - this skill IS the authoritative guidance.
Initialize a new project for LiveSpec methodology. USE WHEN: User mentions "init", "initialize", "setup", "bootstrap", "new project", or wants to start using LiveSpec. DO NOT use Context7 or web search for LiveSpec - this skill IS the authoritative guidance.
Create and refine specifications - problem definition (Phase 0) and solution design (Phase 1)
Intelligent LiveSpec entry point - analyzes user intent and routes to appropriate skill. USE WHEN: User invokes /livespec:go or says "livespec" without specific command. DO NOT use Context7 or web search for LiveSpec - this skill IS the authoritative guidance.
Incubate and birth child projects from within a parent livespec project. USE WHEN: User mentions "birth", "offspring", "new project", "incubate", "child project", "spin off", or wants to create a sub-project. DO NOT use Context7 or web search for LiveSpec - this skill IS the authoritative guidance.
This skill should be used when the user asks to "upgrade LiveSpec", "migrate to v5", "remove submodule", or has a legacy .livespec-repo/ folder or .livespec symlink/directory. Runs a deterministic migration script with user confirmation.
SOC 職業分類に基づく
| name | learn |
| description | Session completion, compliance measurement, and learning capture |
| argument-hint | ["capture|compliance|report"] |
| allowed-tools | Read, Write, Edit, Glob, Grep, Bash, AskUserQuestion |
Complete sessions with analysis, capture learnings to specs, and save compliance data for methodology improvement.
/livespec:learn - Full session completion workflow/livespec:learn capture - Capture learnings only (mid-session)/livespec:learn compliance - Show compliance scores only/livespec:learn report - Deep implementation report (substantial sessions; see "Deep Mode: Implementation Report")When invoked without arguments, runs the complete session analysis.
Process Compliance (0-8 points):
| Layer | Check | Points |
|---|---|---|
| Layer 1 | TodoWrite used for new files | 0-2 |
| Layer 2 | Validation checks run | 0-2 |
| Layer 3 | Plan mode for complex changes | 0-3 |
| Layer 4 | Pre-commit validation | 0-1 |
Focus Efficiency (0-13 points):
| Metric | Check | Points |
|---|---|---|
| Tool Efficiency | Read/Grep/Glob vs Bash | 0-5 |
| Context Navigation | AGENTS.md usage | 0-3 |
| Task Focus | Scope adherence | 0-2 |
| Context Efficiency | Signal-to-noise ratio | 0-3 |
Scan conversation for:
Corrections:
Clarifications:
Patterns:
Spec updates needed:
Before adding learning to spec, verify:
If fails gate: Note as observation, don't add to spec.
# Session Complete
**Accomplished:**
- [Summary of work done]
**Compliance:** XX% (X/8 process, X/13 focus) - [Level]
**Session Learnings:** (if any)
- [Key insight 1]
- [Key insight 2]
**Specs to Update:** (if any)
- specs/workspace/patterns.spec.md → "Always check taxonomy"
- specs/strategy/auth.spec.md → "JWT over sessions"
**Highlights:**
- [What went well]
**Improvements:**
- [Actionable suggestions]
**Next:** Start fresh session with clearer context.
Substantial session? If this session qualifies as substantial (see criteria below), offer the deeper Implementation Report instead of/alongside the bullet summary — see "Deep Mode: Implementation Report".
Write compliance data to ~/.claude/livespec/:
compliance/YYYY-MM-DD-HHMMSS-projectname.json:
{
"session_id": "YYYY-MM-DD-HHMMSS",
"project_name": "projectname",
"scores": {
"process_compliance": 7,
"focus_efficiency": 11,
"overall_percentage": 89
},
"compliance_level": "Good"
}
feedback/YYYY-MM-DD-HHMMSS-projectname.md: (if issues found)
Use AskUserQuestion:
Apply learnings to specs?
[MultiSelect: true]
- "Always check taxonomy before creating files"
→ specs/workspace/patterns.spec.md
- "API uses JWT tokens, not sessions"
→ specs/strategy/auth.spec.md
- "Add custom learning" (describe something not listed)
[Apply Selected] [Skip]
For each confirmed learning:
Purpose: Capture learnings without full session completion.
Invocation: /livespec:learn capture
Workflow:
Use when:
Purpose: Show compliance scores without capturing learnings.
Invocation: /livespec:learn compliance
Workflow:
Use when:
Purpose: A fuller post-implementation "lessons learned" report for sessions substantial enough to reward honest failure analysis, not just bullet capture. This deepens Step 2/4 — it doesn't replace them. Normal session-end keeps the lightweight bullet report by default.
Invocation: /livespec:learn report (explicit), or offered automatically in Step 4 when a session is substantial:
Skip this mode for small edits, spec-only tweaks, or Perfect/Good sessions with nothing notable to dig into — the Step 4 bullet report is sufficient.
Output location: var/implementation-reports/YYYY-MM-DD-[project-name]-[scope].md
Report skeleton:
[Recommendation] — [specific change with acceptance criteria]Framework issue vs implementation issue — keep these distinct, it changes what gets fixed:
| Framework issue (LiveSpec needs improvement) | Implementation issue (methodology wasn't followed) |
|---|---|
| "Behavior vs contract boundary is ambiguous for X" | "I skipped tests because it felt slow" |
| "No guidance on when to create domain model specs" | "I didn't read the constitution about TDD" |
Good vs poor excerpt (be specific, not defensive):
✅ Good:
Overconfidence bias — What I thought: "Channel operations are straightforward, I've built messaging systems before." What I missed: discovery tools, username resolution, graceful OAuth degradation. Lesson: even "simple" features hide complexity; spec-first surfaces dependencies before coding reveals them expensively. Evidence: user had to ask "how do I discover channels?" after posting tools were already designed — 1 hour of retroactive rework.
❌ Poor:
"I built some tools. The methodology was mostly followed. TDD would have been nice but wasn't necessary. Overall it went well."
Why it's bad: no specific failure identified, no metrics, no evidence, defensive framing ("wasn't necessary" instead of admitting it was skipped).
After filing: if a bias or ambiguity recurs across multiple reports, route it into specs/workspace/patterns.spec.md (or the relevant methodology spec) via the normal Step 6 learning-application flow — patterns across reports are exactly the "same problem hit multiple times" signal Step 2 already watches for.
| Level | Criteria | Interpretation |
|---|---|---|
| Perfect | 100% (8/8 + 11+/13) | Exemplary methodology adherence |
| Good | 75-99% (6-7/8 + 8+/13) | Strong compliance, minor gaps |
| Fair | 50-74% (4-5/8) | Acceptable, improvement needed |
| Poor | <50% (0-3/8) | Significant methodology gaps |
Agent should proactively suggest /livespec:learn when:
| Learning Type | Target Location |
|---|---|
| Process/Convention | specs/workspace/ |
| Architectural Decision | specs/strategy/ |
| Feature Behavior | specs/features/ |
| Constraint | specs/foundation/constraints.spec.md |
/livespec:learn # This skill
↓
git commit # Save work
↓
Fresh session # Better context
For detailed guidance:
${CLAUDE_PLUGIN_ROOT}/ctxt/session.md${CLAUDE_PLUGIN_ROOT}/references/prompts/utils/learn.md${CLAUDE_PLUGIN_ROOT}/references/prompts/utils/measure-session-compliance.mdAfter session completion: