@litfamily/litmuse 0.1.12 → 0.1.14

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.
package/lib/shown.mjs ADDED
@@ -0,0 +1,58 @@
1
+ import { appendFileSync, lstatSync, mkdirSync, readFileSync } from 'node:fs';
2
+ import { createHash } from 'node:crypto';
3
+ import { dirname } from 'node:path';
4
+ import { assertSafeWritePath } from './guard.mjs';
5
+
6
+ // An append-only record of the notice texts LitMuse has already printed: one JSON line `{hash, at}` per text, in
7
+ // LitMuse's own data folder. Anything unreadable, oversized or linked counts as "nothing shown yet", so a broken
8
+ // record can only bring a notice back, never hide a new one.
9
+ const READ_LIMIT = 256 * 1024;
10
+
11
+ export const noticeHash = (text) => createHash('sha256').update(String(text).replace(/\s+/g, ' ').trim().toLowerCase()).digest('hex').slice(0, 16);
12
+
13
+ function realFile(file) {
14
+ try {
15
+ const st = lstatSync(file);
16
+ return st.isFile() && st.size <= READ_LIMIT;
17
+ } catch {
18
+ return false;
19
+ }
20
+ }
21
+
22
+ export function wasShown(file, hash) {
23
+ if (!realFile(file)) return false;
24
+ try {
25
+ return readFileSync(file, 'utf8').split('\n').some((line) => {
26
+ try {
27
+ return JSON.parse(line)?.hash === hash;
28
+ } catch {
29
+ return false;
30
+ }
31
+ });
32
+ } catch {
33
+ return false;
34
+ }
35
+ }
36
+
37
+ export function recordShown(file, hash) {
38
+ try {
39
+ assertSafeWritePath(file);
40
+ const parent = lstatSyncOrNull(dirname(file));
41
+ if (parent && (parent.isSymbolicLink() || !parent.isDirectory())) return false;
42
+ const own = lstatSyncOrNull(file);
43
+ if (own && !own.isFile()) return false;
44
+ mkdirSync(dirname(file), { recursive: true });
45
+ appendFileSync(file, `${JSON.stringify({ hash, at: Date.now() })}\n`);
46
+ return true;
47
+ } catch {
48
+ return false;
49
+ }
50
+ }
51
+
52
+ function lstatSyncOrNull(p) {
53
+ try {
54
+ return lstatSync(p);
55
+ } catch {
56
+ return null;
57
+ }
58
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@litfamily/litmuse",
3
- "version": "0.1.12",
3
+ "version": "0.1.14",
4
4
  "description": "Installer for LitMuse: skills, hooks and agents that help Meta's Muse Code plan, build, check and hand off work.",
5
5
  "keywords": [
6
6
  "muse",
@@ -2,7 +2,7 @@
2
2
  "schemaVersion": 1,
3
3
  "name": "litmuse",
4
4
  "displayName": "LitMuse",
5
- "version": "0.1.12",
5
+ "version": "0.1.14",
6
6
  "description": "LitFamily workflows for Muse Code: bare lit activation, planning, evidence-bound execution, review, research, handoff and Korean prose care.",
7
7
  "compat": {
8
8
  "source": "native",
@@ -21,18 +21,64 @@ it does one of two things: hand over to the installed copy, or say how to instal
21
21
 
22
22
  ## Install it in Muse (this one skill)
23
23
 
24
+ The repository is public at https://github.com/wjgoarxiv/wjgoarxiv-skills; clone it once and point the install line
25
+ at that clone. Run the three steps from the project you work in, one line each; zsh and bash both take them.
26
+
27
+ 1. Look first. This line only reads. It prints each folder Muse could load as `frontend-ui-ux`: your Muse user skills, the
28
+ personal folders `~/.claude/skills` and `~/.codex/skills` that Muse also loads, and the project's `.agents/skills`
29
+ and `.claude/skills`.
30
+
31
+ ```bash
32
+ command ls -d "${XDG_CONFIG_HOME:-$HOME/.config}/muse/skills/frontend-ui-ux" "$HOME/.claude/skills/frontend-ui-ux" "$HOME/.codex/skills/frontend-ui-ux" .agents/skills/frontend-ui-ux .claude/skills/frontend-ui-ux 2>/dev/null
33
+ ```
34
+
35
+ 2. If the first of those paths was printed, move that folder aside whole. It goes to a dated folder under
36
+ `extension-backups/` beside Muse's skills, where Muse does not look, with every file you added still inside. When
37
+ nothing is there, the line does nothing.
38
+
39
+ ```bash
40
+ D="${XDG_CONFIG_HOME:-$HOME/.config}/muse/skills/frontend-ui-ux"; B="${XDG_CONFIG_HOME:-$HOME/.config}/muse/extension-backups/$(date +%Y%m%d-%H%M%S)"; [ -e "$D" ] && mkdir -p "$B" && mv "$D" "$B/" && echo "moved to $B/frontend-ui-ux"
41
+ ```
42
+
43
+ 3. Install:
44
+
24
45
  ```bash
25
46
  muse skills install <path to your wjgoarxiv-skills clone>/variants/litmuse/frontend-ui-ux --scope user
26
47
  ```
27
48
 
28
49
  `muse skills install` copies that folder into Muse's user skills (`$XDG_CONFIG_HOME/muse/skills/frontend-ui-ux/`, else
29
- `~/.config/muse/skills/frontend-ui-ux/`). The next session lists it in the catalog as `frontend-ui-ux`, scope `user`, next to
30
- this stub. `muse skills uninstall frontend-ui-ux` takes it out again. The repository is public at
31
- https://github.com/wjgoarxiv/wjgoarxiv-skills; clone it once and point the install line at that clone.
50
+ `~/.config/muse/skills/frontend-ui-ux/`) and records the source folder, the time and each file's hash in its own lock,
51
+ `$CONFIG_DIR/skills/.muse/lock.json`, so no other receipt is needed. The next session lists it in the catalog as
52
+ `frontend-ui-ux`, scope `user`, next to this stub. Muse refuses to install over a folder that is already there (`skill already
53
+ installed`, or `install would overwrite unmanaged files` when only your own files are left in it); step 2 is the way
54
+ past that. A personal copy in `~/.claude/skills/frontend-ui-ux/` or `~/.codex/skills/frontend-ui-ux/` ranks below the user skill, so after
55
+ the install Muse loads this one and reports those as shadowed. A project copy in `.agents/skills/frontend-ui-ux/` or
56
+ `.claude/skills/frontend-ui-ux/` ranks above it inside that project; move or rename that one to use the extension there.
57
+
58
+ ### Or let LitMuse run the lines
59
+
60
+ `npx @litfamily/litmuse extensions install frontend-ui-ux` runs steps 1 to 3 for you. It prints the plan first, stops and names
61
+ any same-name skill in another folder Muse reads (that one is never touched), moves an occupied folder aside into
62
+ `extension-backups/`, then calls `muse skills install`. Nothing changes until you add `--yes`. `--from <clone>` uses
63
+ your own clone; without it LitMuse keeps a shallow clone in its cache. `extensions update`, `extensions remove frontend-ui-ux`,
64
+ `extensions check`, `extensions list` and `extensions prune-backups` cover the rest, with the same `--yes` rule.
65
+
66
+ ### Update
67
+
68
+ Run steps 1 to 3 again; the old copy lands in a new dated folder. Leave out `--force` and `muse skills update frontend-ui-ux`:
69
+ both rewrite the shipped files in place and keep every other file, so anything a newer edition dropped would stay
70
+ behind.
71
+
72
+ ### Remove
73
+
74
+ Run step 2, then `muse skills uninstall frontend-ui-ux`. With the folder already moved it deletes nothing and only drops Muse's
75
+ record, so a later `muse skills update` cannot bring the copy back. Run on its own, `muse skills uninstall` deletes the
76
+ files it copied and leaves the ones you added in a folder Muse no longer lists, which then blocks the next install
77
+ until you move it aside.
32
78
 
33
79
  The Muse edition is this skill rewritten to stand alone in Muse. It carries its own helpers, fonts and lockfiles, works with Muse's own tools, and needs no LitMuse hook, agent or approval.
34
80
 
35
- The copy and this stub do not collide. The stub is the plugin skill `plugin:litmuse:frontend-ui-ux`, which the LitMuse installer owns. The copy is the user skill `frontend-ui-ux` in `$CONFIG_DIR/skills/frontend-ui-ux/`, a folder the LitMuse installer and uninstaller never write or remove, so `npx @litfamily/litmuse install`, a plugin update and `muse plugins update` all leave it alone, and `doctor` reports it as `INFO moved` rather than an overlap. To take a newer edition from the clone, run the install line again with `--force`.
81
+ The copy and this stub do not collide. The stub is the plugin skill `plugin:litmuse:frontend-ui-ux`, which the LitMuse installer owns. The copy is the user skill `frontend-ui-ux` in `$CONFIG_DIR/skills/frontend-ui-ux/`, a folder the LitMuse installer and uninstaller never write or remove, so `npx @litfamily/litmuse install`, a plugin update and `muse plugins update` all leave it alone, and `doctor` reports it as `INFO moved` rather than an overlap. To take a newer edition, follow Update above.
36
82
 
37
83
  ## What to do when this stub loads
38
84
 
@@ -41,7 +87,7 @@ The copy and this stub do not collide. The stub is the plugin skill `plugin:litm
41
87
  2. **Installed:** load it with read_skill id `frontend-ui-ux` (the user skill, without the `plugin:litmuse:` prefix) and
42
88
  follow it for the whole request. This stub adds no rules of its own.
43
89
  3. **Not installed, asked for directly:** reply in a few lines: what the skill makes, that it is now a LitFamily extension in the `design`
44
- family of wjgoarxiv-skills, the install line above, and that a new session picks it up. Build nothing and write no
90
+ family of wjgoarxiv-skills, the three lines above (look first, move an occupied folder aside, install) or the one `extensions install` line, and that a new session picks it up. Build nothing and write no
45
91
  files in its place.
46
92
  4. **Not installed, inside a lit workflow:** Inside a lit workflow that edits an interface (lit-loop, litwork, start-work), the edit itself may go ahead under that workflow's own rules; record in the ledger that frontend-ui-ux is not installed, claim no design-lock or probe verdict, and name the install line once in the final report.
47
93
 
@@ -21,18 +21,64 @@ it does one of two things: hand over to the installed copy, or say how to instal
21
21
 
22
22
  ## Install it in Muse (this one skill)
23
23
 
24
+ The repository is public at https://github.com/wjgoarxiv/wjgoarxiv-skills; clone it once and point the install line
25
+ at that clone. Run the three steps from the project you work in, one line each; zsh and bash both take them.
26
+
27
+ 1. Look first. This line only reads. It prints each folder Muse could load as `lit-diagram-drawer`: your Muse user skills, the
28
+ personal folders `~/.claude/skills` and `~/.codex/skills` that Muse also loads, and the project's `.agents/skills`
29
+ and `.claude/skills`.
30
+
31
+ ```bash
32
+ command ls -d "${XDG_CONFIG_HOME:-$HOME/.config}/muse/skills/lit-diagram-drawer" "$HOME/.claude/skills/lit-diagram-drawer" "$HOME/.codex/skills/lit-diagram-drawer" .agents/skills/lit-diagram-drawer .claude/skills/lit-diagram-drawer 2>/dev/null
33
+ ```
34
+
35
+ 2. If the first of those paths was printed, move that folder aside whole. It goes to a dated folder under
36
+ `extension-backups/` beside Muse's skills, where Muse does not look, with every file you added still inside. When
37
+ nothing is there, the line does nothing.
38
+
39
+ ```bash
40
+ D="${XDG_CONFIG_HOME:-$HOME/.config}/muse/skills/lit-diagram-drawer"; B="${XDG_CONFIG_HOME:-$HOME/.config}/muse/extension-backups/$(date +%Y%m%d-%H%M%S)"; [ -e "$D" ] && mkdir -p "$B" && mv "$D" "$B/" && echo "moved to $B/lit-diagram-drawer"
41
+ ```
42
+
43
+ 3. Install:
44
+
24
45
  ```bash
25
46
  muse skills install <path to your wjgoarxiv-skills clone>/variants/litmuse/lit-diagram-drawer --scope user
26
47
  ```
27
48
 
28
49
  `muse skills install` copies that folder into Muse's user skills (`$XDG_CONFIG_HOME/muse/skills/lit-diagram-drawer/`, else
29
- `~/.config/muse/skills/lit-diagram-drawer/`). The next session lists it in the catalog as `lit-diagram-drawer`, scope `user`, next to
30
- this stub. `muse skills uninstall lit-diagram-drawer` takes it out again. The repository is public at
31
- https://github.com/wjgoarxiv/wjgoarxiv-skills; clone it once and point the install line at that clone.
50
+ `~/.config/muse/skills/lit-diagram-drawer/`) and records the source folder, the time and each file's hash in its own lock,
51
+ `$CONFIG_DIR/skills/.muse/lock.json`, so no other receipt is needed. The next session lists it in the catalog as
52
+ `lit-diagram-drawer`, scope `user`, next to this stub. Muse refuses to install over a folder that is already there (`skill already
53
+ installed`, or `install would overwrite unmanaged files` when only your own files are left in it); step 2 is the way
54
+ past that. A personal copy in `~/.claude/skills/lit-diagram-drawer/` or `~/.codex/skills/lit-diagram-drawer/` ranks below the user skill, so after
55
+ the install Muse loads this one and reports those as shadowed. A project copy in `.agents/skills/lit-diagram-drawer/` or
56
+ `.claude/skills/lit-diagram-drawer/` ranks above it inside that project; move or rename that one to use the extension there.
57
+
58
+ ### Or let LitMuse run the lines
59
+
60
+ `npx @litfamily/litmuse extensions install lit-diagram-drawer` runs steps 1 to 3 for you. It prints the plan first, stops and names
61
+ any same-name skill in another folder Muse reads (that one is never touched), moves an occupied folder aside into
62
+ `extension-backups/`, then calls `muse skills install`. Nothing changes until you add `--yes`. `--from <clone>` uses
63
+ your own clone; without it LitMuse keeps a shallow clone in its cache. `extensions update`, `extensions remove lit-diagram-drawer`,
64
+ `extensions check`, `extensions list` and `extensions prune-backups` cover the rest, with the same `--yes` rule.
65
+
66
+ ### Update
67
+
68
+ Run steps 1 to 3 again; the old copy lands in a new dated folder. Leave out `--force` and `muse skills update lit-diagram-drawer`:
69
+ both rewrite the shipped files in place and keep every other file, so anything a newer edition dropped would stay
70
+ behind.
71
+
72
+ ### Remove
73
+
74
+ Run step 2, then `muse skills uninstall lit-diagram-drawer`. With the folder already moved it deletes nothing and only drops Muse's
75
+ record, so a later `muse skills update` cannot bring the copy back. Run on its own, `muse skills uninstall` deletes the
76
+ files it copied and leaves the ones you added in a folder Muse no longer lists, which then blocks the next install
77
+ until you move it aside.
32
78
 
33
79
  The Muse edition is this skill rewritten to stand alone in Muse. It carries its own helpers, fonts and lockfiles, works with Muse's own tools, and needs no LitMuse hook, agent or approval. A step that needs the pinned diagram renderer sets it up on first use from the installed folder into a per-user cache; when the sandbox blocks that install, the copy stops with `BLOCKED:` and gives the user the one command to run in a terminal.
34
80
 
35
- The copy and this stub do not collide. The stub is the plugin skill `plugin:litmuse:lit-diagram-drawer`, which the LitMuse installer owns. The copy is the user skill `lit-diagram-drawer` in `$CONFIG_DIR/skills/lit-diagram-drawer/`, a folder the LitMuse installer and uninstaller never write or remove, so `npx @litfamily/litmuse install`, a plugin update and `muse plugins update` all leave it alone, and `doctor` reports it as `INFO moved` rather than an overlap. To take a newer edition from the clone, run the install line again with `--force`.
81
+ The copy and this stub do not collide. The stub is the plugin skill `plugin:litmuse:lit-diagram-drawer`, which the LitMuse installer owns. The copy is the user skill `lit-diagram-drawer` in `$CONFIG_DIR/skills/lit-diagram-drawer/`, a folder the LitMuse installer and uninstaller never write or remove, so `npx @litfamily/litmuse install`, a plugin update and `muse plugins update` all leave it alone, and `doctor` reports it as `INFO moved` rather than an overlap. To take a newer edition, follow Update above.
36
82
 
37
83
  ## What to do when this stub loads
38
84
 
@@ -41,7 +87,7 @@ The copy and this stub do not collide. The stub is the plugin skill `plugin:litm
41
87
  2. **Installed:** load it with read_skill id `lit-diagram-drawer` (the user skill, without the `plugin:litmuse:` prefix) and
42
88
  follow it for the whole request. This stub adds no rules of its own.
43
89
  3. **Not installed, asked for directly:** reply in a few lines: what the skill makes, that it is now a LitFamily extension in the `figures`
44
- family of wjgoarxiv-skills, the install line above, and that a new session picks it up. Build nothing and write no
90
+ family of wjgoarxiv-skills, the three lines above (look first, move an occupied folder aside, install) or the one `extensions install` line, and that a new session picks it up. Build nothing and write no
45
91
  files in its place.
46
92
  4. **Not installed, inside a lit workflow:** record in the ledger that `lit-diagram-drawer` is not installed, leave its deliverable open (never mark it done), name the install line once in the final report, and carry on with the rest of the work.
47
93
 
@@ -21,18 +21,64 @@ it does one of two things: hand over to the installed copy, or say how to instal
21
21
 
22
22
  ## Install it in Muse (this one skill)
23
23
 
24
+ The repository is public at https://github.com/wjgoarxiv/wjgoarxiv-skills; clone it once and point the install line
25
+ at that clone. Run the three steps from the project you work in, one line each; zsh and bash both take them.
26
+
27
+ 1. Look first. This line only reads. It prints each folder Muse could load as `lit-docx`: your Muse user skills, the
28
+ personal folders `~/.claude/skills` and `~/.codex/skills` that Muse also loads, and the project's `.agents/skills`
29
+ and `.claude/skills`.
30
+
31
+ ```bash
32
+ command ls -d "${XDG_CONFIG_HOME:-$HOME/.config}/muse/skills/lit-docx" "$HOME/.claude/skills/lit-docx" "$HOME/.codex/skills/lit-docx" .agents/skills/lit-docx .claude/skills/lit-docx 2>/dev/null
33
+ ```
34
+
35
+ 2. If the first of those paths was printed, move that folder aside whole. It goes to a dated folder under
36
+ `extension-backups/` beside Muse's skills, where Muse does not look, with every file you added still inside. When
37
+ nothing is there, the line does nothing.
38
+
39
+ ```bash
40
+ D="${XDG_CONFIG_HOME:-$HOME/.config}/muse/skills/lit-docx"; B="${XDG_CONFIG_HOME:-$HOME/.config}/muse/extension-backups/$(date +%Y%m%d-%H%M%S)"; [ -e "$D" ] && mkdir -p "$B" && mv "$D" "$B/" && echo "moved to $B/lit-docx"
41
+ ```
42
+
43
+ 3. Install:
44
+
24
45
  ```bash
25
46
  muse skills install <path to your wjgoarxiv-skills clone>/variants/litmuse/lit-docx --scope user
26
47
  ```
27
48
 
28
49
  `muse skills install` copies that folder into Muse's user skills (`$XDG_CONFIG_HOME/muse/skills/lit-docx/`, else
29
- `~/.config/muse/skills/lit-docx/`). The next session lists it in the catalog as `lit-docx`, scope `user`, next to
30
- this stub. `muse skills uninstall lit-docx` takes it out again. The repository is public at
31
- https://github.com/wjgoarxiv/wjgoarxiv-skills; clone it once and point the install line at that clone.
50
+ `~/.config/muse/skills/lit-docx/`) and records the source folder, the time and each file's hash in its own lock,
51
+ `$CONFIG_DIR/skills/.muse/lock.json`, so no other receipt is needed. The next session lists it in the catalog as
52
+ `lit-docx`, scope `user`, next to this stub. Muse refuses to install over a folder that is already there (`skill already
53
+ installed`, or `install would overwrite unmanaged files` when only your own files are left in it); step 2 is the way
54
+ past that. A personal copy in `~/.claude/skills/lit-docx/` or `~/.codex/skills/lit-docx/` ranks below the user skill, so after
55
+ the install Muse loads this one and reports those as shadowed. A project copy in `.agents/skills/lit-docx/` or
56
+ `.claude/skills/lit-docx/` ranks above it inside that project; move or rename that one to use the extension there.
57
+
58
+ ### Or let LitMuse run the lines
59
+
60
+ `npx @litfamily/litmuse extensions install lit-docx` runs steps 1 to 3 for you. It prints the plan first, stops and names
61
+ any same-name skill in another folder Muse reads (that one is never touched), moves an occupied folder aside into
62
+ `extension-backups/`, then calls `muse skills install`. Nothing changes until you add `--yes`. `--from <clone>` uses
63
+ your own clone; without it LitMuse keeps a shallow clone in its cache. `extensions update`, `extensions remove lit-docx`,
64
+ `extensions check`, `extensions list` and `extensions prune-backups` cover the rest, with the same `--yes` rule.
65
+
66
+ ### Update
67
+
68
+ Run steps 1 to 3 again; the old copy lands in a new dated folder. Leave out `--force` and `muse skills update lit-docx`:
69
+ both rewrite the shipped files in place and keep every other file, so anything a newer edition dropped would stay
70
+ behind.
71
+
72
+ ### Remove
73
+
74
+ Run step 2, then `muse skills uninstall lit-docx`. With the folder already moved it deletes nothing and only drops Muse's
75
+ record, so a later `muse skills update` cannot bring the copy back. Run on its own, `muse skills uninstall` deletes the
76
+ files it copied and leaves the ones you added in a folder Muse no longer lists, which then blocks the next install
77
+ until you move it aside.
32
78
 
