/** * Claude Code skill installation for `contextatlas init` (v1.1.2 * cohort-UX hotfix). * * At init time, copies the canonical Claude Code skill substrate * shipped in the contextatlas package (`.claude/skills//SKILL.md`) * into the user repo's `.claude/skills/` directory. Claude Code * discovers skills via this per-repo location at session start; without * the copy, /generate-adrs + /index-atlas + /prime-atlas slash commands * are not available even though `contextatlas init` has otherwise * succeeded. * * Source artifacts (in the contextatlas package, post-npm-install): * - `/.claude/skills/generate-adrs/SKILL.md` * - `/.claude/skills/index-atlas/SKILL.md` * - `/.claude/skills/prime-atlas/SKILL.md` * * Destination artifacts (in the user repo): * - `/.claude/skills/generate-adrs/SKILL.md` * - `/.claude/skills/index-atlas/SKILL.md` * - `/.claude/skills/prime-atlas/SKILL.md` * * The copy is non-destructive: if a destination SKILL.md already * exists, it is preserved (user may have edited it; we don't overwrite * customizations). Mirrors the npm package as a source of truth — to * refresh skills after upgrade, delete `.claude/skills//` and * re-run `contextatlas init`. * * Surfaced post-v1.1.0 npm publish during Travis cohort dogfood at * apis repo: `/generate-adrs` slash command unavailable in Claude * Code session because `.claude/skills/` was not scaffolded. * Documented as a real UX gap per Phase 5 surface-inventory miss. */ /** Canonical skill names shipped by the contextatlas package. */ export declare const CANONICAL_SKILL_NAMES: readonly ["generate-adrs", "index-atlas", "prime-atlas"]; export type CanonicalSkillName = (typeof CANONICAL_SKILL_NAMES)[number]; export interface SkillCopyResult { /** Absolute paths to user-repo SKILL.md files that landed (copied). */ readonly copied: readonly string[]; /** * Absolute paths to user-repo SKILL.md files that were preserved * (already existed; not overwritten). User-customized skill content * is preserved across `contextatlas init` re-runs. */ readonly preserved: readonly string[]; } /** * Copy canonical Claude Code skill substrate from the contextatlas * package's `.claude/skills/` into the user repo's `.claude/skills/`. * * Non-destructive: existing skill files are preserved (returned in * `preserved`). To refresh, delete the user-repo skill directory and * re-run `contextatlas init`. * * Test seam: `packageRootOverride` lets unit tests point at a fixture * directory instead of resolving from import.meta.url. */ export declare function copySkillArtifacts(opts: { readonly configRoot: string; readonly packageRootOverride?: string; }): SkillCopyResult; //# sourceMappingURL=skill-copy.d.ts.map