prprompts-flutter-generator: Command for Claude Code

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

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

A command that generates ten core architecture instruction files from a project requirements document. Architecture files explain how the main parts of an application should be organized.

In plain words
What is it for?
Use it to read docs/PRD.md and create Phase 1 PRPROMPTS files for a Flutter project, with concrete paths, tests, reviews, and documentation requirements.
Why use it?
It turns project details into consistent, reviewable guides with examples, constraints, validation checks, best practices, and references. It also includes rules for handling payment-card data and token verification safely.

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-1.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 1

README.md
[![agentmods](https://agentmods.dev/badge/commands/kandil7/prprompts-flutter-generator/phase-1.svg)](https://agentmods.dev/commands/kandil7/prprompts-flutter-generator/phase-1)
Your own site
<a href="https://agentmods.dev/commands/kandil7/prprompts-flutter-generator/phase-1"><img src="https://agentmods.dev/badge/commands/kandil7/prprompts-flutter-generator/phase-1.svg" alt="Measured on agentmods" height="20"></a>
Per session 22 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,522 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.00022 $0.01522
Opus 5 $0.00011 $0.00761
Sonnet 5 $0.00004 $0.00304
Haiku 4.5 $0.00002 $0.00152

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

Security

Grade A, and why

Generate Phase 1 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 8d 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/prprompts/phase-1.md · 182 lines

How it starts

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

Generate Phase 1: Core Architecture (v2.0)

Overview

Generate the 10 core architecture 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 (e.g., lib/features/login/presentation/login_page.dart)

## CONSTRAINTS
✅ DO / ❌ DON'T rules

## VALIDATION GATES
Manual checklist + automated CI checks

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

## REFERENCES
Official docs, compliance guides, internal ADRs

Quality Requirements

  • Length: 500-600 words per file
  • No Placeholders: Replace all [...], {feature_name}, TODO
  • Real Examples: Actual Flutter file paths
  • Junior-Friendly: Explain "why" behind every rule
  • Validation Gates: Specify tests/docs/reviews required

Critical Security Corrections (v2.0)

  1. JWT: NEVER show Flutter signing tokens. Only verification with public key (RS256).
  2. PCI-DSS: NEVER store full credit card numbers. Use tokenization (Stripe/PayPal).
  3. HIPAA: Always encrypt PHI at rest (AES-256-GCM).

Output

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

Files to Generate (10 files)

  1. 01-feature_scaffold.md (500-600 words)

    • Clean Architecture + BLoC pattern
    • Folder structure: lib/features/{feature_name}/
    • Real examples with actual paths
    • Dependency rules: domain → no external imports
  2. 02-responsive_layout.md (500-600 words)

    • Adaptive UI: LayoutBuilder, MediaQuery, breakpoints
    • Mobile/tablet/desktop patterns
    • Test on 3 screen sizes
  3. 03-bloc_implementation.md (500-600 words)

    • BLoC vs Cubit decision matrix
    • Complex state → BLoC, Simple → Cubit
    • on<Event> pattern, NO emit in constructor
  4. 04-api_integration.md (500-600 words) ⚠️ CRITICAL

    • Dio/Retrofit setup, JWT verification only
    • ❌ NEVER sign tokens in Flutter
    • ✅ Verify with RSAPublicKey, check aud/iss/exp
    • Include example:
      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 · 182 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. 8d ago First seen · 182 lines · 22 tokens per session scan A cf731f489019

Subscribe to this mod's changes

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

Related

Other commands, from other repositories

building-flutter-apps-skill-ac1294fc

Flutter Riverpod app architecture and Windows installer delivery. Use before changing a Riverpod Flutter app/package or its Windows desktop packaging/update pipeline; skip non-Riverpod stacks and pure-Dart work.

sgaabdu4/building-flutter-apps · 39 tokens

gdpr-audit

You are a senior Security & Compliance specialist. The user needs help with gdpr audit in the context of security audits, vulnerability management, gdpr/soc2/iso27001 compliance and incident response.

sparkfinderoven/r01-hesreallyhim-awesome-claude-code-security · 0 tokens

pentest-report

You are a senior Security & Compliance specialist. The user needs help with pentest report in the context of security audits, vulnerability management, gdpr/soc2/iso27001 compliance and incident response.

sparkfinderoven/r01-hesreallyhim-awesome-claude-code-security · 0 tokens

privacy-policy

You are a senior Security & Compliance specialist. The user needs help with privacy policy in the context of security audits, vulnerability management, gdpr/soc2/iso27001 compliance and incident response.

sparkfinderoven/r01-hesreallyhim-awesome-claude-code-security · 0 tokens

secret-detect

You are a senior Security & Compliance specialist. The user needs help with secret detect in the context of security audits, vulnerability management, gdpr/soc2/iso27001 compliance and incident response.

sparkfinderoven/r01-hesreallyhim-awesome-claude-code-security · 0 tokens

threat-model

You are a senior Security & Compliance specialist. The user needs help with threat model in the context of security audits, vulnerability management, gdpr/soc2/iso27001 compliance and incident response.

sparkfinderoven/r01-hesreallyhim-awesome-claude-code-security · 0 tokens