Skip to content
Projects
Playbook and templates

Claude Execution Playbook

A decision framework and prompt-template kit for running coding tasks with Claude and Claude Code. Unofficial; not affiliated with Anthropic.

Status
Released as v1.1.1, a maintenance release of v1.1.0; v1.1.0 and v1.0.0 remain published. A generalized rewrite of a private execution framework. Reasoned defaults, not benchmarks; the examples are illustrative and were not run; the checker's static rules catch the weakenings they were written for, not every unsafe prompt; the skill is checked for format, and its output quality has not been benchmarked.
Authorship
"Drafted with AI assistance (Claude Code)," in the repository's own words.
Stack
Markdown · Python 3.10+ (build and check scripts) · Claude Code skill format
Demonstrates
Decision guides with stated defaults · Authority written in the prompt, enforcement mapped to Claude Code settings · Copy-ready templates and worked examples · A consistency checker with regression fixtures · Reproducible release assets
Verified
32 unit, packaging and regression tests pass, the repository's consistency checks pass on 39 Markdown files, and the published v1.1.1 assets match their checksums and a rebuild from the tagged commit. Observed at commit e63a9e2e2b7ed6dc674bfb0df234fac1ff628e66.
Commands run
python3 -m unittest discover -s tests
python3 scripts/check.py
python3 scripts/build.py --check
python3 scripts/build.py --package
Repository
github.com/Donovanfitch-dev/claude-execution-playbook
Release
Release v1.1.1 (single-file edition, skill and checksums)

Engineering problem

Every run of a coding agent involves six decisions (model, effort, speed, topology, strategy and packaging) and four boundaries (scope, authority, proof and exit). When any of them is left implicit, the result is a change nobody scoped, a session with more authority than intended, a run that stops at the first error or works around a boundary, or a report of done with nothing behind it.

Representative solution

The playbook gives each decision and boundary a default, a reason to move off the default, and a place on a one-screen run card that travels with the prompt. It ships as modular chapters, ten templates, six worked examples on fictional repositories, a Claude Code skill that drafts a run card and prompt without starting the task, and a single-file edition generated from the chapters.

Version 1.1.0 adds execution behaviour: how much one brief carries (a master brief by default, with a surgical gate for one risky action), how freely a session may restructure code (maintenance or architecture ownership), six classes of action from looking to never, when a session keeps going through ordinary obstacles and when it stops at a deliberate blocker, and sessions and handoffs. It also maps those classes to Claude Code's own controls: permission modes, permission rules, hooks, the sandbox and managed settings.

Version 1.1.1 is a maintenance release. The checker now also checks the generated single-file edition, the skill's templates and the built release assets themselves, ties each reviewed exception to one sentence and one rule, and catches more rewordings and run-card drift. The single-file edition carries its attribution and license URL, the model data was corrected against the vendor pages, and the enforcement section now covers plugin mods. No template field, tier or piece of guidance changes meaning.

It is unofficial, and not affiliated with, endorsed by, or certified by Anthropic. Its recommendations are the author's, and it was drafted with AI assistance (Claude Code). Unlike the four reference implementations, it is not a clean-room build: it is a generalized rewrite of the portable ideas in a private execution framework, and it carries none of that framework's private names, systems, thresholds or data. Its companion, the Codex Execution Playbook, applies the same method to OpenAI Codex.

Architecture

The modular documents are the only source. A build script generates the single-file edition and the skill's reference files, fails in check mode when a generated file is stale, and packages release assets from the committed tree. A separate checker enforces the repository's consistency rules and treats every fenced block as a prompt. Versioned model names and prices live in one file with a verification date and source links, and a check fails if they appear anywhere else.

  • Sources

    The only hand-edited documents

    Framework

    • chapters 00 to 08
    • quick reference
    • model-data.md

    Kit

    • templates
    • worked examples
    • skill/execution-brief
  • Generated

    Built from the sources; a stale file fails the build check

    • single-file edition
    • skill reference files
    • release assets and SHA256SUMS.txt
  • Tooling

    • scripts/build.py
    • scripts/check.py
    • unit and regression tests
    • CI workflow
The source documents, what is generated from them, and the tooling that keeps the two in step.

Core components

  • Chapters 00 to 08.Overview, model selection, topology, strategy and packaging, prompt construction, authority and safety, workspace isolation and sessions, verification, fallback and escalation, completion and release.
  • docs/model-data.md.A dated snapshot of models, effort levels, limits, prices and Claude Code permission facts, with a link to each source page. Treated as a snapshot to re-check, not a fact to depend on.
  • templates/ and examples/.Ten copy-ready templates, including an execution prompt with a fixed authority statement and a gated-change template; six worked examples, from a routine task to a security-sensitive change with a surgical gate and a long-running task continued from a handoff note.
  • skill/execution-brief.A Claude Code skill that drafts the run card and prompt. It drafts only; it does not start the task or change the session's model.
  • scripts/build.py and scripts/check.py.Generation, staleness checks and release packaging with a recorded source commit; and the consistency rules, including freshness, with regression fixtures that pin what they must catch and accept.

