skills/retrospective/SKILL.md
Post-implementation retrospective that captures learnings to memory and proposes doc improvements
npx skillsauth add alchemishty/agent-harness retrospectiveInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Run a structured retrospective after completing a feature implementation (or standalone for any session). The goal is to extract durable learnings from this session and write them to memory/ so future sessions benefit. This turns one-time problem-solving into reusable knowledge.
/implement-feature completes (Phase 5 invokes this)harness.yaml at the project root (for project context).memory/ (to avoid duplicating existing entries).scratch/session-state.md exists, read it for session context.Answer these questions internally (do not print them all to the user — they guide your analysis). Not all questions apply to every retrospective — skip any that are irrelevant to the session type.
docs/conventions.md prove especially useful?docs/architecture.md, docs/conventions.md, or docs/domain.md that caused confusion?docs/decisions/ records missing that would have saved time?harness.yaml commands incorrect or missing?docs/conventions.md? These are documentation gaps.docs/decisions/ entry.Review feedback is the highest-signal input for memory. Reviewers explicitly state what the team expects. If a reviewer says "we always do X" and it's not in conventions.md, both write it to memory/patterns.md AND propose adding it to conventions.md.
For each finding from Step 1, check if an existing entry in memory/ already covers it. If so, update that entry. If not, append to the appropriate file.
| Finding type | Memory file |
|-------------|-------------|
| Coding patterns that worked | memory/patterns.md |
| Error fixes and debugging insights | memory/fixes.md |
| User workflow and tool preferences | memory/preferences.md |
| Domain knowledge discovered | memory/domain.md |
| Reviewer-enforced standards | memory/patterns.md |
| Review feedback themes | memory/review-lessons.md |
Each entry should be self-contained and scannable:
## <Short descriptive title>
<1-3 sentences explaining the pattern, fix, or preference.>
- **Context:** <when this applies>
- **Source:** <how this was discovered — e.g., "2026-03-10 user-auth feature">
[SUPERSEDED] with a date and reason rather than deleting itIf Step 1c or 1d revealed gaps, propose specific edits. Do NOT make the edits automatically — present them to the user for approval.
## Proposed Documentation Improvements
### 1. [Target file]: [What to add/change]
**Gap found:** <what was missing or unclear>
**Proposed fix:** <specific text to add or change>
### 2. [Target file]: [What to add/change]
...
Should I apply any of these changes?
docs/conventions.md (patterns you had to discover by reading code)docs/domain.md (business rules you had to infer)docs/architecture.mddocs/decisions/harness.yamlPresent a concise summary to the user:
## Retrospective Summary
### Learnings captured to memory/
- <N> new entries written
- <N> existing entries updated
- Files updated: <list>
### Documentation gaps found
- <N> improvements proposed (see above)
- <or "None — docs are up to date">
### Session stats (if available)
- Verification retries: <N>
- Most common error type: <description>
- Steps completed: <N> of <total>
memory/ files before writing to avoid duplication.testing
Validate and fix project structure against architecture rules
tools
Migrate project scaffolding to match the latest harness version. Adds new directories (memory/, scratch/), new harness.yaml fields, and suggests AGENTS.md updates. For plugin users this handles what a plugin update cannot — project-level structure changes. For git-clone users this also updates copied skill files.
data-ai
Install the agent harness into a target project. Detects project type (greenfield vs existing), copies skills, and delegates to the appropriate bootstrap command.
tools
Autonomous feature implementation orchestrator