commit-message
Skill1 starsChanged 2 months agoUnlicenseView on GitHub
Generate and apply a commit message for pending changes using diff analysis.
- Commits and pushes
34 other projects use a version of this.
Adopted by
Most recently taken up by
- parkbarg/claude-skillstheir own version, first seen Oct 3, 2026
- microsoft/nvxtheir own version, first seen Oct 3, 2026
- sheshbabu/zentheir own version, first seen Oct 2, 2026
- abigayleh/claude-workflow-plugintheir own version, first seen Sep 27, 2026
- laodao-ai/laodao-skillstheir own version, first seen Sep 26, 2026
- Manshooo/astral-genesistheir own version, first seen Sep 25, 2026
Used with
Projects with it also use error-handling, changelog and 1 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
MicrosoftSkillerror-handling
统一错误处理系统。在添加 API 端点、修改错误处理、添加前端 API 调用、编写错误相关测试时使用。
Also in 3 projects that use this
HashiCorpSkillchangelog
Add a `.changelog/<PR_NUMBER>.txt` entry for a GitHub Pull Request, commit, and push.
Also in 4 projects that use this
GoogleSkillcode-review
Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.
Also in 6 projects that use this
Other versions34 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 34
- mergisi/awesome-openclaw-agents★ 4ksame name
- github/copilot-cli-for-beginners★ 2.8ksame name
- sheshbabu/zen★ 1.2ksame name
- microsoft/nvx★ 296same name
- danielvm-git/bigpowers★ 252same name
- Aedelon/claude-code-blueprint★ 120same name
- c-kick/hnl-agent-skills★ 51same name
- iamwjun/localcoder★ 39same name
- whyashthakker/agent-skills-marketing★ 19same name
- jiatastic/open-python-skills★ 9same name
24 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository71 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ad-copy-writerSkill
- ae-inspect-describeSkill
- algorithmic-artSkill
- animation-directorSkill
- brainstorming-and-ideatingSkill
- brainstorming-research-ideasSkill
- brainstormingSkill
- brief-to-tasksSkill
- canvas-designSkill
- cli-designSkill
- cli-output-hierarchySkill
- craft-uiSkill
- creative-directorSkill
- design-briefSkill
- design-flowSkill
- design-mock-auditSkill
- design-reviewSkill
- design-system-patternsSkill
- design-tokensSkill
- deslopifySkill
- diagnoseSkill
- doc-restructureSkill
- eval-criticSkill
- formatting-open-markdownsSkill
- frontend-designSkill
- frontend-slidesSkill
- gdocs-tab-writerSkill
- gemini-apiSkill
- gif-creationSkill
- github_repo_researchSkill
- grill-meSkill
- grill-with-docsSkill
- hallmarkSkill
- handoffSkill
- html-presentationSkill
- humanizerSkill
- improve-codebase-architectureSkill
- information-architectureSkill
- install-skill-from-githubSkill
- markdown-output-hierarchySkill
- marketing-psychologySkill
- merge-latestSkill
- modern-web-performanceSkill
- motion-designSkill
- pdf-readerSkill
- pm-brainstormingSkill
- pm-discovery-brainstormSkill
- product-marketingSkill
- prototypeSkill
- pull-requestSkill
- ralph_loopSkill
- react-best-practicesSkill
- skill-creatorSkill
- skill-optSkill
- steve-voiceSkill
- systematic-debuggingSkill
- tastemaker-styleSkill
- tech-doc-codelabSkill
- threejsSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
43 rules. 0 are common, 25 are distinctive, and 18 are very specific to this project.
0
Common
Most of the 27 edited versions we read keep these.
25
Distinctive
This author's own choices. Worth a look.
18
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
After generating this summary, you must apply it by creating a new commit or updating the description of an existing change in the relevant …
- Distinctive: line 23
Repo Status Check: Before generating the description, check the status of the repository.
- Distinctive: line 27
Clarification: If there are both pending changes and an existing commit,
- Distinctive: line 31
(N)ew: Create a new commit for the pending changes with the generated message.
- Very specific: line 68
Start summary with an imperative, present-tense verb (e.g., Release, Refactor, Add, Fix, Implement).
- Distinctive: line 73
Do NOT cite design tool node IDs, CSS selectors, or low-level helper functions in the headline.
- Distinctive: line 77
Keep to 72 characters or fewer without trailing punctuation.
- Distinctive: line 84
Avoid corporate jargon, performative hype, or raw file names.
- Distinctive: line 85
Subsystem Abstraction: Do NOT cite design tool frame/node IDs, CSS values, hex codes, pixel dimensions, or raw code tokens here.
- Distinctive: line 90
Must be completely understandable by any engineer in under 5 seconds without reading the code diff.
- Very specific: line 93
When a demo link, screen recording, Loom, asciinema, or video attachment URL is provided, it MUST ALWAYS appear directly between the brief …
- Very specific: line 107
Prohibit Buried Demos (Anti-Pattern): Never bury demo, video, or screencast links inside the Verification / TESTED section, after the …
- Distinctive: line 115
Subsystem-Level Abstraction: Write at the architectural subsystem level: referencing "the User service", "the database schema", or "the …
- Distinctive: line 125
Forbid Diff Accounting: Never inventory modified files, internal helper functions, styling pixel adjustments, or internal state/signal …
- Distinctive: line 128
Prohibit Bare Code Leads: Never start a bullet with a raw file name, class name, or mechanical code edit.
- Distinctive: line 130
Mandatory Thematic Anchors: Every bullet MUST lead with a bold, capability-oriented anchor or architectural invariant:
- Very specific: line 151
Never output placeholder text like None or N/A, and never re-list internal routes, helper wiring, or file touchpoints as side effects.
- Very specific: line 200
Preserve External Anchors on Amend: When performing an Amend action or updating an existing PR description, preserve issue/ticket tags …
- Very specific: line 210
Markdown Tag: When creating or updating descriptions for review systems that require a markdown rendering flag (e.g., MARKDOWN=true or …
- Distinctive: line 219
Before generating the commit message, you must run automated guardrails to ensure the codebase remains clean, formatted, and compilable.
- Very specific: line 224
Project/Language Specific: Run the project's standard formatter (e.g., npm run format, prettier --write <changed_files>, black …
- Very specific: line 227
Always run specific formatters if available (like mdformat --in_place or prettier --write for Markdown, or project-specific TypeScript …
- Very specific: line 231
Run the project's static analysis or linting tools on the changed files (e.g., eslint, pylint, golangci-lint, or buildifier for BUILD …
- Distinctive: line 234
Ensure there are no syntax errors, style violations, or unresolved import warnings.
- Distinctive: line 237
Run the appropriate build/compilation check to verify the changes do not break the build.
- Distinctive: line 245
Handling Failures: If any formatting, linting, or building step fails:
- Distinctive: line 249
Ask the user if they would like to resolve the issues first, or if they want to bypass the guardrails and commit anyway (e.g., for …
- Distinctive: line 253
Only proceed to diff analysis and commit message generation after all guardrail passes complete successfully (or the user explicitly …
- Distinctive: line 261
Accuracy: Every claim in the description must be backed by a verifiable change in the diff.
- Very specific: line 266
Use #, ##, and ### for section headers.
- Very specific: line 267
Use bulleted (* or -) or numbered lists for structured information.
- Very specific: line 268
Use horizontal rules (---) to separate distinct sections.
- Very specific: line 269
Use double asterisks (bold) for key terms and single asterisks (*italics*) for emphasis.
- Very specific: line 271
Use backticks for operational tools, commands, or test suites (e.g., npm test, --filter=carousel).
- Distinctive: line 277
If interacting with Git:
- Very specific: line 278
If New commit: git add . && git commit -m "Generated Message..." followed immediately by git push (or the appropriate remote push command) …
- Very specific: line 282
If Amend: git add . && git commit --amend followed immediately by git push (or the appropriate remote push command) to push the updated …
- Very specific: line 285
If interacting directly with code review APIs, ensure the full description text sent includes any required markdown rendering tags (e.g., …
- Distinctive: line 288
Confirm description update: Verify the description is set in the tool.
- Distinctive: line 290
Change/PR Link: After successfully creating or updating the commit,
- Distinctive: line 295
Format: Always present the link prominently in your response, e.g.:
- Very specific: line 296
Strict Structural Sequence: Ensure every generated summary strictly adheres to the defined ordering hierarchy: Headline -> Brief Overview …
- Distinctive: line 303
Granularity & Abstraction Level: Always write at the architectural subsystem level (e.g., referencing "the User service", "the database …
“Common” is measured: kept by at least 6 in 10 of the 27 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Commit Message
Context
You are an expert software engineer tasked with crafting or refining a commit message for a code change (CL/PR). You have access to the current working directory/new state and, for existing changes, the parent commit/base state. Your goal is to produce a clear, concise, and informative summary that explains both the what and the why of the changes for future maintainers. After generating this summary, you must apply it by creating a new commit or updating the description of an existing change in the relevant tool.
Specific Objectives
- Repo Status Check: Before generating the description, check the status of the repository. Specifically, determine if there are pending, uncommitted changes and if there is an existing commit at the head of the current branch/chain.
- Clarification: If there are both pending changes and an existing commit,
ask the user whether they want to:
- (A)mend: Combine the pending changes with the existing commit and update its message.
- (N)ew: Create a new commit for the pending changes with the generated message.
- Await the user's clear response (A or N) before proceeding.
- Diff Analysis: Compare the current codebase against the base state (e.g., base branch in Git, parent commit, or the last sync point for new changes) to identify all modified, added, or deleted files.
- Downstream Impact Analysis: Analyze downstream impact only when
modifying critical, high-impact contract files (e.g., protobuf definitions
.proto, public API contracts.d.ts/ OpenAPI specs, database schemas, or breaking dependency upgrades). If genuine breaking changes, schema migrations, deprecations, or service risks exist, prepare them for the conditional Side Effects section. - Logic Synthesis: Identify the primary intent of the changes. Distinguish between architectural changes, bug fixes, refactors, and simple UI adjustments.
- Metadata & Bug Association: Scan the current branch/bookmark/workspace
name, or the recent conversation history, to extract issue tracker
references (e.g.,
#1234,issue-567). If found, automatically append the appropriate metadata tags to the bottom of the CL/PR description (e.g.,Closes #1234/Fixes #1234for GitHub/GitLab, or the custom review system's bug tag format). - Comprehensive Summary Generation (Engineering Broadcast Standard): Write a
description that balances high-density executive clarity with technical
depth, following high-signal engineering communication standards:
- Structural Ordering Hierarchy: Enforce the following layout
sequence for all generated commit messages and PR descriptions:
- Headline / Subject: Intent-focused summary with domain/type tag.
- Brief Overview (
TL;DR:): 1–2 sentence context and guarantees. - Demo / Screencast Link (Conditional): Placed directly between
overview and bullets (
Demo: https://...). - Body Bullets: 3–5 punchy, capability-anchored bullets.
- Side Effects (Conditional): Breaking changes/migrations only.
- TESTED / Verification: Automated tests and static UI screenshots.
- Issue Links & Footers: Tracker tags (
Closes #123) and flags.
- Headline Formatting: A concise, one-line summary of the change.
- Prefix the headline with the project or domain tag in square brackets
(e.g.,
[Auth],[Billing],[API],[UI]). - Start summary with an imperative, present-tense verb (e.g.,
Release,Refactor,Add,Fix,Implement). - Model high-level architectural intent or user-visible capability
rather than low-level implementation mechanics or specific file
names (e.g.,
[Auth] Add pre-creation agent onboarding introduction flow). - Do NOT cite design tool node IDs, CSS selectors, or low-level helper
functions in the headline. Do not backtick-wrap symbols in the headline.
- Good:
[Auth] Add token refresh interceptor for expired credentials - Bad:
[UI] Fix .container-wrapper background #f8f9fa and 8px padding
- Good:
- Keep to 72 characters or fewer without trailing punctuation.
- Prefix the headline with the project or domain tag in square brackets
(e.g.,
- High-Level Overview Paragraph (
TL;DR:):- Immediately below the headline, insert a single 1–2 sentence
TL;DR:paragraph explaining overarching intent. - Voice & Tone: Calm, direct, authoritative, and outcome-oriented. Summarize what changed and why from a subsystem architecture perspective, stating user-visible capabilities or operational trade-offs. Avoid corporate jargon, performative hype, or raw file names.
- Subsystem Abstraction: Do NOT cite design tool frame/node IDs, CSS values, hex codes, pixel dimensions, or raw code tokens here.
- Formula:
TL;DR: [Project/Subsystem] now [core capability / behavioral outcome]—[mechanism 1], [mechanism 2], and [developer/system guarantee]. - Must be completely understandable by any engineer in under 5 seconds without reading the code diff.
- Immediately below the headline, insert a single 1–2 sentence
- Demo & Screencast Links (Conditional — High-Visibility Placement):
- When a demo link, screen recording, Loom, asciinema, or video
attachment URL is provided, it MUST ALWAYS appear directly
between the brief overview paragraph (
TL;DR:) and the bullet list, separated by single blank lines:[Headline / Subject] [Brief Overview Paragraph] Demo: https://... - [Bullet 1] - [Bullet 2] - Prohibit Buried Demos (Anti-Pattern): Never bury demo, video, or
screencast links inside the
Verification/TESTEDsection, after the bullet points, or at the bottom among metadata footers. Visual proof must be immediately visible to reviewers before reading granular bullets.
- When a demo link, screen recording, Loom, asciinema, or video
attachment URL is provided, it MUST ALWAYS appear directly
between the brief overview paragraph (
- Thematic Capability Bullets (
What's New:/Changes:/Fixes:):- Synthesize changes into 3–5 punchy bullets focused on architectural intent and user-visible behavior.
- Subsystem-Level Abstraction: Write at the architectural subsystem level: referencing "the User service", "the database schema", or "the feature carousel container" is encouraged.
- Strictly Prohibited in Summaries & Bodies:
- Design canvas / tool node IDs (e.g.,
node-id=...,6771-37402). - CSS hex codes and color values (e.g.,
#dadce0,#f8f9fa). - Pixel or rem dimensions (e.g.,
40px,8px). - CSS class selectors or HTML element tags (e.g.,
.landing-carousel-container,<div>). - Variable names, signal names, and proto/schema field names.
- Touched file lists or mechanistic diff recitations.
- Design canvas / tool node IDs (e.g.,
- Forbid Diff Accounting: Never inventory modified files, internal helper functions, styling pixel adjustments, or internal state/signal names.
- Prohibit Bare Code Leads: Never start a bullet with a raw file name, class name, or mechanical code edit.
- Mandatory Thematic Anchors: Every bullet MUST lead with a bold,
capability-oriented anchor or architectural invariant:
* **Guided Workspace Onboarding**: ...* **Proactive Session Validation**: ...* **Immersive Overlay Presentation**: ...* **Automated Fixture Preparation (Smart Gate)**: ...
- Voice & Tone:
- Active, present-tense verbs (
Reads...,Runs...,Provides...,Evaluates...). - Focus on the what and why (user capability, invariant guarantees, developer commands) rather than internal signal mechanics, local variables, or pixel measurements.
- Mention concrete developer-facing commands (e.g.,
./run.sh,npm run dev, CLI flags) or URLs where applicable to provide operational clarity.
- Active, present-tense verbs (
- Side Effects Section (
### Side Effects- Strictly Conditional):- Include this section only when a change introduces genuine breaking API contract changes, database schema migrations, deprecations, or service downtime risks.
- Omit the section entirely for standard additive features, internal refactors, UI updates, or bug fixes.
- Never output placeholder text like
NoneorN/A, and never re-list internal routes, helper wiring, or file touchpoints as side effects.
- TESTED / Verification Section (
### TESTED):- Dedicated verification section documenting:
- Automated unit and integration test pass counts (e.g.,
pytest,npm test,cargo test). - Benchmark metrics, empirical pass rates, and confidence intervals.
- UI screenshot URLs (e.g., PR attachments, image links) or test artifact links.
- Local installation or deployment test commands (
install.sh --target=globalornpm test).
- Automated unit and integration test pass counts (e.g.,
- Dedicated verification section documenting:
Subsystem-Level Formatting Contrast (Few-Shot Reference):
<!-- POOR: Too Granular / Nuts-and-Bolts (Anti-Pattern) --> Add styling to .carousel-container in landing.scss Update .carousel-container to have background #f8f9fa, border 1px solid #dadce0, border-radius 40px, and padding 8px per Figma node-id 6771-37402. Also adjust dark theme background to #1e1f20 and border to #444746.<!-- PREFERRED: Subsystem-Level Abstraction --> [UI] Add container styling and theme support to landing feature carousel TL;DR: The landing page feature carousel now features a rounded container frame with surface backgrounds, subtle borders, and concentric interior padding aligning light and dark visual hierarchy with landing presentation guidelines. Demo: https://asciinema.org/a/demo12345 What's New: * **Container Architecture**: Wraps the landing page feature carousel in a rounded container frame with surface backgrounds and subtle borders. * **Theme Adaptability**: Aligns light and dark visual hierarchy with landing presentation guidelines. * **Proportional Spacing**: Implements concentric interior padding across carousel slides. ### TESTED * Unit Tests: `npm test -- --filter=carousel` (12 passed, 0 failed). * Manual verification on light and dark themes across 1280px and 1920px viewports. Closes #402
- Structural Ordering Hierarchy: Enforce the following layout
sequence for all generated commit messages and PR descriptions:
- Description Update/Creation: Crucially, you must then take action to
create a commit with or update the CL/PR description with the summary you
generated, based on the user's choice if clarification was sought. This
means executing the necessary commands or API calls to set or modify the
description in the version control or code review system (e.g.,
GitHub, GitLab).
- Preserve External Anchors on Amend: When performing an Amend
action or updating an existing PR description, preserve issue/ticket tags
(
Closes #123), review links, and durable architectural context. Discard earlier drafts' mechanical file-by-file accounting or stale bullet lists, replacing them with freshly synthesized high-level intent bullets reflecting the overall cumulative diff. - Always Upload/Push Updates: Whether creating a New commit or
performing an Amend action, you must always immediately upload/push
the updates to the remote repository (e.g., run
git push) to ensure the remote PR/branch remains fully synchronized with your workspace. - Markdown Tag: When creating or updating descriptions for review
systems that require a markdown rendering flag (e.g.,
MARKDOWN=trueorMARKDOWN=1), ensure the tag is appended on a new line at the very end of the description to enable Markdown rendering.
- Preserve External Anchors on Amend: When performing an Amend
action or updating an existing PR description, preserve issue/ticket tags
(
Pre-Commit Guardrails (Format, Lint, Build)
Before generating the commit message, you must run automated guardrails to ensure the codebase remains clean, formatted, and compilable. Run these steps in order, using the commands appropriate for the system and project at play:
- Formatting (VCS & Language Native):
- Project/Language Specific: Run the project's standard formatter
(e.g.,
npm run format,prettier --write <changed_files>,black <changed_files>,gofmt,cargo fmt). - Always run specific formatters if available (like
mdformat --in_placeorprettier --writefor Markdown, or project-specific TypeScript formatters).
- Project/Language Specific: Run the project's standard formatter
(e.g.,
- Linting (Static Analysis):
- Run the project's static analysis or linting tools on the changed files
(e.g.,
eslint,pylint,golangci-lint, orbuildifierfor BUILD files). - Ensure there are no syntax errors, style violations, or unresolved import warnings.
- Run the project's static analysis or linting tools on the changed files
(e.g.,
- Compilation & Building (Compilation Guard):
- Run the appropriate build/compilation check to verify the changes do not break the build.
- For Monorepos (Bazel): Run
bazel buildon the modified targets and any immediately affected downstream targets (identified in the Downstream Impact Analysis). - For Standard Projects: Run the project-defined build command (e.g.,
npm run build,tsc,go build,cargo check).
Handling Failures: If any formatting, linting, or building step fails:
- Do not proceed to commit.
- Present the errors clearly to the user.
- Ask the user if they would like to resolve the issues first, or if they want to bypass the guardrails and commit anyway (e.g., for work-in-progress snapshots).
Only proceed to diff analysis and commit message generation after all guardrail passes complete successfully (or the user explicitly chooses to bypass them).
Technical Constraints
- Accuracy: Every claim in the description must be backed by a verifiable change in the diff.
- Tone: Maintain a professional, objective, and technical tone.
- Output Format for Summary: The generated summary content must be
formatted using Markdown.
- Use
#,##, and###for section headers. - Use bulleted (
*or-) or numbered lists for structured information. - Use horizontal rules (
---) to separate distinct sections. - Use double asterisks (
**bold**) for key terms and single asterisks (*italics*) for emphasis. - Use backticks for operational tools, commands, or test suites (e.g.,
npm test,--filter=carousel). Do not backtick-wrap symbols in the headline or leak internal variable/signal names into descriptions.
- Use
- Action Implementation: To apply the description:
- Append
MARKDOWN=true(or the appropriate markdown flag) to the end of the generated Markdown summary if required by the code review system. - If interacting with Git:
- If New commit:
git add . && git commit -m "Generated Message..."followed immediately bygit push(or the appropriate remote push command) to upload the new commit to the remote review system as a new change/pull request (PR). - If Amend:
git add . && git commit --amendfollowed immediately bygit push(or the appropriate remote push command) to push the updated commit/description to the remote review system.
- If New commit:
- If interacting directly with code review APIs, ensure the full
description text sent includes any required markdown rendering tags
(e.g.,
MARKDOWN=true) at the end.- Confirm description update: Verify the description is set in the tool.
- Append
- Change/PR Link: After successfully creating or updating the commit,
always retrieve the change/pull request identifier and present a
clickable link to the user:
- For Git: Extract the change URL or commit hash from the
git pushoutput. - Format: Always present the link prominently in your response, e.g.:
- For Git: Extract the change URL or commit hash from the
- Strict Structural Sequence: Ensure every generated summary strictly
adheres to the defined ordering hierarchy: Headline -> Brief Overview
(
TL;DR:) -> Demo / Screencast Link (conditional; directly below overview) -> Body Bullets (What's New:) -> Side Effects (conditional; breaking only) -> TESTED / Verification (automated test runs, static screenshot URLs) -> Issue Links / Footers (Closes #123, metadata tags). Never bury demo video links inside TESTED or footer sections. - Granularity & Abstraction Level: Always write at the architectural subsystem level (e.g., referencing "the User service", "the database schema", or "the feature carousel container"). Never include design tool node IDs (such as Figma node IDs), CSS color hex codes, pixel dimensions, class selectors, variable names, signal names, proto/schema field names, or touched file lists in commit messages.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

