agent-workflow-presets: Skill for Cursor

.cursor/skills/commit/SKILL.md

commit is a skill for Cursor from hlalljie/agent-workflow-presets. It costs 29 tokens per session (1,838 once invoked), scanned A, original, MIT.

A guided process for preparing a Git commit, which is a saved set of code changes. It checks the staged changes and proposes a commit message and files.

In plain words
What is it for?
Use it to review staged or unstaged changes, check for security issues, decide what belongs in the commit, and prepare the exact commit proposal.
Why use it?
It helps catch secrets, credentials, environment files, and unfinished work before anything is committed. The commit still waits for your explicit approval.

Skill for Cursor

Written for Cursor: installed under .cursor/.

This is hlalljie/agent-workflow-presets's own configuration. It tells Cursor how to work on agent-workflow-presets 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 agent-workflow-presets configures →

Reuse

Borrowing it

Nothing to install: this file belongs to hlalljie/agent-workflow-presets. 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/hlalljie/agent-workflow-presets/main/.cursor/skills/commit/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/hlalljie/agent-workflow-presets

Made for: Cursor.

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 commit

README.md
[![agentmods](https://agentmods.dev/badge/skills/hlalljie/agent-workflow-presets/commit/github.svg)](https://agentmods.dev/skills/hlalljie/agent-workflow-presets/commit)
Your own site
<a href="https://agentmods.dev/skills/hlalljie/agent-workflow-presets/commit"><img src="https://agentmods.dev/badge/skills/hlalljie/agent-workflow-presets/commit/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 commit

Your own site · 80×15
<a href="https://agentmods.dev/skills/hlalljie/agent-workflow-presets/commit"><img src="https://agentmods.dev/badge/skills/hlalljie/agent-workflow-presets/commit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,838 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.00029 $0.01838
Opus 5.5 $0.00012 $0.00735
Sonnet 5.5 $0.00006 $0.00368
Haiku 4.5 $0.00003 $0.00184

Measured 19d ago against content hash 6b2cb2265ee7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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 19d 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.

.cursor/skills/commit/SKILL.md · 87 lines

How it starts

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

Commit

Process

  1. Run git diff --staged and git status (if nothing staged, note unstaged changes).
  2. Security review — no secrets, credentials, or env files staged; sensitive paths ignored.
  3. Loose ends — only if something needs a follow-up. If there are none, omit this (do not write "none", do not explain what you are not doing). 3b. Upgrade notes — only if UPGRADING.md exists at the repo root and the change touches harness files it names: follow its "How this file works" section. Most changes need no entry: say "no entry needed" and nothing more. Include a proposed entry, and the file, only when a project must act by hand. Skip silently in any other repo.
  4. Propose — commit message, files to stage, Ready to commit (y/n):, stop. Before printing, check the subject matches type(scope)?!?: subject (see "Commit message format"); fix it if not. Do not run git add or git commit.
  5. Wait for explicit approval.
  6. Only then run git add and git commit.

Starting vs approving

  • /commit, "prepare a commit", "go ahead and /commit", "run the commit skill" mean: run steps 1–4 (including the full proposed commit message and files to stage), print Ready to commit (y/n):, then stop. That is not permission to run git commit yet.
  • Approval is a separate message after that proposal: e.g. y, "yes", "approved", or a short edit ("use that message" / tweak subject only). Never treat "go ahead" in the same message as /commit as approval to commit unseen.
  • The user must be able to read the proposed subject and body before approving.

Proposal output: short and scannable. If this commit finishes the last open task for a plan phase: state that clearly in the proposal to the user and in the commit message (subject or bullet); mark that phase complete in plan.md (heading and Completed: date, per workflow.mdc) in the same commit as the task checkboxes. Make this edit before printing the proposal, so the user approves what will be committed. If it does not complete a phase, say nothing about phases — do not list non-events.

Read the full file on GitHub · 87 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. 19d ago Changed · +15 lines 6b2cb2265ee7
  2. 22d ago Changed · +2 lines 73b6835f4c00
  3. 1mo ago First seen · 70 lines · 29 tokens per session scan A 76205f88016a

Subscribe to this mod's changes

commit is a skill published in the GitHub repository hlalljie/agent-workflow-presets (2 stars, last pushed 20d ago), licensed MIT. It adds 29 tokens to every session and 1,838 once invoked, about $0.0001 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-31.