ai-instructions: Skill for Cursor

.cursor/skills/prepare-commit-messages/SKILL.md

prepare-commit-messages is a skill for Cursor from lsampaioweb/ai-instructions. It costs 88 tokens per session (767 once invoked), scanned A, original, MIT.

A skill for organizing uncommitted Git changes into feature-focused Conventional Commits, a standard format for commit messages.

In plain words
What is it for?
Inspecting changes, grouping files into atomic commits, naming commits consistently, and identifying missing documentation updates.
Why use it?
It separates unrelated work, checks documentation needs, and prepares a reviewable commit plan before any commits are made.

Skill for Cursor

Written for Cursor: installed under .cursor/.

This is lsampaioweb/ai-instructions's own configuration. It tells Cursor how to work on ai-instructions 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 ai-instructions configures →

Reuse

Borrowing it

Nothing to install: this file belongs to lsampaioweb/ai-instructions. 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/lsampaioweb/ai-instructions/main/.cursor/skills/prepare-commit-messages/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/lsampaioweb/ai-instructions

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 prepare-commit-messages

README.md
[![agentmods](https://agentmods.dev/badge/skills/lsampaioweb/ai-instructions/prepare-commit-messages/github.svg)](https://agentmods.dev/skills/lsampaioweb/ai-instructions/prepare-commit-messages)
Your own site
<a href="https://agentmods.dev/skills/lsampaioweb/ai-instructions/prepare-commit-messages"><img src="https://agentmods.dev/badge/skills/lsampaioweb/ai-instructions/prepare-commit-messages/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 prepare-commit-messages

Your own site · 80×15
<a href="https://agentmods.dev/skills/lsampaioweb/ai-instructions/prepare-commit-messages"><img src="https://agentmods.dev/badge/skills/lsampaioweb/ai-instructions/prepare-commit-messages.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 767 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.00088 $0.00767
Opus 5.5 $0.00035 $0.00307
Sonnet 5.5 $0.00018 $0.00153
Haiku 4.5 $0.00009 $0.00077

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

Security

Grade A, and why

prepare-commit-messages 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 1mo 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/prepare-commit-messages/SKILL.md · 73 lines

How it starts

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

Logical Git Commits

Arguments

  • Optional path or feature-scope filter.
  • Omit the filter to cluster all uncommitted changes.

1. Inspect the Changes

  1. Inspect git status, unstaged changes with git diff, and staged changes with git diff --cached.
  2. Read the contents of untracked files listed by git status; they are part of the uncommitted work even though they do not appear in either diff.
  3. Cluster all in-scope staged, unstaged, and untracked changes into atomic commits.

2. Resolution Rules

  • Sort order: Commit foundational changes (config, schemas, and dependencies) before feature layers.
  • Grouping Boundary: Group files strictly by feature domain (e.g., auth, payment).
  • Documentation Gate: If Markdown documentation exists for changed code but contains no corresponding updates, flag the affected docs and recommend running review-and-sync-docs before proceeding.
  • Commit Format: Use only Conventional Commits in this format: type(scope): description.
  • Scope Rule: Use a feature domain or infrastructure area.
  • Description: Write it in the imperative present tense, keep it to 50 characters or fewer, and do not end it with a period.
  • Body Rule: Document the why and the impact only.
  • Footer Rule: Append Closes #123 or tracking IDs if detected in branch or context.
  • Post-approval: Run git add and git commit sequentially for each cluster.

3. Safety Guards

  • Execution boundary: Apply changes only after the user confirms the commit plan.
  • Ask for Confirmation: Output: Proceed with executing this automated commit sequence? [yes/no]
  • Exit Code Check: Confirm the exit code is 0 after each git commit before staging the next cluster.
  • Scope Discipline: Never use technical-layer identifiers for grouping or as the commit scope.
  • Body Discipline: Never list modified files or duplicate diff data in the commit body.
  • Domain Boundary: If files in a cluster span more than one feature domain, flag the cluster and stop.
  • Type Discipline: Use a recognized Conventional Commit type; do not invent a repository-specific type without documenting it as an allowed type.

Read the full file on GitHub · 73 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. 1mo ago Changed · +3 lines d13934f351cd
  2. 1mo ago Changed · +22 tokens per session b3e6c9d54915
  3. 1mo ago Changed 55a69e4789a2
  4. 2mo ago First seen · 70 lines · 66 tokens per session scan A 38052458c9ab

Subscribe to this mod's changes

prepare-commit-messages is a skill published in the GitHub repository lsampaioweb/ai-instructions (1 stars, last pushed 5d ago), licensed MIT. It adds 88 tokens to every session and 767 once invoked, about $0.0004 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.

Related

prepare-commit-messages compared with skills from other repositories

prepare-commit-messages next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
prepare-commit-messageslsampaioweb/ai-instructionsSkill15d agoMITA88Cursor
create-prprisma/ormSkill48kyesterdayApache-2.0A48Claude Code, Codex
git-commitThinkInAIXYZ/deepchatSkill6.4kyesterdayApache-2.0A15Claude Code, Codex
repo-syncdavidondrej/skillsSkill4.3k3d agoMITA25Claude Code, Codex
engineer-bot-opsmakecindy/cindySkill9.3ktodayApache-2.0A57Claude Code, Codex
mcore-split-prNVIDIA/skillsSkill3.9kyesterdayApache-2.0A25Claude Code
git-commit-writermergisi/awesome-openclaw-agentsSkill4.1k2d agoMITA53Claude Code, Codex