prp-commit

prp-commit is a command for Claude Code from sifxprime/kodelyth-ecc. It costs 15 tokens per session (802 once invoked), scanned A, a copy of prp-commit, MIT.

A Git command that turns a plain-English description into a set of files to stage and then creates a commit.

In plain words
What is it for?
Use it to stage all changes, matching files, new files, or files related to a described change before committing.
Why use it?
It removes the need to remember exact file paths and staging commands when committing selected changes.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

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/sifxprime/kodelyth-ecc/prp-commit
Clone the repo
git clone --depth 1 https://github.com/sifxprime/kodelyth-ecc

Made for: Claude Code.

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 prp-commit

README.md
[![agentmods](https://agentmods.dev/badge/commands/sifxprime/kodelyth-ecc/prp-commit.svg)](https://agentmods.dev/commands/sifxprime/kodelyth-ecc/prp-commit)
Your own site
<a href="https://agentmods.dev/commands/sifxprime/kodelyth-ecc/prp-commit"><img src="https://agentmods.dev/badge/commands/sifxprime/kodelyth-ecc/prp-commit.svg" alt="Measured on agentmods" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 802 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod 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.00015 $0.00802
Opus 5 $0.00008 $0.00401
Sonnet 5 $0.00003 $0.00160
Haiku 4.5 $0.00002 $0.00080

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

Security

Grade A, and why

prp-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 2d 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.

Origin

This is a copy

100% identical to prp-commit — 4 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

commands/prp-commit.md · 113 lines

How it starts

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

Smart Commit

Adapted from PRPs-agentic-eng by Wirasm. Part of the PRP workflow series.

Input: $ARGUMENTS


Phase 1 — ASSESS

git status --short

If output is empty → stop: "Nothing to commit."

Show the user a summary of what's changed (added, modified, deleted, untracked).


Phase 2 — INTERPRET & STAGE

Interpret $ARGUMENTS to determine what to stage:

Input Interpretation Git Command
(blank / empty) Stage everything git add -A
staged Use whatever is already staged (no git add)
*.ts or *.py etc. Stage matching glob git add '*.ts'
except tests Stage all, then unstage tests git add -A && git reset -- '**/*.test.*' '**/*.spec.*' '**/test_*' 2>/dev/null || true
only new files Stage untracked files only git ls-files --others --exclude-standard | grep . && git ls-files --others --exclude-standard | xargs git add
the auth changes Interpret from status/diff — find auth-related files git add <matched files>
Specific filenames Stage those files git add <files>

For natural language inputs (like "the auth changes"), cross-reference the git status output and git diff to identify relevant files. Show the user which files you're staging and why.

git add <determined files>

After staging, verify:

git diff --cached --stat

If nothing staged, stop: "No files matched your description."


Phase 3 — COMMIT

Craft a single-line commit message in imperative mood:

{type}: {description}

Types:

  • feat — New feature or capability
  • fix — Bug fix
  • refactor — Code restructuring without behavior change
  • docs — Documentation changes
  • test — Adding or updating tests
  • chore — Build, config, dependencies
  • perf — Performance improvement
  • ci — CI/CD changes

Rules:

  • Imperative mood ("add feature" not "added feature")
  • Lowercase after the type prefix
  • No period at the end
  • Under 72 characters
  • Describe WHAT changed, not HOW

Read the full file on GitHub · 113 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. 2d ago First seen · 113 lines · 0 tokens per session scan A cd7a3c7b0d5c

Subscribe to this mod's changes

prp-commit is a command published in the GitHub repository sifxprime/kodelyth-ecc (11 stars, last pushed 3d ago), licensed MIT. It adds 15 tokens to every session and 802 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to prp-commit, differing in 4 lines, and is treated as a copy.