AgentStack
SKILL verified MIT Self-run

Git Commit

skill-puku0x-agent-skills-test-git-commit · by puku0x

Create Git commit messages following Conventional Commits format with automatic type and scope detection. Use when asked to "commit changes", "create a commit", "write commit message", or when ready to commit staged code. Supports feat, fix, docs, refactor, test, build, ci, chore, and revert types with project-specific scope determination based on file paths and directory structure.

No reviews yet
0 installs
11 views
0.0% view→install

Install

$ agentstack add skill-puku0x-agent-skills-test-git-commit

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Git Commit? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Git Commit Skill

This skill guides the creation of Git commit messages that follow the Conventional Commits format.

When to Use

Use this skill when:

  • Code changes are completed and ready to be committed
  • Need to create a commit message that adheres to project conventions

Commit Message Format

The commit message must follow this format:

[optional scope]: 

[optional body]

[optional footer(s)]

Instructions

  1. Check the staged files using git diff --staged --name-only.

Ask user to stage changes if there are no staged files.

  1. Determine the appropriate commit type based on the staged files.

type must be selected from the following options:

  • feat: New feature or change to existing functionality
  • fix: Bug fix
  • docs: Documentation-only changes (e.g., changes to *.md files)
  • refactor: Refactoring (code changes that neither fix a bug nor add a feature)
  • perf: Performance improvements
  • test: Adding or modifying tests (e.g., changes to *.spec.* or *.spec.*.snap files)
  • build: Changes affecting the build system or external dependencies
  • ci: Changes to CI configuration files (e.g., changes within .github/actions or .github/workflows)
  • chore: Other changes (e.g., changes to *.json, *.config.mjs, *.config.cjs, *.config.js, *.config.ts, .gitignore, .gitattributes, .prettierignore, .prettier)
  • revert: Reverting a previous commit
  1. Determine the appropriate scope based on the staged files and the project structure.

scope should be determined based on the directory structure of the staged files. For example:

  • If staged files are in .claude/ or .mcp.json, use claude
  • If staged files are in .github/, use github
  • If staged files are in .vscode/, use vscode
  • If staged files are in apps/frontend/, use frontend
  • If staged files are in libs/frontend/feature-xxx, use frontend-feature-xxx
  • If staged files are in libs/utils/, use utils
  • If staged files are in the root directory, do not set a scope
  1. Craft a comprehensive and descriptive commit message strictly following the Conventional Commits format.

Important NEVER include \n in the commit message. Always use actual newlines to separate the subject, body, and footer.

Example:

git commit -m "feat(utils): update xxx function

- Add xxx logic in xxx function
- Implement unit tests for xxx function

Co-Authored-By: Copilot "

Notes

  • Important Commit messages must be written in English.
  • If there are staged changes, determine the commit message based only on the staged changes.
  • Always include Co-Authored-By information. The commit message must clearly indicate that it was created with Copilot.

References

  • [Commit message](./references/commit-message.instructions.md)

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.