Ryuu's Skills

Deny Rules

The commands each delivery mode denies, and where that set comes from.

In Claude Code, each install.sh run uses the rule set for the configured delivery mode. With AGENT_RULES set in skills.conf, it writes strengthening and neutral changes under permissions in Claude Code's settings.json (in CLAUDE_CONFIG_DIR, else ~/.claude). Only owned entries change. Formatting can be normalised to the file's indent unit. Each changed group gets a rules line.

Removing a live deny or ask, moving deny to ask, adding an allow, or rewriting an entry whose placeholder path moved weakens the rules. At a terminal the installer lists them ticked, one line per group, and applies the ones you leave ticked. An untick is saved as that group's override. Non-terminal runs leave them on a left line for you to apply by hand. Removing a retired entry is neutral, so it is applied. With AGENT_RULES unset or the file refused, the installer names the reason, and --verbose prints the set. Paste it into permissions yourself. Hooks are written even when rules are not managed. The hooks block is printed only if the settings file refuses the hooks change.

The installer reads the set from the Rule groups table in rule-groups.md, and this page renders the live groups. Each row is a group with an id. A retired group, one no longer recommended in either mode, stays in that file so older pasted copies can be recognised, and is left off this page. Placeholders like {conf} are shown as written and expanded by the installer.

