Skip to content

About

A collection of skills for software development and consulting with an emphasis on learning, communication, and client success. Trust the process.

Topics

Resources

Code of conduct

Contributing

Stars

39 stars

Watchers

1 watching

Forks

Latest commit

 

History

44 Commits

Folders and files

Repository files navigation

The Process

Trust the process

skills.sh

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.

Source Material

Several skills draw on articles, books, and talks created by thoughtbot:

Installation

Claude Code

Add thoughtbot's marketplace:

/plugin marketplace add thoughtbot/skills

Install the plugin:

/plugin install the-process@skills

Codex, and other agents

npx skills@latest add thoughtbot/the-process

How to use these skills

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.

Discovery and planning

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.

  1. Optionally, use /domain-model on new projects or features to capture business logic.
    • Use /understand and/or /eli5 to reinforce your understanding of the business logic.
    • Use /trace to see what an existing flow actually does before you change it.
  2. First, use /slice to come up with the simplest possible thing to ship that adds value.
    • Use /understand and/or /eli5 to reinforce your understanding of the generated SPEC.
    • Use /rubber-duck to slow down and scrutinize the generated SPEC.

Implementation

  1. Then, run /preparatory-refactor to see if there's an opportunity to refactor ahead of time to make the feature easier to implement.
  2. Then, run /implement-with-tdd against the SPEC created from /slice to drive out the simplest implementation.
  3. Then, run /multi-lens-review to find defects in that implementation, and to refactor it.

Verification and review

  1. Then, run /verify to confirm the change against the running app, not just the tests. This is built into Claude Code.
  2. Then, run /diff-explainer to create an artifact that will help you understand the changeset.
    • After reviewing the artifact, use /rubber-duck to slow down and scrutinize generated code, or /understand to reinforce your understanding. If you need more help, start with /eli5.
  3. Finally, run /pr to open a PR with a description you write yourself. The feature is your responsibility, and writing about it helps it stick.

Running them as a dynamic workflow

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.

Evals

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 --case matches. The /ask-claude cases are the exception.
  • --scaffold runs each case's scaffold.sh, which builds the sample app it runs against.
  • Most skills need --allow-tools Write Bash. /ship also needs Edit Workflow. /ask-claude needs "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 /ship run.
  • 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>.json shrinks one to evals/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 regression runs only those.
  • Cases with a scaffold.sh need --scaffold. The /pr cases also need --allow-tools Bash Write Edit Agent.

Reference

Ask Claude

/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

/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

/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

/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

/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

/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

/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

/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

/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

/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

/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

/ship runs steps 2 through 5 against a SPEC as a dynamic workflow and opens a draft PR.

Slice

/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

/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

/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.

Contributing

See the CONTRIBUTING document. Thank you, contributors!

License

The Process is Copyright (c) thoughtbot, inc. It is free software, and may be redistributed under the terms specified in the LICENSE file.

About thoughtbot

thoughtbot

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.

About

A collection of skills for software development and consulting with an emphasis on learning, communication, and client success. Trust the process.

Topics

Resources

Code of conduct

Contributing

Stars

39 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages