analyze-prd

analyze-prd is a command for Claude Code from AhmedHabiba/architor. It costs 0 tokens per session (1,322 once invoked), scanned A, original, MIT.

A command for creating a new GitHub issue, which is a tracked task or report in a code repository. It gathers the problem, desired outcome, and acceptance criteria before checking for duplicates and milestones.

In plain words
What is it for?
It helps collect requirements, search open issues for similar reports, check available milestones, and create a solution-agnostic GitHub issue.
Why use it?
It reduces vague or duplicate issues by recording the user-visible problem and how completion will be verified before filing it.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: positional $N argument.

Good fit It helps collect requirements, search open issues for similar reports, check available milestones, and create a solution-agnostic GitHub issue.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/ahmedhabiba/architor/analyze-prd
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/AhmedHabiba/architor

Made for: Claude Code.

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 analyze-prd

README.md
[![agentmods](https://agentmods.dev/badge/commands/ahmedhabiba/architor/analyze-prd/github.svg)](https://agentmods.dev/commands/ahmedhabiba/architor/analyze-prd)
Your own site
<a href="https://agentmods.dev/commands/ahmedhabiba/architor/analyze-prd"><img src="https://agentmods.dev/badge/commands/ahmedhabiba/architor/analyze-prd/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 analyze-prd

Your own site · 80×15
<a href="https://agentmods.dev/commands/ahmedhabiba/architor/analyze-prd"><img src="https://agentmods.dev/badge/commands/ahmedhabiba/architor/analyze-prd.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 1,322 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.00000 $0.01322
Opus 5 $0.00000 $0.00661
Sonnet 5 $0.00000 $0.00264
Haiku 4.5 $0.00000 $0.00132

Measured 9d ago against content hash 0f9101066bdd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

analyze-prd 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 9d 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.

.claude/commands/analyze-prd.md · 121 lines

How it starts

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

Read .arch/state.json first.

GATE CHECK: If current_phase is anything other than not_started or evaluation, STOP and say: "Cannot start PRD analysis. Current phase is [phase]. Use /status to check progress."

Read the PRD from .arch/prd.md.

Organization Context Check

Read .arch/org-context.md. Check if it is the unmodified template by looking for placeholder text like "[e.g.," or "[Your Organization Name]" or checking if key sections (Team Profile, Current Technology Stack) contain only template instructions.

If org-context.md appears to be filled in (has real values, not template placeholders):

  • Set phases.evaluation.org_context_loaded = true
  • Set phases.evaluation.org_context_source = "file"
  • Proceed to PRD evaluation below

If org-context.md is empty or still has template placeholders:

  • Say: "I notice .arch/org-context.md is not filled in. Organizational context directly affects architecture decisions — team size, tech stack, and constraints determine what patterns are feasible.

    I can either: A. Run a discovery interview (~5 minutes, 15 questions) — I'll generate org-context.md from your answers B. Skip it — I'll proceed with explicit assumptions marked throughout

    Which do you prefer?"

If user chooses A (interview), conduct in 3 blocks:

Block 1: Scale & Complexity

  1. What's your team size? How many developers, DevOps, QA?
  2. What's the seniority distribution? (mostly senior, mixed, mostly junior)
  3. What's your current tech stack? (backend language, frontend, database, cloud provider)
  4. What's your expected scale? (concurrent users, requests/sec, data volume per day)
  5. Is this greenfield or replacing/extending an existing system?

Present all 5 questions. Wait for answers before proceeding to Block 2.

Block 2: Team Reality

  1. What technologies has your team successfully operated in production?
  2. What technologies have you tried and abandoned? Why?
  3. Do you have dedicated DevOps/Platform/DBA roles, or do developers handle infrastructure?
  4. What's your CI/CD maturity? (manual deploys, basic pipelines, full GitOps)
  5. What monitoring/observability do you currently use?

Read the full file on GitHub · 121 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. 9d ago First seen · 121 lines · 0 tokens per session scan A 0f9101066bdd

Subscribe to this mod's changes

analyze-prd is a command published in the GitHub repository AhmedHabiba/architor (6 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,322 tokens. 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.