spec-tasks

spec-tasks is a command for Claude Code from Habib0x0/spec-driven-plugin. It costs 13 tokens per session (622 once invoked), scanned A, original, MIT.

A command that rebuilds an implementation task list after the requirements or technical design for a feature changes.

In plain words
What is it for?
Use it to update a feature’s tasks.md file from its requirements.md and design.md files.
Why use it?
It keeps planned work aligned with the latest decisions and preserves completed tasks while exposing missing, outdated, or removed work.

Command for Claude Code

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

Part of the spec-driven plugin — 1 skill, 18 commands, 11 agents shipped together

Good fit Use it to update a feature’s tasks.md file from its requirements.md and design.md files.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/habib0x0/spec-driven-plugin/spec-tasks
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.

Clone the repo
git clone --depth 1 https://github.com/Habib0x0/spec-driven-plugin

Made for: Claude Code.

Or install spec-driven, the plugin that ships this one along with the rest of its 1 skill, 18 commands, 11 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 spec-tasks

README.md
[![agentmods](https://agentmods.dev/badge/commands/habib0x0/spec-driven-plugin/spec-tasks/github.svg)](https://agentmods.dev/commands/habib0x0/spec-driven-plugin/spec-tasks)
Your own site
<a href="https://agentmods.dev/commands/habib0x0/spec-driven-plugin/spec-tasks"><img src="https://agentmods.dev/badge/commands/habib0x0/spec-driven-plugin/spec-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 spec-tasks

Your own site · 80×15
<a href="https://agentmods.dev/commands/habib0x0/spec-driven-plugin/spec-tasks"><img src="https://agentmods.dev/badge/commands/habib0x0/spec-driven-plugin/spec-tasks.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 622 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00013 $0.00622
Opus 5.5 $0.00005 $0.00249
Sonnet 5.5 $0.00003 $0.00124
Haiku 4.5 $0.00001 $0.00062

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

Security

Grade A, and why

spec-tasks 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 2mo 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.

commands/spec-tasks.md · 115 lines

How it starts

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

/spec-tasks Command

Regenerate implementation tasks from the current spec requirements and design.

Model Override

When this command delegates task generation to the spec-tasker agent via the Task tool, check the SPEC_MODEL_TASKER environment variable. If it is set and non-empty, pass its value as the model: parameter to the Task tool invocation, overriding the agent's frontmatter default (standard tier). When unset, omit model: and the agent runs on its default.

Workflow

1. Identify Current Spec

Look for existing specs in .claude/specs/:

If multiple specs exist, ask which one to update. If only one exists, use it automatically.

2. Read Current Spec

Read:

  • .claude/specs/<feature-name>/requirements.md
  • .claude/specs/<feature-name>/design.md
  • .claude/specs/<feature-name>/tasks.md (if exists)

3. Analyze Changes

If tasks.md exists, compare against requirements and design:

  1. Identify new requirements not covered by existing tasks
  2. Identify design components without implementation tasks
  3. Identify tasks for removed/changed requirements
  4. Note completed tasks that should be preserved

4. Generate Updated Tasks

Create/update tasks organized by phase:

Phase 1: Setup

  • Project scaffolding
  • Dependencies
  • Configuration

Phase 2: Core Implementation

  • Main feature functionality
  • Data models
  • Business logic

Phase 3: Integration

  • API connections
  • Service integration
  • UI integration

Phase 4: Testing

  • Unit tests
  • Integration tests
  • E2E tests

Phase 5: Polish

  • Error handling
  • Edge cases
  • Documentation

5. Preserve Completed Work

When regenerating tasks:

  1. Keep tasks marked as completed
  2. Update pending tasks if requirements changed
  3. Mark obsolete tasks as removed with note
  4. Add new tasks for new requirements

6. Sync to Claude Code Todos

After updating tasks.md:

  1. Check existing todos with TaskList
  2. Create new todos for new tasks
  3. Update existing todos if descriptions changed
  4. Do not remove completed todos

Read the full file on GitHub · 115 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. 2mo ago First seen · 115 lines · 13 tokens per session scan A f4ddaa64a510

Subscribe to this mod's changes

spec-tasks is a command published in the GitHub repository Habib0x0/spec-driven-plugin (10 stars, last pushed 2d ago), licensed MIT. It adds 13 tokens to every session and 622 once invoked, about $0.0001 per session on Opus 5.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.