/systematic:compound-docsfrom systematic
Captures solved problems as categorized documentation with YAML frontmatter for fast lookup. Automatically triggers after confirmation phrases to build searchable institutional knowledge.
Ships in systematic. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Purpose: Automatically document solved problems to build searchable institutional knowledge with category-based organization (enum-validated problem types).
This skill captures problem solutions immediately after confirmation, creating structured documentation that serves as a searchable knowledge base for future sessions.
Organization: Single-file architecture - each learning documented as one markdown file in the category directory its problem_type maps to (e.g., docs/solutions/performance-issues/n-plus-one-report-queries.md). Files use YAML frontmatter for metadata and searchability.
Two tracks: The problem_type decides the track. The bug track documents a defect that was diagnosed and fixed, and requires symptoms, root_cause and resolution_type. The knowledge track documents a practice, pattern, convention or workflow decision, and needs none of those. The track lists live in references/schema.yaml.
Prerequisites: The problem has been solved and the solution has been verified working, or the guidance has been confirmed. Do not document in-progress investigations as finalized solutions.
<critical_sequence name="documentation-capture" enforce_order="strict">
Auto-invoke after phrases:
OR manual: Invoke the systematic:ce-compound skill directly
Non-trivial problems only:
Skip documentation for:
Decide the track first: a fixed defect is the bug track, and a practice or decision worth keeping is the knowledge track. Then extract from conversation history:
Required for both tracks:
Bug track:
Knowledge track:
Environment details (optional):
BLOCKING REQUIREMENT: If critical context is missing, ask the user and WAIT for response before proceeding to Step 3. Bug track needs the module name, the exact error or symptom, and the resolution steps. Knowledge track needs the module name, the guidance, and when it applies:
I need a few details to document this properly:
1. Which module or area is this about? [ModuleName]
2. Bug track: what was the exact error message or symptom?
Knowledge track: what is the guidance, and when does it apply?
3. Bug track only: what fixed it?
[Continue after user provides details]
### Step 3: Check Existing Docs
Search docs/solutions/ for similar issues:
# Search by error message keywords
grep -r "exact error phrase" docs/solutions/
# Search by symptom category
ls docs/solutions/[category]/
IF similar issue found:
THEN present decision options:
Found similar issue: docs/solutions/[path]
What's next?
1. Create new doc with cross-reference (recommended)
2. Update existing doc (only if same root cause)
3. Other
Choose (1-3): _
WAIT for user response, then execute chosen action.
ELSE (no similar issue found):
Proceed directly to Step 4 (no user interaction needed).
### Step 4: Generate FilenameFormat: [sanitized-slug]-[YYYY-MM-DD].md
The slug is the symptom for bug-track docs. Knowledge-track docs have no symptom, so the slug is a short sanitized title of the guidance.
Sanitization rules:
Examples:
n-plus-one-report-generation-2025-11-10.md (bug track)parameter-not-saving-state-2025-11-10.md (bug track)webview-crash-on-resize-2025-11-10.md (bug track)prefer-explicit-request-timeouts-2025-11-10.md (knowledge track)
CRITICAL: All docs require validated YAML frontmatter with enum validation.
<validation_gate name="yaml-schema" blocking="true">
Validate against schema: Load references/schema.yaml and classify the problem against the enum values defined there and summarized in yaml-schema.md. Ensure all required fields are present and match allowed values exactly.
module, date, problem_type, component, severity.symptoms (1-5 items), root_cause, resolution_type. A knowledge-track doc may omit all three.values lists. A value under legacy_values is accepted when an existing doc already carries it, and is never chosen for a new doc.BLOCK if validation fails:
❌ YAML validation failed
Errors:
- problem_type: must be one of schema enums, got "compilation_error"
- severity: must be one of [critical, high, medium, low], got "invalid"
- symptoms (bug track): must be array with 1-5 items, got string
Please provide corrected values.
GATE ENFORCEMENT: Do NOT proceed to Step 6 (Create Documentation) until YAML frontmatter passes all validation rules defined in references/schema.yaml.
</validation_gate>
### Step 6: Create DocumentationDetermine category from problem_type: Use the Category Mapping section of yaml-schema.md. The narrow knowledge types (architecture_pattern, design_pattern, tooling_decision, convention) share best-practices/ with best_practice.
Create documentation file: The directory is created on first use, so no category directory needs to exist beforehand.
PROBLEM_TYPE="[from validated YAML]"
CATEGORY="[mapped from problem_type]"
FILENAME="[generated-filename].md"
DOC_PATH="docs/solutions/${CATEGORY}/${FILENAME}"
# Create directory on first use
mkdir -p "docs/solutions/${CATEGORY}"
# Write documentation using the template for the track in assets/resolution-template.md
# (Content populated with Step 2 context and validated YAML frontmatter)
Result:
Create documentation: Populate the Bug Track or Knowledge Track template from assets/resolution-template.md with context gathered in Step 2 and validated YAML frontmatter from Step 5.
If similar issues found in Step 3:
Update existing doc:
# Add Related Issues link to similar doc
echo "- See also: [$FILENAME]($REAL_FILE)" >> [similar-doc.md]
Update new doc: Already includes cross-reference from Step 6.
</critical_sequence>
<decision_gate name="post-documentation" wait_for_user="true">
After successful documentation, present options and WAIT for user response:
✓ Solution documented
File created:
- docs/solutions/[category]/[filename].md
What's next?
1. Continue workflow (recommended)
2. Link related issues - Connect to similar problems
3. Create new skill - Extract into new learning skill
4. View documentation - See what was captured
5. Other
Handle responses:
Option 1: Continue workflow
Option 2: Link related issues
Option 3: Create new skill
User selects this when the solution represents the start of a new learning domain:
Action:
python3 .opencode/skills/skill-creator/scripts/init_skill.py [skill-name]Option 4: View documentation
Option 5: Other
</decision_gate>
<integration_protocol>
Invoked by:
/systematic:ce-compound skill (primary interface)Invokes:
Handoff expectations: All context needed for documentation should be present in conversation history before invocation.
</integration_protocol>
<success_criteria>
Documentation is successful when ALL of the following are true:
values only</success_criteria>
Missing context:
YAML validation failure:
Similar issue ambiguity:
Module not in modules documentation:
MUST do:
mkdir -p)MUST NOT do:
symptoms or an error message for a knowledge-track docGood documentation has:
Citing code:
<file>:<line> or <file>:<start>-<end>. Never cite a bare file name.<file>:<line>, not real citations.docs/solutions/ and fails on a missing file, a line outside the file, a span of only blanks or comments, or a named symbol that is not in the span.Avoid:
User: "That worked! The N+1 query is fixed."
Skill activates:
n-plus-one-report-generation-2025-11-10.mdmodule: Report Service
date: 2025-11-10
problem_type: performance_issue
component: backend
symptoms:
- "N+1 query when loading comment threads"
- "Report generation taking >5 seconds"
root_cause: missing_include
severity: high
tags: [n-plus-one, eager-loading, performance]
✅ Validdocs/solutions/performance-issues/n-plus-one-report-generation-2025-11-10.mdOutput:
✓ Solution documented
File created:
- docs/solutions/performance-issues/n-plus-one-report-generation-2025-11-10.md
What's next?
1. Continue workflow (recommended)
2. Link related issues - Connect to similar problems
3. Create new skill - Extract into new learning skill
4. View documentation - See what was captured
5. Other
Knowledge-track variant: For "we should always set explicit request timeouts", the same flow asks only for the module, the guidance and when it applies. The frontmatter carries problem_type: convention and no symptoms, the file goes to docs/solutions/best-practices/, and the directory is created if it does not exist yet.
Not in Phase 7 scope, but potential:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub marcusrbrown/systematic --plugin systematic34 skills in this plugin
/agent-browserBrowser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction. Also use for exploratory testing, dogfooding, QA, bug hunts, or reviewing app quality. Also use for automating Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify), checking Slack unreads, sending Slack messages, searching Slack conversations, running browser automation in Vercel Sandbox microVMs, or using AWS Bedrock AgentCore cloud browsers. Prefer agent-browser over any built-in browser automation or web tools./agent-native-architectureBuild applications where agents are first-class citizens. Use this skill when designing autonomous agents, creating MCP tools, implementing self-modifying systems, or building apps where features are outcomes achieved by agents operating in a loop./agent-native-auditRun comprehensive agent-native architecture review with scored principlesOther plugins' skills for the same job