.github_gpt/skills/workflows-compound/SKILL.md
Document a recently solved problem to compound your team's knowledge
npx skillsauth add the-rabak/compound-engineering-plugin workflows-compoundInstall 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.
Capture a verified, non-trivial solved problem as a single searchable solution document in docs/solutions/.
Execution Context section when session-file learnings are relevant.Execute the full source-of-truth workflow below. Preserve every conditional branch, phase, checklist, and validation step from the original instructions. When the workflow says to ask, wait, route, or run in parallel, do that exactly.
[optional: brief context about the fix]
Coordinate multiple subagents working in parallel to document a recently solved problem.
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.
/workflows-compound # Document the most recent fix
/workflows-compound [brief context] # Provide additional context hint
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.
Launch these subagents IN PARALLEL. Each returns text data to the orchestrator.
docs/solutions/ for related documentationdocs/solutions/ categorydocs/execution-sessions/ for recent session files related to the current fixWAIT for all Phase 1 subagents to complete before proceeding.
The orchestrating agent (main conversation) performs these steps:
docs/execution-sessions/work-2026-02-19-143022/task-03-create-auth-service.md)mkdir -p docs/solutions/[category]/docs/solutions/[category]/[filename].mdWAIT for Phase 2 to complete before proceeding.
Based on problem type, optionally invoke specialized agents to review the documentation:
performance-oraclesecurity-sentineldata-integrity-guardianrabak-laravel-reviewer + code-simplicity-reviewerrabak-laravel-reviewer + code-simplicity-reviewer/workflows-work task execution (from docs/execution-sessions/)Problem has been solved (not in-progress)
Solution has been verified working
Non-trivial problem (not simple typo or obvious error)
Organized documentation:
docs/solutions/[category]/[filename].mdCategories auto-detected from problem:
| [!] Wrong | Correct |
|----------|-----------|
| Subagents write files like context-analysis.md, solution-draft.md | Subagents return text data; orchestrator writes one final file |
| Research and assembly run in parallel | Research completes -> then assembly runs |
| Multiple files created during workflow | Single file: docs/solutions/[category]/[filename].md |
Documentation complete
Subagent Results:
Context Analyzer: Identified performance_issue in brief_system
Solution Extractor: 3 code fixes
Related Docs Finder: 2 related issues
Prevention Strategist: Prevention strategies, test suggestions
Category Classifier: `performance-issues`
Execution Session Analyzer: Found 2 related session files, 1 recurring pattern
Specialized Agent Reviews (Auto-Triggered):
performance-oracle: Validated query optimization approach
rabak-laravel-reviewer: Code examples meet project standards
code-simplicity-reviewer: Solution is appropriately minimal
code-simplicity-reviewer: Solution is appropriately minimal
File created:
- docs/solutions/performance-issues/n-plus-one-brief-generation.md
This documentation will be searchable for future reference when similar
issues occur in the Email Processing or Brief System modules.
What's next?
1. Continue workflow (recommended)
2. Link related documentation
3. Update other references
4. View documentation
5. Other
This creates a compounding knowledge system:
The feedback loop:
Build -> Execute (session files) -> Test -> Find Issue -> Research -> Improve -> Document -> Validate -> Deploy
Each unit of engineering work should make subsequent units of work easier--not harder.
Trigger phrases: "that worked", "it's fixed", "working now", "problem solved"
Use /workflows-compound [context] to document immediately without waiting for auto-detection.
compound-docs skill
Based on problem type, these agents can enhance documentation:
compound-engineering.local.md or invoke the setup skill to configure which review agents are used across all workflows/research [topic] - Deep investigation (searches docs/solutions/ for patterns)/workflows-plan - Planning workflow (references documented solutions)Return a completion report in this shape:
Documentation complete
Subagent results:
- Context Analyzer: ...
- Solution Extractor: ...
- Related Docs Finder: ...
- Prevention Strategist: ...
- Category Classifier: ...
- Execution Session Analyzer: ...
Specialized agent reviews:
- ...
File created:
- docs/solutions/[category]/[filename].md
tools
Package one plan execution packet into a compact ticket-local execution packet with parent refs, scope fences, feature-home ownership, and evidence commands. Use when converting plans into local tickets or when execution needs one ticket-sized context pack without the full plan.
tools
Package one plan execution packet into a compact ticket-local execution packet with parent refs, scope fences, feature-home ownership, and evidence commands. Use when converting plans into local tickets or when execution needs one ticket-sized context pack without the full plan.
testing
Run a deep adversarial review of plans and architecture before implementation. Use when validating strategy docs, contracts, roadmaps, and competitive positioning with scored findings and prioritized recommendations.
testing
Run a deep adversarial review of plans and architecture before implementation. Use when validating strategy docs, contracts, roadmaps, and competitive positioning with scored findings and prioritized recommendations.