ワンクリックで
commit
Create a git commit following conventional commit format. Use when the user explicitly asks to commit changes.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Create a git commit following conventional commit format. Use when the user explicitly asks to commit changes.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | commit |
| description | Create a git commit following conventional commit format. Use when the user explicitly asks to commit changes. |
Create a git commit following these rules exactly. Work through each step in order and stop immediately if a step reveals a problem.
If the user provides a commit message in their request, use it as the commit message (still apply formatting rules and run all steps). If no message is given, determine the message from the staged/modified changes.
Run these in parallel:
git status — identify staged, unstaged, and untracked filesgit diff — unstaged changesgit diff --cached — staged changesgit log --oneline -5 — confirm commit style convention in useIf there are no changes at all (nothing staged, nothing modified), stop here and say so. Do not create an empty commit.
Read the current branch from the git status output above.
If the branch is main or master:
<branch>. Commits to main/master are not allowed. Switch to a feature/* branch first."Only allow commits on branches matching feature/*.
Before staging anything, scan all modified and untracked files for leaked secrets. Check for:
-----BEGIN (RSA |EC |OPENSSH )?PRIVATE KEY-----AKIA[0-9A-Z]{16}gh[pousr]_[A-Za-z0-9]{36,}sk-ant-apisk-proj-Use git diff and git diff --cached output — do not scan binary files.
If a secret pattern is found, stop immediately. Report the file and pattern. Do not proceed to staging.
If any changed files are in skills/, agents/, steering/, docs/, or README.md, run:
bash ~/.kiro/hooks/doc-consistency.sh
If it reports drift, stop and show the output. Tell the user which doc files need updating before the commit can proceed.
Skip this step if no changed files match those paths.
For each staged file, check whether any doc references it but wasn't also staged:
# For each staged file path, grep docs/ for references to it
git diff --cached --name-only | while read -r f; do
grep -rl "$f" docs/ 2>/dev/null
done
If a doc references a staged file but the doc itself is NOT staged, warn:
"docs/reference/skill-catalog.md references skills/codebase-audit/SKILL.md which was modified but the doc wasn't updated. Continue anyway?"
Wait for user confirmation before proceeding. If the user says no, stop and let them stage the doc update first.
Skip this step if no docs/ directory exists.
Commit message format — TICKET-ID - type: short description
Extract the ticket ID from the current branch name. For example:
feature/MTOPS-5324 → ticket ID is MTOPS-5324feature/PROJ-123 → ticket ID is PROJ-123Pattern: strip the prefix before the last / to get the ticket ID.
Format: <TICKET-ID> - <type>: <description>
| Type | When to use |
|---|---|
feat: | New feature or capability |
fix: | Bug fix |
docs: | Documentation only |
refactor: | Code restructure, no behavior change |
chore: | Build, tooling, config, dependencies |
infra: | Infrastructure, deployment, CI/CD |
Examples:
MTOPS-5324 - feat: add eam-ecs-bounce safe ECS rolling restart toolMTOPS-5324 - docs: restructure README and add per-script docsMTOPS-4450 - fix: correct NiFi pod restart timeout handlingRules:
Use the diff size and nature to decide — not every commit needs a body.
| Condition | Body? | Why |
|---|---|---|
| 1-3 files, simple change | No | Subject line is enough |
| 4+ files or new feature/tool | Yes | Summarize what it does and key capabilities |
| Bug fix with non-obvious root cause | Yes | Explain what was wrong and why the fix works |
| Refactor touching many files | Yes | Explain the motivation and what changed structurally |
| Docs-only reorganization | No | The diff is self-explanatory |
Body format — blank line after subject, then:
Stage files by name. Never use git add -A or git add . — they risk including unintended files.
Only stage files that are directly part of this commit's intent. If there are unrelated changes mixed in, ask the user what to include before staging.
Pass the message via HEREDOC to preserve formatting:
git commit -m "$(cat <<'EOF'
type: subject line
Optional body explaining why.
EOF
)"
Run git log --oneline -1 and git status. Show both outputs so the user can confirm.
--no-verify. Report the failure and ask the user how to proceed.Audits agents, prompts, skills, knowledge, and documentation for gaps, inconsistencies, and improvement opportunities. Proposes changes for user approval. Triggers on "agent-audit", "audit agents", "review config", "what can we improve".
Use before any creative work or spec creation. Explores intent, challenges assumptions, and produces specs. Triggers on "brainstorm", "let's design", "spec out", "define requirements", "write a spec", "challenge this", "poke holes", "what am I missing".
Detects documentation drift after structural changes. Dispatches parallel specialist reviewers and auto-fixes. Triggers on "check my docs", "audit docs", "doc drift", "check doc drift", or auto from post-implementation when tracked categories change.
Automated post-implementation workflow. Triggers when the orchestrator receives DONE from an implementation subagent. Runs quality gate, doc staleness check, auto-review, and improvement capture.
Periodic codebase health check. Use when the user says "health check", "technical debt", "what needs attention", "codebase audit", "codebase health".
Takes a spec phase and generates an execution plan with parallel stages, agent routing, review gates, and verification criteria. Use before dispatching implementation work. Triggers on "plan execution", "generate execution plan", "how should we execute this", or internally when the orchestrator is about to implement a spec phase.