Trust the process
This is a simple set of skills optimized for general-purpose software development across tech stacks.
Our preference is to rely on the built-in commands as much as possible, which is why we have such a small set of skills.
Several skills draw on articles, books, and talks created by thoughtbot:
- Testing from the Outside-In
- Rails Test Types and the Testing Pyramid
- Break Apart Your Features into Full-Stack Slices
- Job Stories
Add thoughtbot's marketplace:
/plugin marketplace add thoughtbot/skills
Install the plugin:
/plugin install the-process@skills
npx skills@latest add thoughtbot/the-process
These skills can be run independently, but are intended to be run in a series of new sessions when building out a feature from start to finish.
Tip
Not sure how to ask for something, like "why can't some users log in?", or
which Claude feature fits a job? Start with /ask-claude.
- Optionally, use
/domain-modelon new projects or features to capture business logic.- Use
/understandand/or/eli5to reinforce your understanding of the business logic. - Use
/traceto see what an existing flow actually does before you change it.
- Use
- First, use
/sliceto come up with the simplest possible thing to ship that adds value.- Use
/understandand/or/eli5to reinforce your understanding of the generated SPEC. - Use
/rubber-duckto slow down and scrutinize the generated SPEC.
- Use
- Then, run
/preparatory-refactorto see if there's an opportunity to refactor ahead of time to make the feature easier to implement. - Then, run
/implement-with-tddagainst the SPEC created from/sliceto drive out the simplest implementation. - Then, run
/multi-lens-reviewto find defects in that implementation, and to refactor it.
- Then, run
/verifyto confirm the change against the running app, not just the tests. This is built into Claude Code. - Then, run
/diff-explainerto create an artifact that will help you understand the changeset.- After reviewing the artifact, use
/rubber-duckto slow down and scrutinize generated code, or/understandto reinforce your understanding. If you need more help, start with/eli5.
- After reviewing the artifact, use
- Finally, run
/prto open a PR with a description you write yourself. The feature is your responsibility, and writing about it helps it stick.
Steps 2 through 5 are mechanical once the SPEC exists, so /ship runs
them as a workflow, then opens a draft PR with /pr --auto:
/ship docs/specs/the-slug.md
Each step gets its own context, and each one commits with /commit before
the next starts.
The draft PR stands in for step 6. Its description and line notes cover the why and the risks. Anything still owed comes back to you in the terminal, not as a PR comment. You rewrite the description before marking it ready. Screenshots from verification stay on the machine that ran it; nothing uploads them yet.
Every skill has eval cases in evals/<skill>/. Run one skill's cases
from the repo root:
claude plugin eval . --case 'slice-*' --scaffold --max-cost-usd 10 --allow-tools Write Bash
- Case names start with the skill's name, which is what
--casematches. The/ask-claudecases are the exception. --scaffoldruns each case'sscaffold.sh, which builds the sample app it runs against.- Most skills need
--allow-tools Write Bash./shipalso needsEdit Workflow./ask-claudeneeds"WebFetch(domain:code.claude.com)" "WebFetch(domain:platform.claude.com)"instead. - Each skill's baseline scores are in its "Add evals for" PR, listed in discussion #71.
- Every run is billed to your account, from about $0.10 for a question that
shouldn't trigger a skill to about $2.40 for a
/shiprun. - The CLI needs its own login, even inside the desktop app:
claude auth login. - Results go to
evals/results/, which is gitignored.bin/eval-summary evals/results/<label>.jsonshrinks one toevals/baselines/<label>.json, which is committed. bin/eval-compare <baseline> <new>lists the cases whose score dropped, and exits 1 if any dropped by more than 0.34.- Cases that scored 1.0 on the Opus 5.5 baseline are tagged
regression.--tag regressionruns only those. - Cases with a
scaffold.shneed--scaffold. The/prcases also need--allow-tools Bash Write Edit Agent.
/ask-claude references the Claude docs to figure out the best tool for
the job, whether that's a hook, a skill, or just a better prompt. It shows you
the prompt before running anything.
/commit turns your changes into atomic commits. Each message captures
the why, risks, tradeoffs and alternatives considered, so the history serves as
an audit log of what the LLM did.
Used by /ship for every commit, which gives /diff-explainer the context it
needs.
/diff-explainer is meant to help someone understand the why, risks,
tradeoffs and alternatives considered when viewing a diff generated by an LLM
through an artifact.
Because agentic coding sometimes means you're not actually authoring your code, you lose context into the decision-making process of each commit.
The reviewer may not know the problem either, so the page opens with a simple everyday analogy for it unless you ask it not to.
If you're working in an unfamiliar tech-stack, name the one you know and it'll explain the change in those terms:
/diff-explainer from the perspective of a WordPress developer
Otherwise it uses the background in your CLAUDE.md, if there is one, and
explains the change in the stack's own terms if not.
Finally, in order to be consistent across artifacts, the template ships its own small stylesheet, so every walkthrough looks the same.
/domain-model takes a business process described in plain language and
extracts the domain. Useful for new projects and features, but can be run at
any time.
/eli5 explains code or a concept as simply as possible. Opens with a
simple everyday analogy unless you ask it not to, then uses real values from
the codebase when possible to help create simple, concrete demonstrations.
Use /understand to help you reinforce what you've learned.
/implement-with-tdd drives out an implementation with TDD, working
from the outside in and starting with shameless green. This skill
is optimized to cap a feature at around 200 lines of code in an effort to keep
things small.
Intended to be run after /preparatory-refactor, but before
/multi-lens-review.
/multi-lens-review reviews a change with five parallel subagents: one
hunting defects (bugs, performance, security), one checking we adhered to the
SPEC, one on code quality and reducing smells, one identifying emerging
domains, and one asking what still depends on the behavior we replaced.
The defects subagent stands in for the built-in /code-review command,
and covers the ground /security-review does too. It's not named /review
because Claude Code ships a built-in /review.
/preparatory-refactor takes a SPEC or plan and identifies opportunities
for a preparatory refactor.
Intended to be run after /slice, but before /implement-with-tdd.
Note that /multi-lens-review contains an Agent responsible for identifying
emerging Domains.
/pr opens a PR, but leaves the description to you. It briefs you on
what changed, suggests a title in the repo's style, and then waits for you to
write the description. Once you do, it proofreads it lightly and opens the PR
after you sign off on the exact text.
/pr --auto is for when nobody's around. It opens a draft PR whose body says,
in plain English, what changed for the people using the product and why. No
file paths or commit SHAs. Risks, tradeoffs, and open questions go up as inline
comments on the lines they're about, each with a plain-English version in the
style of /eli5: an everyday analogy, and an ASCII drawing when the order of
events is the point. You rewrite the description before
marking it ready. Off GitHub, it replies with the title, body, and notes
instead.
It doesn't take or host screenshots. Pass image URLs you've already uploaded
with --screenshots, and it embeds them in the body:
/pr --auto --screenshots https://example.com/orders-before.png https://example.com/orders-after.png
/risk-score scores how risky a PR or branch is and replies with JSON,
so CI can act on it. A script does the scoring with fixed rules, so the same
diff always gets the same score. Claude only picks the diff and hands back what
the script printed, even when you tell it the change is tiny.
/risk-score # this branch vs. its base
/risk-score 123 # PR 123, via gh
/risk-score release # this branch vs. release
The rules and their points are listed in the skill. They recognize the
migrations, config, and dependency files of most stacks, not just Rails: a Knex
dropColumn scores the same as a Rails remove_column. To change how
something scores, change skills/risk-score/scripts/score.py in a PR of its own.
The script doesn't need Claude. In CI, pipe a diff straight in and gate on the level:
gh pr diff 123 | python3 skills/risk-score/scripts/score.py | jq -e '.level != "high"'
/rubber-duck is what the name implies. Use this when you want to slow
down and scrutinize generated code or a SPEC generated by /slice.
/ship runs steps 2 through 5 against a SPEC as a dynamic
workflow and opens a draft PR.
/slice turns a rough idea into a vertical slice with accompanying
job stories and acceptance criteria.
The idea is that the smaller the slice, the easier it'll be for an LLM or human to implement and ship.
The SPEC also carries a short list of the files recon read, stamped with the
commit it read them at. /preparatory-refactor and /implement-with-tdd start
from those paths instead of rediscovering them. They're pointers, not a plan —
neither skill treats the list as scope, and the repo wins where they disagree.
Pass --auto to run it without a human, like from a GitHub issue:
/slice --auto <the idea or issue body>
It skips the interview and makes the cuts itself. A fresh subagent reviews the
draft in place of you, and anything it had to guess goes under
## Assumptions. It replies with the SPEC instead of writing a file, so the
reply can be posted as a comment on the issue.
/trace runs a scenario, like "user creates an account", in your
development environment and records what actually happened, in order. Anything destructive, like killing a process or dropping a database, is
stubbed. The trace is saved to docs/traces/.
Useful during discovery and planning, and pairs well with /eli5 and /slice.
/understand helps you understand something by using the Socratic
method instead of explaining it to you.
Pairs well with /diff-explainer, /domain-model, and /slice since it'll
help reinforce your understanding.
Use /eli5 if you have no familiarity with the subject matter.
See the CONTRIBUTING document. Thank you, contributors!
The Process is Copyright (c) thoughtbot, inc. It is free software, and may be redistributed under the terms specified in the LICENSE file.
This repo is maintained and funded by thoughtbot, inc. The names and logos for thoughtbot are trademarks of thoughtbot, inc.
We love open source software! See our other projects. We are available for hire.