Repository navigation
Stop the rook skill documenting blanket tool approval (--yes, wildcard grants) - #91
Merged
Merged
Conversation
Claude's plugin directory refused the skills-only rook plugin: "Documented
command starts agent with permissions skipped". Rook is an agent, and the
skill passed `--yes` ("approve every tool call this run without asking") in
its examples and CI recipe, and showed a wildcard grant on git.
- Drop `--yes` from every documented command. Headless, rook refuses a call
no rule covers and names the `--allow` rule; the skill now shows that rule
to the user and passes it only after they approve. `sync` asks for no tool
calls, so it needed no flag.
- Say never to pass `--yes` or a wildcard grant on a program that can run
others; the phase example becomes `'bash(git status)@explore'`.
- The command-target example starts `./bin/refund-agent`, not `claude -p`.
- The contract fixture expects `rook sync` without `--yes`.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KxTgyL5kwZu8ZnQ5DN79eE
gauravBansal06
approved these changes
Dec 2, 2026
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.
Claude's plugin directory refused the skills-only rook plugin (LambdaTest/rook-plugin
plugins/rook-skills, which carries this skill) with a policy finding: "Documented command starts agent with permissions skipped." The policy forbids documented commands that start an agent with its permission prompts off, and grants that put a wildcard on a program that can run others (it namesgit). It applies to docs and helper scripts too.Rook is that agent. The skill passed
--yesin its examples and CI recipe. Rook's own help describes--yesas "approve every tool call this run without asking". The skill also showed'bash(git *)@explore'as a grant example.Changes
--yesis removed from every documented command (SKILL.md,references/ci.md,references/profiles.md). Run headless, as an agent's shell runs it, rook doesn't fail open: a tool call no rule covers is refused, and the refusal names the exact--allow '<tool>(<subject>)'rule that would cover it. The skill now tells the agent to show that rule to the user and pass it only once they approve.rook syncasks for no tool calls, so it needed no flag.--yes, and never grant a wildcard on a program that can run others (a shell, interpreter, package runner, network tool,gitormake).references/headless-contract.mdnow explains that a rule without*matches exactly one call, and its phase example is'bash(git status)@explore'.rook syncandrook runrun without--yes. Only rules a person has reviewed, each naming one call, go on therook runline.profiles.mdnow uses./bin/refund-agent "{{goal}}"instead ofclaude -p "{{goal}}", so the docs don't show rook starting another Claude..claude/skills/rook/and.agents/skills/rook/mirrors are regenerated, and the contract test's fakerookexpectssyncwithout--yes.Tests
scripts/test-skill-contract.sh: 17/17.SKILL_FLAGS_SELFTEST=1 scripts/test-skill-flags.sh: all 45rookcommand lines match@testmuai/rook0.1.26.scripts/test-skill-mirrors.shandscripts/test-skill-installer.shpass.Once this merges, LambdaTest/rook-plugin syncs it and raises both plugin versions, and the directory submission is resubmitted.
🤖 Generated with Claude Code
https://claude.ai/code/session_01KxTgyL5kwZu8ZnQ5DN79eE