ai-sdlc-workflow: Command for Claude Code

.cursor/commands/plan-feature.md

plan-feature is a command for Claude Code, Cursor from phuoctrung-ppt/ai-sdlc-workflow. It costs 38 tokens per session (700 once invoked), scanned A, original, MIT.

A planning command for designing a software feature before implementation. It produces an architecture decision record, API and data plans, assigned tasks, acceptance criteria, and project-configuration updates.

In plain words
What is it for?
Use it to explore the codebase, compare design options, plan database changes and shared contracts, assign work to agents, and document architecture decisions.
Why use it?
It turns a broad feature request into an ordered implementation plan with ownership, dependencies, migration needs, and known risks.

Command for Claude CodeCursor

Written for Cursor and Claude Code: installed under .cursor/, but also a Claude Code command (commands/*.md). Also seen: mentions AGENTS.md.

This is phuoctrung-ppt/ai-sdlc-workflow's own configuration. It tells Claude Code and Cursor how to work on ai-sdlc-workflow itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ai-sdlc-workflow configures →

Reuse

Borrowing it

Nothing to install: this file belongs to phuoctrung-ppt/ai-sdlc-workflow. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/phuoctrung-ppt/ai-sdlc-workflow/master/.cursor/commands/plan-feature.md
Clone the repo
git clone --depth 1 https://github.com/phuoctrung-ppt/ai-sdlc-workflow

Made for: Claude Code, Cursor.

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 plan-feature

README.md
[![agentmods](https://agentmods.dev/badge/commands/phuoctrung-ppt/ai-sdlc-workflow/plan-feature/github.svg)](https://agentmods.dev/commands/phuoctrung-ppt/ai-sdlc-workflow/plan-feature)
Your own site
<a href="https://agentmods.dev/commands/phuoctrung-ppt/ai-sdlc-workflow/plan-feature"><img src="https://agentmods.dev/badge/commands/phuoctrung-ppt/ai-sdlc-workflow/plan-feature/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 plan-feature

Your own site · 80×15
<a href="https://agentmods.dev/commands/phuoctrung-ppt/ai-sdlc-workflow/plan-feature"><img src="https://agentmods.dev/badge/commands/phuoctrung-ppt/ai-sdlc-workflow/plan-feature.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 700 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.00038 $0.00700
Opus 5.5 $0.00015 $0.00280
Sonnet 5.5 $0.00008 $0.00140
Haiku 4.5 $0.00004 $0.00070

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

Security

Grade A, and why

plan-feature 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 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.

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.

.cursor/commands/plan-feature.md · 48 lines

What it actually says

Act as Architect Planner (.cursor/agents/architect-planner.md).

Feature: {feature_description}

  1. Run context-builder: python3 .cursor/context/context-builder.py --phase plan --task "{feature_description}" --agent architect-planner --handoff docs/plans/.active-plan
  2. Resolve profile — read AGENTS.md §0 and/or .cursor/config/active-layers.json.
    • If §0 missing: ask user to fill profile + layers, or run python3 .cursor/context/profile-sync.py --detect then confirm.
    • Layer off = absent — do not plan migrations, tenancy, queues, or assign workers for that layer.
  3. Phase 0 BRAINSTORM (HARD-GATE): explore codebase, propose 2–3 options, wait for approval — do not write the plan file yet.
  4. Read .memory/architecture.md and AGENTS.md §0–§3 for profile, stack, structure.
  5. Explore codebase for related modules (only paths that exist for active layers).
  6. Write plan to docs/plans/YYYY-MM-DD-{slug}.md using the architect-planner template (include Domain Config Sync).
  7. Conditional plan body (include only if layer is on):
Layer on May include
database Migration needs, entities
backend API / service tasks, shared contracts
frontend UI tasks, Design Contract gate if new visible UI
multi-tenancy Tenant isolation notes
queue Job/queue notes
auth Auth/RBAC notes
devops Deploy/CI notes
ai-llm LLM cost/safety notes

Always include: Goal, acceptance criteria, file list with owner agents ⊆ active agents, task table, risks, scope boundaries.

For every off layer relevant to the feature, one line only: N/A — layer <name> off (AGENTS.md §0).

Forbidden: unconditional "Database migration needs" or tenancy sections when those layers are off.

  1. Phase 1.5 SYNC DOMAIN CONFIG (before workers):
    • ADR → docs/adr/ when architecture/stack/pattern decisions changed
    • Create/update docs/architecture.md only for active-layer surfaces
    • Update AGENTS.md only sections that changed and whose layer is on (§4 only if multi-tenancy on, §9 only if database on, §14 only if queue on)
    • Update worker-scopes.json / protected-paths.json if scopes changed (orchestrator approval for expansion)
    • Re-run python3 .cursor/context/profile-sync.py --from-agents if §0 or §3 changed
    • Point docs/plans/.active-plan at this plan
    • Record N/A + reason for skipped sync items
  2. Wait for orchestrator approval of plan + sync diffs before dispatching workers (use @scaffold-agent first if new module shells are required).
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 Changed · +17 lines · +14 tokens per session c704f0f6bc9f
  2. 1mo ago First seen · 31 lines · 24 tokens per session scan A 71252d51d5ba

Subscribe to this mod's changes

plan-feature is a command published in the GitHub repository phuoctrung-ppt/ai-sdlc-workflow (2 stars, last pushed 1mo ago), licensed MIT. It adds 38 tokens to every session and 700 once invoked, about $0.0002 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.