Skip to main content
skill CX Codex

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

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add dinerojs/dinero.js --skill commit -a claude-code
Open on GitHub

What 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-code

2Manually: put the files in place

~/.claude/skills/commit/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/commit/

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.

commit getsentry Drafts Sentry-style conventional commits with issue references and blocks direct commits to main. CX Codex +1 4,900installs commit NeoLabHQ Automates Git commits using conventional commit messages and matching emojis. It checks the active branch, runs pre-commit linters, and suggests splitting complex diffs into atomic commits. CX Codex +1 1,300installs commit parcadei This skill turns session changes into git commits, shows you the plan first, and keeps Claude's name out of the messages. Handy when an agent has piled up edits. CX Codex +1 505installs commit FradSer This skill creates atomic conventional commits through git-agent. Use it when a short intent should become a focused Git commit. CX Codex +1 121installs commit PaulRBerg Composes the commit message from prepared evidence and hands the commit, index reconciliation and push to ai-commit. CX Codex +1 347installs git-commit ilteoood git-commit — a skill for Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, and OpenCode that reads the diff and builds a Conventional Commits message automatically. CX Codex +1 624installs openai-symphony-autonomous-agents reason-machines openai-symphony-autonomous-agents guides the setup of OpenAI Symphony to run autonomous coding agents in isolated branches based on project tracker tickets. CX Codex +1 1,400installs cyrus-setup-repository cyrusagents cyrus-setup-repository registers Git repositories in Cyrus so the agent knows which codebases to work with. Handy on first setup or when a new project joins the queue. CX Codex +1 1,100installs git-commit-workflow laurigates The git-commit-workflow Claude Code skill defines commit-message and staging rules. It helps split related edits into focused commits and review staged changes. CX Codex +1 161installs implement-task-linear PinguApps implement-task-linear — a skill for Claude Code bundles multiple Linear issues into a single branch and pull request. It coordinates ticket states, incremental commits, and pre-PR reviews before merging. CX Codex +1 346installs standup-report davila7 standup-report collects Git commit history, pull request status, and Linear tasks to build daily standup summaries for engineering teams. CX Codex +1 256installs

Project sponsors

Companies that keep this analytics open