33
79
  The Muse edition is this skill rewritten to stand alone in Muse. It carries its own helpers, fonts and lockfiles, works with Muse's own tools, and needs no LitMuse hook, agent or approval. A step that needs the pinned office runtime (python-docx, PyMuPDF and the rest of its lock) sets it up on first use from the installed folder into a per-user cache; when the sandbox blocks that install, the copy stops with `BLOCKED:` and gives the user the one command to run in a terminal.
34
80
 
35
- The copy and this stub do not collide. The stub is the plugin skill `plugin:litmuse:lit-docx`, which the LitMuse installer owns. The copy is the user skill `lit-docx` in `$CONFIG_DIR/skills/lit-docx/`, a folder the LitMuse installer and uninstaller never write or remove, so `npx @litfamily/litmuse install`, a plugin update and `muse plugins update` all leave it alone, and `doctor` reports it as `INFO moved` rather than an overlap. To take a newer edition from the clone, run the install line again with `--force`.
81
+ The copy and this stub do not collide. The stub is the plugin skill `plugin:litmuse:lit-docx`, which the LitMuse installer owns. The copy is the user skill `lit-docx` in `$CONFIG_DIR/skills/lit-docx/`, a folder the LitMuse installer and uninstaller never write or remove, so `npx @litfamily/litmuse install`, a plugin update and `muse plugins update` all leave it alone, and `doctor` reports it as `INFO moved` rather than an overlap. To take a newer edition, follow Update above.
36
82
 
