From dh-skills
Adds a new commit to the **current** Graphite branch by analyzing staged changes, crafting a descriptive message, and using `gt modify --commit`.
How this skill is triggered — by the user, by Claude, or both
Slash command
/dh-skills:commit-to-current-branchThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Adds a new commit to the **current** Graphite branch by analyzing staged changes, crafting a descriptive message, and using `gt modify --commit`.
Adds a new commit to the current Graphite branch by analyzing staged changes, crafting a descriptive message, and using gt modify --commit.
⚠️ MANUAL ONLY — This skill runs ONLY when you explicitly ask to commit. It will never auto-trigger.
Difference from
commit-to-graphite-stack: That skill usesgt createto start a new branch in the stack. This skill usesgt modify --committo stack a new commit on the branch you're already on (no new branch, no amend). Use this when you want to add another commit to the current branch's work.
| Arg | Required | Description |
|---|---|---|
| context | No | Extra context about the change — e.g. the reason, motivation, or any details to weave into the commit message body. |
Confirm Current Branch
git branch --show-current to show which branch the commit will land onmain (or another trunk), STOP and warn the user — they almost certainly want gt create (the commit-to-graphite-stack skill) to start a new branch insteadAnalyze Staged Changes
git diff --cached --stat to see what's stagedgit add before retryingCheck Commit Size
*.spec.*, *.test.*) and lock files (pnpm-lock.yaml, package-lock.json, yarn.lock)git diff --cached --stat -- . ':!*.spec.*' ':!*.test.*' ':!pnpm-lock.yaml' ':!package-lock.json' ':!yarn.lock' and read the summary lineReuse the Branch's Ticket Prefix
git log main..HEAD --pretty=format:"%s" and look for a [FTF-123] / [DEV-123] style prefix in the most recent subjects[TICKET] — use the detected prefix (recommended default)linear-ticket-create skill), then use the new ID[FTF-123] feat: add user authenticationCraft Commit Message
[TICKET] <type>: <description>Present Summary for Review
Commit with Graphite
gt modify --commit -m "message" (the --commit / -c flag forces a NEW commit instead of amending the branch tip)[FTF-123] feat: add login rate limiting
Summary
Adds rate limiting to the login endpoint to mitigate credential stuffing.
Add a sliding-window limiter keyed on IP + email.
Return 429 with a retry-after header when the limit is exceeded.
Test plan
- [ ] Exceed the login attempt threshold and confirm a 429 is returned
- [ ] Confirm the counter resets after the window elapses
[FTF-456] fix: prevent duplicate submit on slow networks
Summary
Disables the submit button while a request is in flight to stop double submissions.
Track an in-flight flag and disable the button while pending.
Re-enable on both success and error paths.
Test plan
- [ ] Throttle the network and click submit twice rapidly
- [ ] Confirm only one request is sent
Before creating the commit, present a summary:
📋 COMMIT SUMMARY
─────────────────────────────────────────
Branch: dev-640/money-input-currency-prefix (gt modify --commit)
Ticket: DEV-640
Type: fix
Title: [DEV-640] fix: clamp MoneyInput cursor after prefix
Files Changed: 2 files
+ 38 insertions, - 6 deletions
Key Files:
📝 src/lib/components/ui/money-input/money-input.svelte
📝 src/lib/components/ui/money-input/money-input.test.ts
Commit Body:
Summary
Keeps the caret from landing inside the "R " prefix.
Clamp the selection start to after the prefix on focus and input.
Add tests covering caret position on empty and populated fields.
Test plan
- [ ] Focus an empty MoneyInput and confirm the caret sits after "R "
- [ ] Type and delete to empty and confirm the caret never enters the prefix
Ready to commit? (yes/no)
Only proceed with gt modify --commit if the user confirms. If the user declines, ask what they'd like to change (message wording, scope, split into multiple commits, etc.) and revise accordingly.
--commit is what makes Graphite stack a fresh commit instead of folding into the tipONLY when you explicitly ask to add a commit to the current branch.
This skill is manual and does not auto-trigger. Examples of explicit requests:
For starting a new branch in the stack, use commit-to-graphite-stack (gt create) instead.
This skill is the "add to the current branch" counterpart in the stacking workflow:
gt create (via commit-to-graphite-stack)gt modify --commit (this skill)gt submit --no-interactive to push the stack to PRsgt modify --commit adds the commit and auto-restacks descendants, keeping the stack consistent.
Provides a checklist for code reviews covering functionality, security, performance, maintainability, tests, and quality. Use for pull requests, audits, team standards, and developer training.
npx claudepluginhub developer-hut/marketplace --plugin dh-skills