idgroupentrieshands-offprs
mergeMerge a PRBash(gh pr merge:*), Bash(gh stack merge:*)denydeny
force-pushForce or mirror pushBash(git push --force *), Bash(git push * --force), Bash(git push * --force *), Bash(git push -f *), Bash(git push * -f), Bash(git push * -f *), Bash(git push -fu *), Bash(git push * -fu), Bash(git push * -fu *), Bash(git push -uf *), Bash(git push * -uf), Bash(git push * -uf *), Bash(git push --mirror *), Bash(git push * --mirror), Bash(git push * --mirror *), Bash(git push * +*)denydeny
pr-reviewReview a PRBash(gh pr review:*)denydeny
issue-commentComment on an issueBash(gh issue comment:*)denydeny
pr-commentComment on a PRBash(gh pr comment:*)denydeny until the commit guard is wired
skills-confEdit skills.confEdit({conf})denydeny
installerRerun the installerBash(./install.sh *), Bash(sh install.sh *), Bash(sh ./install.sh *), Bash(bash install.sh *), Bash(bash ./install.sh *), Bash({checkout}/install.sh *), Bash(./skills/playbook/bin/skills install *), Bash({checkout}/skills/playbook/bin/skills install *), Bash({agents}/playbook/bin/skills install *), Bash({claude}/skills/playbook/bin/skills install *), Bash(skills install *), Bash(./skills/playbook/bin/skills --root * install), Bash(./skills/playbook/bin/skills --root * install *), Bash({checkout}/skills/playbook/bin/skills --root * install), Bash({checkout}/skills/playbook/bin/skills --root * install *), Bash({agents}/playbook/bin/skills --root * install), Bash({claude}/skills/playbook/bin/skills --root * install), Bash({agents}/playbook/bin/skills --root * install *), Bash({claude}/skills/playbook/bin/skills --root * install *), Bash(skills --root * install), Bash(skills --root * install *), Bash(./skills/playbook/bin/skills update *), Bash({checkout}/skills/playbook/bin/skills update *), Bash({agents}/playbook/bin/skills update *), Bash({claude}/skills/playbook/bin/skills update *), Bash(skills update *), Bash(./skills/playbook/bin/skills --root * update), Bash(./skills/playbook/bin/skills --root * update *), Bash({checkout}/skills/playbook/bin/skills --root * update), Bash({checkout}/skills/playbook/bin/skills --root * update *), Bash({agents}/playbook/bin/skills --root * update), Bash({claude}/skills/playbook/bin/skills --root * update), Bash({agents}/playbook/bin/skills --root * update *), Bash({claude}/skills/playbook/bin/skills --root * update *), Bash(skills --root * update), Bash(skills --root * update *)denydeny
claude-settingsEdit Claude settingsEdit({claude}/settings.json)askask
skills-git-configSet a skills git config valueBash(git config skills.*), Bash(git config * skills.*)denydeny
publishingCommit, push or open a PRBash(git commit:*), Bash(git push:*), Bash(gh pr create:*), Bash(gh pr edit:*), Bash(gh pr ready:*), Bash(gh pr close:*), Bash(gh stack submit:*), Bash(gh stack sync:*), Bash(gh stack push:*)denyno rule
skills-cliRun skills CLI verbs that publish nothingBash({claude}/skills/playbook/bin/skills plans wave *), Bash({agents}/playbook/bin/skills plans wave *), Bash({claude}/skills/playbook/bin/skills plans resume *), Bash({agents}/playbook/bin/skills plans resume *), Bash({claude}/skills/playbook/bin/skills plans schedule *), Bash({agents}/playbook/bin/skills plans schedule *), Bash({claude}/skills/playbook/bin/skills plans frontier *), Bash({agents}/playbook/bin/skills plans frontier *), Bash({claude}/skills/playbook/bin/skills plans set-row *), Bash({agents}/playbook/bin/skills plans set-row *), Bash({claude}/skills/playbook/bin/skills plans add *), Bash({agents}/playbook/bin/skills plans add *), Bash({claude}/skills/playbook/bin/skills plans log *), Bash({agents}/playbook/bin/skills plans log *), Bash({claude}/skills/playbook/bin/skills plans import *), Bash({agents}/playbook/bin/skills plans import *), Bash({claude}/skills/playbook/bin/skills plans show *), Bash({agents}/playbook/bin/skills plans show *), Bash({claude}/skills/playbook/bin/skills plans history *), Bash({agents}/playbook/bin/skills plans history *), Bash({claude}/skills/playbook/bin/skills plans checkout *), Bash({agents}/playbook/bin/skills plans checkout *), Bash({claude}/skills/playbook/bin/skills recall *), Bash({agents}/playbook/bin/skills recall *), Bash({claude}/skills/playbook/bin/skills threads log *), Bash({agents}/playbook/bin/skills threads log *), Bash({claude}/skills/playbook/bin/skills threads resume *), Bash({agents}/playbook/bin/skills threads resume *), Bash({claude}/skills/playbook/bin/skills plans close *), Bash({agents}/playbook/bin/skills plans close *), Bash({claude}/skills/playbook/bin/skills plans sweep *), Bash({agents}/playbook/bin/skills plans sweep *), Bash({claude}/skills/playbook/bin/skills plans start *), Bash({agents}/playbook/bin/skills plans start *), Bash({claude}/skills/playbook/bin/skills plans pin *), Bash({agents}/playbook/bin/skills plans pin *), Bash({claude}/skills/playbook/bin/skills plans lint *), Bash({agents}/playbook/bin/skills plans lint *), Bash({claude}/skills/playbook/bin/skills plans handoff *), Bash({agents}/playbook/bin/skills plans handoff *), Bash({claude}/skills/playbook/bin/skills plans chain *), Bash({agents}/playbook/bin/skills plans chain *), Bash({claude}/skills/playbook/bin/skills plans stack-base *), Bash({agents}/playbook/bin/skills plans stack-base *), Bash({claude}/skills/playbook/bin/skills plans below *), Bash({agents}/playbook/bin/skills plans below *), Bash({claude}/skills/playbook/bin/skills brief *), Bash({agents}/playbook/bin/skills brief *), Bash({claude}/skills/playbook/bin/skills reviewers *), Bash({agents}/playbook/bin/skills reviewers *), Bash({claude}/skills/playbook/bin/skills round gate *), Bash({agents}/playbook/bin/skills round gate *), Bash({claude}/skills/playbook/bin/skills round decide *), Bash({agents}/playbook/bin/skills round decide *), Bash({claude}/skills/playbook/bin/skills settings *), Bash({agents}/playbook/bin/skills settings *), Bash({claude}/skills/playbook/bin/skills review read *), Bash({agents}/playbook/bin/skills review read *), Bash({claude}/skills/playbook/bin/skills pr green *), Bash({agents}/playbook/bin/skills pr green *), Bash({claude}/skills/playbook/bin/skills pr watch *), Bash({agents}/playbook/bin/skills pr watch *), Bash({claude}/skills/playbook/bin/skills delivery *), Bash({agents}/playbook/bin/skills delivery *), Bash({claude}/skills/playbook/bin/skills fast-mode *), Bash({agents}/playbook/bin/skills fast-mode *), Bash({claude}/skills/playbook/bin/skills arms *), Bash({agents}/playbook/bin/skills arms *), Bash({claude}/skills/playbook/bin/skills check *), Bash({agents}/playbook/bin/skills check *), Bash({claude}/skills/playbook/bin/skills audit *), Bash({agents}/playbook/bin/skills audit *), Bash({claude}/skills/playbook/bin/skills device *), Bash({agents}/playbook/bin/skills device *), Bash({claude}/skills/playbook/bin/skills dash fetch *), Bash({agents}/playbook/bin/skills dash fetch *), Bash({claude}/skills/playbook/bin/skills dash *), Bash({agents}/playbook/bin/skills dash *), Bash({claude}/skills/playbook/bin/skills digest *), Bash({agents}/playbook/bin/skills digest *), Bash({claude}/skills/playbook/bin/skills machine show *), Bash({agents}/playbook/bin/skills machine show *), Bash({claude}/skills/playbook/bin/skills machine label *), Bash({agents}/playbook/bin/skills machine label *), Bash({claude}/skills/playbook/bin/skills machine refresh *), Bash({agents}/playbook/bin/skills machine refresh *), Bash({claude}/skills/playbook/bin/skills issues file *), Bash({agents}/playbook/bin/skills issues file *), Bash({claude}/skills/playbook/bin/skills issues list *), Bash({agents}/playbook/bin/skills issues list *), Bash({claude}/skills/playbook/bin/skills issues show *), Bash({agents}/playbook/bin/skills issues show *), Bash({claude}/skills/playbook/bin/skills issues close *), Bash({agents}/playbook/bin/skills issues close *), Bash({claude}/skills/playbook/bin/skills issues link *), Bash({agents}/playbook/bin/skills issues link *), Bash({claude}/skills/playbook/bin/skills issues renumber *), Bash({agents}/playbook/bin/skills issues renumber *), Bash({claude}/skills/playbook/bin/skills sessions scan *), Bash({agents}/playbook/bin/skills sessions scan *), Bash({claude}/skills/playbook/bin/skills sessions list *), Bash({agents}/playbook/bin/skills sessions list *), Bash({claude}/skills/playbook/bin/skills sessions show *), Bash({agents}/playbook/bin/skills sessions show *), Bash({claude}/skills/playbook/bin/skills sessions restore *), Bash({agents}/playbook/bin/skills sessions restore *), Bash({claude}/skills/playbook/bin/skills hub join *), Bash({agents}/playbook/bin/skills hub join *), Bash({claude}/skills/playbook/bin/skills hub devices *), Bash({agents}/playbook/bin/skills hub devices *), Bash({claude}/skills/playbook/bin/skills hub status *), Bash({agents}/playbook/bin/skills hub status *), Bash({claude}/skills/playbook/bin/skills hub sync *), Bash({agents}/playbook/bin/skills hub sync *)allowallow