37
83
  ## What to do when this stub loads
38
84
 
@@ -41,7 +87,7 @@ The copy and this stub do not collide. The stub is the plugin skill `plugin:litm
41
87
  2. **Installed:** load it with read_skill id `lit-docx` (the user skill, without the `plugin:litmuse:` prefix) and
42
88
  follow it for the whole request. This stub adds no rules of its own.
43
89
  3. **Not installed, asked for directly:** reply in a few lines: what the skill makes, that it is now a LitFamily extension in the `documents`
44
- family of wjgoarxiv-skills, the install line above, and that a new session picks it up. Build nothing and write no
90
+ family of wjgoarxiv-skills, the three lines above (look first, move an occupied folder aside, install) or the one `extensions install` line, and that a new session picks it up. Build nothing and write no
45
91
  files in its place.
46
92
  4. **Not installed, inside a lit workflow:** record in the ledger that `lit-docx` is not installed, leave its deliverable open (never mark it done), name the install line once in the final report, and carry on with the rest of the work.
47
93
 
@@ -21,18 +21,64 @@ it does one of two things: hand over to the installed copy, or say how to instal
21
21
 
22
22
  ## Install it in Muse (this one skill)
23
23
 
24
+ The repository is public at https://github.com/wjgoarxiv/wjgoarxiv-skills; clone it once and point the install line
25
+ at that clone. Run the three steps from the project you work in, one line each; zsh and bash both take them.
26
+
27
+ 1. Look first. This line only reads. It prints each folder Muse could load as `lit-pptx`: your Muse user skills, the
28
+ personal folders `~/.claude/skills` and `~/.codex/skills` that Muse also loads, and the project's `.agents/skills`
29
+ and `.claude/skills`.
30
+
31
+ ```bash
32
+ command ls -d "${XDG_CONFIG_HOME:-$HOME/.config}/muse/skills/lit-pptx" "$HOME/.claude/skills/lit-pptx" "$HOME/.codex/skills/lit-pptx" .agents/skills/lit-pptx .claude/skills/lit-pptx 2>/dev/null
33
+ ```
34
+
35
+ 2. If the first of those paths was printed, move that folder aside whole. It goes to a dated folder under
36
+ `extension-backups/` beside Muse's skills, where Muse does not look, with every file you added still inside. When
37
+ nothing is there, the line does nothing.
38
+
39
+ ```bash
40
+ D="${XDG_CONFIG_HOME:-$HOME/.config}/muse/skills/lit-pptx"; B="${XDG_CONFIG_HOME:-$HOME/.config}/muse/extension-backups/$(date +%Y%m%d-%H%M%S)"; [ -e "$D" ] && mkdir -p "$B" && mv "$D" "$B/" && echo "moved to $B/lit-pptx"
41
+ ```
42
+
43
+ 3. Install:
44
+
24
45
  ```bash
