workflows:compound
Document a recently solved research problem to compound methodological knowledge
Skill by James-Traina
Chalk Labs
Need help deploying workflows:compound?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/james-traina-workflows-compound
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documents, research
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
workflows:compound- Description
- Document a recently solved research problem to compound methodological knowledge
- License
- MIT
- Allowed tools
- Read,, Write,, Edit,, Glob
- Instructions
- 321 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- name: only lowercase letters, digits and single hyphens allowed
- name: "workflows:compound" does not match folder "workflows-compound"
Files (2)
- SKILL.md
- solution-schema.md · references/
SKILL.md (first lines)
# /compound
**Pipeline mode:** This command operates fully autonomously. All decisions are made automatically.
Coordinate multiple subagents working in parallel to document a recently solved research problem. Creates structured documentation in `docs/solutions/` with YAML frontmatter for searchability and future reference.
## Purpose
Captures problem solutions while context is fresh. Uses parallel subagents for maximum efficiency — Phase 1 gathers information, Phase 2 assembles the final document.
**Why "compound"?** Each documented solution compounds your methodological knowledge. The first time you solve a convergence problem takes hours of research. Document it, and the next occurrence takes minutes. Knowledge compounds.
## Usage
```bash
/workflows:compound # Document the most recent fix
/workflows:compound convergence failure in BLP inner loop # Provide context
/workflows:compound fixed cluster-robust SEs # Brief description
```
## Execution Strategy: Two-Phase Orchestration
<critical_requirement>
**Only ONE file gets written — the final documentation.**
Phase 1 subagents return TEXT DATA to the orchestrator. They must NOT use Write, Edit, or create any files. Only the orchestrator (Phase 2) writes the final documentation file.
</critical_requirement>
### Phase 1: Parallel Research
<parallel_tasks>
Launch these subagents IN PARALLEL. Each returns text data to the orchestrator.
#### 1. **Context Analyzer**
- Extracts conversation history for the problem-solving session
- Identifies problem type, estimation method, symptoms, error messages
- Auto-categorizes the problem (see Category Classification below)
- Returns: YAML frontmatter skeleton with problem metadata
#### 2. **Solution Extractor**
- Analyzes all investigation steps taken during the session
- Identifies root cause (e.g., "ill-conditioned Hessian due to poor starting values")
- Extracts working solution with code examples
- Documents what didn't work and why (important for future reference)
- Returns: Solution content block with code snippets
#### 3. **Related Docs Finder**
- Searches `docs/solutions/` for related documentation
- Identifies cross-references and links to similar problems
- Checks if this problem is a variant of a previously documented issue
- Returns: Links, relationships, and duplicate-avoidance notes
#### 4. **Prevention Strategist**
- Develops prevention strategies specific to the problem type
- Creates diagnostic checklist ("check these things first next time")
- Suggests robustness checks or tests that would catch this early
- Returns: Prevention/diagnostic content
#### 5. **Category Classifier**
- Auto-detects the appropriate `docs/solutions/` category from problem description and session content
- Validates category against the schema below
- Generates filename slug from problem description
- Returns: Final path and filename
</parallel_tasks>
### Category Classification
Problems are auto-classified into one or more categories using keyword matching on the problem description and session content:
| Category | Directory | Keywords / Signals |
|----------|-----------|-------------------|
| **Estimation Issues** | `estimation-issues/` | convergence, bias, efficiency, standard errors, MLE, GMM, likelihood, optimizer, starting values, boundary, gradient, Hessian |
| **Data Issues** | `data-issues/` | missing data, measurement error, sample selection, merge, duplicates, outliers, panel structure, encoding, cleaning |
| **Numerical Issues** | `numerical-issues/` | floating-point, overflow, underflow, condition number, tolerance, ill-conditioning, precision, NaN, Inf, singular matrix |
| **Methodology Issues** | `methodology-issues/` | identification, model specification, assumption violations, endogeneity, exclusion restriction, functional form, overidentification |
| **Derivation Issues** | `derivation-issues/` | proof, theorem, lemma, asymptotic, regularity conditions, existence, uniqueness, fixed point, convergence rate |
| **Replication Issues** | `replication-issues/` | reproducibility, package versions, seeds, environment, Docker, conda, renv, pipeline, Makefile, DVC |
**Multi-category problems:** A problem can belong to multiple categories (e.g., "BLP convergence failure" is both `estimation-issues/` and `numerical-issues/`). Use the primary category for the file location and cross-reference the secondary category in the frontmatter `tags` field.
**Ambiguous problems:** If keyword matching is inconclusive, default to `methodology-issues/` (the broadest category).
### Phase 2: Assembly & Write
<sequential_tasks>
**WAIT for all Phase 1 subagents to complete before proceeding.**
The orchestrating agent performs these steps:
1. **Collect** all text results from Phase 1 subagents
2. **Assemble** complete markdown file using the template below
3. **Validate** YAML frontmatter fields are complete
4. **Create** directory if needed: `mkdir -p docs/solutions/[category]/`
5. **Write** the SINGLE final file: `docs/solutions/[category]/[filename].md`
#### Documentation Template
```markdown
---
title: "[Problem title — concise, searchable]"
date: YYYY-MM-DD
category: [primary category]
tags: [estimation, convergence, BLP, ...]
estimation_method: [if applicable: MLE, GMM, IV, DiD, ...]
language: [Python, R, Julia, Stata]
severity: [critical, moderate, minor]
time_to_resolve: [approximate time spent]
---
# [Problem Title]
## Problem
**Symptom:** [What was observed — error messages, wrong results, failure to converge]
**Context:** [What estimation/analysis was being performed, what data, what method]From James-Traina/compound-science, MIT.
Signals
- Stars
- 14
- Forks
- 2
- Open issues
- 1
- Last commit (this folder)
- Mar 29, 2026 (7 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/James-Traina/compound-science
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get workflows:compound running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
workflows:compound skill. Agent Mart. https://agentmart.dev/skills/james-traina-workflows-compound (last updated 2026-10-24)