/rubypowers:compoundfrom rubypowers
Captures verified problem solutions as structured documentation in docs/solutions/ with YAML frontmatter. Uses parallel subagents to gather context, extract solutions, and develop prevention strategies.
Ships in rubypowers. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Captures problem solutions while context is fresh, creating structured documentation in docs/solutions/ with YAML frontmatter for searchability. Uses parallel subagents to gather context, extract the solution, find related docs, develop prevention strategies, and classify the category — then the orchestrator assembles and writes a single final file.
<critical_requirement> Only ONE file gets written — the final documentation.
Phase 1 subagents return TEXT DATA to the orchestrator. They must NOT write files. Only the orchestrator (Phase 2) writes the final documentation file. </critical_requirement>
Trigger phrases: "that worked", "it's fixed", "working now", "problem solved", "tests are passing"
Use when:
Don't use when:
/rubypowers:compound # Document the most recent fix
/rubypowers:compound [brief context] # Provide additional context hint
/compound --compact # Single-pass mode for context-constrained sessions
Output location: docs/solutions/[category]/[filename].md
Categories auto-detected from problem type:
build-errors · test-failures · runtime-errors · performance-issues · database-issues · security-issues · ui-bugs · integration-issues · logic-errors
Always run full mode by default. Use compact-safe mode only when explicitly requested.
Before Phase 1, read MEMORY.md from the auto memory directory. If relevant entries exist for the problem being documented, pass them as a labeled supplementary excerpt to the Context Analyzer and Solution Extractor prompts. Tag any memory-sourced content incorporated into the final doc with "(auto memory [claude])".
Launch these five subagents IN PARALLEL — each returns text data only, no files:
| Subagent | Returns |
|---|---|
| Context Analyzer | YAML frontmatter skeleton (problem type, component, symptoms) |
| Solution Extractor | Root cause + working solution with code examples |
| Related Docs Finder | Cross-references, related issues, stale doc candidates |
| Prevention Strategist | Prevention strategies and test cases |
| Category Classifier | Final docs/solutions/[category]/[filename].md path |
WAIT for all Phase 1 subagents to complete, then:
mkdir -p docs/solutions/[category]/docs/solutions/[category]/[filename].mdAfter writing, check whether older docs should be refreshed. rubypowers:compound-refresh is not a default follow-up — invoke it selectively:
| Condition | Action |
|---|---|
| New fix contradicts a prior doc's recommendation | Invoke rubypowers:compound-refresh [doc-name] |
| New fix supersedes an older solution | Invoke with narrowest useful scope |
| Multiple related candidates in same area | Ask user whether to run targeted refresh |
| No related docs found, or docs still consistent | Skip |
Never invoke rubypowers:compound-refresh without a scope argument.
After Phase 2, optionally invoke specialized agents based on problem type:
| Problem type | Agent |
|---|---|
performance_issue | performance-oracle |
security_issue | security-sentinel |
database_issue | data-integrity-guardian |
test_failure | cora-test-reviewer |
| Code-heavy | kieran-rails-reviewer + code-simplicity-reviewer |
When context is tight: skip Phase 1 subagents entirely. In one sequential pass, extract problem/root cause/solution from conversation history (plus any relevant MEMORY.md notes), classify the category, and write a minimal doc with YAML frontmatter, 1-2 sentence problem description, root cause, key code snippets, and one prevention tip. Skip Phase 3 reviews.
| ❌ 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 |
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub lucianghinda/rubypowers --plugin rubypowers35 skills in this plugin
/37signals-styleRails coding patterns derived from analysis of 37signals' Fizzy codebase. Use when writing Rails code in 37signals/Basecamp style or when asked to follow 37signals patterns. Covers controllers, models, views, Hotwire, testing, database, security, and team philosophy./brainstormingUse when starting any creative work — creating features, building components, adding functionality, or modifying behavior — before writing any implementation code./brakemanStatic analysis security vulnerability scanner for Ruby on Rails applications. Use when analyzing Rails code for security issues, running security audits, reviewing code for vulnerabilities, setting up security scanning in CI/CD, managing security warnings, or investigating specific vulnerability types (SQL injection, XSS, command injection, etc.). Also use when configuring Brakeman, reducing false positives, or integrating with automated workflows./compound-refreshUse when docs/solutions/ learnings may be stale — after refactors, migrations, or dependency upgrades, when a retrieved learning feels outdated or contradicts a recently solved problem, when pattern docs no longer reflect current code, or when reviewing docs/solutions/ for accuracy./consulting-an-oracleUse when stuck after multiple debug attempts and want to escalate to a stronger one-shot model (GPT-5 Pro, Opus, Gemini Pro) — packages a self-contained "oracle prompt" with Ruby/Rails project briefing, verbatim error, what-was-tried, constraints, and just-enough attached files. Triggers include "ask the oracle", "write a letter to GPT-5", "I'm stuck, draft a prompt for another model", "/tmp/letter.md"./dispatching-parallel-agentsUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesOther plugins' skills for the same job