commit
Git Commit
Guide the user through creating a focused, well-described git commit. This skill works in any Git repository.
Commits happen frequently during development -- they protect against lost work and repository damage. Speed and clarity matter.
Workflow
Step 1: Review Changes
Show the user what has changed so they can decide what to commit.
- Run
git statusto display staged and unstaged changes. - Run
git diff(unstaged) andgit diff --staged(staged) to show the content of changes. - If there are no changes at all (clean working tree with nothing staged), inform the user there is nothing to commit and stop.
Step 2: Stage Files
Determine which files to include in this commit.
- If the user has already specified files to commit, stage those files with
git add. - If files are already staged, skip to Step 3.
- If no files are staged, stage all changed files automatically. If the user specified particular files, stage only those.
Stage specific files by name -- avoid git add -A or git add . as they can accidentally include sensitive files or unintended changes.
Step 3: Commit
Draft a commit message and create the commit.
- Analyze the staged diff to draft a concise commit message:
- First line: imperative summary under 72 characters
- Blank line, then body with context if the change is non-trivial
- Follow repository conventions if visible from recent
git log
- Create the commit with the drafted message.
- Display the resulting commit hash and message.
Use a HEREDOC to pass the commit message to avoid shell escaping issues:
git commit -m "$(cat <<'EOF'
Commit message here
EOF
)"
Error Recovery
Pre-commit hook failure: If a pre-commit hook fails, display the hook's error output. After the user fixes the issue, create a new commit -- never use --amend, because the failed commit did not happen and amending would modify the previous (unrelated) commit.
Before Finishing
After creating the commit, check for leftover changes:
- Remaining changes? Run
git statusafter the commit. If unstaged changes remain, inform the user -- they may be related changes that should be included, or incidental changes that need a plan for when they will be committed.
Constraints
- Never use
--no-verifyor skip hooks unless the user explicitly requests it. - Never use
git add -Aorgit add .-- always stage specific files. - Never amend a commit unless the user explicitly requests it.
- Do not add co-author trailers or attribution to commit messages.
More from caldiaworks/caldiaworks-marketplace
ideation
Turn rough ideas into structured, validated idea documents through collaborative dialogue. Explores context, asks clarifying questions one at a time, proposes alternative approaches with feasibility evaluation, and produces documents ready for requirements definition. Use when: ideation, brainstorm, new idea, explore an idea, I want to build, what if we, let's think about, propose approaches, evaluate this idea, idea document, アイデア出し, 案出し, ブレスト, アイデアを整理, 検討したい.
36requirements-docx
Convert USDM/EARS requirements documents from Markdown to professionally formatted Word (.docx) files for client submission. Generates cover pages, table of contents, headers/footers, and styled requirement hierarchies. Leverages the docx skill for Word file generation. Use when: export requirements to Word, requirements to docx, USDM to Word, convert requirements document, 要件書をWord出力, 要件定義書のdocx変換, Word形式で要件書を作成, 要件定義書をWordに変換.
36usdm
Convert ambiguous user requests into structured USDM requirements documents. Decomposes requirements into Requirement -> Reason -> Description -> Specification hierarchy. Integrates with GitHub Issues, Asana, and Jira tickets as input sources. Use when: create requirements, write requirements document, USDM, decompose requirements, requirements definition, 要件定義, 要件を整理, 要件分解.
33ears
Write unambiguous specifications using EARS (Easy Approach to Requirements Syntax) patterns. Provides 6 sentence templates that eliminate ambiguity: Ubiquitous, Event-driven, State-driven, Unwanted behavior, Optional feature, and Complex. Use when: EARS, specification writing, write specs, 仕様を書く, EARS記法, 仕様を明確化, requirements specification, unambiguous specification.
33skill-creator
Create new skills, improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, update or optimize an existing skill, run evals to test a skill, or benchmark skill performance with variance analysis.
30en-explainer
Explain English technical documents and text in Japanese with contextual understanding. Not a simple translator -- reads the surrounding file or codebase context to provide deeper, more accurate explanations tailored for Japanese-speaking developers. Use when: explain this English, この英文を解説, 英語の解説, en-explainer, what does this mean, この英文の意味, 英文を日本語で説明, ドキュメントを解説, README解説, エラーメッセージの意味, コメントの意味, API仕様の解説, or when the user pastes English text and asks for explanation in Japanese. Also use when the user provides a file path and asks to explain specific English sections, or when they want to understand English code comments, error messages, config files, or technical documentation.
29