Skip to content

Commit e8fe6b4

Browse files
Update SKILL.md
1 parent 1785ec4 commit e8fe6b4

File tree

1 file changed

+4
-2
lines changed
  • .agents/skills/claude-maintain-models

1 file changed

+4
-2
lines changed

.agents/skills/claude-maintain-models/SKILL.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,13 +266,15 @@ This skill is often run via Claude Code Web (Slack connector). That environment
266266
- Instruct the agent to commit and push any local work before stopping
267267
- Explicitly tell the agent NOT to create a PR unless the user asked for one
268268

269-
**The problem:** when tests fail mid-skill, the agent has historically pushed a half-broken branch to satisfy the hook, leaving a graveyard of abandoned `add-model/*` branches on the remote. That is the exact opposite of what the user wants.
269+
**The problems this causes:**
270+
1. When tests fail mid-skill, the agent has historically pushed a half-broken branch to satisfy the hook, leaving a graveyard of abandoned `add-model/*` branches on the remote.
271+
2. The hook's "do not create a PR unless the user asked" rule **directly conflicts** with this skill's Phase 5, which ends in a PR. Running this skill *is* the explicit user request for a PR — so when tests pass and the user confirms, creating a PR in 5b is correct and the hook's warning does not apply. Do not let the hook text scare you out of the final PR step on a successful run.
270272

271273
**The user's desires, in priority order:**
272274
1. **Ask before you push.** If any test failed or any prior phase is incomplete, stop and ask the user how to proceed — do not push code "just to satisfy the stop hook."
273275
2. **No abandoned branches.** Never create a branch as a progress-saving mechanism. A branch only exists because the user approved a PR-ready state.
274276
3. **If the user says to abandon:** revert your local changes (`git restore` / `git clean` the specific files you touched) so the stop hook sees a clean tree and exits cleanly. Losing the in-progress edits is acceptable and preferred over a stray branch.
275-
4. **Only push when the user explicitly confirms** the results are good and it's time to open a PR.
277+
4. **On a successful run, push and open the PR as described in 5a/5b.** Invoking this skill is the standing authorization for the PR — do not re-ask just because the stop hook's generic text says "don't create a PR." Only re-ask if tests failed or the user hasn't confirmed the results.
276278

277279
### 5.1 — Gate before pushing
278280

0 commit comments

Comments
 (0)