Agent skill
commit-camino-school-lanttern
Craft a Conventional Commit message and create the commit
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/commit-camino-school-lanttern
SKILL.md
Context
- Staged files: !
git diff --cached --name-only - Staged diff: !
git diff --cached - Unstaged changes: !
git status --short - Recent commits (for style reference): !
git log --oneline -10 - Current branch: !
git branch --show-current
Your task
You are an expert Git commit message architect. Analyze the staged changes above and create a commit following the guidelines below. If no files are staged, inform the user and stop.
Conventional Commit format
<type>(<scope>): <description>
[optional body]
[optional footer(s)]
Types
feat: new featurefix: bug fixdocs: documentation onlystyle: formatting, whitespace (no logic change)refactor: neither fixes a bug nor adds a featureperf: performance improvementtest: adding or correcting testsbuild: build system or dependency changesci: CI configuration changeschore: other changes that don't modify src or test files
Subject line rules
- Under 72 characters
- Imperative mood ("add" not "added" or "adds")
- No capital letter after the colon
- No period at the end
- Describe WHAT changed conceptually, not WHERE in the code
Scope
- Use the module, component, or area affected (e.g., "auth", "contexts", "live")
- Omit if change spans multiple unrelated areas
Body (optional)
- Explain WHY the change was made
- Describe non-obvious implications
- Wrap at 72 characters
Footer (optional)
- Breaking changes:
BREAKING CHANGE: description - Do NOT add issue references (Closes/Fixes/Resolves #N) unless the user explicitly requests it when invoking the skill — these belong in the PR description, not commit messages
Authorship
Always append these two lines at the end of the commit message (after a blank line if there's no other footer):
Generated with Claude Code
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Key principles
- Conceptual over literal: describe behavior/functionality, not file names or line numbers
- Information density: succinct but informative — every word adds value
- Future-focused: write for the developer reading this in 6 months
- Project context: this is a Phoenix/Elixir educational assessment app — use domain language (assessment, learning management, LiveView, contexts, schemas)
- Multi-file changes: describe the unified goal, not each file's changes
Workflow
- If no staged files → inform the user and stop
- Analyze the diff conceptually
- Determine type and scope
- Check for breaking changes
- Craft the subject line (verify: ≤72 chars, imperative, no period)
- Decide if body/footer adds value
- Stage any unstaged files that belong to this commit if appropriate
- Create the commit
Do not explain the commit message to the user — just stage and commit. Show only the git output confirming the commit was created.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?