mcpbeat Sign in

Phx Compound Skill for Claude

Capture solved problems as searchable solution docs. Use after fixing bugs, when "that worked", or after successful phx-review or phx-investigate.

2k tokens
context cost
the whole folder, loaded on every use
2
files
instructions only
0
copies elsewhere
how many repositories repackaged it
514
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/oliver-kriska/claude-elixir-phoenix --skill phx-compound

What comes with it

3 409 bytes besides the instruction
references/compound-workflow.md

The instruction itself

13 sections, as written by the author

Compound — Capture Solutions as Knowledge

After fixing a problem, capture the solution as searchable

institutional documentation.

Usage

phx-compound Fixed N+1 query in user listing
phx-compound Resolved LiveView timeout in dashboard
phx-compound   # Auto-detects from recent session context

Philosophy

> Each unit of engineering work should make subsequent units

> easier — not harder.

Workflow

Step 1: Detect Context

  • If $ARGUMENTS provided, use as description
  • If no args, check scratchpad DEAD-END/DECISION entries,

git diff, .claude/plans/{slug}/progress.md for recent completions

  • If unclear, ask: "What problem did you just solve?"

Only document non-trivial problems that required investigation.

Step 2: Search Existing Solutions

Create .claude/solutions/ directory if it doesn't exist (run mkdir -p .claude/solutions).

Then search .claude/solutions/ for relevant keywords using Grep.

If found: Create new (different root cause), **Update

existing (same root cause, new symptom), or Skip**.

Step 3: Gather Details and Create Solution

Extract from session context: module, symptoms, investigation

steps, root cause, solution code, and prevention advice.

Validate frontmatter against ../compound-docs/references/schema.md,

then create file using ../compound-docs/references/resolution-template.md.

Write-blocked fallback: if writing to .claude/solutions/ is denied

by permissions, do NOT silently drop the solution. Output the full

solution doc inline (fenced markdown the user can paste), then suggest

phx-permissions to allow .claude/solutions/ writes for next time.

Step 4: Decision Menu

  • Continue (default)
  • Promote to Iron Law check — Add to iron-law-judge
  • Update skill reference — Add to relevant skill
  • Update CLAUDE.md — Add prevention rule

Auto-Trigger Phrases

When user says "that worked", "it's fixed", "problem solved",

"the fix was" — suggest phx-compound.

Supply-chain finding auto-feed (Phase 3)

When phx-deps-audit produces a BLOCK-severity finding that the

user investigates and confirms is a real malicious pattern (not a

false positive), suggest:

> Caught a high-severity finding in <pkg>@<version>. Run

> phx-compound to capture this for future audits?

If accepted, the resulting solution doc goes to

.claude/solutions/supply-chain/<pkg>-<cve_or_pattern>.md and

includes the exact rule-id + snippet + diff window that triggered

the finding. This compounds the audit corpus: future runs of

phx-deps-audit grep solutions/supply-chain/ for snippet

matches and pre-elevate severity on known-bad patterns.

Always prompt; never auto-write. Solution docs are durable and

shape future trust calls — the user reviews before committing.

Iron Laws

  • YAML frontmatter validates or STOP
  • Symptoms must be specific — not "it broke"
  • Root cause is WHY, not WHAT
  • One problem per file
  • NEVER document a fix before verifying it works — run mix compile && mix test first; unverified solutions poison the knowledge base

Integration with Workflow

phx-review → Complete → phx-compound  ← YOU ARE HERE
                              │
                 .claude/solutions/{category}/{fix}.md
                              │
              phx-investigate and phx-plan search here

References

  • references/compound-workflow.md — Detailed step-by-step
  • See also: compound-docs skill for schema and templates

Other skills for the same job

different authors, same section of the catalogue
Protocolsio Integration
by christophacham
×4

Integration with protocols.io API for managing scientific protocols. This skill should be used when working with protocols.io to search, create, update, or publish protocols; manage protocol steps and materials; handle discussions and comments; organize workspaces; upload and manage files; or integrate protocols.io functionality into workflows. Applicable for protocol discovery, collaborative protocol development, experiment tracking, lab protocol management, and scientific documentation.

16k tokens
Tailored Resume Generator
by frostant
×4

Analyzes job descriptions and generates tailored resumes that highlight relevant experience, skills, and achievements to maximize interview chances

3k tokens
Excalidraw Diagram Generator
by github
vendor ×3

Generate Excalidraw diagrams from natural language descriptions. Use when asked to "create a diagram", "make a flowchart", "visualize a process", "draw a system architecture", "create a mind map", or "generate an Excalidraw file". Supports flowcharts, relationship diagrams, mind maps, and system architecture diagrams. Outputs .excalidraw JSON files that can be opened directly in Excalidraw.

36k tokens scripts
Expo Dev Client
by openai
vendor ×3

Build and distribute Expo development clients locally or via TestFlight

961 tokens
Executing Plans
by ZhanlinCui
×3

Use when you have a written implementation plan to execute in a separate session with review checkpoints

542 tokens
Anndata
by christophacham
×3

Data structure for annotated matrices in single-cell analysis. Use when working with .h5ad files or integrating with the scverse ecosystem. This is the data format skill—for analysis workflows use scanpy; for probabilistic models use scvi-tools; for population-scale queries use cellxgene-census.

16k tokens
Benchling Integration
by christophacham
×3

Benchling R&D platform integration. Access registry (DNA, proteins), inventory, ELN entries, workflows via API, build Benchling Apps, query Data Warehouse, for lab data management automation.

14k tokens
Biopython
by christophacham
×3

Comprehensive molecular biology toolkit. Use for sequence manipulation, file parsing (FASTA/GenBank/PDB), phylogenetics, and programmatic NCBI/PubMed access (Bio.Entrez). Best for batch processing, custom bioinformatics pipelines, BLAST automation. For quick lookups use gget; for multi-service integration use bioservices.

24k tokens

How to use it

Copy the folder

Take oliver-kriska/phx-compound from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.