Repository navigation
fix(agents): make work-on-issue pass the hooks and use the new org - #137
Conversation
…g links The skill's CI step ran `gh pr checks`, which the repo's own prefer-github-mcp hook denies. Step 9 now reads check status through mcp__github__pull_request_read (get_status) and waits with `gh run list` and `gh run watch`, which the hook allows. The hook is unchanged. The skill hardcodes brazostech/cscs.dev instead of the old org. scripts/test-agent-hooks.sh extracts every command the skill instructs, feeds each through the hook, and expects no deny, with negative controls so it cannot pass vacuously. CI runs it in the build job. The GitHub links in the Hero, Footer and about page point at the brazostech org. The .claude README usage line takes an issue number. Closes: #88 Refs: #90 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
✅ Deploy Preview for cscsdev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Report a crashing hook as a failed check instead of aborting silently, skip inline spans that follow "never" (prohibitions, not instructions), and run the test before npm ci so a regression fails fast. The skill's CI step now says to ignore a cancelled run for an older commit. Refs: #88 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review verdictsThree cold reviews ran: correctness, tests, and fit/supply chain. None found a blocker. Two majors are real. The correctness reviewer checked the MCP tool names and methods against the GitHub MCP server docs, and checked
The tests reviewer ran about 20 extraction mutants:
No founder decision is needed. |
Review findings on the work-on-issue CI step: get_status returns only legacy commit statuses (Netlify), not the Actions check runs, so the Actions result now comes from gh run watch and gh run view. The step caps the pending wait, covers watch timeouts, and reruns a cancelled run once. The skill's trailer and issue_write call are corrected, and the README documents the github MCP server the skill needs. The hook test now checks every skill under .claude/skills/, handles ~~~ and unclosed fences, scans for denied gh subcommands anywhere in the text, self-tests the extractor, asserts anchors, and verifies that settings.json registers the hook under the Bash matcher. Refs: #88 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Refs: #88 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Fix round verified by a cold verifier. Every fix verdict is confirmed:
For the verifier's one remaining gap, |
Summary
mcp__github__pull_request_read(get_status), and waiting usesgh run listandgh run watch. The hook is unchanged.brazostech/cscs.devrather than the old org. It sits in MCP calls that need literal values, so deriving from the git remote would add steps.src/components/Hero.tsx), Footer (src/components/Footer.tsx) and About page (src/pages/about.astro) now go tohttps://github.com/brazostech(exists, checked withgh api; the oldThe-Read-Onlysorg now returns 404). The README badge already pointed atbrazostech/cscs.dev. No otherThe-Read-Onlysreferences remain.scripts/test-agent-hooks.shextracts every command the skill instructs, feeds each throughprefer-github-mcp.sh, and expects no deny. It has deny and allow controls, an extractor self-test fixture, a raw scan for the hook's pattern, per-source floors and anchors, checks every.claude/skills/*/SKILL.md, and assertssettings.jsonregisters the hook. NewTest agent hooksstep in thebuildjob;permissionsunchanged..claude/README.mdusage line takes an issue number, not a URL. AGENTS.md, the .claude README and ADR 0009 describe the hook test and the allowedgh runcommands.Test plan
scripts/test-agent-hooks.shpasses on the new skill (16 commands, 7 controls, extractor self-test)gh pr checkscommandsgh pr checksreintroduced fails the test (exit 1)npm run lint,format:check,check,test:run,test:pb,build,build-storybookpass locallybuildjob passesCloses: #88
Refs: #90
🤖 Generated with Claude Code