Agent skill
commit
Creates atomic commits by invoking TDG and commenting on related GitHub issues.
Install this agent skill to your Project
npx add-skill https://github.com/goffity/claude-km-skill/tree/main/skills/commit
SKILL.md
Atomic Commit
Invoke the TDG atomic commit skill to analyze changes and create clean, atomic commits.
Instructions
Run the tdg:atomic skill:
/tdg:atomic
This will:
- Analyze
git status,git diff, andgit diff --staged - Detect mixed concerns (multiple features, bug fixes + features, etc.)
- Group files by shared purpose
- Present grouping for confirmation
- For each group: stage → review → test → commit → verify
- Final review with
git log
Commit Message Rules
- Use conventional commit format:
feat|fix|refactor|docs|test|chore|perf|style - NO footer - Do not add "Generated with...", "Co-Authored-By...", or any other footers
- Keep messages concise and descriptive
Post-Commit: Issue Comment
After commits are created, automatically comment on the related GitHub issue:
- Find Issue Number - Check
docs/current.mdforISSUE: #Nor extract from branch name/commits - If issue found, comment with:
gh issue comment <issue-number> --body "$(cat <<'EOF'
## Implementation Update
### Changes Made
[List files changed and what was modified]
### Commits
[List commit hashes and messages]
### Status
- Branch: `<branch-name>`
- Ready for: review / merge / testing
EOF
)"
- If no issue found, skip commenting silently
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
distill
Synthesizes related learnings into reusable knowledge base patterns.
security-auditor
Audits code for security vulnerabilities including OWASP Top 10 and authentication issues.
code-reviewer
Reviews code changes for bugs, security vulnerabilities, and performance issues.
example
Saves reusable code examples to the examples library with metadata and tags.
flow
Documents workflow diagrams and process flows with Mermaid diagram support.
share
Shares knowledge across projects by copying to shared-knowledge directory with cross-project metadata.
Didn't find tool you were looking for?