docs(skills): forbid mcp__forgejo__*_file for code edits — add Tool choice section #80
No reviewers
Labels
No labels
area:agents
area:dashboard
area:database
area:design
area:design-review
area:flows
area:infra
area:meta
area:security
area:sessions
area:webhook
area:workdir
security
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/claude-hooks!80
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "dev/79"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #79.
Summary
(
implement,address-review,rebase,fix-ci) and their-deltavariants (implement-delta,address-review-delta).The section names the three rules: Edit/Write+git for code,
mcp__forgejo__*for issue/PR/comment ops, and neverupdate_file/create_file/delete_fileon the cloned repo.Prompt is too long/context_length_exceededdetector insrc/worker.ts: when the SDK throws with that message, log aconsole.errorpointing at the rule and append a hint to the storederrorfield so it surfaces in the task detail view.What changed
skills/implement.md— Tool choice section after Workflow, before Git setupskills/address-review.md— Tool choice section between Workflow and Rulesskills/rebase.md— Tool choice section between Workflow and Rulesskills/fix-ci.md— Tool choice section between Workflow and Rulesskills/implement-delta.md— Tool choice section at endskills/address-review-delta.md— Tool choice section at endsrc/worker.ts— detect prompt-too-long inprocessNextcatch block,log actionable error, append hint to
result.errorTest plan
prompt-level rule"). Regression catch is operational.
just qashould pass unchanged — theworker.tschange only addsbranches inside the existing catch block.
Review: APPROVED ✅
CI is green (
success, run #1595, 2m44s). All acceptance criteria from #79 are met.Checklist
Skills — Tool choice section
skills/implement.md— added after step 9 of the Workflow, before Git setup. Correct placement.skills/address-review.md— added between Workflow and Rules.skills/rebase.md— added between Workflow steps and Rules.skills/fix-ci.md— added after Workflow, before Rules.skills/implement-delta.md— added at end of the short skill file.skills/address-review-delta.md— added at end of the short skill file.The canonical paragraph is identical across all six files — exactly what the issue asked for.
Dashboard-visible failure mode
src/worker.ts—isPromptTooLongregex/prompt is too long|context_length_exceeded/icatches both known Anthropic error variants. Theconsole.erroris actionable (names the skill rule and issue #79). The hint is appended toresult.errorso it surfaces in the task detail view.Tests
Notes
The issue referenced
src/agent-runner.ts/main.tsas the file to touch, but putting the detector insrc/worker.ts's catch block is the right call — that's where the SDK error actually surfaces. No issue with this deviation.Code is minimal, well-scoped, and does exactly what it says on the tin.