prprompts-flutter-generator: Command for Claude Code

.claude/commands/prprompts/phase-2.md

Generate Phase 2 is a command for Claude Code from Kandil7/prprompts-flutter-generator. It costs 23 tokens per session (1,776 once invoked), scanned A, original, MIT.

A command that creates 12 Markdown guides for software quality and security, using a product requirements document (PRD) to adapt them to the project.

In plain words
What is it for?
Use it to generate guides covering topics such as Git branching, code quality, automated checks, and security practices, saved in the PRPROMPTS folder.
Why use it?
It removes the need to write standard development, testing, and security guidance from scratch. It also gives each guide the same structure, examples, checks, and references.

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/prprompts/phase-2.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 Generate Phase 2

README.md
[![agentmods](https://agentmods.dev/badge/commands/kandil7/prprompts-flutter-generator/phase-2.svg)](https://agentmods.dev/commands/kandil7/prprompts-flutter-generator/phase-2)
Your own site
<a href="https://agentmods.dev/commands/kandil7/prprompts-flutter-generator/phase-2"><img src="https://agentmods.dev/badge/commands/kandil7/prprompts-flutter-generator/phase-2.svg" alt="Measured on agentmods" height="20"></a>
Per session 23 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,776 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00023 $0.01776
Opus 5 $0.00012 $0.00888
Sonnet 5 $0.00005 $0.00355
Haiku 4.5 $0.00002 $0.00178

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

Security

Grade A, and why

Generate Phase 2 scanned grade A 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 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.

Strips warnings and disclaimerslowAnti-refusal

Omitting safety caveats hides risk from the user and is a common jailbreak preamble.

- `dartdoc` must build without warnings

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

.claude/commands/prprompts/phase-2.md · 204 lines

How it starts

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

Generate Phase 2: Quality & Security (v2.0)

Overview

Generate the 12 quality and security PRPROMPTS files following v2.0 strict PRP pattern.

Input

Read: docs/PRD.md - Extract YAML frontmatter for customization.

V2.0 SPECIFICATION

PRP Pattern (MANDATORY)

Every file MUST follow this exact 6-section structure:

## FEATURE
What this guide helps you accomplish

## EXAMPLES
Real code with actual file paths

## CONSTRAINTS
✅ DO / ❌ DON'T rules

## VALIDATION GATES
Manual checklist + automated CI checks

## BEST PRACTICES
Junior-friendly "Why?" explanations

## REFERENCES
Official docs, compliance guides, ADRs

Quality Requirements

  • Length: 500-600 words per file
  • No Placeholders: All content actionable
  • Real Examples: Actual code, commands, workflows
  • Junior-Friendly: Explain rationale
  • Security-Critical: Double-check HIPAA/PCI-DSS/GDPR patterns

Output

IMPORTANT: All files MUST go inside the PRPROMPTS/ folder.

Files to Generate (12 files, numbered 11-22)

  1. 11-git_branching_strategy.md (500-600 words)

    • Feature branches, PR reviews, Git Flow
    • Branch naming: feature/, fix/, hotfix/
    • 2 approvals required
  2. 12-progress_tracking_workflow.md (500-600 words)

    • Jira/Linear/GitHub Projects
    • Sprint planning, story points
    • All PRs must reference issues
  3. 13-multi_team_coordination.md (500-600 words)

    • API contracts, shared libraries
    • Downstream approval for breaking changes
    • Adapt to team size from PRD
  4. 14-security_audit_checklist.md (500-600 words)

    • No secrets in code, HTTPS only
    • git secrets --scan
    • OWASP Mobile Top 10
  5. 15-release_management.md (500-600 words)

    • App Store submission, versioning
    • TestFlight/Firebase beta
    • QA signoff required
  6. 16-security_and_compliance.md (500-600 words) ⭐ CRITICAL - PRD-CUSTOMIZED

    • MUST adapt based on PRD's compliance field
    • HIPAA: PHI encryption (AES-256-GCM), audit logging
      final encrypted = await _encryptor.encrypt(
        patientData, key: await _secureStorage.getEncryptionKey());
      await _db.insert('patients', {'data': encrypted});
      
    • PCI-DSS: Payment tokenization (Stripe/PayPal), NEVER store full cards
      final last4 = cardNumber.substring(cardNumber.length - 4);
      await _db.insert('cards', {'last4': last4, 'token': stripeToken});
      
    • GDPR: Consent management, right to erasure
    • JWT: Verification only (NO signing in Flutter)
      Future<bool> verifyToken(String token) async {
        final jwt = JWT.verify(token, RSAPublicKey(publicKey),
          audience: Audience(['my-app']), issuer: 'api.example.com');
        return jwt.payload['exp'] > DateTime.now().millisecondsSinceEpoch / 1000;
      }
      

Read the full file on GitHub · 204 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 · 204 lines · 23 tokens per session scan A d051c666b1cf

Subscribe to this mod's changes

Generate Phase 2 is a command published in the GitHub repository Kandil7/prprompts-flutter-generator (11 stars, last pushed 9mo ago), licensed MIT. It adds 23 tokens to every session and 1,776 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (strips warnings and disclaimers). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.