review-commit

review-commit is a command for Claude Code from Kandil7/prprompts-flutter-generator. It costs 0 tokens per session (473 once invoked), scanned A, original, MIT.

A command that checks a Flutter change against the project's PRPROMPTS instructions before creating a commit. A commit is a saved set of code changes in version control.

In plain words
What is it for?
Use it to validate architecture and security requirements, run Flutter analysis and tests, format Dart files, and create a structured commit message.
Why use it?
It catches missed project rules, security issues, analyzer errors, test failures, and formatting problems before the change is recorded.

Command for Claude Code

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

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.

agentmods
npx agentmods add commands/kandil7/prprompts-flutter-generator/review-commit
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 review-commit

README.md
[![agentmods](https://agentmods.dev/badge/commands/kandil7/prprompts-flutter-generator/review-commit.svg)](https://agentmods.dev/commands/kandil7/prprompts-flutter-generator/review-commit)
Your own site
<a href="https://agentmods.dev/commands/kandil7/prprompts-flutter-generator/review-commit"><img src="https://agentmods.dev/badge/commands/kandil7/prprompts-flutter-generator/review-commit.svg" alt="Measured on agentmods" 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 473 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 $0.00000 $0.00473
Opus 5 $0.00000 $0.00236
Sonnet 5 $0.00000 $0.00095
Haiku 4.5 $0.00000 $0.00047

Measured 4d ago against content hash 2ecb04b61c62, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

review-commit 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 4d 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/automation/review-commit.md · 83 lines

What it actually says

Review and Commit (PRPROMPTS-Validated)

Perform PRPROMPTS validation gates and commit.

1. PRPROMPTS Validation Gates

For the current task, read its referenced PRPROMPTS file and check:

From VALIDATION GATES section:

  • Pre-commit checklist items all passed
  • Code examples match PRPROMPTS patterns
  • Constraints (DO/DON'T) respected

Example for BLoC task:

VALIDATION GATES from @PRPROMPTS/03-bloc_implementation.md:
✓ BLoC uses events/states (not methods)
✓ No business logic in widgets
✓ Repository abstraction exists
✓ Tests cover all BLoC states

2. Security Validation

If task involves sensitive data:

  • Run checklist from @PRPROMPTS/16-security_and_compliance.md
  • Verify no hardcoded secrets
  • Check encryption for PII/PHI
  • Verify JWT implementation (RS256 only!)

3. Code Quality Gates

# Analyzer
flutter analyze
# Expect: No issues found

# Tests
flutter test
# Expect: All tests passing

# Format
dart format lib/ test/ --set-exit-if-changed
# Expect: No formatting changes needed

4. Generate Commit Message

Format: type(scope): description

Types:

  • feat: New feature
  • fix: Bug fix
  • refactor: Code refactoring
  • test: Adding tests
  • docs: Documentation
  • chore: Maintenance

Scope: Feature name or module

Description: Reference PRPROMPTS file used

Example:

feat(auth): implement JWT verification with RS256

- Followed @PRPROMPTS/04-api_integration.md
- Public key verification only (no signing in Flutter)
- Added unit tests for token validation
- Refs: IMPLEMENTATION_PLAN.md Task 2.3

5. Commit

git commit -m "[generated message]"

6. Progress Report

✓ Commit: [hash]
✓ Progress: X/Y tasks (Z% complete)
✓ Phase: [current phase]
✓ Next: [next task name]

Continue? Say 'next' or 'pause'
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. 4d ago First seen · 83 lines · 0 tokens per session scan A 2ecb04b61c62

Subscribe to this mod's changes

review-commit is a command published in the GitHub repository Kandil7/prprompts-flutter-generator (11 stars, last pushed 9mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 473 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-30.