toolkit/packages/skills/compound-docs/SKILL.md
Internal module for knowledge capture. Called by /reflect for generating structured learning documents with YAML frontmatter and entity sidecars. Not user-invocable — use /reflect or /reflect --knowledge instead.
npx skillsauth add stevengonsalvez/agents-in-a-box 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.
Internal Module: Called by
/reflectfor knowledge capture. Use/reflectdirectly, or/reflect --knowledgefor knowledge-only capture.
Generate structured learning documents from solved problems. This module handles:
docs/solutions/ and promoting to global KB| Category | Indicators |
|----------|------------|
| build-errors | Compile errors, CI failures, bundling |
| performance-issues | Slowdowns, memory leaks, optimization |
| security-fixes | Vulnerabilities, auth issues, secrets |
| testing-patterns | Test strategies, flaky tests |
| debugging-sessions | Complex investigations |
| architecture-decisions | Design choices, patterns |
| api-integrations | Third-party APIs, SDKs |
| dependency-issues | Package conflicts, upgrades |
| deployment-fixes | Production incidents |
| database-migrations | Schema changes, data fixes |
| ui-patterns | Frontend patterns, CSS |
| tooling-setup | Dev environment, configs |
---
title: "[Brief descriptive title]"
category: [auto-detected or specified]
tags: [extracted tags]
symptoms:
- "[Error message or behavior]"
root_cause: "[What actually caused it]"
key_insight: "[THE ONE THING that fixes it]"
created: [today's date]
confidence: [high|medium|low]
language: [if applicable]
framework: [if applicable]
---
## Problem
[Description]
## Solution
[Steps with code examples]
## Context
[Why it happened, how to prevent]
For GraphRAG indexing, extract entities and relationships.
See reflect/references/knowledge_format.md for entity types,
relationship types, extraction guidelines, and sidecar format.
# Project-local
mkdir -p docs/solutions/[category]
# Save: docs/solutions/[category]/[filename].md
# Global promotion (via the reflect CLI from reflect-kb).
# `--force` skips the interactive y/N prompt; content-hash doc_id makes the
# call idempotent so re-runs no-op cleanly.
if command -v reflect >/dev/null 2>&1; then
reflect add docs/solutions/[category]/[filename].md \
--entities docs/solutions/[category]/[filename].entities.yaml \
--force
fi
documentation
Report reflect drain spend over a time window — tokens split by cached (cache_read), uncached writes (cache_creation), and io (input+output), with a $ estimate, grouped by day / outcome / model / transcript. Reads the drainer's cost log and surfaces outlier runs and cache-reuse health (the 41.5M-token failure mode = low cache reuse + high cache writes). Use to answer "what is reflection costing me" for the last day / week.
development
Show fleet status — every claude session running on the host, merged across ainb + claude-peers broker + background jobs. Use when you need to enumerate sessions before composing an action, see which sessions have a peer registered (broker-routable) vs tmux-only, check the `summary` of each session, or pipe the list into jq for filtering. Default output: text table. Pass --format json for LLM consumption.
testing
Ordered multi-step prompts to fleet targets, ack-gated between steps via JSONL assistant-turn-end detection. Use for cycles like disconnect→reconnect→verify, or any flow where step N+1 requires step N to have completed first. The skill BLOCKS until each target's transcript shows the next assistant turn finishing OR per-step timeout fires (default 300s).
development
Center control panel — enumerate every claude session that is blocked waiting on something: a user answer (AskUserQuestion fired), an API error retry, an idle assistant turn-end with no follow-up, or an explicit WAITING: marker. Returns rich JSON with signal kind + context per session. Use this when you've stepped away from the fleet and want one place to see everything that wants your attention and answer it.