Commit changes to git
A skill for an AI agent to help it create well documented and clean pull requests
npx -y skills add yegor256/courier --skill commit-changes-to-gitAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Use this skill when the user wants to commit changes in the working tree of the current Git repository.
SKILL.md
1.4 KB, as published. Nobody here has run it
Scope
Operate on Git repository in current working directory. Refuse to bundle unrelated changes into one commit.
Boundaries
Commit files untouched, never reformatting, linting, testing, or building. Honor hooks and signing unless user asked to bypass them. Land one local commit, never amending, rebasing, force-pushing, or pushing.
Staging
Stage only paths user named, or everything when user said so. Refuse to stage secrets. Warn user about skipped secrets instead.
Message
Respect Conventional Commits standard.
Prepend ticket number to description with # when user named issue.
Derive message from diff and conversation, never from branch name.
Format
Shape commit as type: summary subject, then optional body.
Review
List staged files for user before committing. Show commit subject to user before committing.
Authorship
Limit message to its description.
Skip Co-authored-by: trailers, promotional lines, signatures, and emoji.
Preserve configured author and committer identity.
Example
User fixes typo in README.md and says "commit it".
Stage README.md alone.
Write subject docs: fix typo in README.
Land one commit carrying that subject.
Done
Confirm one new commit appears after run. Stop after single commit lands.