skillcheck icon indicating copy to clipboard operation
skillcheck copied to clipboard

False positive: documented runtime data locations flagged as `references.escape`

Open tylerlaprade opened this issue 2 months ago • 1 comments

False positive: documented runtime data locations flagged as references.escape

Current behavior: any backtick span that looks like a path is treated as a skill resource reference and must resolve inside the skill directory. Skills that document where their runtime data lives get errors they cannot fix without degrading their docs.

Concrete example (from a real skill):

## Notes

- Index is stored at `~/.recall.db` (SQLite FTS5, auto-migrated from `~/.claude/recall.db`), created readable only by you, with `~/.recall.db.lock` serializing index updates across concurrent sessions
- Indexes `~/.claude/projects/` (Claude Code), `~/.codex/sessions/` (Codex),
  `~/.grok/sessions/**/chat_history.jsonl` (Grok),
  `~/.gemini/antigravity-cli/brain/*/.system_generated/logs/transcript.jsonl`
  (Antigravity), and `~/.local/share/opencode/opencode.db` (OpenCode)

tracemantle 1.6.1 reports 8× references.escape here ("resolves outside the skill directory"). These are not resource references — they are documentation of where user data lives at runtime. There is no edit to the skill that satisfies the linter: the paths are inherently outside any skill directory, and rewording them to dodge detection would make the docs worse.

Why this matters: the "fix" the linter demands (move the files into the skill, or stop documenting the paths) is wrong in both directions. A skill documenting its data locations is doing its job.

Possible directions (for the maintainer to weigh):

  • Treat home-directory (~/...) and absolute paths as documentation by default, or at least not as errors — the escape rule's purpose is catching unbundled dependencies, and a documented data location is not a bundling problem.
  • An inline opt-out (e.g. a comment marker) so authors can mark a span as documentation rather than a reference — no sidecar config file, which is poor DX for a linter.

Happy to PR whichever direction you prefer.

tylerlaprade avatar Sep 29 '26 15:09 tylerlaprade

Agreed this is a false positive. Direction:

Paths starting with ~/ or / can never be bundled inside a skill, so they can’t be the unbundled-dependency problem the escape rule exists to catch. Treat them as documentation by default: report references.external at info level (no failure), not references.escape. Build this on top of #18 so the ~ is expanded first; a ~/ path that resolves inside the skill tree still gets checked as a normal reference. Add an inline marker for the remaining case, a relative-looking path that’s documentation rather than a resource (e.g. config/settings.json describing a file in the user’s project). Something like on the line before applies to that line’s spans. HTML comment so it doesn’t render.

Default rule covers most of it, marker is the escape hatch. PR welcome; update the README diagnostic list and count claim with it.

moonrunnerkc avatar Oct 14 '26 19:10 moonrunnerkc