create-commit
This skill should be used when the user asks to "commit", "create a commit", "git commit", "commit my changes", "commit staged changes", "make a conventional commit", "write a commit message", or wants to create a well-formatted conventional commit from staged git changes. Handles branch safety checks, automatic commit type detection, message composition following the conventional commits spec, pre-commit hook failure recovery, and optional PR creation.
What this skill does
# Create Commit Create a conventional commit from staged changes. ## Isolation Each invocation operates in complete isolation. Ignore all prior conversation context. Base every decision solely on the current git repository state observed by commands in this invocation. ## Process 1. **Gather all context** — Run one command to collect everything: ```bash echo '=== STAGED ===' && git diff --cached --name-only && echo '=== DIFF ===' && git diff --cached && echo '=== BRANCH ===' && git branch --show-current && echo '=== LOG ===' && git log --oneline -5 ``` If the STAGED section is empty, tell the user nothing is staged and stop. 2. **Branch guard** — If on `main` or `master`, ask whether to create a new branch (`<kebab-description>`, max 50 chars) or commit directly. 3. **Compose commit message** per [Conventional Commits](https://www.conventionalcommits.org): **Format**: `type(scope): subject` or `type: subject` **Types**: | Type | When to use | | ---------- | -------------------------------------------------------------------------------------------- | | `feat` | New functionality in source code that affects client/user-facing behavior | | `fix` | Bug fixes in source code that correct client/user-facing behavior | | `refactor` | Code restructuring without behavior change | | `chore` | Tooling, config, dependencies, non-functional changes | | `docs` | Documentation-only changes | | `style` | Formatting, whitespace, no logic change | | `test` | Adding or updating tests | | `ci` | CI/CD pipeline changes | | `perf` | Performance improvements | | `revert` | Reverting a previous commit | **Key rule**: `feat` and `fix` are reserved for source code changes (`src/`, `lib/`, application code) that directly affect client/user functionality. Config changes, build fixes, dependency updates, and tooling adjustments are `chore` even if they "fix" something — unless the fix corrects a bug experienced by end users. **Scope**: use when changes fall within a single module/component; omit when spanning multiple areas. **Subject rules**: - Must contain verb + subject — `add auth middleware`, not just `auth middleware` - Imperative mood, present tense — `add` not `adds`/`added` - All lowercase, under 72 characters for the entire header - Specific and meaningful — reader understands the change without the diff - Describe actual changes, never meta-tasks — no "trying", "another try", "final fix" **Body** (optional): explain what and why. Separate from header with a blank line. **No trailers**: no `Co-Authored-By` or AI attribution unless explicitly requested. **Good examples**: ``` feat(auth): add jwt token validation fix(parser): handle empty input gracefully refactor: consolidate duplicate helper functions chore: update terraform provider versions ``` **Bad examples**: `feat: bearer login` (no verb), `chore: fix build` (vague), `chore: final try` (meta-task) ### Subject quality rules **Must have verb + subject (action + area):** - Bad: `feat: bearer login functionality` (no verb) - Good: `feat: add bearer login functionality` **Must be meaningful — reader should understand the change:** - Bad: `chore: fix build` (unclear how) - Good: `chore: add env var extract plugin` **Must address a specific area, not be generic:** - Bad: `fix: fix bug` (says nothing) - Good: `fix: change first name type in user schema` **Describe actual changes — never the meta-task:** - Never use words like "trying", "another try", "final fix" — each commit must stand on its own 4. **Commit** — Run `git commit` immediately, do not ask for approval: ```bash git commit -m "type(scope): subject Optional body." ``` No indentation or extra formatting in the message. If the user rejects the tool call with feedback, revise and retry. 5. **Pre-commit failures** — If commit fails due to hooks: - Read error output, apply targeted fixes - If the error mentions commitlint rules (type-enum, scope-enum, etc.), run `ls commitlint.config.* .commitlintrc* 2>/dev/null` at the repo root to find the config, then Read it and adjust the message accordingly - Stage fixes with `git add <specific-files>` (never `git add .`) - Retry up to 3 times, then report remaining issues 6. **Create PR** (non-main branches only) — After successful commit, push and create a PR. Use only these exact commands: - **Ready**: `gh pr create --fill` - **Draft**: `gh pr create --fill --draft` If not specified, ask which one.
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.