pwf-commit-changes

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

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/j-pster/psters_ai_workflow/pwf-commit-changes
Clone the repo
git clone --depth 1 https://github.com/J-Pster/Psters_AI_Workflow
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. 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.00054 $0.01434
Opus 5 $0.00027 $0.00717
Sonnet 5 $0.00011 $0.00287
Haiku 4.5 $0.00005 $0.00143

Measured 3d ago against content hash 1b2cafb67cfc, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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. 3d 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 (290 stars, last pushed 5mo ago), licensed MIT. It adds 54 tokens to every session and 1,434 once invoked, about $0.0003 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.