Loading...
Loading...
This skill should be used after productive sessions to extract learnings and route them to appropriate Reusable Intelligence Infrastructure (RII) components. Use when corrections were made, format drift was fixed, new patterns emerged, or the user explicitly asks to "harvest learnings" or "capture session intelligence". Transforms one-time fixes into permanent organizational knowledge by implementing updates across multiple files.
npx skill4agent add panaversity/agentfactory session-intelligence-harvester1. CORRECTIONS MADE
- What errors/drift were corrected?
- What was wrong vs what is now correct?
- Why did the error occur? (missing check, format drift, etc.)
WHY THIS MATTERS: Understanding root cause determines which RII
component prevents recurrence. Format drift → agent convergence
pattern. Missing context → CLAUDE.md protocol step.
2. PATTERNS IDENTIFIED
- What recurring patterns emerged?
- What canonical sources were referenced?
- What validation would have caught this earlier?
WHY THIS MATTERS: Patterns that recur across sessions deserve
encoding. If you referenced a canonical source, other sessions
will need that same reference.
3. LEARNING CLASSIFICATION
- Context-gathering gap? (CLAUDE.md)
- Pedagogical/teaching issue? (Constitution)
- Agent convergence pattern? (Agents)
- Reusable workflow? (Skills)
- Missing orchestration check? (Commands)
WHY THIS MATTERS: Wrong routing means learnings don't trigger at
the right time. A convergence pattern in CLAUDE.md won't help
chapter-planner catch it during planning.| Learning Type | Target Component | Location | What to Add | When It Triggers |
|---|---|---|---|---|
| Context-gathering gaps | CLAUDE.md | Section I | New step in context protocol | Before ANY platform work |
| Failure mode example | CLAUDE.md | Failure modes | Named example with correction | When similar situation detected |
| Pedagogical framework | Constitution | Section IIa | Teaching method update | During lesson design |
| Agent convergence pattern | Agent file | Convergence Patterns | Pattern + why + correction | During agent execution |
| Agent self-monitoring | Agent file | Self-Monitoring Checklist | New checklist item | Before agent finalizes output |
| Canonical source lookup | Multiple agents | Analysis Questions | Cross-reference check | During planning phase |
| Reusable workflow | New skill | .claude/skills/ | New SKILL.md | When user invokes skill |
| Orchestration check | Command file | Phase 0 or relevant phase | New validation step | During workflow execution |
| Format specification | Canonical source chapter | Lesson content | Authoritative format | When teaching that pattern |
content-implementer.mdchapter-planner## Learning: [Brief Title]
**Type**: [Context gap | Failure mode | Convergence pattern | etc.]
**Target**: [File path]
**Current State** (after reading file):
[What's missing or incorrect - quote existing content if helpful]
**Exact Placement**:
[Which section, after which content - be specific enough to Edit]
**Content to Add**:
[Exact content, matching the file's style and format]
**Rationale**:
[Why this prevents recurrence - what will trigger this check]
**Canonical Source** (if applicable):
[Which chapter/lesson defines the authoritative format]Updates Progress:
- [x] CLAUDE.md - Added failure mode section
- [x] chapter-planner.md - Added convergence pattern 6
- [ ] sp.loopflow.v2.md - Adding Phase 0 check (in progress)
- [ ] content-implementer.md - Pending- [ ] Read each target file before editing (no speculation about structure)
- [ ] Verified each learning routes to the component where it triggers at the right time
- [ ] Confirmed updates include exact placement context (not vague locations)
- [ ] Checked canonical sources exist for format-related learnings
- [ ] Searched target files to confirm no duplicate information exists
- [ ] Used imperative form for agent files, appropriate style for others
- [ ] Added cross-references where pattern appears in multiple files
- [ ] All edits applied successfully (no pending changes)feat(intelligence): Harvest session learnings into RII
Updates:
- [File 1]: [What was added]
- [File 2]: [What was added]
Prevents: [What failure mode this prevents]Section I: Context Gathering Protocol
- Step 1-N: Sequential context steps
- Each step has WHAT to do and WHY it matters
- "Find canonical source" step for pattern teaching
Failure Modes (between Section I and II):
- Named failure examples: "FAILURE MODE: [Name] Example"
- "What I did wrong" list
- "What I should have done" numbered steps
- "Result" showing what was preventedAnalysis Questions (Section III):
- Numbered questions with "Why this matters" explanation
- Self-check prompt at end
Principles (Section IV):
- Named principles with Framework + What this means + Application guidance
- Self-check prompt
Convergence Patterns (Section VI):
- "Generic pattern" description
- "Why this is convergence" explanation
- "Correction" with specific steps
Self-Monitoring Checklist (Section VIII):
- Numbered checklist with checkmark emoji prefix
- Each item is a verification questionPhase 0: Foundation checks
- Constitutional reading
- Canonical source checks (for educational content)
- Each step explains WHY
Convergence Patterns:
- Symptom description
- Detection method
- Correction steps## Session Intelligence Harvest Summary
**Session**: [Brief description]
**Date**: [ISO date]
**Status**: COMPLETE
### Learnings Extracted: [N]
| # | Learning | Type | Target | Status |
|---|----------|------|--------|--------|
| 1 | [Title] | [Type] | [File] | Applied |
| 2 | [Title] | [Type] | [File] | Applied |
### Updates Applied
1. **[File]**: [What was added] (lines X-Y)
2. **[File]**: [What was added] (lines X-Y)
### PHR Created
- Path: [PHR path]
- Stage: [Stage]
### Canonical Sources Referenced
- [Pattern]: [Chapter X Lesson Y]
### Commit
- Hash: [commit hash]
- Message: [commit message summary]CORRECTIONS MADE:
- Wrong: .claude/skills/section-writer.md (flat file, no domain)
- Correct: .claude/skills/authoring/section-writer/SKILL.md (domain + directory structure)
- Root cause: No domain organization for skills/agents
PATTERNS IDENTIFIED:
- Skills must be in authoring/ or engineering/ domain folders
- Agents must be in authoring/ or engineering/ domain folders
- Multiple files referenced old flat structure
CLASSIFICATION:
- Failure mode → CLAUDE.md
- Convergence pattern → chapter-planner.md, content-implementer.md
- Skill structure → skill-creator, session-intelligence-harvesterCORRECTIONS MADE:
- Wrong: Started chapter work without reading chapter-index.md
- Correct: MUST read chapter-index.md first to get Part, proficiency, prerequisites
- Root cause: No mandatory step in context protocol
CLASSIFICATION:
- Context-gathering gap → CLAUDE.md Section ICORRECTIONS MADE:
- Wrong: "50-75% time savings" for goose
- Correct: "75% of engineers save 8-10+ hours/week" (verified via Block announcement)
- Wrong: Conflated Agent Skills timeline (said single date)
- Correct: Oct 16, 2025 = Claude Code launch; Dec 18, 2025 = open standard release
- Wrong: Generic agent support lists
- Correct: Verified lists from official AAIF announcement
- Root cause: Trusted plausible-sounding data from memory instead of web verification
PATTERNS IDENTIFIED:
- Statistics, dates, and quotes MUST be web-verified before publication
- Existing factual-verifier agent was available but not used
- 50% of session time was spent fixing hallucinated facts
CLASSIFICATION:
- Critical failure mode → CLAUDE.md Failure Prevention + new section
- Process gap → Missing mandatory fact-check step