feat(agents): make skill metadata agent-agnostic
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user