Ask's Limits

In Claude Code, ask still prompts in bypassPermissions and auto mode. In claude -p runs and dontAsk mode, where nobody can answer, it acts as deny. A harness that auto approves prompts turns ask into allow. Deny is the only level that holds everywhere.

OpenCode global rules

When the OpenCode config directory exists and AGENT_RULES is set, the installer reads its opencode.json and opencode.jsonc. It writes new asks to the last existing file, or creates opencode.jsonc if neither exists. New denies go to opencode.json when it exists, since its policies win, and otherwise follow the asks. See OpenCode for the config directory lookup.

OpenCode denies go at the end of the top level policies array as tool.use statements, for example { "action": "tool.use", "resource": "shell:gh pr merge *", "effect": "deny" }. Asks go at the end of the top level permissions array with action shell or edit. Configuration policy denies hold even when project permissions or saved approvals would allow the command. Saved "always" approvals and --auto approve asks, so only deny holds. Allow groups such as skills-cli have no OpenCode effect and their entries are never owned.

Only exact three-field ask or deny entries matching a deny or retired group's rendering are owned. In policies, ownership also requires tool.use and deny. Even an entry you wrote yourself is owned if it matches this definition, so the installer may move or remove it. Only entries that match no owned rendering stay untouched. JSONC comments, trailing commas and formatting stay untouched. Owned entries in the other global file move to their list's target. Malformed or unsafe files get a refusal and a JSON set naming both destinations to paste by hand. OpenCode reloads these changes live.

Each applied group gets an opencode line. Strengthening and neutral changes need no prompt. Weakening changes join the installer preview and require a terminal confirmation. ./install.sh --without prs adds publishing denies without prompting; ./install.sh --with prs outside a terminal leaves them and prints how to rerun at a terminal. A group set to off keeps its entries. Notes name personal rules that never apply under a guardrail, or that block work the delivery mode needs, without editing them.

The OpenCode pr-comment deny lifts only when its installer-owned plugin, Bun and CLI are available and neither global config disables skills-guard. Edit rules cover absolute and home-relative paths, but miss a session started in the guarded file's own directory, where the resource is just a basename. Shell redirects do not request edit permission and also bypass edit rules.

With the Commit Guard

The installer plans rules after wiring the commit guard, so a first prs install adds no pr-comment deny. With AGENT_RULES set, a run at a terminal lists removal of an existing deny for you to confirm. A non-terminal run leaves it on a left line for you to apply by hand. If CLAUDE_HOOK_PRE_TOOL_USE=off prevents wiring the guard, the deny stays recommended.

The installer counts the guard as wired only when that same settings.json runs skills hook pre-tool-use under a PreToolUse matcher reaching Bash. The command must name an absolute or unquoted ~/ path that resolves to this checkout's CLI, run as a command hook with no async: true and no if filter, and disableAllHooks must not be true. No managed setting may turn user hooks off, including allowManagedHooksOnly: true or disableAllHooks: true. Wiring in a project settings file is out of scope.

The gh pr comment deny also blocks the trigger a reviewer extension posts, such as @greptileai. Once the commit guard is wired in, remove Bash(gh pr comment:*) from the prs set. The guard takes over: it lets an active reviewer's bare trigger through and blocks every other comment.

Keep that deny in hands-off mode.

Installer and settings guards

Agents can no longer run the installer, including in this repository. Run ./install.sh yourself in your terminal. Tests still reach it through bun test; reading install.sh and searching for install stay allowed.

Editing Claude's settings.json prompts even in bypassPermissions. Approve an edit you requested before the agent applies it.

What a Deny Misses

A deny matches the command text. git -C . push --force slips past it, and so does git config Skills.greptile.rereviews 9, since git reads section names in any case. The commit guard denies a git config command naming a skills. key in any case.

A deny catches mistakes. The delivery rules agents follow hold either way.

On this page