tasks

tasks is a command for Claude Code from tzachbon/smart-ralph. It costs 0 tokens per session (3,420 once invoked), scanned B, original, MIT.

A command that turns an approved software design into a list of implementation tasks. It checks the active specification and delegates task planning to a specialized agent.

In plain words
What is it for?
Use it to create implementation tasks, review them, walk through the result for approval, and finalize the task plan.
Why use it?
It breaks a design into ordered work that developers can follow, while checking that the required design and research documents exist first.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents; names the AskUserQuestion tool; mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the ralph-specum plugin — 3 skills, 11 commands, 7 agents shipped together

Good fit Use it to create implementation tasks, review them, walk through the result for approval, and finalize the task plan.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add tzachbon/smart-ralph
Claude Code
/plugin install ralph-specum

Made for: Claude Code.

Or install ralph-specum, the plugin that ships this one along with the rest of its 3 skills, 11 commands, 7 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tasks

README.md
[![agentmods](https://agentmods.dev/badge/commands/tzachbon/smart-ralph/tasks/github.svg)](https://agentmods.dev/commands/tzachbon/smart-ralph/tasks)
Your own site
<a href="https://agentmods.dev/commands/tzachbon/smart-ralph/tasks"><img src="https://agentmods.dev/badge/commands/tzachbon/smart-ralph/tasks/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for tasks

Your own site · 80×15
<a href="https://agentmods.dev/commands/tzachbon/smart-ralph/tasks"><img src="https://agentmods.dev/badge/commands/tzachbon/smart-ralph/tasks.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,420 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00000 $0.03420
Opus 5.5 $0.00000 $0.01368
Sonnet 5.5 $0.00000 $0.00684
Haiku 4.5 $0.00000 $0.00342

Measured 1mo ago against content hash 47c1d66f8d74, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

tasks scanned grade B with 1 finding 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 1mo 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.

Unrestricted tool accessmediumExcessive agency

A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.

allowed-tools: "*"
plugins/ralph-specum/commands/tasks.md · 240 lines

How it starts

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

Tasks Phase

Generate implementation tasks for the active spec after explicit design artifact approval. You are a coordinator, not a task planner -- delegate ALL work to the task-planner subagent.

Read ${CLAUDE_PLUGIN_ROOT}/references/normal-mode-gates.md before gathering context.

Checklist

Create a task for each item and complete in order:

  1. Gather context -- resolve spec, read design, requirements, research
  2. Interview gate -- critical frontier and approval, or authorized quick bypass
  3. Execute task generation -- dispatch task-planner via team
  4. Artifact review -- automatic spec-reviewer loop in authorized quick mode
  5. Walkthrough & approval -- display summary, get user approval
  6. Finalize -- update state, commit, stop

Step 1: Gather Context

  1. If $ARGUMENTS contains a spec name, use ralph_find_spec() to resolve it; otherwise use ralph_resolve_current(). Store the resolved spec directory as SPEC_PATH.
  2. If no active spec, error: "No active spec. Run /ralph-specum:new first."
  3. Check the resolved spec directory exists
  4. Check design.md exists. If not, error: "Design not found. Run /ralph-specum:design first."
  5. Check requirements.md exists
  6. Read .ralph-state.json, reject simultaneous exact --quick and --interactive, and normalize persistent mode with phase_gate.py mode.
  7. When normalized quickMode is false, require explicit design artifact approval before clearing its approval flag. Exact quick mode continues with the validated file.
  8. Clear the approval flag through the locked helper while preserving every other field:
    python3 "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/locked-state.py" merge \
      --state "$SPEC_PATH/.ralph-state.json" \
      --set "awaitingApproval=false"
    
  9. --tasks-size flag handling: Check $ARGUMENTS for --tasks-size flag:
    • If value is fine or coarse: merge it with locked-state.py merge --state "$SPEC_PATH/.ralph-state.json" --set "granularity=$GRANULARITY" (overrides any value set by /ralph-specum:start)
    • If value is invalid (not fine or coarse): warn the user (Warning: Invalid --tasks-size value "<value>", defaulting to fine) and merge granularity=fine through the same helper
    • If --tasks-size is absent and granularity is already set: preserve it
    • If --tasks-size is absent and granularity is unset: merge the documented granularity=fine default through the same helper
  10. Treat granularity as workflow administration. Never add it to the interview frontier or count it as an answered gate decision.
  11. Run any missing applicable skill discovery pass. When research exists, pass 2 must be present.
  12. Read context: requirements.md, design.md, research.md (if exists), .progress.md.
  13. Run prototype record selection before task generation:
    python3 "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/prototype-records.py" select-downstream --base-path "$SPEC_PATH" --state "$SPEC_PATH/.ralph-state.json" --target tasks --target 'transition:design->tasks' --path design.md --path tasks.md
    
  14. Include only valid, gateApproved: true, non-superseded prototype evidence returned by the selector. Reject skipped, failed, inconclusive, cancelled, malformed, superseded, and explicitly excluded records.
  15. If selection reports an activePrototypes blocker for task generation, stop before Step 2 and report the active prototype ID, blocker reason, and resume command. Proven unrelated prototypes may continue only when every matching targetDecisions entry has proofAvailable: true and eligible: true; missing dependency or transfer-path proof blocks conservatively.
  16. If selection reports stale design.md or an upstream artifact that design depends on, stop and route to the earliest stale phase. Do not generate tasks from stale design.
  17. Pass selected prototype evidence and the clean blocker/stale-gate result to the task-planner.

Read the full file on GitHub · 240 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. 1mo ago First seen · 240 lines · 0 tokens per session scan B 47c1d66f8d74

Subscribe to this mod's changes

tasks is a command published in the GitHub repository tzachbon/smart-ralph (559 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,420 tokens. A static security scan graded it B with 1 finding (unrestricted tool access). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.