prprompts-flutter-generator: Command for Claude Code

.claude/commands/prprompts/generate-all.md

Generate PRPROMPTS is a command for Claude Code from Kandil7/prprompts-flutter-generator. It costs 21 tokens per session (7,815 once invoked), scanned B, original, MIT.

A generator for 32 prompt-reference files for a Flutter project using Clean Architecture and BLoC/Cubit, a pattern for separating screens, business rules and data access.

In plain words
What is it for?
Use it to create feature-development guidance with examples, do-and-don't rules, validation checks and best practices.
Why use it?
It gives a large Flutter project consistent guides for implementation, constraints, validation and references. It also states security rules such as keeping token signing on the backend.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions Claude Code.

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/generate-all.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 PRPROMPTS

README.md
[![agentmods](https://agentmods.dev/badge/commands/kandil7/prprompts-flutter-generator/generate-all.svg)](https://agentmods.dev/commands/kandil7/prprompts-flutter-generator/generate-all)
Your own site
<a href="https://agentmods.dev/commands/kandil7/prprompts-flutter-generator/generate-all"><img src="https://agentmods.dev/badge/commands/kandil7/prprompts-flutter-generator/generate-all.svg" alt="Measured on agentmods" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 7,815 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00021 $0.07815
Opus 5 $0.00010 $0.03908
Sonnet 5 $0.00004 $0.01563
Haiku 4.5 $0.00002 $0.00782

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

Security

Grade B, and why

Generate PRPROMPTS scanned grade B 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 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.

Strips warnings and disclaimersmediumAnti-refusal

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

- VALIDATION GATES: `dartdoc` must build without warnings
.claude/commands/prprompts/generate-all.md · 906 lines

How it starts

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

Generate Complete PRPROMPTS Folder

IMPORTANT: Generate a complete, secure, and adaptive PRPROMPTS/ folder for a large-scale Flutter project using Clean Architecture, BLoC/Cubit, and dynamic team structuring.

DEFINITIONS

PRP (Prompt Reference Pattern)

Every file MUST follow this exact 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

Clean Architecture

Uncle Bob's layered approach:

  • Presentation Layer: UI, BLoC/Cubit, Widgets
  • Domain Layer: Entities, Use Cases, Repository Interfaces
  • Data Layer: Repository Implementations, Data Sources, Models

JWT in Flutter (CRITICAL)

  • NEVER sign tokens in Flutter
  • Backend signs tokens (e.g., Node.js with node-jsonwebtoken, RS256)
  • Flutter only verifies tokens using public key (dart_jsonwebtoken package)
  • NEVER store private keys or secrets in Flutter code
  • ✅ Always verify claims: aud, iss, exp, sub

Example (Backend - Node.js):

const token = jwt.sign(payload, privateKey, {
  algorithm: 'RS256',
  expiresIn: '15m',
  audience: 'my-flutter-app',
  issuer: 'api.example.com'
});

Example (Flutter - Verification Only):

import 'package:dart_jsonwebtoken/dart_jsonwebtoken.dart';

Future<bool> verifyToken(String token) async {
  try {
    final jwt = JWT.verify(
      token,
      RSAPublicKey(publicKeyString),
      audience: Audience(['my-flutter-app']),
      issuer: 'api.example.com',
    );
    return jwt.payload['exp'] > DateTime.now().millisecondsSinceEpoch / 1000;
  } catch (e) {
    return false;
  }
}

Integrated Tools

  1. Structurizr - C4 model as code
    • Generates interactive architecture diagrams
    • DSL format: workspace.dsl
    • Example: structurizr-cli export -workspace workspace.dsl -format plantuml

Read the full file on GitHub · 906 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 · 906 lines · 21 tokens per session scan B 64abbf60e894

Subscribe to this mod's changes

Generate PRPROMPTS is a command published in the GitHub repository Kandil7/prprompts-flutter-generator (11 stars, last pushed 9mo ago), licensed MIT. It adds 21 tokens to every session and 7,815 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B 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.