commit · dinerojs — Claude Code skill: commits and installation
This skill reviews Git changes, drafts a Conventional Commits message, and can link the commit to a Linear issue. Use it when you ask an agent to commit.
MIT ★ 6,817 updated 2026-10-29
npx skills add dinerojs/dinero.js --skill commit -a claude-codeWhat commit does
The workflow checks repository status alongside staged and unstaged diffs. If the index is empty, the skill asks what to stage or suggests files from the working tree. It then searches Linear issues using the project and change-related keywords, and asks you to select an issue, say whether the work completes it, or skip linking.
Commit messages follow Conventional Commits, and the skill checks git status after committing. Linking issues requires Linear MCP tools. With no staged files, it pauses for your choice rather than committing automatically. When the commit completes an issue, it offers to update that issue in Linear.
What it helps with
- inspect staged and unstaged changes before committing
- find Linear issues related to a change
- write a commit message in Conventional Commits format
- link a commit to completed or ongoing work
Example prompts for the agent
- Commit the staged changes and check the repository status.
- Search Linear for related issues and ask whether this commit completes one.
- Commit these changes without linking a Linear issue.
How to install commit
1Skills CLI (Vercel)
npx skills add dinerojs/dinero.js --skill commit -a claude-code2Manually: put the files in place
~/.claude/skills/commit/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/commit/
1Skills CLI (Vercel)
npx skills add dinerojs/dinero.js --skill commit -a codex2Manually: put the files in place
.agents/skills/commit/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add dinerojs/dinero.js --skill commit -a cursor2Manually: put the files in place
.cursor/skills/commit/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install dinerojs/dinero.js .claude/skills/commit2Manually: put the files in place
.github/skills/commit/SKILL.md1Skills CLI (Vercel)
npx skills add dinerojs/dinero.js --skill commit -a gemini-cli2Platform CLI
gemini skills install https://github.com/dinerojs/dinero.js --path .claude/skills/commitManually: put the files in place
.devin/skills/commit/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add dinerojs/dinero.js --skill commit -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about commit
How do I install commit in Claude Code?
Run npx skills add dinerojs/dinero.js --skill commit -a claude-code. The skill file is at ~/.claude/skills/commit/SKILL.md.
What does the commit skill do?
It reviews Git changes, helps select a related Linear issue, and creates a commit using Conventional Commits. It checks repository status afterward.
Does commit require Linear MCP?
Linear MCP tools are needed to search for issues and link one to the commit. You can choose to commit without a Linear issue.
Source text
SKILL.md · MIT
--- name: commit description: Create a git commit with optional automatic Linear issue linking. Use when the user asks to commit. --- ## Workflow ### Step 1: Analyze Changes Run these commands to understand what's being committed: ```bash git status git diff --staged git diff ``` If there are no staged changes, ask the user what to stage or suggest relevant files based on unstaged changes. ### Step 2: Find Related Linear Issues Use the Linear MCP tools to search for related issues: 1. **List open issues** in the Dinero.js project: ``` mcp__linear-server__list_issues with: - project: "Dinero.js v2.0.0 Stable Release" - state: "backlog" or "in_progress" or "todo" ``` 2. **Search by keywords** from the changes (function names, file paths, feature areas) 3. Present matching issues to the user in a table: | ID | Title | Status | |----|-------|--------| | SAR-110 | Restructure packages... | Backlog | ### Step 3: User Selection Ask the user using AskUserQuestion: - Which issue(s) does this commit relate to? - Does this commit **complete** the issue (Fixes) or is it **partial progress** (Part of)? Options: - Select from found issues - Enter a different issue ID - No Linear issue (skip linking) ### Step 4: Create Commit Generate a commit message following Conventional Commits format: ``` type(scope): subject Description of changes. [Fixes|Part of] SAR-XXX Co-Authored-By: Claude Opus 4.5 <[email protected]> ``` **Types:** feat, fix, docs, refactor, test, chore, style, perf **Scopes:** core, currencies, calculator-number, calculator-bigint, dinero.js, examples, docs, build, ci ### Step 5: Execute 1. Stage files if needed (prefer specific files over `git add -A`) 2. Create the commit using a HEREDOC for proper formatting 3. Run `git status` to confirm success 4. If the commit completes an issue, offer to update it in Linear using `mcp__linear-server__update_issue` ## Examples ### Completing an issue ```bash git commit -m "$(cat <<'EOF' feat(core): add subpath exports for currencies Implemented exports field in package.json with proper TypeScript support for all subpath entries. Fixes SAR-111 Co-Authored-By: Claude Opus 4.5 <[email protected]> EOF )" ``` ### Partial progress ```bash git commit -m "$(cat <<'EOF' refactor(core): extract currency types to separate module First step in restructuring packages for consolidated dinero.js package. Part of SAR-110 Co-Authored-By: Claude Opus 4.5 <[email protected]> EOF )" ``` ### No Linear issue ```bash git commit -m "$(cat <<'EOF' chore: update .gitignore Co-Authored-By: Claude Opus 4.5 <[email protected]> EOF )" ```
© dinerojs · MIT · dinerojs/dinero.js
Similar skills
All skills for Git and GitHub →commit by other authors comes first.