mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-20 12:23:22 +00:00
Add two new doctor checks to detect duplicate-skill problems surfaced in issue #135: Layer 1 — checkSharedTargetPaths: Warns when two or more enabled targets resolve to the same filesystem path after tilde expansion. Pure metadata check; no runtime probing. Catches universal/warp/witsy all sharing ~/.agents/skills. Layer A — checkCrossTargetDiscovery: Driven by a new also_scans field in targets.yaml that documents paths a target's runtime reads beyond its primary skills directory. Sourced from each tool's official docs. Populated for amp, antigravity, codex, cursor, firebender, kimi, roo. Warns when an enabled target's also_scans path is the primary path of another enabled target. Example: enabling codex + universal warns that Codex's runtime will see ~/.agents/skills content. Overlaps are grouped per scanner so a multi-overlap target (e.g. firebender reading 5 brand dirs for cross-compat) emits a single warning with indented detail lines. config: - New targetAlsoScans struct + AlsoScansGlobal / AlsoScansProject accessors. - targets.yaml schema is backward-compatible (optional field). Layer B (sync engine routing) and Layer C (user-declared authoritative roots) are intentionally deferred — diagnosis comes first, behaviour changes only if users actually ask.