Skip to content
Back to skills

Commit Lint

ASecurity

Validate commit messages against conventional commit format

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
testinggobashapiperformancedocumentation

Works with

  • api

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill commit-lint --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Commit Lint?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Commit Lint
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-commit-lint/badge)](https://www.skillsdirectory.com/skills/david-li0406-commit-lint)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: commit-lint
allowed-tools: Read, Bash, TodoWrite
description: Validate commit messages against conventional commit format
---

# /commit-lint — Commit message validation

Ensure commits follow conventional commit format and pass quality checks.

## Commit Format

```
<type>[scope]: <description>

[body]

[footer]
```

## Commit Types

| Type | Purpose |
|------|---------|
| `feat` | New feature |
| `fix` | Bug fix |
| `docs` | Documentation |
| `style` | Formatting (no code change) |
| `refactor` | Code restructuring |
| `test` | Adding/fixing tests |
| `chore` | Build/tooling changes |
| `perf` | Performance improvement |
| `ci` | CI configuration |
| `build` | Build system changes |
| `revert` | Revert previous commit |

## Pre-commit Checks

Auto-detected based on lock files (bun/pnpm/yarn/npm):

```bash
$PM run format   # Biome formatting
$PM run lint     # Linting checks
$PM run check    # Quality verification
```

## Hook Detection

| File | System |
|------|--------|
| `lefthook.yml` | lefthook (automatic) |
| `.pre-commit-config.yaml` | pre-commit (automatic) |
| Neither | Manual validation |

## Examples

```bash
feat: add user authentication
fix(auth): resolve login validation error
docs: update API documentation
feat!: change API interface

BREAKING CHANGE: Method now requires email parameter
```

## Guidelines

- Keep header under 72 characters
- Use present tense: "Add" not "Added"
- Solo-authored commits only (no co-authorship)
- AI attribution goes in PR description, not commits

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…