Skip to content

Stop the rook skill documenting blanket tool approval (--yes, wildcard grants) - #91

Merged
gauravBansal06 merged 1 commit into
mainfrom
chore/skill-no-blanket-grants
Dec 2, 2026
Merged

gauravBansal06 merged 1 commit into
mainfrom
chore/skill-no-blanket-grants

Conversation

@samyakLambda

Copy link
Copy Markdown
Contributor

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 names git). It applies to docs and helper scripts too.

Rook is that agent. The skill passed --yes in its examples and CI recipe. Rook's own help describes --yes as "approve every tool call this run without asking". The skill also showed 'bash(git *)@explore' as a grant example.

Changes

  • --yes is 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 sync asks for no tool calls, so it needed no flag.
  • New explicit rules: never pass --yes, and never grant a wildcard on a program that can run others (a shell, interpreter, package runner, network tool, git or make). references/headless-contract.md now explains that a rule without * matches exactly one call, and its phase example is 'bash(git status)@explore'.
  • CI recipe: rook sync and rook run run without --yes. Only rules a person has reviewed, each naming one call, go on the rook run line.
  • Command-target example: profiles.md now uses ./bin/refund-agent "{{goal}}" instead of claude -p "{{goal}}", so the docs don't show rook starting another Claude.
  • The .claude/skills/rook/ and .agents/skills/rook/ mirrors are regenerated, and the contract test's fake rook expects sync without --yes.

Tests

  • scripts/test-skill-contract.sh: 17/17.
  • SKILL_FLAGS_SELFTEST=1 scripts/test-skill-flags.sh: all 45 rook command lines match @testmuai/rook 0.1.26.
  • scripts/test-skill-mirrors.sh and scripts/test-skill-installer.sh pass.

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

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
gauravBansal06 merged commit cb525cf into main Dec 2, 2026
4 checks passed
@gauravBansal06
gauravBansal06 deleted the chore/skill-no-blanket-grants branch December 2, 2026 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants