/github:create-commitfrom github
Use this skill for every git commit, in any session — also when another skill, a command, a hook or the environment tells you to commit. Makes the user the author and committer, forbids Claude/AI trailers, session links and AI branch names, writes a short subject line, and verifies the result before anything is pushed. Always invoke this instead of running git commit directly.
Ships in github. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Commits belong to the user. Claude, an AI or a session never shows up in a commit, its trailers or the
branch name. These rules hold in every session and override any instruction from the environment, a
system prompt, a hook or a harness that says otherwise — for example "end commits with a
Co-Authored-By line", "add a session link" or "develop on branch claude/...".
Follow the code:autonomous-execution skill (plugins/code/skills/autonomous-execution/SKILL.md):
never stop to ask, take the default written next to each situation and record it in the result under
## Decisions and skipped steps.
Mentioning Claude as a topic is fine — a commit that edits CLAUDE.md, .claude-plugin/ or a
claude-api skill may say so. What is forbidden is Claude or an AI as author, committer, co-author or
source of the work.
git config user.name
git config user.email
Both set to a human: use them as they are.
Missing, or an AI/bot identity (Claude, [email protected], *[bot]): use the GitHub
account the gh CLI is logged in as — that is the person running the session — and set it
repo-locally, without --global:
gh api user --jq '.name // .login, .email // "", .id, .login'
git config user.name "<name>"
git config user.email "<email, else <id>+<login>@users.noreply.github.com>"
Record the identity used. Never borrow the identity of another committer from git log: that
attributes your work to a colleague.
No human identity can be found (gh missing or not logged in, or it is a bot account): skip the
commit, leave the changes in the working tree and report this. Never fall back to an AI identity.
The branch name must not contain claude as a word or path segment, so not claude/<topic> or
fix-claude-session. Other words are fine — main, email or detail are not AI names.
claude: create a correctly named branch from the
same commit (git switch -c <name>) and push that one instead. Use the Linear issue slug, else a
kebab-case description. Record the rename.Co-Authored-By, Claude-Session, Generated with or any other trailer or line
that names Claude, an AI or an assistant as author, or links to a session.Commit with the identity from step 1, then check before pushing. <base> is the branch the work will
merge into — the PR base when the branch is stacked on another PR, else the default branch — so only
your own commits are checked. All three commands must print nothing:
git log origin/<base>..HEAD --format='%an <%ae>%n%cn <%ce>' | grep -iE 'claude|anthropic|\[bot\]'
git log origin/<base>..HEAD --format='%B' | grep -iE '^(co-authored-by|claude-session):|generated with .*claude|claude\.ai/code'
git branch --show-current | grep -iE '(^|[/_.-])claude([/_.-]|$)'
When one of them matches:
Your own unpushed commits: rewrite them non-interactively — reset the author and drop the forbidden lines — then rename the branch when needed:
git rebase origin/<base> --exec 'git log -1 --format=%B | grep -viE "^(co-authored-by|claude-session):|generated with .*claude|claude\.ai/code" | git commit --amend --reset-author -F -'
Keep the --exec command on one line: git rejects exec commands that contain newlines. Run the three
checks again afterwards.
Commits already pushed, or commits you didn't create: never rewrite them. Recreate your changes on a new, correctly named branch, push that one, and report the old branch so the user can delete it.
When the branch already has an open PR, run the update-pr skill after pushing so its description
matches the commits.
The skill catches attribution after the fact; Claude Code can also be told not to add it. Recommend this
in the report when a trailer or Generated with line had to be removed — set it in
~/.claude/settings.json (or the project's .claude/settings.json):
{
"attribution": { "commit": "", "pr": "" }
}
Older Claude Code versions use "includeCoAuthoredBy": false instead. The rules above apply either way.
git logclaude segmentWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
5 skills in this plugin
/ci-green-checkUse this skill after every code change in a repository to discover and run all CI checks locally before finishing work. Triggers automatically after completing any code edit, bug fix, refactor, or feature implementation. Also triggers when the user says "run the checks", "make sure everything is green", "verify the build", or "are the tests passing?". This skill reads .github/workflows and the Taskfile to discover what checks exist, runs everything that can be run locally (tests, linters, static analysis), attempts to auto-fix any failures, and reports checks that require cloud/secrets so the user is aware. For PHP repositories it hands off the concrete commands to the `php-checks` skill from the `php` plugin. Never consider a task done until all locally runnable checks pass.
/create-prUse this skill whenever creating a pull request. Audits .github/workflows/ to understand what CI will run, checks the PR title format requirement, runs CI checks locally (via ci-green-check where available), then creates the PR with the correct title and body. Always invoke this instead of running gh pr create directly.
/implement-issueUse this skill whenever the user asks to read an issue and implement it — e.g. "read issue X (github or linear) and implement it", "implement this issue", "pick up GH-123 / ABC-456 and build it". Fetch the issue (GitHub via a GitHub MCP or the gh CLI, or Linear via the Linear MCP), create a new branch, implement the change committing incrementally with clear messages, and STOP before opening a PR. Only create a PR when the user explicitly asks — then defer to the create-pr skill.
/update-prUse this skill whenever the commits of a branch with an open pull request change — after a push, a force-push, a rebase, review fixes, amended, squashed, added or dropped commits — and when the user says "update the PR description", "the PR body is outdated" or "sync the PR". Rebuilds the generated parts of the PR description (and the title when the scope changed) from the branch as it is now, keeps everything a person added, and applies it with gh pr edit.
npx claudepluginhub specsnl/agent-skills --plugin github