Skip to content

Exclude Claude-managed sync caches from automatic skill discovery - #458

Merged
ilovepixelart merged 2 commits into
ilovepixelart:mainfrom
HuliLulu46:exclude-synced-skill-cache
Nov 16, 2026
Merged

ilovepixelart merged 2 commits into
ilovepixelart:mainfrom
HuliLulu46:exclude-synced-skill-cache

Conversation

@HuliLulu46

Copy link
Copy Markdown
Contributor

Summary

Claude account-synced skills are stored inside the personal skills root. Passing that root to pi recursively imports the managed cache as ordinary local skills.

Claude skill roots, in existing precedence order
  → pi's native skill discovery
  → exclude personal skills/synced files and symlink aliases
  → contribute remaining files to pi

The invocation shim applies the same source check. Enterprise, trusted project and plugin skills keep their existing behavior. Users can deliberately import a cached skill through pi's skills setting; pi then handles its loading and expansion.

Evidence

  • Before: recursive root discovery includes synthetic account-cache skills in the model-facing listing.
    After: the headless smoke captures the provider payload and confirms the personal local skill is listed while the cached skill is absent.
  • Regression tests cover cache aliases, ordinary links, relocated configuration roots, ignore rules, invalid-skill diagnostics, precedence, reload and explicit imports, including a plugin with the same bare name.
  • On the current main base: 3,795 tests passed, 5 skipped; 24 headless smoke checks passed. Biome, strict TypeScript and knip passed. Line coverage: 99.00%; branch coverage: 93.41%.

Merge Danger

Door: two-way

No Claude cache files or account settings are changed. Cached document skills also leave automatic discovery; users who need one can explicitly import its skill file or directory.

Blast Radius: skills

Only automatic Claude skill bridging and the corresponding invocation ownership check change. No dependency or lockfile changes.

lisilu and others added 2 commits November 16, 2026 11:23
Claude Code's personal skill scan skips skills/synced by name, so a
personal skill that links into the cache still loads there. The
resolved-path check excluded such links; it is removed. The docs state
that Claude Code loads the current account's synced skills as
anthropic-skills:<name> and pi-code does not.
@ilovepixelart
ilovepixelart merged commit 2e0078c into ilovepixelart:main Nov 16, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants