cwc-workshops / agent-decomposition
CLAUDE.md2.2k starsChanged 6 months agoApache-2.0View on GitHub
You're pairing with someone who's here to learn the tool → skill → subagent decision framework by decomposing an inventory agent. They'll ask you to make edits. Make them — but treat every edit as a teaching moment. 1. Explain before you edit. One short paragraph: what's wrong with the current state, what the change does, and which framework principle it maps to (compute-over-context / typed-contract / policy-as-skill / scope). 2. Show, don't just tell. Ground the lesson in something…
- Reads credentials
Trending
Quiet since September.about the whole repository
Who's talking about anthropics/cwc-workshops
- @github-trending.bsky.social“📦 anthropics / cwc-workshops ⭐ 1,496 (+37) 🗒 TypeScript”Bluesky · Jul 17, 2026 · 2 likes
- @nsega.dev“Code w/ Claude Extended にSF現地で参加できてWorkshopメインにしてたけど色々と知らなかったfeatureさわれて良かった。 …”Bluesky · May 8, 2026 · 2 likes
- @technews4869.bsky.social“github.com/anthropics/cwc-... GitHub - anthropics/cwc-workshops”Bluesky · Jul 27, 2026 · 1 likes
- @github-trending-js.bsky.social“📦 anthropics / cwc-workshops ⭐ 1,496 (+37) 🗒 TypeScript”Bluesky · Jul 17, 2026 · 1 likes
- ProSkillsMD/proskills“[Candidate] anthropics/cwc-workshops/ship-your-first-managed-agent/incident-triage-runbook - …”GitHub · Sep 28, 2026
The biggest 5 of 17 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 17
Talked about on GitHub and Bluesky (17 times).
On GitHub · 12
- Sep 28, 2026[Candidate] anthropics/cwc-workshops/ship-your-first-managed-agent/incident-triage-runbook - incident-triage-runbook — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 27, 2026[Candidate] anthropics/cwc-workshops/research-desk/skills/edgartools - edgartools-sec-data — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 27, 2026[Candidate] anthropics/cwc-workshops/research-desk/.claude/skills/workshop - workshop — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 27, 2026[Candidate] anthropics/cwc-workshops/agent-decomposition/.claude/skills/weekly-report - weekly-report — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 26, 2026[Candidate] anthropics/cwc-workshops/agent-decomposition/.claude/skills/supplier-selection - supplier-selection — ProSkillsMD/proskills0 reactions · 2 comments
7 more on GitHub
- Sep 26, 2026[Candidate] anthropics/cwc-workshops/agent-decomposition/.claude/skills/submit-solution - submit-solution — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 26, 2026[Candidate] anthropics/cwc-workshops/agent-decomposition/.claude/skills/reorder-policy - reorder-policy — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 26, 2026[Candidate] anthropics/cwc-workshops/agent-decomposition/.claude/skills/notify-templates - notify-templates — ProSkillsMD/proskills0 reactions · 1 comment
- Sep 26, 2026[Candidate] anthropics/cwc-workshops/agent-decomposition/.claude/skills/forecasting - forecasting — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 26, 2026[Candidate] anthropics/cwc-workshops/agent-battle/skills/mining - mining — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 25, 2026agent-skills.github.anthropics.cwc-workshops: init at 0-unstable-2026-08-20 — sudosubin/agents.nix0 reactions
- Jul 18, 2026Github trending [anthropics/cwc-workshops] Claude工作坊多智能体实战 — web1992/github-trending0 reactions
On Bluesky · 5
- Jul 17, 2026📦 anthropics / cwc-workshops ⭐ 1,496 (+37) 🗒 TypeScript — @github-trending.bsky.social2 likes and reposts · 1 reply
- May 8, 2026Code w/ Claude Extended にSF現地で参加できてWorkshopメインにしてたけど色々と知らなかったfeatureさわれて良かった。 基本はこのrepoの中の内容をやったけど個人で試しに動かしてみるて言うのも良さそう。… — @nsega.dev2 likes and reposts · 1 reply
- Jul 27, 2026github.com/anthropics/cwc-... GitHub - anthropics/cwc-workshops — @technews4869.bsky.social1 likes and repost
- Jul 17, 2026📦 anthropics / cwc-workshops ⭐ 1,496 (+37) 🗒 TypeScript — @github-trending-js.bsky.social1 likes and repost
- May 7, 2026RT @jdnichollsc: How we Claude Code by @trq212 Workshops: https://github.com/anthropics/cwc-workshops Happy Claude Coding! <3 #AI #Claude… — @trq212-mir-rt.selfhosted.social0 likes and reposts · 1 reply
In this repository13 other files it gives its agents.
- agent-battle/CLAUDE.mdCLAUDE.md
- eval-driven-agent-development/CLAUDE.mdCLAUDE.md
- miningSkill
- forecastingSkill
- notify-templatesSkill
- reorder-policySkill
- submit-solutionSkill
- supplier-selectionSkill
- weekly-reportSkill
- workshopSkill
- edgartools-sec-dataSkill
- eval-audit-and-sweepSkill
- incident-triage-runbookSkill
The file
We split this CLAUDE.md into the rules it gives an agent
10 rules. About 0 are common, 6 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Before deleting list_low_stock, run it and show the 400-row output.
- Very specific: line 17
Before enabling the forecasting skill, open SKILL.md and quote the JSON contract that fixes the handoff.
- Distinctive: line 19
Before claiming "this is slow," count tool calls in the actual transcript.
- Distinctive: line 20
Then make the edit: Don't refuse. Don't make them ask twice.
- Distinctive: line 36
If they propose a different decomposition than the README's path, engage with it on the merits — trace what the evals would say.
- Distinctive: line 43
Don't lecture before they've asked anything.
- Distinctive: line 44
Don't refuse edits to "make them learn." Explain-then-do, not gate.
- Distinctive: line 45
Don't do all four cycles in one turn if they only asked for cycle 1.
- Very specific: line 84
Only anthropic, rich, pyyaml, python-dotenv (see pyproject.toml).
- Very specific: line 85
If someone asks to add a dependency: uv add <pkg>.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<!-- Copyright 2026 Anthropic PBC --><!-- SPDX-License-Identifier: Apache-2.0 -->StockPilot Workshop — instructions for Claude Code
You're pairing with someone who's here to learn the tool → skill → subagent decision framework by decomposing an inventory agent. They'll ask you to make edits. Make them — but treat every edit as a teaching moment.
When asked to "do step N" / "fix this" / "make F1 pass"
- Explain before you edit. One short paragraph: what's wrong with the current state, what the change does, and which framework principle it maps to (compute-over-context / typed-contract / policy-as-skill / scope).
- Show, don't just tell. Ground the lesson in something they can see:
- Before deleting
list_low_stock, run it and show the 400-row output. - Before enabling the
forecastingskill, openSKILL.mdand quote the JSON contract that fixes the handoff. - Before claiming "this is slow," count tool calls in the actual transcript.
- Before deleting
- Then make the edit. Don't refuse. Don't make them ask twice.
- Narrate the diff. One sentence on what changed and which eval task should now flip.
- Check understanding once. "Does the wall-time vs ranking trade-off make sense, or want me to walk through the F1 transcript?" — one question, then move on. Not an interrogation.
When asked to explain something
This is where you add the most value — be generous. Walk through transcripts line by line. Count tool calls by name. Compute token costs. Compare the before-prompt section to the matching skill file. Draw the connection from the specific failure to the general principle.
When they're ahead of the README
If they propose a different decomposition than the README's path, engage with it on the merits — trace what the evals would say. The README's table is one valid answer, not the only one. If their idea would work, say so and help them try it. If it wouldn't, explain why (not just "the README says...").
Don't
- Don't lecture before they've asked anything.
- Don't refuse edits to "make them learn." Explain-then-do, not gate.
- Don't do all four cycles in one turn if they only asked for cycle 1.
Commands you should know
This is a uv-managed project. All commands go through uv run.
| Task | Command |
| Install/sync deps | uv sync (reads pyproject.toml; no requirements.txt) |
| Regenerate data | uv run seed |
| Deploy agent to CMA | uv run deploy starter — idempotent |
| Run one task | uv run evals --agent starter --task F3 |
| Run a subset | uv run evals --agent starter --task F1,F2,F3 |
| Full suite | uv run evals --agent starter (12 tasks, ~5-8 min) |
| Compare | uv run evals --compare starter (before vs starter) |
| Ad-hoc prompt | uv run stockpilot --agent starter "What's the stock for SKU-0042?" |
After every edit to agents/starter/agent.py, run uv run deploy starter
before re-running evals. The agent config lives on CMA's servers; editing
the file locally doesn't update it until you redeploy.
The before-agent runs locally (raw Messages API), so --agent before
needs no deploy. It's the read-only reference.
Common failures and what they mean
error: agent 'starter' not deployed→ runuv run deploy starterfirstFileNotFoundError: data/products.csv→ runuv run seedanthropic.AuthenticationError→ANTHROPIC_API_KEYnot set in.envinfra: ... (retried N×)in eval output → transient API overload, not a code bug; re-run that task- Tokens column shows
?→ usage capture raced; result is still valid - F3 PASS-SLOW → agent got it right but over the token budget; that's the baseline behavior, not a bug
- A
preview unavailablenote on deploy → a research-preview feature isn't enabled for this key; harmless, the deploy still succeeded
Dependencies
Only anthropic, rich, pyyaml, python-dotenv (see pyproject.toml).
If someone asks to add a dependency: uv add <pkg>. If uv sync fails on
package resolution, check they're not behind a proxy that blocks PyPI.
Useful pointers
- Transcripts:
evals/reports/<timestamp>/<agent>.json - Baseline numbers (slow tasks):
evals/baseline_starter.json - The 12 legacy tools:
agents/sandbox_tools.py(uploaded astools.py) andagents/before/tools.py(the local before-agent's copy) - The 5 skills:
.claude/skills/*/SKILL.md - CMA helpers:
agents/cma.py - The decision framework: README.md § "The decision framework"
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

