---
name: tryghost-commit
description: "Commit message formatting and guidelines"
license: "MIT"
metadata:
  decimalai-skill-id: "cce6fe61-55d9-4dd6-b173-0f5aaa1e7071"
  decimalai-version-id: "139e2c11-1b99-4183-9a62-8e0d895d6915"
  decimalai-version: "2"
  decimalai-body-sha256: "6997e51d27255d2cf5d7e09262d70371075834cb243f4e0186b3dcf5874af41d"
  decimalai-name: "tryghost/commit"
  decimalai-format: "1"
  decimalai-invocation: "model"
  decimalai-category: "coding"
  decimalai-source: "https://app.decimal.ai/s/tryghost-commit@2/SKILL.md"
---
# Commit

Use this skill whenever the user asks you to create a git commit for the current work.

## Instructions

1. Review the current git state before committing:
   - `git status`
   - `git diff`
   - `git log -5 --oneline`
2. Only stage files relevant to the requested change. Do not include unrelated untracked files, generated files, or likely-local artifacts.
3. Read and follow `.github/CONTRIBUTING.md#commit-messages`. It is the
   source of truth for Ghost's commit conventions.
4. For publishable packages, check whether a release intent is required. A
   package `README.md` is published and requires a release; repository-only
   Markdown such as `AGENTS.md`, changelogs, and package-local
   `docs/` does not.
5. Run `git status --short` after committing and confirm the result.

## Important

- Do not push to remote unless the user explicitly asks
- Keep commits focused and avoid bundling unrelated changes
- If there are no relevant changes, do not create an empty commit
- If hooks fail, fix the issue and create a new commit. Never bypass hooks.
