---
name: harness:compound
description: 5-phase post-mortem capture. Writes a structured solution doc at docs/solutions/{track}/{category}/{slug}.md with frontmatter, overlap-detection, and per-category lock for concurrency safety.
---

<!-- Generated by harness generate-slash-commands. Do not edit. -->

<context>
Cognitive mode: reflective-historian
Type: rigid
</context>

<objective>
5-phase post-mortem capture. Writes a structured solution doc at docs/solutions/{track}/{category}/{slug}.md with frontmatter, overlap-detection, and per-category lock for concurrency safety.

Phases:

- identify: Extract problem and solution from conversation, debug session, recent commits
- classify: Choose track and category from the v1 schema enums
- overlap-check: Scan existing docs/solutions/<track>/<category>/ for matching problems; update existing if high overlap
- assemble: Fill the resolution template with track-appropriate sections
- write: Write doc under per-category lock; validate frontmatter; release lock
  </objective>

<execution_context>
@agents/skills/cursor/harness-compound/SKILL.md
@agents/skills/cursor/harness-compound/skill.yaml
</execution_context>

<process>
1. Try: invoke mcp__harness__run_skill with skill: "harness-compound"
2. If MCP unavailable: read SKILL.md and follow its workflow directly
3. Pass through any arguments provided by the user
</process>
