Skip to content
Development
Command

/ia-compound

Parallel-agent workflow to document a solved problem for team reuse. Use after debugging, fixing, or resolving a bug, incident, or tricky edge case worth capturing for future sessions.

From plugin
whetstone
3038 skills19 agents38 commands
Install
$ npx -y skills add iliaal/whetstone --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/ia-compound

Context preview

What this command does when you run it.

Parallel-agent workflow to document a solved problem for team reuse. Use after debugging, fixing, or resolving a bug, incident, or tricky edge case worth capturing for future sessions.

Command definition

ia-compound.md
name: ia-compound
description: Parallel-agent workflow to document a solved problem for team reuse. Use after debugging, fixing, or resolving a bug, incident, or tricky edge case worth capturing for future sessions.
argument-hint: "[optional: brief context about the fix]"

/ia-compound

**Context:** #$ARGUMENTS

Coordinate multiple subagents working in parallel to document a recently solved problem. If context was provided above, use it as the starting point for Phase 1.

Purpose

Captures problem solutions while context is fresh, creating structured documentation in `docs/solutions/` with YAML frontmatter for searchability and future reference. Uses parallel subagents for maximum efficiency.

**Why "compound"?** Each documented solution compounds your team's knowledge. The first time you solve a problem takes research. Document it, and the next occurrence takes minutes. Knowledge compounds.

Usage

/ia-compound                    # Document the most recent fix
/ia-compound [brief context]    # Provide additional context hint

Execution Strategy: Two-Phase Orchestration

Follow the `ia-orchestrating-swarms` skill for the parallel-dispatch contract (single-message fan-out, write-ownership, wait-for-all). The subagent roles and the no-Write constraint below are compound-specific — the generic dispatch mechanics live in that skill.

<critical_requirement> **Only ONE file gets written - the final documentation.**

Phase 1 subagents return TEXT DATA to the orchestrator. They must NOT use Write, Edit, or create any files. Only the orchestrator (Phase 2) writes the final documentation file. </critical_requirement>

Phase 1: Parallel Research

<parallel_tasks>

Dispatch these subagents per the contract above. Each returns text data to the orchestrator — no file writes.

1. **Context Analyzer**

  • Extracts conversation history
  • Identifies problem type, component, symptoms
  • Quantifies impact with concrete metrics: duration, affected users/requests, SLA or revenue impact. Prefer specific numbers ("~2,000 requests failed over 45 minutes") over vague descriptions ("some users were affected")
  • Reconstructs chronological timeline from first symptom to resolution (include timestamps where available)
  • Validates against schema
  • Returns: YAML frontmatter skeleton + impact summary + timeline section

2. **Solution Extractor**

  • Analyzes all investigation steps
  • Identifies root cause using iterative "why" questioning (5 Whys): trace from the immediate failure through each contributing cause until reaching a systemic gap. "Deploy failed" → "Migration timed out" → "Table had 50M rows, no online DDL" → systemic cause: no migration size review process
  • Frame all findings as systemic gaps, not individual mistakes. "The deploy process lacks migration size checks" not "Engineer X forgot to check"
  • Extracts working solution with code examples
  • Returns: Solution content block with root cause chain

3. **Related Docs Finder**

  • Searches `docs/solutions/` for related documentation
  • Identifies cross-references and links
  • Finds related GitHub issues
  • Returns: Links and relationships

4. **Prevention Strategist**

  • Develops prevention strategies
  • Creates best practices guidance
  • Generates test cases if applicable
  • Produces concrete action items: each action needs an owner (person or team) and a deadline. Actions without owners don't get done
  • Returns: Prevention/testing content + action items list

5. **Category Classifier**

  • Determines optimal `docs/solutions/` category
  • Validates category against schema
  • Suggests filename based on slug
  • Returns: Final path and filename

</parallel_tasks>

Phase 2: Assembly & Write

<sequential_tasks>

**WAIT for all Phase 1 subagents to complete before proceeding.**

The orchestrating agent (main conversation) performs these steps:

1. Collect all text results from Phase 1 subagents into a single assembled payload (YAML frontmatter + timeline + impact + solution + root cause + prevention + path). 2. Invoke the `ia-compound-docs` skill via an explicit Skill tool call (not a prose instruction):

   Skill({ skill: "ia-compound-docs", args: "<assembled payload from step 1>" })

The skill owns YAML frontmatter validation, category/path resolution, directory creation, file writing, and cross-reference linking. Do NOT reimplement any of those steps here — if the write behavior needs to change, update the skill.

</sequential_tasks>

Phase 3: Optional Enhancement

**WAIT for Phase 2 to complete before proceeding.**

<parallel_tasks>

Based on problem type, optionally invoke specialized agents to review the documentation:

  • **performance_issue** → `ia-performance-oracle`
  • **security_issue** → `ia-security-sentinel`
  • **database_issue** → `ia-database-guardian`
  • **test_failure** → `ia-writing-tests` skill
  • Any code-heavy issue → `ia-code-simplicity-reviewer`

</parallel_tasks>

What It Captures

  • **Problem symptom**: Exact error messages, observable behavior
  • **Timeline**: Chronological sequence from first symptom to resolution, with timestamps where available. Captures the debugging path, not just the outcome
  • **Investigation steps tried**: What didn't work and why
  • **Root cause analysis**: 5 Whys chain from immediate failure to systemic gap, framed as process/system deficiencies (blameless)
  • **Impact**: Concrete metrics -- duration, affected users/requests, SLA or revenue impact. Specific numbers ("~2,000 requests failed over 45 minutes") over vague descriptions ("some users were affected")
  • **Working solution**: Step-by-step fix with code examples
  • **Prevention strategies**: How to avoid in future
  • **Action items**: Follow-up tasks with assigned owner (person or team) and deadline
  • **Cross-references**: Links to related issues and docs

Preconditions

<preconditions enforcement="advisory"> <check con

Read more
Ships withwhetstone

A Claude Code plugin that makes AI coding agents follow engineering discipline. Plan before coding. Verify before claiming done. Find root cause before patching. Review before merge. Skills activate based on file type and task signals, not manual toggling.

Get the whole plugin, auto-invoked
Stats
30
Stars
0
Views
3
Forks
Active
Maintenance
Python
Language
MIT
License
3d ago
Last commit
5mo ago
Created

Repo: iliaal/whetstone