25
46
  muse skills install <path to your wjgoarxiv-skills clone>/variants/litmuse/lit-pptx --scope user
26
47
  ```
27
48
 
28
49
  `muse skills install` copies that folder into Muse's user skills (`$XDG_CONFIG_HOME/muse/skills/lit-pptx/`, else
29
- `~/.config/muse/skills/lit-pptx/`). The next session lists it in the catalog as `lit-pptx`, scope `user`, next to
30
- this stub. `muse skills uninstall lit-pptx` takes it out again. The repository is public at
31
- https://github.com/wjgoarxiv/wjgoarxiv-skills; clone it once and point the install line at that clone.
50
+ `~/.config/muse/skills/lit-pptx/`) and records the source folder, the time and each file's hash in its own lock,
51
+ `$CONFIG_DIR/skills/.muse/lock.json`, so no other receipt is needed. The next session lists it in the catalog as
52
+ `lit-pptx`, scope `user`, next to this stub. Muse refuses to install over a folder that is already there (`skill already
53
+ installed`, or `install would overwrite unmanaged files` when only your own files are left in it); step 2 is the way
54
+ past that. A personal copy in `~/.claude/skills/lit-pptx/` or `~/.codex/skills/lit-pptx/` ranks below the user skill, so after
55
+ the install Muse loads this one and reports those as shadowed. A project copy in `.agents/skills/lit-pptx/` or
56
+ `.claude/skills/lit-pptx/` ranks above it inside that project; move or rename that one to use the extension there.
57
+
58
+ ### Or let LitMuse run the lines
59
+
60
+ `npx @litfamily/litmuse extensions install lit-pptx` runs steps 1 to 3 for you. It prints the plan first, stops and names
61
+ any same-name skill in another folder Muse reads (that one is never touched), moves an occupied folder aside into
62
+ `extension-backups/`, then calls `muse skills install`. Nothing changes until you add `--yes`. `--from <clone>` uses
63
+ your own clone; without it LitMuse keeps a shallow clone in its cache. `extensions update`, `extensions remove lit-pptx`,
64
+ `extensions check`, `extensions list` and `extensions prune-backups` cover the rest, with the same `--yes` rule.
65
+
66
+ ### Update
67
+
68
+ Run steps 1 to 3 again; the old copy lands in a new dated folder. Leave out `--force` and `muse skills update lit-pptx`:
69
+ both rewrite the shipped files in place and keep every other file, so anything a newer edition dropped would stay
70
+ behind.
71
+
72
+ ### Remove
73
+
74
+ Run step 2, then `muse skills uninstall lit-pptx`. With the folder already moved it deletes nothing and only drops Muse's
75
+ record, so a later `muse skills update` cannot bring the copy back. Run on its own, `muse skills uninstall` deletes the
76
+ files it copied and leaves the ones you added in a folder Muse no longer lists, which then blocks the next install
77
+ until you move it aside.
32
78
 
33
79
  The Muse edition is this skill rewritten to stand alone in Muse. It carries its own helpers, fonts and lockfiles, works with Muse's own tools, and needs no LitMuse hook, agent or approval. A step that needs the pinned office runtime (pptxgenjs, sharp, python-pptx and the rest of its lock) sets it up on first use from the installed folder into a per-user cache; when the sandbox blocks that install, the copy stops with `BLOCKED:` and gives the user the one command to run in a terminal.
34
80
 
35
- The copy and this stub do not collide. The stub is the plugin skill `plugin:litmuse:lit-pptx`, which the LitMuse installer owns. The copy is the user skill `lit-pptx` in `$CONFIG_DIR/skills/lit-pptx/`, a folder the LitMuse installer and uninstaller never write or remove, so `npx @litfamily/litmuse install`, a plugin update and `muse plugins update` all leave it alone, and `doctor` reports it as `INFO moved` rather than an overlap. To take a newer edition from the clone, run the install line again with `--force`.
81
+ The copy and this stub do not collide. The stub is the plugin skill `plugin:litmuse:lit-pptx`, which the LitMuse installer owns. The copy is the user skill `lit-pptx` in `$CONFIG_DIR/skills/lit-pptx/`, a folder the LitMuse installer and uninstaller never write or remove, so `npx @litfamily/litmuse install`, a plugin update and `muse plugins update` all leave it alone, and `doctor` reports it as `INFO moved` rather than an overlap. To take a newer edition, follow Update above.
36
82
 
37
83
  ## What to do when this stub loads
38
84
 
@@ -41,7 +87,7 @@ The copy and this stub do not collide. The stub is the plugin skill `plugin:litm
41
87
  2. **Installed:** load it with read_skill id `lit-pptx` (the user skill, without the `plugin:litmuse:` prefix) and
