prprompts-flutter-generator: Command for Claude Code

.claude/commands/prd/refine.md

Refine PRD is a command for Claude Code from Kandil7/prprompts-flutter-generator. It costs 18 tokens per session (3,522 once invoked), scanned A, original, MIT.

An interactive assistant for improving a PRD, or Product Requirements Document—the file that explains what a product should do and how success will be judged.

In plain words
What is it for?
Use it to assess and refine the PRD in docs/PRD.md through questions, analysis, and targeted suggestions.
Why use it?
It helps uncover missing details, vague wording, unclear priorities, weak acceptance criteria, and gaps in security or other non-functional requirements.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is Kandil7/prprompts-flutter-generator's own configuration. It tells Claude Code how to work on prprompts-flutter-generator 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 prprompts-flutter-generator configures →

Part of the prprompts-flutter-generator plugin — 25 commands, 4 hooks shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to Kandil7/prprompts-flutter-generator. 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/Kandil7/prprompts-flutter-generator/master/.claude/commands/prd/refine.md
Clone the repo
git clone --depth 1 https://github.com/Kandil7/prprompts-flutter-generator

Made for: Claude Code.

Or install prprompts-flutter-generator, the plugin that ships this one along with the rest of its 25 commands, 4 hooks.

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 Refine PRD

README.md
[![agentmods](https://agentmods.dev/badge/commands/kandil7/prprompts-flutter-generator/refine.svg)](https://agentmods.dev/commands/kandil7/prprompts-flutter-generator/refine)
Your own site
<a href="https://agentmods.dev/commands/kandil7/prprompts-flutter-generator/refine"><img src="https://agentmods.dev/badge/commands/kandil7/prprompts-flutter-generator/refine.svg" alt="Measured on agentmods" height="20"></a>
Per session 18 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,522 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.1 $0.00018 $0.03522
Opus 5 $0.00009 $0.01761
Sonnet 5 $0.00004 $0.00704
Haiku 4.5 $0.00002 $0.00352

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

Security

Grade A, and why

Refine 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 6d 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/prd/refine.md · 467 lines

How it starts

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

Refine Product Requirements Document

Overview

Analyze the existing PRD and guide the user through an iterative refinement process to improve completeness, clarity, feasibility, and security. This is an interactive loop that identifies weak areas and helps strengthen them through targeted questions and suggestions.

Input File

Look for: docs/PRD.md

Refinement Process

Step 1: Initial Quality Assessment

Run comprehensive analysis on current PRD:

Completeness Analysis (0-100%):

  • Required sections present: 15/15 sections
  • YAML frontmatter completeness: All required fields
  • Feature detail level: User stories, acceptance criteria, technical requirements
  • Compliance documentation: Match compliance array
  • Non-functional requirements: Performance, security, accessibility
  • Score Calculation: (Present sections / Expected sections) × 100

Clarity Analysis (0-100%):

  • Ambiguous language detection: "maybe", "possibly", "might", "could be"
  • Measurable acceptance criteria: Quantified vs vague
  • Clear priorities: P0/P1/P2 vs unclear
  • Concrete timelines: Specific dates vs "soon", "later"
  • Well-defined success metrics: SMART criteria
  • Score Calculation: (Clear criteria / Total criteria) × 100

Feasibility Analysis (0-100%):

  • Timeline vs complexity: Story points / available weeks
  • Team size vs scope: Features / team members / weeks
  • Technology maturity: Proven vs bleeding-edge
  • Dependency risks: External APIs, third-party services
  • Resource availability: Realistic team composition
  • Score Calculation: Weighted average of sub-factors

Security Analysis (0-100%):

  • Compliance coverage: Required vs specified standards
  • Auth/AuthZ patterns: Complete implementation plan
  • Data protection: Encryption at rest and in transit
  • Audit logging: For sensitive data access
  • Security testing: Pen testing, security reviews planned
  • Score Calculation: (Security requirements met / Total requirements) × 100

Calculate Overall Grade:

  • A (90-100%): Production-ready PRD
  • B (80-89%): Strong PRD, minor improvements needed
  • C (70-79%): Good foundation, significant improvements needed
  • D (60-69%): Major gaps, substantial work required
  • F (<60%): Not ready for PRPROMPTS generation

Read the full file on GitHub · 467 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. 6d ago First seen · 467 lines · 18 tokens per session scan A e9d5fdaaad20

Subscribe to this mod's changes

Refine PRD is a command published in the GitHub repository Kandil7/prprompts-flutter-generator (11 stars, last pushed 9mo ago), licensed MIT. It adds 18 tokens to every session and 3,522 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-30.