feat(agents): make skill metadata agent-agnostic

This commit is contained in:
2026-07-29 22:39:02 -04:00
parent 40b37281d5
commit b541251f98
21 changed files with 131 additions and 80 deletions

View File

@@ -15,7 +15,7 @@ The caller may be the user directly, a subagent, or another skill such as `/cons
The vault lives at `$(xdg-user-dir DOCUMENTS)/notes`.
If that path does not resolve or does not exist, report that the vault is unreachable and stop.
Read `<vault>/.claude/settings.json` and collect every `permissions.deny` entry of the form `Read(<glob>)`.
Read `<vault>/.agents/settings.json` and `<vault>/.claude/settings.json` when they exist, and collect every `permissions.deny` entry of the form `Read(<glob>)`.
The glob inside each is a path relative to the vault root, so normalize it — drop the leading `./` and trailing `/**` — to get the off-limits path, turning `Read(./05 journal/**)` into `05 journal/`.
Those paths are off-limits: never read or search under one, and never let its contents reach an answer.
The harness does not apply these rules when you run from outside the vault, so enforcing them is this skill's job.