42
88
  follow it for the whole request. This stub adds no rules of its own.
43
89
  3. **Not installed, asked for directly:** reply in a few lines: what the skill makes, that it is now a LitFamily extension in the `decks`
44
- family of wjgoarxiv-skills, the install line above, and that a new session picks it up. Build nothing and write no
90
+ family of wjgoarxiv-skills, the three lines above (look first, move an occupied folder aside, install) or the one `extensions install` line, and that a new session picks it up. Build nothing and write no
45
91
  files in its place.
46
92
  4. **Not installed, inside a lit workflow:** record in the ledger that `lit-pptx` is not installed, leave its deliverable open (never mark it done), name the install line once in the final report, and carry on with the rest of the work.
47
93
 
@@ -21,18 +21,64 @@ it does one of two things: hand over to the installed copy, or say how to instal
21
21
 
22
22
  ## Install it in Muse (this one skill)
23
23
 
24
+ The repository is public at https://github.com/wjgoarxiv/wjgoarxiv-skills; clone it once and point the install line
25
+ at that clone. Run the three steps from the project you work in, one line each; zsh and bash both take them.
26
+
27
+ 1. Look first. This line only reads. It prints each folder Muse could load as `lit-schematic`: your Muse user skills, the
28
+ personal folders `~/.claude/skills` and `~/.codex/skills` that Muse also loads, and the project's `.agents/skills`
29
+ and `.claude/skills`.
30
+
31
+ ```bash
32
+ command ls -d "${XDG_CONFIG_HOME:-$HOME/.config}/muse/skills/lit-schematic" "$HOME/.claude/skills/lit-schematic" "$HOME/.codex/skills/lit-schematic" .agents/skills/lit-schematic .claude/skills/lit-schematic 2>/dev/null
33
+ ```
34
+
35
+ 2. If the first of those paths was printed, move that folder aside whole. It goes to a dated folder under
36
+ `extension-backups/` beside Muse's skills, where Muse does not look, with every file you added still inside. When
37
+ nothing is there, the line does nothing.
38
+
39
+ ```bash
40
+ D="${XDG_CONFIG_HOME:-$HOME/.config}/muse/skills/lit-schematic"; B="${XDG_CONFIG_HOME:-$HOME/.config}/muse/extension-backups/$(date +%Y%m%d-%H%M%S)"; [ -e "$D" ] && mkdir -p "$B" && mv "$D" "$B/" && echo "moved to $B/lit-schematic"
41
+ ```
42
+
43
+ 3. Install:
44
+
24
45
  ```bash
25
46
  muse skills install <path to your wjgoarxiv-skills clone>/variants/litmuse/lit-schematic --scope user
26
47
  ```
