agentsclimarketplace

Commit

Skill lgtm-hq/ai-skills/skills/commit

Canonical Agent Skills library for Claude Code, Cursor, Codex, and other agents.

Install
npx -y skills add lgtm-hq/ai-skills --skill commit

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Pre-commit workflow and commit guidelines. Use when asked to commit changes. Requires passing lint and tests, signed commits, semantic prefixes, imperative mood.

SKILL.md

3.9 KB, as published. Nobody here has run it

Commit

Pre-commit workflow and commit guidelines.

Pre-commit Checklist

Before making ANY commit:

  1. Run the lint skill's workflow — all checks must pass with zero issues (abort if any issues remain). Follow the lint skill — full check, no --tools filtering.
  2. All tests must pass (uv run lintro tst)
  3. Where applicable, Docker builds pass

Commit Requirements

  • Every commit MUST be signed/verified
  • Use semantic commit prefixes: fix:, feat:, chore:, docs:, refactor:, test:, build:, ci:, perf:, style:
  • Commit messages MUST be in imperative mood ("Add feature" not "Added feature")

Commit Granularity

Make incremental, logical commits rather than one large commit:

  • Group related changes (e.g., all logging for one subsystem)
  • Separate concerns (e.g., bug fixes vs features vs docs)
  • Each commit should be independently reviewable and revertable
  • Use judgment: 1 commit per file is too granular, 1 commit for everything is too coarse

Good groupings:

  • feat(logging): add subprocess execution logging (one component)
  • feat(logging): add config parsing logging (related files)
  • docs: add debugging guide (documentation separate from code)

Bad groupings:

  • One commit with 11 files touching 4 different concerns
  • 11 separate commits for a cohesive feature

Branch Context Awareness

When working on a new extension or feature branch where all files are new:

  • Every file should show as "A" (added), never "M" (modified)
  • If you see "M" on files that should be new, the commit history needs fixing
  • This indicates commits were made in the wrong order or need restructuring

When modifying an existing codebase:

  • "M" (modified) is expected and correct
  • Focus on logical grouping of related changes

Restructuring Commits

If commits are poorly structured (too large, wrong groupings, or showing modified when should be added):

  1. Find the commit before the problematic ones: git log --oneline
  2. Soft reset to that point: git reset --soft <good-commit>
  3. Unstage all changes: git reset HEAD
  4. Re-add and commit in logical groups with proper messages
  5. Verify with git status that file statuses (A/M) are correct

Usage

When asked to commit:

  1. Run the lint skill's workflow — abort if any issues remain (follow the lint skill — full check, no --tools filtering)

    • Raycast extensions: run uv run lintro fmt/chk first, then npm run lint per the raycast skill (Raycast rules take precedence)
    • Other projects without lintro: use the appropriate lint command from the lint skill
  2. Run tests - abort if any failures:

    • Projects with lintro: uv run lintro tst
    • Raycast extensions: run Vitest if the extension has tests configured (bun test or the extension's test script); otherwise manual smoke test via bun run dev (see the raycast skill)
    • Other projects: use appropriate test command
    • When authoring or modifying a Raycast extension, use the raycast skill for toolchain-specific guidance
  3. Check Docker if applicable

  4. Review changes with git status to plan logical groupings

  5. Stage and commit in logical groups with signed, semantic, imperative messages:

    git add <related-files>
    git commit -S -m "feat: add user authentication"
    
  6. Repeat steps 4-5 for each logical group of changes

Examples

Good commit messages:

  • fix: resolve null pointer in user service
  • feat: add dark mode toggle
  • chore: update dependencies
  • docs: improve API documentation
  • refactor: simplify authentication flow

Bad commit messages:

  • fixed bug (not semantic, past tense)
  • WIP (not descriptive)
  • updates (not semantic, not specific)

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.