tommymorgan:work

An autonomous work command that carries out every scenario in a plan. TDD, or test-driven development, means writing tests as part of the implementation process.

In plain words
What is it for?
Use it to implement a plan through completion checks, including passing tests and a `.feature` file for each scenario.
Why use it?
It keeps work moving while checking tests, code review, exploratory testing, documentation, and the working state of each application layer.

Command

Part of the tommymorgan plugin — 10 skills, 14 commands, 13 agents, 4 hooks shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/tommymorgan/claude-plugins/work
Clone the repo
git clone --depth 1 https://github.com/tommymorgan/claude-plugins

Or install tommymorgan, the plugin that ships this one along with the rest of its 10 skills, 14 commands, 13 agents, 4 hooks.

Per session 24 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,567 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00024 $0.04567
Opus 5 $0.00012 $0.02284
Sonnet 5 $0.00005 $0.00913
Haiku 4.5 $0.00002 $0.00457

Measured 2d ago against content hash 447178f7513e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

tommymorgan:work scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

tommymorgan/planning/commands/work.md · 632 lines

How it starts

The opening of the file, as written. The whole thing — 632 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Execute Plan Autonomously with Quality Gates

Work through all scenarios in a plan using TDD with comprehensive quality gates. Continue autonomously until complete or blocked.

Core Principles

  • Bulldog Persistence: Don't give up or take shortcuts that create tech debt
  • Border Collie Intelligence: Apply excellent judgment and autonomy
  • Root-Cause Driven: Use /tommymorgan:root-cause instead of speculation
  • Quality Gates: Code review and exploratory testing before completion
  • Documentation First-Class: Update docs alongside code

Completion Criteria

The work command ONLY stops when ALL FOUR conditions are met:

  1. All scenarios DONE: Every scenario in plan marked <!-- DONE -->
  2. All tests passing: Full test suite passes in local development
  3. All layers functional: Every application layer validated and working
  4. All living specs written: Every scenario has corresponding .feature file in features/

Before ANY potential stopping point, check completion criteria:

function checkCompletionCriteria():
  scenarios_done = all scenarios marked DONE in plan
  tests_passing = test suite exits 0 in local dev
  layers_functional = all detected layers validated successfully
  living_specs_written = features/*.feature contains all scenarios (verify with grep)

  return scenarios_done AND tests_passing AND layers_functional AND living_specs_written

Verify living specs exist:

# Count scenarios in plan
plan_scenarios=$(grep -c "^Scenario:" plan.md)

# Count scenarios in feature files
feature_scenarios=$(grep -c "^  Scenario:" features/*.feature 2>/dev/null || echo 0)

# Must match (or feature_scenarios >= plan_scenarios)

If checkCompletionCriteria() returns false → continue execution If checkCompletionCriteria() returns true → report completion and stop

NEVER:

  • Ask "should I continue?"
  • Mention token usage as stopping reason
  • Ask "what should I do next?"
  • Say "this is separate work"
  • Rationalize incomplete work as "done"

Read the full file on GitHub · 632 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 632 lines · 24 tokens per session scan A 447178f7513e

Subscribe to this mod's changes

tommymorgan:work is a command published in the GitHub repository tommymorgan/claude-plugins (4 stars, last pushed 1mo ago), licensed MIT. It adds 24 tokens to every session and 4,567 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.