27
48
 
28
49
  `muse skills install` copies that folder into Muse's user skills (`$XDG_CONFIG_HOME/muse/skills/lit-schematic/`, else
29
- `~/.config/muse/skills/lit-schematic/`). The next session lists it in the catalog as `lit-schematic`, scope `user`, next to
30
- this stub. `muse skills uninstall lit-schematic` takes it out again. The repository is public at
31
- https://github.com/wjgoarxiv/wjgoarxiv-skills; clone it once and point the install line at that clone.
50
+ `~/.config/muse/skills/lit-schematic/`) and records the source folder, the time and each file's hash in its own lock,
51
+ `$CONFIG_DIR/skills/.muse/lock.json`, so no other receipt is needed. The next session lists it in the catalog as
52
+ `lit-schematic`, scope `user`, next to this stub. Muse refuses to install over a folder that is already there (`skill already
53
+ installed`, or `install would overwrite unmanaged files` when only your own files are left in it); step 2 is the way
54
+ past that. A personal copy in `~/.claude/skills/lit-schematic/` or `~/.codex/skills/lit-schematic/` ranks below the user skill, so after
55
+ the install Muse loads this one and reports those as shadowed. A project copy in `.agents/skills/lit-schematic/` or
56
+ `.claude/skills/lit-schematic/` ranks above it inside that project; move or rename that one to use the extension there.
57
+
58
+ ### Or let LitMuse run the lines
59
+
60
+ `npx @litfamily/litmuse extensions install lit-schematic` runs steps 1 to 3 for you. It prints the plan first, stops and names
61
+ any same-name skill in another folder Muse reads (that one is never touched), moves an occupied folder aside into
62
+ `extension-backups/`, then calls `muse skills install`. Nothing changes until you add `--yes`. `--from <clone>` uses
63
+ your own clone; without it LitMuse keeps a shallow clone in its cache. `extensions update`, `extensions remove lit-schematic`,
64
+ `extensions check`, `extensions list` and `extensions prune-backups` cover the rest, with the same `--yes` rule.
65
+
66
+ ### Update
67
+
68
+ Run steps 1 to 3 again; the old copy lands in a new dated folder. Leave out `--force` and `muse skills update lit-schematic`:
69
+ both rewrite the shipped files in place and keep every other file, so anything a newer edition dropped would stay
70
+ behind.
71
+
72
+ ### Remove
73
+
74
+ Run step 2, then `muse skills uninstall lit-schematic`. With the folder already moved it deletes nothing and only drops Muse's
75
+ record, so a later `muse skills update` cannot bring the copy back. Run on its own, `muse skills uninstall` deletes the
76
+ files it copied and leaves the ones you added in a folder Muse no longer lists, which then blocks the next install
77
+ until you move it aside.
32
78
 
