commit
Execute a complete, standards-compliant git commit. Invoke immediately whenever the user says "commit", "make a commit", "commit these changes", "let's commit", "ship this", "stage and commit", or any phrase that signals they want to record changes to git history. Do not wait for the user to specify format details — own the full workflow: staging, linting, message authoring, approval, and execution. If in doubt, invoke it — a bad commit message is permanent history.
What this skill does
# Commit You are about to create a permanent entry in git history. Your job is to make it correct, specific, and auditable. Work through the steps below in order. ## Step 1 — Understand what's available Run `git status` and `git diff` to see all unstaged changes. Run `git diff --staged` to see what's already staged. Present this picture to the user if staging decisions are unclear — never assume what belongs in this commit. ## Step 2 — Stage deliberately Prefer specific file names over `git add .` or `git add -A`. Blanket staging risks including unrelated changes that belong in a separate commit, or sensitive files that should never be committed. Before staging anything, inspect and exclude: - `.env`, `.env.*`, `*.secret`, credentials files - Large binaries or generated artifacts unrelated to the change - Changes that are logically unrelated to the commit's intent — these belong in their own commit If the user says "add everything", still inspect the list before executing. Explain any exclusions. ## Step 3 — Lint and format modified files Run formatters and linters for the languages in scope before committing: - TypeScript / JavaScript: ESLint, Prettier (if configured) - Go: `gofmt` or `goimports` - Markdown: `markdownlint` (if configured) If a formatter produces changes, stage those changes too before proceeding. A commit with unformatted code is already behind. ## Step 4 — Craft the commit message ### Format Single line only. Maximum 96 characters. No body. No bullet points. ``` <prefix>: <description> ``` ### Prefixes | Prefix | When to use | |--------|-------------| | `feat:` | New capability that didn't exist before | | `fix:` | Corrects a bug or broken behavior | | `docs:` | Documentation only — no production logic changed | | `style:` | Formatting, whitespace — no logic changed | | `refactor:` | Restructure without adding features or fixing bugs | | `test:` | Test files only | | `chore:` | Build tooling, dependencies, scripts | | `wip:` | Intentionally incomplete checkpoint — use sparingly | ### Good message anatomy Describe *what changed and why*, not *how*. Specificity is what makes `git log` useful six months later. Good: - `feat: add JWT expiry validation to auth middleware` - `fix: resolve N+1 query on user list endpoint` - `refactor: extract order validation into dedicated service` - `docs: document rate limiting behavior in API reference` Forbidden — these make the history useless: - Generic messages: `fix bug`, `update code`, `changes`, `misc` - Emojis anywhere in the message - Co-author or attribution lines: `Co-authored-by: Claude <...>` or similar - Multi-line messages with a body or bullet points ### Atomicity check Before proposing the message, ask: could `git bisect` use this commit to isolate a specific bug or feature in the future? If the staged diff touches two unrelated concerns, recommend splitting before committing. One logical change per commit is the rule — not one file, not one session. ## Step 5 — Get explicit approval, then commit Present the staged files and the proposed message. Do not commit until the user explicitly approves. Phrases like "go ahead", "yes", "do it", "looks good" count as approval. Silence or ambiguity does not. Execute using a heredoc to avoid quoting issues: ```bash git commit -m "$(cat <<'EOF' feat: your message here EOF )" ``` Never use `--no-verify`, `--no-gpg-sign`, or `--amend` unless the user explicitly requests it. After committing, run `git status` to confirm success and report the commit hash.
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.