axiomatic-induction
The project constitution AND the reasoning method. Apply it in ALL planning and execution of non-trivial work: reason like a…
Stage, write a Conventional Commits message from the actual diff, commit, and push. Use when the user asks to commit, save work to git, or mentions \"/git-commit\" or \"/commit\". Reads the diff rather than the conversation to pick type and scope, groups unrelated changes into
Claude Code
$ npx -y skills add gabrieldabbah/genesis --skill git-commit --agent claude-code
Codex
$ npx skills add gabrieldabbah/genesis --skill git-commit -a codex -y
Cursor
$ npx skills add gabrieldabbah/genesis --skill git-commit -a cursor -y
Gemini CLI
$ npx skills add gabrieldabbah/genesis --skill git-commit -a gemini-cli -y
GitHub Copilot
$ npx skills add gabrieldabbah/genesis --skill git-commit -a github-copilot -y
OpenCode
$ npx skills add gabrieldabbah/genesis --skill git-commit -a opencode -y
Windsurf
$ npx skills add gabrieldabbah/genesis --skill git-commit -a windsurf -y
name: git-commit description: "Stage, write a Conventional Commits message from the actual diff, commit, and push. Use when the user asks to commit, save work to git, or mentions \"/git-commit\" or \"/commit\". Reads the diff rather than the conversation to pick type and scope, groups unrelated changes into separate commits, refuses to stage a secret, and pushes the branch that was just committed. Never opens a pull request — that is the generate-pr skill." license: MIT allowed-tools: Bash, Read argument-hint: "[type] [scope] [description]"
The message comes from the diff, not from the conversation. What you remember doing and what is actually staged diverge constantly — a message written from memory describes a commit that was not made.
Every command here is POSIX shell and runs on macOS, Linux, WSL2 and Git Bash. On native Windows without [Git for Windows](https://git-scm.com/downloads/win), Claude Code runs commands through PowerShell, which cannot execute these — translate them or install Git for Windows. No GNU-only flags are used, so BSD userland on macOS behaves identically. `git` is the only required binary.
git rev-parse --abbrev-ref HEAD # which branch git status --porcelain # what is modified, staged, untracked git diff --staged # if something is already staged, this is the commit git diff # otherwise this is the candidate
**Someone else's staged work is not yours to commit.** A non-empty index you did not create belongs to another session or an interrupted one. Commit only what this task changed — stage those paths by name. `git add -A` sweeps a working tree you have not read.
Commit on the current branch. Read the repository's own branch policy — `CLAUDE.md`, `CONTRIBUTING.md`, the default branch on the remote — and follow it; where it names a working branch, that is where commits go.
committing, unless the operator asked for a commit there specifically.
One logical change per commit. Where the working tree holds two unrelated changes, that is two commits with two messages, staged by path — not one commit with a message that has to say "and".
<type>[optional scope]: <description> [optional body — why, not what; the diff already says what] [optional footer]
| Type | For | |---|---| | `feat` | a new capability | | `fix` | a bug fix | | `docs` | documentation only | | `style` | formatting, no logic change | | `refactor` | no behaviour change | | `perf` | performance | | `test` | adds or updates tests | | `build` | build system or dependencies | | `ci` | CI configuration | | `chore` | maintenance | | `revert` | reverts a commit |
Scope is the area the diff actually touches, taken from the changed paths. Description is imperative and present tense — "add", not "added" — and under 72 characters.
A breaking change takes `!` after the type (`feat!: drop the v1 endpoint`) or a `BREAKING CHANGE:` footer.
Match the repository's existing style before imposing this one: `git log --oneline -20`. A repository that does not use Conventional Commits gets messages in the form it already uses.
git diff --staged --name-only | grep -E '(^|/)\.env($|\.)' | grep -vE '\.(example|template|sample)$' \
&& echo "STOP: an env file is staged"
git diff --staged | grep -nE '(sk-[A-Za-z0-9]{12,}|-----BEGIN [A-Z ]*PRIVATE KEY-----|(api[_-]?key|secret|token|password)[[:space:]]*[:=][[:space:]]*["'"'"']?[A-Za-z0-9_-]{16,})'A hit is read, not assumed: a fixture, a variable name, or a placeholder is fine; a live value is not. Unstage a real secret and say so — a value that reaches a commit is compromised even if the next commit removes it, because the blob stays reachable.
In a public repository, also read the diff for personal names, machine-specific paths, and internal hostnames.
git commit -m "<type>[scope]: <description>"
With a body:
git commit -m "$(cat <<'EOF' <type>[scope]: <description> <body> EOF )"
A commit rejected by a hook is fixed and committed again — not retried with `--no-verify`.
Pushing is the last step of this skill, not a separate request. A commit left local is invisible to every other machine and reads as "not done".
git push origin "$(git rev-parse --abbrev-ref HEAD)"
needs the operator to have asked for it.
locally and report the branch as unpushed.
validated, and say which lanes actually ran.
**Never open a pull request here.** That is the `generate-pr` skill, and it exists for merging a working branch to production.
the default branch.
Ultimate Opus 5 builder. Genesis creates and transforms any setup into the ultimate setup for generation 5 models. Genesis turns an empty folder into a working SaaS, web app, API, or CLI, running autonomously on your machine in Claude Code.
The project constitution AND the reasoning method. Apply it in ALL planning and execution of non-trivial work: reason like a…
Generate a complete pull request when the user asks to create/open a PR, fill the PR template, or mentions "/generate-pr". Fills…
Build a new project from an empty folder, or bring an existing repository up to standard. Use when the user says \"/genesis\",…
Rules for working in a repository where other Claude sessions are editing at the same time — no git writes, no process kills,…
Set a repository up so it cannot merge broken code and cannot quietly rot: continuous integration, automated dependency updates,…
Audit a surface for security problems, score them honestly, and turn each into a task with a fix. Use before declaring work done,…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.