33
79
  The Muse edition is this skill rewritten to stand alone in Muse. It carries its own helpers, fonts and lockfiles, works with Muse's own tools, and needs no LitMuse hook, agent or approval.
34
80
 
35
- The copy and this stub do not collide. The stub is the plugin skill `plugin:litmuse:lit-schematic`, which the LitMuse installer owns. The copy is the user skill `lit-schematic` in `$CONFIG_DIR/skills/lit-schematic/`, a folder the LitMuse installer and uninstaller never write or remove, so `npx @litfamily/litmuse install`, a plugin update and `muse plugins update` all leave it alone, and `doctor` reports it as `INFO moved` rather than an overlap. To take a newer edition from the clone, run the install line again with `--force`.
81
+ The copy and this stub do not collide. The stub is the plugin skill `plugin:litmuse:lit-schematic`, which the LitMuse installer owns. The copy is the user skill `lit-schematic` in `$CONFIG_DIR/skills/lit-schematic/`, a folder the LitMuse installer and uninstaller never write or remove, so `npx @litfamily/litmuse install`, a plugin update and `muse plugins update` all leave it alone, and `doctor` reports it as `INFO moved` rather than an overlap. To take a newer edition, follow Update above.
36
82
 
37
83
  ## What to do when this stub loads
38
84
 
@@ -41,7 +87,7 @@ The copy and this stub do not collide. The stub is the plugin skill `plugin:litm
41
87
  2. **Installed:** load it with read_skill id `lit-schematic` (the user skill, without the `plugin:litmuse:` prefix) and
42
88
  follow it for the whole request. This stub adds no rules of its own.
43
89
  3. **Not installed, asked for directly:** reply in a few lines: what the skill makes, that it is now a LitFamily extension in the `figures`
44
- family of wjgoarxiv-skills, the install line above, and that a new session picks it up. Build nothing and write no
90
+ family of wjgoarxiv-skills, the three lines above (look first, move an occupied folder aside, install) or the one `extensions install` line, and that a new session picks it up. Build nothing and write no
45
91
  files in its place.
46
92
  4. **Not installed, inside a lit workflow:** record in the ledger that `lit-schematic` is not installed, leave its deliverable open (never mark it done), name the install line once in the final report, and carry on with the rest of the work.
47
93
 
@@ -21,18 +21,64 @@ it does one of two things: hand over to the installed copy, or say how to instal
21
21
 
22
22
  ## Install it in Muse (this one skill)
23
23
 
24
+ The repository is public at https://github.com/wjgoarxiv/wjgoarxiv-skills; clone it once and point the install line
25
+ at that clone. Run the three steps from the project you work in, one line each; zsh and bash both take them.
26
+
27
+ 1. Look first. This line only reads. It prints each folder Muse could load as `lit-scientific-visualization`: your Muse user skills, the
28
+ personal folders `~/.claude/skills` and `~/.codex/skills` that Muse also loads, and the project's `.agents/skills`
29
+ and `.claude/skills`.
30
+
31
+ ```bash
32
+ command ls -d "${XDG_CONFIG_HOME:-$HOME/.config}/muse/skills/lit-scientific-visualization" "$HOME/.claude/skills/lit-scientific-visualization" "$HOME/.codex/skills/lit-scientific-visualization" .agents/skills/lit-scientific-visualization .claude/skills/lit-scientific-visualization 2>/dev/null
33
+ ```
34
+
35
+ 2. If the first of those paths was printed, move that folder aside whole. It goes to a dated folder under
36
+ `extension-backups/` beside Muse's skills, where Muse does not look, with every file you added still inside. When
37
+ nothing is there, the line does nothing.
38
+
39
+ ```bash
40
+ D="${XDG_CONFIG_HOME:-$HOME/.config}/muse/skills/lit-scientific-visualization"; B="${XDG_CONFIG_HOME:-$HOME/.config}/muse/extension-backups/$(date +%Y%m%d-%H%M%S)"; [ -e "$D" ] && mkdir -p "$B" && mv "$D" "$B/" && echo "moved to $B/lit-scientific-visualization"
41
+ ```
42
+
43
+ 3. Install:
44
+
24
45
  ```bash
