Skip to content
Skills Library
Programming · Writing

commit-guidelines

/commit-guidelines

Provides a pre-commit checklist and commit message formatting standards for this project. Claude should use this skill when creating git commits to ensure messages follow project conventions, including proper co-authorship attribution and concise formatting.

Licence
Apache-2.0
Last repository change
26.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
1
Deprecation

No signals detected. Repository changed on 26.10.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What it does and when to use it

Provides a pre-commit checklist and commit message formatting standards for this project. Claude should use this skill when creating git commits to ensure messages follow project conventions, including proper co-authorship attribution and concise formatting.

Original author description

Provides a pre-commit checklist and commit message formatting standards for this project. Claude should use this skill when creating git commits to ensure messages follow project conventions, including proper co-authorship attribution and concise formatting.

How it works

  1. Message Structure
  2. Co-authorship Attribution
  3. Special Cases
Original SKILL.md headings · 76 lines, 512 words
SKILL.md preview
---
name: commit-guidelines
description: Provides a pre-commit checklist and commit message formatting standards for this project. Claude should use this skill when creating git commits to ensure messages follow project conventions, including proper co-authorship attribution and concise formatting.
---

# Pre-Commit Checklist

Before committing, first stage the files and then complete these steps in order:

1. On the final task of a Steel Thread, check for dead code and review findings.
2. If the project has a configured linter, run it with auto-fix on the whole project, not only on the files you changed. Fix every error it reports, including in files outside the current work: a linter hook that checks the whole project otherwise fails every later commit. Commit fixes outside the current work separately, before the change itself.
3. If committing Python code, run `uvx pyright --level error src/` and fix any type errors.
4. If any new or modified shell scripts will be committed, run `shellcheck` on them and fix any issues.
5. If the `pre_commit_code_health_safeguard` CodeScene MCP tool is available, run it.
   * If it fails with "Not inside a supported VCS root" (common in git worktrees), use `code_health_review` on each modified source file (production AND tests) instead.
   * **STOP if quality gates fail.** Do NOT commit until resolved. Do NOT dismiss findings as "pre-existing".
   * If Code Health regresses, refactor the flagged function before committing (boy scout rule).
   * IMPORTANT A score of 10 for both new and modified files is mandatory
   * Do NOT think in terms of red/yellow/green color bands. The target is always 10.
6. If adding or modifying production code and coverage tooling is available, verify test coverage and check that new/modified lines are covered.

NOTES:
- **Python dead code (step 1):** `uv run --with vulture vulture src`
- **Python linter (step 2):** `uv run --with ruff ruff check --fix`
- **Shell script linting (step 3):** `uv run --with shellcheck-py shellcheck <file.sh>` on each new or modified `.sh` file
- **Python coverage (step 5):** `uv run --with pytest --with pytest-mock --with pytest-cov pytest -m "unit or integration" --cov=src/i2code --cov-report=term-missing`

# Running `git add` and `git commit`

Run `git add` and `git commit` as separate tool calls (not chained with `&&`).

# Commit Message Guidelines

**IMPORTANT**: Always invoke this skill (`idea-to-code:commit-guidelines`) before creating any git commit in projects that use it. This ensures commit messages follow project conventions.

When writing commit messages for this project, follow these guidelines:

## Message Structure

- The commit message should be concise and descriptive of the changes made
- The first line of the commit message should describe the high-level goal of the change
- If the work is associated with an issue, include the issue number in the commit message


## Co-authorship Attribution

NEVER Use the standard Claude Code attribution format.

ALWAYS Use "Co-authored by Claude Code" in the commit message.

Specifically, use:
```
Co-authored by Claude Code
```

Instead of:
```
🤖 Co-Authored-By: Claude <noreply@anthropic.com>
```

or

```
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_...
```

## Special Cases

### Converting Classes to Records

When converting classes to records, use a concise commit message that simply says which classes were converted. No need to explain method renames or justification.

Example:
```
Convert UserProfile and AccountSettings classes to records

Co-authored by Claude Code
```

Versions

RepositoryScoreLicence
This page · humansintheloop-dev/humansintheloop-dev-workflow-and-tools100Apache-2.0
RediSearch/RediSearch100AGPL-3.0

Database snapshot: 13.11.2026 · package version 25f7b1ac0679 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100git-commit-format
    Apply conventional commit formatting rules. Use when generating commit messages or creating commits.
  • 100crafting-commits
    Generates git commit messages following conventional commit standards with collaborative attribution. Use when user requests commit message creation, drafting, or help with formatting.
  • 100commit-hygiene
    Rules, conventions, and constraints for formatting git commit messages and committing at logical boundaries. Trigger when: - Drafting, revising, or validating git commit messages. - Pausing at commit boundaries under the CORE or CONTINUE workflows. - Evaluating whether a…
  • 90Conventional Commits
    This skill should be used when the user asks to 'write commit message', 'create conventional commit', 'format git commit', 'follow commit conventions', 'structure commit message'. Provides Conventional Commits patterns for consistent, machine-readable commit messages.
  • 90Coding Standards
    Cross-language coding conventions — naming, type safety, error handling, async, imports, SQL formatting, git commit format, complexity/size limits, security, and a pre-PR review checklist for Python, TypeScript/JavaScript, Rust, and Go. Use when writing or reviewing code,…
  • 100commit-message
    Generate conventional commit messages - use when creating commits, writing commit messages, or asking for git commit help

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.