opencode icon indicating copy to clipboard operation
opencode copied to clipboard

docs: fix permission rule ordering in examples

Open kdcokenny opened this issue 1 week ago • 3 comments

Problem

Permission examples show catch-all "*" rules at the bottom, but OpenCode uses "last matching rule wins" — so the catch-all overrides all specific rules above it.

Solution

Move "*" rules to the top of permission blocks so specific rules can override them.

Changes

  • agents.mdx: Fix YAML and JSON examples, clarify explanatory text
  • skills.mdx: Fix JSON example

kdcokenny avatar Jan 06 '26 00:01 kdcokenny