Skip to content

bestdeejay-design/agent-skills / skills/commit-lint

commit-lint

Verified

Validate git commit messages against Conventional Commits v1.0.0. Script commit_lint.py reads `git log` (subprocess) of one or more repositories (or stdin with --stdin), parses each commit into type/scope/subject, and reports violations: missing type, invalid type, type case, scope, subject length (default 50), subject capitalization, trailing dot/space, header length (100), body line length (72). Plain-text Markdown-friendly report or JSON (--json). Exit codes: 0 all clean, 1 violations found, 2 error. Pure Python 3 stdlib, offline, read-only. Closes the loop for commit-message-writer and version-bumper.

FileKindSize
SKILL.mdskill md8.4 KB
evals/evals.jsonconfig511 B
references/canonical-patterns.mdmarkdown5.7 KB
scripts/commit_lint.pyscript13.5 KB
skill.jsonconfig1.9 KB

evals/evals.json

View on GitHub
{
  "skill": "commit-lint",
  "version": "1.0.0",
  "runner": "manual-or-agent",
  "tests": [
    {
      "id": "valid-history",
      "prompt": "Lint valid Conventional Commit messages.",
      "assert": [
        "exit code 0",
        "report identifies commits checked"
      ]
    },
    {
      "id": "invalid-history",
      "prompt": "Lint commits with missing type and overlong subject.",
      "assert": [
        "exit code 1",
        "each violation includes commit and reason"
      ]
    }
  ]
}
receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementationStars: 322kUpdated Claude CodeCodexVerifiedInstall
requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirementsStars: 322kUpdated Claude CodeCodexVerifiedInstall
using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallbackStars: 322kUpdated Claude CodeCodexVerifiedInstall
verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions alwaysStars: 322kUpdated Claude CodeCodexVerifiedInstall