@lythos/skill-deck 0.9.24 → 0.9.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +11 -11
  2. package/package.json +2 -2
  3. package/src/add.ts +14 -6
package/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
  This package exposes a **CLI**. Invoke via:
10
10
 
11
11
  ```bash
12
- bunx @lythos/skill-deck@0.9.24 <command> [options]
12
+ bunx @lythos/skill-deck@0.9.26 <command> [options]
13
13
  ```
14
14
 
15
15
  No installation required. `bunx` auto-downloads the package.
@@ -55,14 +55,14 @@ prompt = "Search for latest info, then generate professional document with diagr
55
55
 
56
56
  | Situation | Command |
57
57
  |-----------|---------|
58
- | Sync working set with `skill-deck.toml` | `bunx @lythos/skill-deck@0.9.24 link` |
59
- | Validate `skill-deck.toml` before committing | `bunx @lythos/skill-deck@0.9.24 validate` |
60
- | Download a skill to cold pool and add to deck | `bunx @lythos/skill-deck@0.9.24 add owner/repo` |
61
- | Pull latest versions of declared skills | `bunx @lythos/skill-deck@0.9.24 refresh` |
62
- | Refresh a single skill by alias | `bunx @lythos/skill-deck@0.9.24 refresh tdd` |
63
- | Remove a skill from deck and working set | `bunx @lythos/skill-deck@0.9.24 remove tdd` |
64
- | GC unreferenced repos from cold pool | `bunx @lythos/skill-deck@0.9.24 prune` |
65
- | Use a custom deck file or working dir | `bunx @lythos/skill-deck@0.9.24 link --deck ./my-deck.toml --workdir /path/to/project` |
58
+ | Sync working set with `skill-deck.toml` | `bunx @lythos/skill-deck@0.9.26 link` |
59
+ | Validate `skill-deck.toml` before committing | `bunx @lythos/skill-deck@0.9.26 validate` |
60
+ | Download a skill to cold pool and add to deck | `bunx @lythos/skill-deck@0.9.26 add owner/repo` |
61
+ | Pull latest versions of declared skills | `bunx @lythos/skill-deck@0.9.26 refresh` |
62
+ | Refresh a single skill by alias | `bunx @lythos/skill-deck@0.9.26 refresh tdd` |
63
+ | Remove a skill from deck and working set | `bunx @lythos/skill-deck@0.9.26 remove tdd` |
64
+ | GC unreferenced repos from cold pool | `bunx @lythos/skill-deck@0.9.26 prune` |
65
+ | Use a custom deck file or working dir | `bunx @lythos/skill-deck@0.9.26 link --deck ./my-deck.toml --workdir /path/to/project` |
66
66
 
67
67
  ### Commands
68
68
 
@@ -119,7 +119,7 @@ path = "github.com/lythos-labs/lythoskill/skills/lythoskill-deck"
119
119
  EOF
120
120
 
121
121
  # 2. Link — creates symlinks in .claude/skills/
122
- bunx @lythos/skill-deck@0.9.24 link
122
+ bunx @lythos/skill-deck@0.9.26 link
123
123
  ```
124
124
 
125
125
  ### Key Concepts
@@ -148,7 +148,7 @@ Different agents look for skills in different directories. `skill-deck.toml` con
148
148
 
149
149
  | Symptom | Cause | Fix |
150
150
  |---------|-------|-----|
151
- | `❌ Skill not found: <name>` | Skill declared in deck but not in cold pool | `bunx @lythos/skill-deck@0.9.24 add github.com/owner/repo/skill` or clone manually into cold pool |
151
+ | `❌ Skill not found: <name>` | Skill declared in deck but not in cold pool | `bunx @lythos/skill-deck@0.9.26 add github.com/owner/repo/skill` or clone manually into cold pool |
152
152
  | `link` skips entries with warnings | Real files/directories exist in working set (not symlinks) | Delete the real directories in `working_set` and re-run `link`. Never create directories manually there |
153
153
  | `refresh` reports "Not a git repository" | Skill was copied (not cloned) into cold pool | Re-clone with `git clone` or use `deck add` which clones by default |
154
154
  | `deck update` prints deprecation warning | `update` was renamed to `refresh` in v0.8+ | Use `deck refresh` instead |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lythos/skill-deck",
3
- "version": "0.9.24",
3
+ "version": "0.9.26",
4
4
  "description": "Declarative skill deck governance — cold pool, working set, deny-by-default",
5
5
  "keywords": [
6
6
  "ai-agent",
@@ -26,7 +26,7 @@
26
26
  ],
27
27
  "dependencies": {
28
28
  "@iarna/toml": "^2.2.5",
29
- "@lythos/cold-pool": "workspace:*",
29
+ "@lythos/cold-pool": "^0.9.25",
30
30
  "yaml": "^2.8.3",
31
31
  "zod": "^4.3.6"
32
32
  },
package/src/add.ts CHANGED
@@ -148,12 +148,6 @@ export async function addSkill(
148
148
  return
149
149
  }
150
150
 
151
- if (fetchPlan.alreadyExists) {
152
- console.error(`❌ Already exists in cold pool: ${fetchPlan.targetDir}`)
153
- console.error(` To update: rm -rf ${fetchPlan.targetDir} and re-run`)
154
- process.exit(1)
155
- }
156
-
157
151
  if (!existsSync(coldPoolPath)) {
158
152
  console.log(`📁 Creating cold pool: ${coldPoolPath}`)
159
153
  mkdirSync(coldPoolPath, { recursive: true })
@@ -161,6 +155,13 @@ export async function addSkill(
161
155
  // git clone needs the parent of the target dir (e.g. host/owner/) to exist
162
156
  mkdirSync(dirname(fetchPlan.targetDir), { recursive: true })
163
157
 
158
+ // Note: if cold pool already has the repo (fetchPlan.alreadyExists),
159
+ // executeFetchPlan returns status: 'already-present' and skips clone.
160
+ // We still want to write deck.toml + link this skill — critical for
161
+ // monorepo case (second `deck add` from same repo, e.g. anthropics/skills/pdf
162
+ // then anthropics/skills/docx). Used to early-exit here, which broke
163
+ // the monorepo workflow and triggered post-compaction agent CPTSD
164
+ // (see: 2026-05-07 morning skill-deck.toml overwrite incident).
164
165
  const fetchResult = executeFetchPlan(fetchPlan, {
165
166
  log: (msg) => console.log(msg),
166
167
  })
@@ -171,6 +172,13 @@ export async function addSkill(
171
172
  process.exit(1)
172
173
  }
173
174
 
175
+ if (fetchResult.status === 'already-present') {
176
+ console.log(`✓ Repo already in cold pool — skipped clone.`)
177
+ console.log(` To check for upstream updates without pulling:`)
178
+ console.log(` bunx @lythos/skill-deck refresh ${parsed.host}/${parsed.owner}/${parsed.repo}`)
179
+ console.log(` (per ADR-20260507110332805, refresh defaults to discover-only)`)
180
+ }
181
+
174
182
  const skillDir = findSkillDir(fetchPlan.targetDir, parsed.skill)
175
183
  if (!skillDir) {
176
184
  console.error(`❌ No SKILL.md found in downloaded repo`)