25
46
  muse skills install <path to your wjgoarxiv-skills clone>/variants/litmuse/lit-scientific-visualization --scope user
26
47
  ```
27
48
 
28
49
  `muse skills install` copies that folder into Muse's user skills (`$XDG_CONFIG_HOME/muse/skills/lit-scientific-visualization/`, else
29
- `~/.config/muse/skills/lit-scientific-visualization/`). The next session lists it in the catalog as `lit-scientific-visualization`, scope `user`, next to
30
- this stub. `muse skills uninstall lit-scientific-visualization` takes it out again. The repository is public at
31
- https://github.com/wjgoarxiv/wjgoarxiv-skills; clone it once and point the install line at that clone.
50
+ `~/.config/muse/skills/lit-scientific-visualization/`) and records the source folder, the time and each file's hash in its own lock,
51
+ `$CONFIG_DIR/skills/.muse/lock.json`, so no other receipt is needed. The next session lists it in the catalog as
52
+ `lit-scientific-visualization`, scope `user`, next to this stub. Muse refuses to install over a folder that is already there (`skill already
53
+ installed`, or `install would overwrite unmanaged files` when only your own files are left in it); step 2 is the way
54
+ past that. A personal copy in `~/.claude/skills/lit-scientific-visualization/` or `~/.codex/skills/lit-scientific-visualization/` ranks below the user skill, so after
55
+ the install Muse loads this one and reports those as shadowed. A project copy in `.agents/skills/lit-scientific-visualization/` or
56
+ `.claude/skills/lit-scientific-visualization/` ranks above it inside that project; move or rename that one to use the extension there.
57
+
58
+ ### Or let LitMuse run the lines
59
+
60
+ `npx @litfamily/litmuse extensions install lit-scientific-visualization` runs steps 1 to 3 for you. It prints the plan first, stops and names
61
+ any same-name skill in another folder Muse reads (that one is never touched), moves an occupied folder aside into
62
+ `extension-backups/`, then calls `muse skills install`. Nothing changes until you add `--yes`. `--from <clone>` uses
63
+ your own clone; without it LitMuse keeps a shallow clone in its cache. `extensions update`, `extensions remove lit-scientific-visualization`,
64
+ `extensions check`, `extensions list` and `extensions prune-backups` cover the rest, with the same `--yes` rule.
65
+
66
+ ### Update
67
+
68
+ Run steps 1 to 3 again; the old copy lands in a new dated folder. Leave out `--force` and `muse skills update lit-scientific-visualization`:
69
+ both rewrite the shipped files in place and keep every other file, so anything a newer edition dropped would stay
70
+ behind.
71
+
72
+ ### Remove
73
+
74
+ Run step 2, then `muse skills uninstall lit-scientific-visualization`. With the folder already moved it deletes nothing and only drops Muse's
75
+ record, so a later `muse skills update` cannot bring the copy back. Run on its own, `muse skills uninstall` deletes the
76
+ files it copied and leaves the ones you added in a folder Muse no longer lists, which then blocks the next install
77
+ until you move it aside.
32
78
 
33
79
  The Muse edition is this skill rewritten to stand alone in Muse. It carries its own helpers, fonts and lockfiles, works with Muse's own tools, and needs no LitMuse hook, agent or approval. A step that needs the pinned matplotlib environment sets it up on first use from the installed folder into a per-user cache; when the sandbox blocks that install, the copy stops with `BLOCKED:` and gives the user the one command to run in a terminal.
34
80
 
35
- The copy and this stub do not collide. The stub is the plugin skill `plugin:litmuse:lit-scientific-visualization`, which the LitMuse installer owns. The copy is the user skill `lit-scientific-visualization` in `$CONFIG_DIR/skills/lit-scientific-visualization/`, a folder the LitMuse installer and uninstaller never write or remove, so `npx @litfamily/litmuse install`, a plugin update and `muse plugins update` all leave it alone, and `doctor` reports it as `INFO moved` rather than an overlap. To take a newer edition from the clone, run the install line again with `--force`.
81
+ The copy and this stub do not collide. The stub is the plugin skill `plugin:litmuse:lit-scientific-visualization`, which the LitMuse installer owns. The copy is the user skill `lit-scientific-visualization` in `$CONFIG_DIR/skills/lit-scientific-visualization/`, a folder the LitMuse installer and uninstaller never write or remove, so `npx @litfamily/litmuse install`, a plugin update and `muse plugins update` all leave it alone, and `doctor` reports it as `INFO moved` rather than an overlap. To take a newer edition, follow Update above.
36
82
 
37
83
  ## What to do when this stub loads
38
84
 
@@ -41,7 +87,7 @@ The copy and this stub do not collide. The stub is the plugin skill `plugin:litm
41
87
  2. **Installed:** load it with read_skill id `lit-scientific-visualization` (the user skill, without the `plugin:litmuse:` prefix) and
42
88
  follow it for the whole request. This stub adds no rules of its own.
43
89
  3. **Not installed, asked for directly:** reply in a few lines: what the skill makes, that it is now a LitFamily extension in the `figures`
44
- family of wjgoarxiv-skills, the install line above, and that a new session picks it up. Build nothing and write no
90
+ family of wjgoarxiv-skills, the three lines above (look first, move an occupied folder aside, install) or the one `extensions install` line, and that a new session picks it up. Build nothing and write no
45
91
  files in its place.
46
92
  4. **Not installed, inside a lit workflow:** record in the ledger that `lit-scientific-visualization` is not installed, leave its deliverable open (never mark it done), name the install line once in the final report, and carry on with the rest of the work.
47
93