pwf-commit-changes

pwf-commit-changes is a command for Claude Code from J-Pster/Psters_AI_Workflow. It costs 54 tokens per session (1,434 once invoked), scanned A, original, MIT.

A workflow that reviews uncommitted changes across all project repositories and groups them into focused commits using ticket numbers from issue text. It runs a separate analysis for each repository and examines every changed file.

In plain words
What is it for?
Use it to discover repositories with changes, organise files by ticket or purpose, and create multiple descriptive commits after reviewing the changes.
Why use it?
It prevents unrelated work from being mixed into one commit and keeps changes connected to the issues they address. This makes the project history easier to review and trace.

Command for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions subagents.

Good fit Use it to discover repositories with changes, organise files by ticket or purpose, and create multiple descriptive commits after reviewing the changes.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/j-pster/psters_ai_workflow/pwf-commit-changes
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.

Clone the repo
git clone --depth 1 https://github.com/J-Pster/Psters_AI_Workflow

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 pwf-commit-changes

README.md
[![agentmods](https://agentmods.dev/badge/commands/j-pster/psters_ai_workflow/pwf-commit-changes/github.svg)](https://agentmods.dev/commands/j-pster/psters_ai_workflow/pwf-commit-changes)
Your own site
<a href="https://agentmods.dev/commands/j-pster/psters_ai_workflow/pwf-commit-changes"><img src="https://agentmods.dev/badge/commands/j-pster/psters_ai_workflow/pwf-commit-changes/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pwf-commit-changes

Your own site · 80×15
<a href="https://agentmods.dev/commands/j-pster/psters_ai_workflow/pwf-commit-changes"><img src="https://agentmods.dev/badge/commands/j-pster/psters_ai_workflow/pwf-commit-changes.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 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,434 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.00054 $0.01434
Opus 5.5 $0.00022 $0.00574
Sonnet 5.5 $0.00011 $0.00287
Haiku 4.5 $0.00005 $0.00143

Measured 2mo ago against content hash 1b2cafb67cfc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pwf-commit-changes 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 2mo 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.

plugins/psters-ai-workflow/commands/pwf-commit-changes.md · 144 lines

How it starts

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

Step 5 — Create Structured Commits

Use this command to produce high-quality, ticket-aware commits after review, including multi-repo parallel commit organization when needed.

Each repo gets its own subagent that:

  1. Inspects every changed file individually
  2. Groups files by which ticket they relate to
  3. Makes multiple focused commits — one per ticket group (plus separate commits for unrelated changes)

All repos run in parallel.

Input

<commit_changes_input> #$ARGUMENTS </commit_changes_input>

If empty, ask:

"Paste the issue(s) or list the ticket number(s) (e.g. TICKET-727, TICKET-726), then I'll commit all uncommitted changes with organized, per-ticket commits."


Phase 1 — Parse Tickets

Extract every ticket identifier and its short title from the pasted text:

  • Look for Identifier: TICKET-XXX lines; the title is the # Heading above it (or after the last ------ separator).
  • Build a list: [{ id: "TICKET-727", title: "Move the BACK TO TABLE button to the right side" }, ...]
  • If no ticket is found, subagents will still commit with descriptive subjects but no [TICKET-XXX] prefix.

Phase 2 — Discover Repos With Changes

For each workspace path (all paths from context — backend, frontend, *-lambda, etc.):

  1. Run: git -C <path> status --short
  2. Skip if not a git repo (exit code ≠ 0) or output is empty.
  3. Record the repo path and name for repos that have uncommitted changes.

Note: Do NOT collect diffs here. Each subagent will fetch its own per-file diffs in Step 2 of its workflow, allowing precise file-level ticket classification.

Build a list: [{ path, name }] of repos with uncommitted changes.


Phase 3 — Spawn One Subagent Per Repo (All in Parallel)

Skill reference: Read skills/commit-changes-repo-worker/SKILL.md once before spawning subagents to understand the multi-commit worker contract.

For each repo with uncommitted changes, invoke one generalPurpose subagent (model: fast) using the Task tool. All invocations run simultaneously.

Read the full file on GitHub · 144 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. 2mo ago First seen · 144 lines · 54 tokens per session scan A 1b2cafb67cfc

Subscribe to this mod's changes

pwf-commit-changes is a command published in the GitHub repository J-Pster/Psters_AI_Workflow (289 stars, last pushed 7mo ago), licensed MIT. It adds 54 tokens to every session and 1,434 once invoked, about $0.0002 per session on Opus 5.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.