Engineering decisions

  • Model and effort chosen on purpose.The model-selection guide starts from the environment's default model and the model's documented default effort, and says what justifies moving off each, so a setting is recorded rather than inherited.
  • Authority is written; enforcement is configured.The prompt states the whole authority of the task. Claude Code's settings enforce the part they are configured to enforce, and a call that the settings permit is not thereby an action the task owner authorized.
  • Keep going, inside the brief.A run works through ordinary obstacles and leaves deliberate blockers alone. Persistence applies only to the work the brief authorizes and never overrides its boundaries, ownership line or pause triggers.
  • Volatile facts in one file.Model names, IDs, limits and prices change often, so chapters and templates use tier names and only the model-data file carries versions, enforced by a check.
  • Generated, never hand-edited, distributions.The single-file edition and the skill's references are built from the chapters, so they cannot drift without a failing check.
  • Drafting, not acting.The skill produces a brief for a person to review. It has no authority to start work.

Tradeoffs

  • Reasoned defaults, not measured ones.Nothing in the playbook was benchmarked against alternatives, so its settings are starting points, not validated results for any workload.
  • Checks of wording and structure.The checker catches the weakenings it was written for and close variants. It cannot read meaning, so a determined rewording can pass it, and the repository says so.
  • Tool specifics age.Commands, limits and permission defaults are cited to vendor documentation as of the verification date, and need re-checking.

Verified functionality

Checked on every push by the repository's CI, and re-run for this page:

  • Internal links and heading anchors resolve
  • Every template has a copy block; every example is complete and each prompt in it follows a template it names
  • Every fenced block except mermaid diagrams is checked as a prompt: authority blocks are complete and keep their fixed sentences, and the release-permission line is a closed field that matches the example's run card
  • Prohibited actions appear in prompts only in restricted form, and the prose never permits them
  • No credential formats, plain or base64-encoded, and no private paths, in any text file
  • Versioned model names and prices appear only in the model-data file and the examples
  • The generated files match their sources and keep every prompt and safety clause; release assets build from the committed tree, and CI checks the built assets the same way
  • Regression fixtures: 41 deliberate weakenings that must be detected and 9 legitimate changes that must pass, and a release build whose packaging drops a safety clause

Demonstration

The playbook is documentation, so its demonstration is its own verification: the consistency checker that runs in its CI, and a rebuild of the release that is compared byte for byte with what was published.

The checker is run with --today set to the observation date, because its freshness rule depends on the date: it warns once the model data is more than 90 days older than that.

Consistency checks

Command: $ python3 scripts/check.py --today 2026-12-01

all checks passed (39 Markdown files)
Exit code 0. Recorded output, unedited.Links and anchors, template copy blocks, complete examples, every fenced block except diagrams checked as a prompt, credential and private-path screening, model names and prices confined to the model-data file, generated files in step with their sources, and the model data's verification date.

Rebuilding v1.1.1 and checking it against the published checksums

Command: $ python3 scripts/build.py --package > /dev/null && cd dist/release && curl -sSL https://github.com/Donovanfitch-dev/claude-execution-playbook/releases/download/v1.1.1/SHA256SUMS.txt | shasum -a 256 -c -

claude-execution-playbook-v1.1.1.md: OK
claude-execution-playbook-v1.1.1.zip: OK
claude-execution-playbook-skill-v1.1.1.zip: OK
Exit code 0. Recorded output, unedited.Every file rebuilt from the tagged commit matches the SHA256SUMS.txt attached to the published release.

Reproduce it

git clone https://github.com/Donovanfitch-dev/claude-execution-playbook.git && cd claude-execution-playbook
git checkout v1.1.1
python3 scripts/check.py
python3 scripts/build.py --package

Failure modes and limitations

  • No benchmarks.The suggested settings are reasoned defaults.
  • Illustrative examples.The example repositories are fictional, so their prompts have not been run against real code.
  • Static checks, not semantic safety.Passing the checker means the templates and examples keep their structure and fixed sentences. It does not prove that a prompt is safe.
  • Skill quality not benchmarked.For v1.0.0 the skill was run end to end five times during release preparation, in a fictional project; all five runs completed and each brief matched the templates. For v1.1.0 and v1.1.1 the skill is checked for format only. No broader evaluation of the briefs' quality was done.
  • External links and model data are checked by hand.They are verified at release time, not on every push.

Testing and validation

On 2026-12-01, against commit e63a9e2, which the v1.1.1 tag points to: 32 tests passed (unit, packaging and the regression fixtures), the consistency checker passed on 39 Markdown files, and the build's stale-file check exited cleanly. The three published release assets matched SHA256SUMS.txt, and rebuilding them from the tagged commit produced byte-identical files. The repository's GitHub Actions workflow, which also runs Markdown lint, verifies the checksums and checks the built assets, concluded success on the same commit.


Source and documentation