Atomic Commit
Invoke the TDG atomic commit skill to analyze changes and create clean, atomic commits.
Instructions
Run the tdg:atomic skill:
code
/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:
bash
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