skills/bind/compound-docs/SKILL.md
Capture solved problems as searchable documentation with pattern detection. This skill auto-triggers when users confirm a fix worked ("that worked", "it's fixed", "working now") or manually via /compound command.
npx skillsauth add aiskillstore/marketplace compound-docsInstall 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.
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.
This skill is inspired by Every.to's compound-engineering plugin.
This skill auto-triggers when the user says:
Manual command: /compound
When a trigger phrase is detected or /compound is invoked:
Skip documentation for trivial fixes:
If skipping, briefly explain why: "This was a simple typo fix - skipping documentation."
Read schema.yaml to get valid enum values, then extract from the conversation:
| Field | Required | Description |
|-------|----------|-------------|
| Symptom | Yes | Error message or observable behavior |
| Category | Yes | From schema.yaml category.values (or add new) |
| Component | No | From schema.yaml component.values (or add new) |
| Root cause | No | From schema.yaml root_cause.values (or add new) |
| Solution | Yes | The fix that worked |
| Prevention | No | How to avoid this in the future |
If a value doesn't exist in schema.yaml:
schema.yamlmkdir -p {output_dir}/{new-category}If critical info is missing, ask:
To document this fix, I need a few details:
1. Category: What type of issue was this?
[list current values from schema.yaml]
Or suggest a new category if none fit
Before creating a new doc, search for similar existing issues:
{output_dir}/ for error message fragments or key symptom phrases# Example searches
grep -rl "ErrorMessage" docs/solutions/
grep -l "path/to/file" docs/solutions/**/*.md
If potential matches found:
Found potentially related issues:
- docs/solutions/integration/api-timeout-20250102.md
- docs/solutions/integration/auth-header-missing-20250105.md
Are any of these the same or related issue? (y/n)
If related, add to the related field in frontmatter.
Validate against schema.yaml:
Generate filename:
{sanitized-symptom}-{YYYYMMDD}.mdCreate file at: {output_dir}/{category}/{filename}
Ensure directory exists:
mkdir -p {output_dir}/{category}
Use the Solution Doc Template below.
After creating the doc, check if this issue has occurred multiple times.
If similar issues >= threshold (default: 2):
This issue has occurred {N} times:
- {link to issue 1}
- {link to issue 2}
- {link to current issue}
Promote to patterns.md? This surfaces it prominently for future sessions.
1. Yes - Add to patterns
2. No - Keep as regular doc only
If yes: Append to {output_dir}/patterns.md using the Pattern Template below.
---
date: {YYYY-MM-DD}
category: {category}
symptoms:
- {symptom 1}
- {symptom 2}
component: {component}
root_cause: {root_cause}
tags: [{keyword1}, {keyword2}]
related: []
---
# {Problem Title}
## Problem
{1-2 sentence description of what went wrong}
## Symptoms
- {What you observed - error messages, behavior, etc.}
## What Didn't Work
- {Attempted solution 1} - {Why it failed}
- {Attempted solution 2} - {Why it failed}
## Solution
{Description of the fix}
```{language}
# Before (broken)
{code before}
# After (fixed)
{code after}
{Technical explanation of the root cause and why the solution addresses it}
{How to avoid this in the future - tests, linting rules, patterns to follow}
## Pattern Template
When adding to `patterns.md`:
```markdown
## {Pattern Name}
**Occurrences:** {N} times ({link1}, {link2}, ...)
### WRONG
```{language}
{code that causes the problem}
{code that fixes it}
Why: {Technical explanation}
When this applies: {Context or conditions when this pattern is relevant}
## Integration
### Reference in AGENTS.md
Add to your project's AGENTS.md to ensure patterns are checked:
```markdown
## Required Reading
Before making changes, review known patterns:
- [Solution Patterns](docs/solutions/patterns.md)
Other workflows can discover and apply documented solutions:
Search by keyword:
grep -rl "keyword" docs/solutions/
Search by category:
ls docs/solutions/deployment/
Search by tag:
grep -l "tags:.*docker" docs/solutions/**/*.md
patterns.md is the primary integration point - check it first for critical patterns before making changes.
User: "That worked! The Docker build was failing because of the cache issue."
Agent response:
Great! Let me document this fix.
**Reading schema.yaml...**
Current categories: developer-experience, deployment, ui, integration, performance, testing
Current components: (none yet)
Current root_causes: (none yet)
**Gathering context...**
From our conversation:
- Symptom: Docker build failing with "layer not found" error
- Category: deployment
- Component: docker (adding to schema.yaml)
- Root cause: stale-cache (adding to schema.yaml)
- Solution: Added `--no-cache` flag and updated base image tag
- Prevention: Pin base image versions, use `docker system prune` periodically
**Updating schema.yaml...**
Added 'docker' to component.values
Added 'stale-cache' to root_cause.values
**Checking for similar issues...**
No related issues found.
**Creating documentation...**
Created: docs/solutions/deployment/docker-layer-not-found-20250106.md
Documentation complete.
development
Apple Human Interface Guidelines for content display components. Use this skill when the user asks about charts component, collection view, image view, web view, color well, image well, activity view, lockup, data visualization, content display, displaying images, rendering web content, color pickers, or presenting collections of items in Apple apps. Also use when the user says how should I display charts, what's the best way to show images, should I use a web view, how do I build a grid of items, what component shows media, or how do I present a share sheet. Cross-references: hig-foundations for color/typography/accessibility, hig-patterns for data visualization patterns, hig-components-layout for structural containers, hig-platforms for platform-specific component behavior.
tools
Automate HelpDesk tasks via Rube MCP (Composio): list tickets, manage views, use canned responses, and configure custom fields. Always search tools first for current schemas.
testing
Expert Haskell engineer specializing in advanced type systems, pure functional design, and high-reliability software. Use PROACTIVELY for type-level programming, concurrency, and architecture guidance.
tools
GraphQL gives clients exactly the data they need - no more, no less. One endpoint, typed schema, introspection. But the flexibility that makes it powerful also makes it dangerous. Without proper controls, clients can craft queries that bring down your server. This skill covers schema design, resolvers, DataLoader for N+1 prevention, federation for microservices, and client integration with Apollo/urql. Key insight: GraphQL is a contract. The schema is the API documentation. Design it carefully.