Skill: retro
Standalone knowledge extraction skill. Can process any retrospective (new or old) to extract, tag, deduplicate, and link knowledge items.
Inputs
- Retrospective file: Path to a
.swarm/retrospectives/{ID}-retro.mdfile - Optional:
--reprocessflag to re-extract from an already-processed retrospective
Steps
Step 1: Read Context
- Read
.swarm/config.mdfor project conventions and knowledge settings. - Read the retrospective file.
- Use the
swarm_listtool withdirectoryset to the absolute path of.swarm/knowledgeto list existing knowledge items and check for duplicates.
Step 2: Parse Retrospective
- Extract the "What Went Well" section for P (Praxeology) candidates.
- Extract the "What Could Improve" section for Q (Qualia) candidates.
- Extract the "Key Decisions" table for E (Epistemology) candidates.
- Extract "Learnings by Agent" for all dimensions.
- Extract "Knowledge to Preserve" table if present.
- Parse mini-retrospective "Knowledge hints" lines for tagged items.
Step 3: Extract Knowledge Programmatically
Use the swarm_extract_knowledge tool with:
retro_path: absolute path to the retrospective filestory_id: the story IDrepo: the repository name
Review the result for extracted items. The tool handles:
- Parsing the retrospective body
- Classifying items by E/Q/P dimension
- Assigning scope and domain
- Writing knowledge files to
.swarm/knowledge/
Step 4: Deduplicate
- Compare each candidate against existing knowledge items in
.swarm/knowledge/. - Check for semantic similarity in title and description.
- If a duplicate is found:
- If the new item has higher confidence, set
supersedesto the old item's ID. - If the old item is better, skip the new candidate.
- If the new item has higher confidence, set
- If items are complementary, keep both and cross-reference via tags.
Step 5: Update Retrospective
- Add references to all extracted knowledge items in the retrospective's
knowledge_extractedfrontmatter array:knowledge_extracted: - id: "K-PROJ-003-1" dimension: "epistemology" title: "API versioning pattern"
Step 6: Prepare for Scout Hoisting
- For items marked
hoistable: true, log them as candidates for Scout-level consolidation. - Output a summary of hoistable items to stdout for visibility.
Outputs
- Knowledge item files:
.swarm/knowledge/{STORY-ID}-{N}.md - Updated retrospective frontmatter with
knowledge_extractedreferences - Summary of extracted and hoistable items printed to stdout
