fix(commit-work): replace interactive commands an agent cannot run - #47
Open
unional wants to merge 1 commit into
Open
fix(commit-work): replace interactive commands an agent cannot run#47unional wants to merge 1 commit into
unional wants to merge 1 commit into
Conversation
The staging step recommends `git add -p`, and the message step prefers `git commit -v`. Both are interactive: they take over the terminal and wait for input, so an agent running this skill cannot complete them. `git restore --staged -p` has the same problem. Stage explicit paths instead, unstage by path, and supply multi-line messages via `git commit -F -` or repeated `-m` flags. Hunk-level splitting is called out as the step to hand back to a human. Also note that a repository's own commit rules take precedence, since repos that ban `git add .` and `git add -p` in AGENTS.md currently contradict this skill. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G8tfUyynnULymhHvohRHZx Signed-off-by: unional <homawong@gmail.com>
10 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
commit-workis written for an agent, but three of its steps tell the agent to run interactive commands. Interactive git commands take over the terminal and block on input, so an agent cannot complete them — it either hangs or has to skip the step.git add -p" and "git restore --staged -p"git commit -v"In practice this means the skill's staging step is unusable as written, and agents fall back to
git add .— the opposite of what the skill is trying to achieve.Change
git add <path> ...), withgit add ./-Acalled out as the thing to avoidgit commit -F -or repeated-m, instead ofgit commit -vOne line added near the top noting that a repository's own commit rules take precedence. Repos that ban
git add .andgit add -pin their AGENTS.md currently contradict this skill outright, and it is worth saying which wins.No behavior removed, no restructuring — the workflow, headings, and step numbering are unchanged.
Notes
dist/plugins/commit-work/skills/commit-work/SKILL.mdis regenerated;python3 scripts/build_plugins.pyreproduces it exactly.🤖 Generated with Claude Code
https://claude.ai/code/session_01G8tfUyynnULymhHvohRHZx