agent-skillboard 0.2.18 → 0.3.1

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 (82) hide show
  1. package/CHANGELOG.md +85 -0
  2. package/README.md +161 -255
  3. package/bin/postinstall.mjs +2 -1
  4. package/docs/adapters.md +37 -113
  5. package/docs/ai-skill-routing-goal.md +41 -108
  6. package/docs/capabilities.md +17 -104
  7. package/docs/install.md +70 -473
  8. package/docs/policy-model.md +50 -280
  9. package/docs/positioning.md +19 -86
  10. package/docs/profiles.md +21 -153
  11. package/docs/reference.md +133 -362
  12. package/docs/rollout-runbook.md +23 -25
  13. package/docs/routing.md +23 -90
  14. package/docs/user-flow.md +68 -279
  15. package/docs/value-proof.md +23 -181
  16. package/docs/variant-lifecycle.md +47 -67
  17. package/docs/versioning.md +49 -269
  18. package/examples/v2-multi-source.config.yaml +35 -0
  19. package/examples/v2-policy-error.config.yaml +6 -0
  20. package/package.json +1 -1
  21. package/src/advisor/actions.mjs +102 -6
  22. package/src/advisor/application-commands.mjs +10 -9
  23. package/src/advisor/apply-action.mjs +74 -1
  24. package/src/advisor/guidance.mjs +24 -16
  25. package/src/advisor/schema.mjs +17 -6
  26. package/src/advisor/skills.mjs +18 -5
  27. package/src/advisor.mjs +27 -9
  28. package/src/agent-integration-cli.mjs +96 -13
  29. package/src/agent-integration-content.mjs +21 -11
  30. package/src/agent-integration-files.mjs +1 -1
  31. package/src/agent-integration-home.mjs +14 -1
  32. package/src/agent-inventory-platforms.mjs +21 -8
  33. package/src/agent-inventory.mjs +44 -16
  34. package/src/agent-root-registry.mjs +127 -0
  35. package/src/agent-skill-import.mjs +2 -2
  36. package/src/agent-skill-roots.mjs +70 -13
  37. package/src/audit-paths.mjs +42 -0
  38. package/src/brief-cli.mjs +3 -2
  39. package/src/brief-renderer.mjs +1 -0
  40. package/src/cli.mjs +521 -235
  41. package/src/compatibility.mjs +24 -0
  42. package/src/control/can-use-guard.mjs +21 -1
  43. package/src/control/config-write.mjs +32 -2
  44. package/src/control/skill-crud.mjs +5 -0
  45. package/src/control/v2-guard.mjs +175 -0
  46. package/src/control/v2-skill-crud.mjs +32 -0
  47. package/src/control/v2-skill-forget.mjs +38 -0
  48. package/src/control/variant-status.mjs +47 -1
  49. package/src/control.mjs +55 -0
  50. package/src/doctor.mjs +71 -5
  51. package/src/domain/v2-policy.mjs +111 -0
  52. package/src/hook-plan.mjs +33 -3
  53. package/src/impact.mjs +52 -29
  54. package/src/index.mjs +25 -1
  55. package/src/init.mjs +50 -34
  56. package/src/install-health.mjs +177 -0
  57. package/src/inventory-install-units.mjs +63 -0
  58. package/src/inventory-json.mjs +279 -0
  59. package/src/inventory-refresh.mjs +168 -19
  60. package/src/lifecycle-cli.mjs +40 -12
  61. package/src/lifecycle-content.mjs +52 -67
  62. package/src/migration/v1-to-v2.mjs +212 -0
  63. package/src/migration/v2-files.mjs +211 -0
  64. package/src/migration/v2-journal.mjs +169 -0
  65. package/src/migration/v2-projection.mjs +108 -0
  66. package/src/migration/v2-transaction.mjs +205 -0
  67. package/src/policy.mjs +3 -0
  68. package/src/reconcile.mjs +139 -111
  69. package/src/report.mjs +168 -148
  70. package/src/review.mjs +2 -0
  71. package/src/route-advisory.mjs +47 -2
  72. package/src/route-selection.mjs +38 -2
  73. package/src/route.mjs +62 -2
  74. package/src/shared-skill-reconcile.mjs +97 -0
  75. package/src/shared-skill.mjs +325 -0
  76. package/src/source-digest.mjs +42 -0
  77. package/src/source-profiles.mjs +171 -144
  78. package/src/source-verification.mjs +32 -48
  79. package/src/uninstall.mjs +22 -0
  80. package/src/user-state-paths.mjs +19 -0
  81. package/src/user-uninstall.mjs +161 -0
  82. package/src/workspace.mjs +119 -79
package/CHANGELOG.md CHANGED
@@ -2,6 +2,91 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.3.1 — 2026-07-14
6
+
7
+ ### Added
8
+
9
+ - Added read-only installation health to `doctor` and `status`, including the
10
+ running package, PATH-selected executable, shadowing, and duplicate npm
11
+ installs without executing candidate programs.
12
+ - Added `skillboard setup --agent <agent> --skill-root <path>` for registering a
13
+ nonstandard user skill root and reusing it across later setup, package update,
14
+ share, unshare, and user-uninstall runs.
15
+
16
+ ### Changed
17
+
18
+ - Made setup and global package updates preserve version 1 policy bytes and
19
+ print only the explicit v2 migration preview command.
20
+ - Made `setup` the idempotent install/update/reconcile entrypoint for agents and
21
+ Hermes profiles added after SkillBoard installation.
22
+ - Made setup backfill only already-selected `shared: true` skills into newly
23
+ active compatible roots while preserving agent-local defaults and unmanaged
24
+ collisions.
25
+ - Kept registered roots in generated operational state rather than expanding
26
+ the v2 policy beyond `enabled`, `shared`, and optional preference.
27
+
28
+ ### Fixed
29
+
30
+ - Added actionable single-prefix recovery guidance so system npm and Node
31
+ version-manager installations cannot silently drift without a doctor warning.
32
+ - Prevented a stale default-root copy from producing false guard availability
33
+ after a custom root is registered.
34
+ - Preserved conventional roots that still contain agent-owned skills alongside
35
+ registered roots, and included historical managed guidance in clean user
36
+ removal.
37
+ - Restored invoking-user ownership recursively for shared skill copies created
38
+ or repaired by setup during sudo-driven global installs and updates.
39
+
40
+ ### Security
41
+
42
+ - Restricted registered roots to non-symlinked directories inside the invoking
43
+ user's home and rejected assigning one root to different agents.
44
+ - Treated malformed or symlinked share markers as unmanaged evidence so setup
45
+ and removal preserve user-owned or externally linked content.
46
+
47
+ ## 0.3.0 — 2026-07-13
48
+
49
+ ### Changed
50
+
51
+ - Replaced the v1 policy matrix with schema v2's user-level decisions:
52
+ enable/disable and explicit per-skill cross-agent sharing.
53
+ - Made valid installed skills enabled and agent-local by default; `shared: true`
54
+ preserves originals while creating managed compatible copies.
55
+ - Added generated `installed_on` inventory so route and guard evaluate the
56
+ selected agent without a user-managed agent matrix.
57
+ - Made normal setup, brief, route, guard, and policy mutations use home state
58
+ from any working directory; project init is no longer part of the v2 flow.
59
+ - Limited optional preference to candidate ranking; preference never changes
60
+ availability or sharing.
61
+ - Moved source, provenance, install-unit, digest, alias, and risk observations to
62
+ optional generated audit metadata that cannot block a skill.
63
+ - Added explicit preview, apply, and byte-restoring rollback documentation for
64
+ `skillboard migrate v2`.
65
+ - Scheduled removal of the one-release v1 read-only compatibility window for
66
+ v0.4.0.
67
+ - Added `skill forget` for explicit policy-only cleanup after an owning
68
+ installer removes a local skill.
69
+ - Added `uninstall --user` dry-run and confirmed apply flows that remove all
70
+ marker-owned shared copies, managed guidance, and home state while preserving
71
+ agent-owned and unmanaged skills.
72
+ - Restored the declared Node.js 14.21 runtime floor and added release gates for
73
+ Node.js 14.21, 20, and 22 on Ubuntu, macOS, and Windows.
74
+
75
+ ### Fixed
76
+
77
+ - Prevented removed skills from leaving unrecoverable stale policy that keeps
78
+ doctor unhealthy.
79
+ - Prevented package removal from orphaning SkillBoard-managed shared copies in
80
+ supported agent skill roots.
81
+ - Replaced Node 15/16-only clone, string replacement, recursive copy, and npm
82
+ smoke-test APIs with Node.js 14.21-compatible paths.
83
+
84
+ ### Security
85
+
86
+ - Clarified that SkillBoard does not authorize hooks, MCP servers, commands,
87
+ external writes, destructive actions, or secrets; those remain runtime and
88
+ harness permission decisions.
89
+
5
90
  ## 0.2.18 — 2026-07-07
6
91
 
7
92
  ### Changed
package/README.md CHANGED
@@ -1,298 +1,204 @@
1
1
  # SkillBoard
2
2
 
3
- Keep AI-agent skills broadly available, then route overlaps consistently.
4
-
5
- If you use more than one coding agent, skill pack, plugin, MCP tool, or
6
- marketplace, SkillBoard answers the practical questions before you install
7
- anything or change workflow policy: which skills are usable now, which one
8
- should win when skills overlap, which external skills need review, and how
9
- Codex, Claude, OpenCode, and Hermes can follow the same policy.
10
-
11
- Ask your AI normal work requests: "write tests before implementation",
12
- "review this plan and point out weak assumptions", "help me refine this UX
13
- flow", or explicit control requests like "use the Codex test-first skill in
14
- OpenCode too." SkillBoard runs behind the scenes only when skill choices
15
- overlap, workflow priority matters, or you explicitly ask for a skill/control
16
- decision, so you get the benefit: broadly available skills, one routed skill
17
- when similar skills overlap, and a short disclosure of what was used.
18
-
19
- The burden stays low:
20
-
21
- - No global install is required for a trial; use
22
- `npm exec --yes --package agent-skillboard@latest -- skillboard`.
23
- - Most use is read-only: `brief`, `route`, and `guard use` answer what can run
24
- now and which route fits the request; `doctor` checks local policy and source
25
- health without writing changes.
26
- - Nothing changes until you approve a policy action.
27
- - Agent-layer cleanup is previewable with
28
- `skillboard uninstall --agent-layer --dry-run`; it removes only managed
29
- SkillBoard guidance while preserving other agent skills.
30
-
31
- Status: public alpha. The current config schema is config schema v1; breaking
32
- changes may still happen before `1.0.0` and are documented in release notes.
33
-
34
- Under the hood, SkillBoard is workflow-scoped skill priority and overlap routing
35
- for AI agents. Installed user skills are usable by default unless runtime, user,
36
- or local instructions disable them; SkillBoard helps Codex, OpenCode, Claude,
37
- and Hermes resolve overlapping skills and workflow priority instead of guessing
38
- from raw skill files.
39
-
40
- Start with normal requests:
41
-
42
- - "What skills can you use in this project?"
43
- - "Write tests before implementation."
44
- - "Review this plan and point out weak assumptions."
45
- - "Help me refine this UX flow."
46
- - "Use the Codex test-first skill in OpenCode too."
47
- - "Can you make `anthropic.docx` available for this workflow?"
48
- - "Why is this skill blocked?"
49
-
50
- Your AI runs SkillBoard behind the scenes, reads the current brief, checks the
51
- guard automatically before invoking an allowed skill, and asks only before
52
- policy-changing actions. For already-allowed skills, it should say which skill
53
- it is about to use and which skill it used, not interrupt you for another
54
- approval. That disclosure is an audit trace, not a permission prompt. You do
55
- not need to memorize the SkillBoard command loop.
56
-
57
- A normal allowed-skill turn can look like this:
58
-
59
- - You: "Write tests before implementation."
60
- - AI: "I will use matt.tdd for this request."
61
- - AI: "I used matt.tdd for this request."
62
-
63
- Names you may see in setup and logs:
64
-
65
- - `SkillBoard`: the product and policy model.
66
- - `agent-skillboard`: the npm package.
67
- - `skillboard`: the CLI binary.
68
-
69
- ## Who This Is For
70
-
71
- Use SkillBoard if you use more than one coding agent, skill pack, plugin, MCP
72
- tool, or marketplace and want one answer to:
73
-
74
- - Which skills can this agent use right now?
75
- - Which skill should win when several match the same task?
76
- - Which external or plugin skills are reviewed, blocked, or waiting for approval?
77
- - How can Codex, Claude, OpenCode, and Hermes follow the same skill policy?
78
-
79
- If you use one agent with a few hand-written local skills, you probably do not
80
- need SkillBoard yet. SkillBoard is for setups that have grown beyond one trusted
81
- skill folder and need workflow-scoped control without turning skill governance
82
- into a manual checklist.
83
-
84
- If you are changing routing, brief, bridge, policy, or workflow UX, read
85
- [AI Skill Routing Goal](docs/ai-skill-routing-goal.md) first; it defines the
86
- non-blocking `observe → route → work → explain briefly → ask after → remember
87
- policy` loop that development should preserve.
3
+ SkillBoard gives AI agents one small user-level policy for installed skills:
4
+
5
+ 1. Enable or disable a skill.
6
+ 2. Keep an enabled skill agent-local or shared across agents.
7
+
8
+ Valid installed skills default to enabled and agent-local. Sharing is opt-in per
9
+ skill. Optional preference ranks enabled skills installed for the current agent
10
+ and never changes availability or copies files.
11
+
12
+ Status: public alpha. Package 0.3.1 writes policy schema v2.
88
13
 
89
14
  <p align="center">
90
- <img src="https://raw.githubusercontent.com/NyXXiR/skillboard/main/skillboard.png" alt="SkillBoard architecture diagram: sources, inventory scanner, SkillBoard model, policy engine, and user and agent surfaces." width="100%">
15
+ <img src="https://raw.githubusercontent.com/NyXXiR/skillboard/main/skillboard.png" alt="SkillBoard architecture diagram" width="100%">
91
16
  </p>
92
17
 
93
- ## Why Not Just List `/skills`?
18
+ ## 5-Minute Quick Start
94
19
 
95
- A raw skill list answers what is declared. SkillBoard answers what can run now
96
- and how overlapping matches should route.
20
+ Try the read-only CLI:
97
21
 
98
- Same fixture, different answer:
22
+ ```bash
23
+ npm exec --yes --package agent-skillboard@latest -- skillboard --version
24
+ npm exec --yes --package agent-skillboard@latest -- skillboard help
25
+ ```
99
26
 
100
- | Raw skill list | SkillBoard brief |
101
- | --- | --- |
102
- | `matt.tdd active workflow-auto` | `AI can use now: 0` |
103
- | no policy health | `Blocked for safety: 8`, `Policy errors: 2` |
104
- | several review skills look relevant | `Overlap: Multiple allowed skills match... routes ...` |
27
+ Install globally:
105
28
 
106
- That gap is the product. SkillBoard separates `installed` from `available`,
107
- checks policy health, and gives agents a route they can use without guessing
108
- from raw `SKILL.md` files. The same proof also routes "write tests before
109
- implementation" to `matt.tdd`, returns `private.tdd-work-continuity` as the
110
- fallback, and gives the AI exact start and finish disclosure text. Targeted
111
- tests also cover `grill-me`-style review overlap across Codex and OpenCode
112
- workflows.
29
+ ```bash
30
+ npm install -g agent-skillboard
31
+ skillboard doctor --summary
32
+ ```
113
33
 
114
- See [Tested Value Proof](#tested-value-proof) for the executable proof.
34
+ The package postinstall sets up detected agent guidance and creates the
35
+ user-level state at `~/skillboard.config.yaml` and
36
+ `~/.skillboard/inventory.json`. No separate setup command is required after a
37
+ normal install. If lifecycle scripts were skipped or another agent was added:
115
38
 
116
- ## 5-Minute Quick Start
39
+ ```bash
40
+ skillboard setup --agent codex,claude,opencode,hermes --yes
41
+ ```
117
42
 
118
- Try it without a global install. These read-only commands download the latest
119
- package for one run and do not create project files:
43
+ Use the same Node/npm environment for later updates:
120
44
 
121
45
  ```bash
122
- npm exec --yes --package agent-skillboard@latest -- skillboard --version
123
- npm exec --yes --package agent-skillboard@latest -- skillboard help brief
46
+ npm config get prefix
47
+ npm install -g agent-skillboard@latest
48
+ skillboard doctor --summary
124
49
  ```
125
50
 
126
- Install the CLI when you want SkillBoard connected to your agent layer. On a
127
- normal global install, SkillBoard auto-connects the agent layer for detected
128
- Codex, Claude, OpenCode, and Hermes user skill roots:
51
+ Doctor compares the running package with the `skillboard` executable selected
52
+ by `PATH` and reports duplicate global installs without executing those
53
+ candidates. If multiple SkillBoard installations are reported, choose one npm
54
+ prefix, activate the Node environment that owns each stale copy, and run
55
+ `npm uninstall -g agent-skillboard` there. SkillBoard does not automatically
56
+ uninstall another prefix. Restart or refresh agents after an update because
57
+ some agents cache user skills.
58
+
59
+ `setup` is safe to rerun. It refreshes managed guidance and inventory, discovers
60
+ late standard agent homes and Hermes profiles, and fills already-selected
61
+ `shared: true` skills into newly active roots. It does not make every skill
62
+ global and never overwrites an unmanaged skill.
129
63
 
130
- AI/automation/operator details:
64
+ For an agent that uses a nonstandard skill directory, register that root once:
131
65
 
132
66
  ```bash
133
- npm install -g agent-skillboard
67
+ skillboard setup --agent hermes --skill-root ~/.hermes/profiles/work/skills --yes
134
68
  ```
135
69
 
136
- If your system npm requires elevated permissions, `sudo npm install -g
137
- agent-skillboard` is also supported. In that flow, install-time setup resolves
138
- `SUDO_USER` and writes the user-level guidance skill under the invoking user's
139
- agent homes. Managed guidance files written under the user's home are restored
140
- to the invoking user's ownership, while the `skillboard` binary still lands in
141
- the global prefix used by that npm command.
142
-
143
- The install-time setup writes a user-level `skillboard` guidance skill under
144
- detected agent homes. For Codex, detection includes `CODEX_HOME/skills`,
145
- `AGENTS_HOME/skills`, `~/.agents/skills`, and `~/.codex/skills`.
146
- If `~/.agents` already exists, setup creates `~/.agents/skills` because that is
147
- the shared Codex-visible skill tree in LazyCodex-style environments.
148
- It does not create `skillboard.config.yaml`,
149
- `.skillboard/`, `AGENTS.md`, or `CLAUDE.md` in projects.
150
- No separate setup command is required after a normal global install or update:
151
- npm lifecycle scripts run agent-layer setup automatically, rerun the agent-home
152
- scan, refresh managed SkillBoard guidance files, and add newly detected
153
- supported agent roots. This setup is agent-layer only.
154
-
155
- Run `skillboard setup --agent codex,claude,opencode,hermes --yes` later only
156
- after adding another supported agent, enabling a new agent home, or installing
157
- with lifecycle scripts disabled. Restart or refresh agents that cache user
158
- skills, then ask normal questions:
159
-
160
- - "Write tests before implementation."
161
- - "Review this plan and point out weak assumptions."
162
- - "What skills can you use here?"
163
- - "Use the Codex test-first skill in OpenCode too."
164
- - "When two skills overlap, which one should take priority?"
165
-
166
- When a target agent needs a skill from another agent, it can use
167
- `skillboard import-skill --from codex --to opencode --skill <skill> --json`
168
- behind the scenes. Compatible skills are copied into the target agent's user
169
- skill root. If the source contains agent-specific instructions, the agent asks
170
- before creating an adapted target-agent `SKILL.md` and installs that file with
171
- provenance.
172
-
173
- Remove SkillBoard's managed agent-layer guidance before package removal when
174
- you want agent homes back to their pre-SkillBoard guidance state:
70
+ The root must be inside the invoking user's home. SkillBoard records it as
71
+ operational discovery state in `~/.skillboard/agent-roots.json`, then reuses it
72
+ on later setup and global package updates. This does not add another policy
73
+ scope; per-skill `shared` remains the only cross-agent sharing decision.
74
+
75
+ `sudo npm install -g agent-skillboard` is supported when system npm requires
76
+ it. Setup resolves `SUDO_USER` and restores managed home files to that user.
77
+ Setup and ordinary use write no project policy and require no project init.
78
+
79
+ Ask the agent for the work you want. SkillBoard is consulted when skills overlap
80
+ or when you ask which skill should be used.
81
+
82
+ ## The v2 policy
83
+
84
+ ```yaml
85
+ version: 2
86
+ skills:
87
+ test-first:
88
+ enabled: true
89
+ shared: false
90
+ preference:
91
+ intents: [testing]
92
+ priority: 100
93
+ docs-helper:
94
+ enabled: true
95
+ shared: true
96
+ unused:
97
+ enabled: false
98
+ shared: false
99
+ ```
100
+
101
+ `enabled` controls use. `shared` controls whether SkillBoard maintains compatible
102
+ copies for other supported agents. `shared: false` leaves the skill where its
103
+ owner installed it; it does not quarantine, isolate, move, or delete anything.
104
+ `shared: true` preserves the owner copy and adds only managed shared copies.
105
+
106
+ New valid skills receive `enabled: true` and `shared: false`. See
107
+ `examples/v2-multi-source.config.yaml` for a valid policy and
108
+ `examples/v2-policy-error.config.yaml` for a validation fixture. Unprefixed
109
+ examples are retained only as v1 migration fixtures.
110
+
111
+ Generated inventory records where a skill is installed through `installed_on`.
112
+ Source, provenance, path, digest, aliases, install-unit details, and risk are
113
+ optional audit metadata and never determine availability. Runtime and action
114
+ authorization are outside SkillBoard's scope; the active agent or harness still
115
+ authorizes commands, hooks, MCP servers, network access, external writes,
116
+ destructive actions, and secrets.
117
+
118
+ ## Agent flow
119
+
120
+ From any working directory, an agent can:
121
+
122
+ 1. Read `skillboard brief --intent <request> --agent <agent> --json`.
123
+ 2. Select an enabled skill installed for that agent, using preference only to
124
+ rank matches.
125
+ 3. Run `skillboard guard use <skill-id> --agent <agent> --json` before use.
126
+ 4. Work without another approval when the guard allows use.
127
+ 5. Ask after completion only if remembering a preference would help.
128
+
129
+ Direct policy changes are:
175
130
 
176
131
  ```bash
177
- npx --yes --package agent-skillboard skillboard uninstall --agent-layer --dry-run
178
- npx --yes --package agent-skillboard skillboard uninstall --agent-layer
179
- npm uninstall -g agent-skillboard
132
+ skillboard skill enable <skill-id>
133
+ skillboard skill disable <skill-id>
134
+ skillboard skill share <skill-id>
135
+ skillboard skill unshare <skill-id>
136
+ skillboard skill preference <skill-id> --intent <term>[,<term>] --priority <integer>
137
+ skillboard skill forget <skill-id>
180
138
  ```
181
139
 
182
- Agent-layer uninstall removes only managed `skillboard/SKILL.md` guidance files
183
- that contain SkillBoard's integration marker. It preserves other agent skills
184
- and user-authored `skillboard` skills.
185
-
186
- See [docs/install.md](docs/install.md) for global installs, `--dir`, GitHub
187
- builds, clone-based development, Hermes bridge setup, refresh, and uninstall.
188
-
189
- ## What SkillBoard Gives You
190
-
191
- - Inventory that separates installed skills from callable skills.
192
- - Broad default availability with workflow-scoped overlap routing.
193
- - `brief`, `route`, `can-use`, and `guard use` surfaces for AI-mediated selection and availability.
194
- - `import-skill` for agent-layer skill reuse across Codex, Claude, OpenCode, and Hermes.
195
- - Workflow conflict checks and overlap summaries so similar skills stay
196
- available without quietly degrading an answer.
197
- - Action cards that apply one approved policy change, then re-resolve state.
198
- - Source and install-unit review for plugins, hooks, MCP servers, harnesses,
199
- commands, LSPs, and package-manager dependencies.
200
- - Impact, reconcile, rollout, and dashboard output before cleanup or migration.
201
- - Manual skill variant lifecycle for relationships such as `a -> claude.a`,
202
- with draft, approval, drift, and reset checkpoints.
203
-
204
- SkillBoard is priority-first at the agent layer: installed user skills are
205
- usable unless runtime, user, or local instructions disable them. Local workspace
206
- policy files can still model stricter workflow, source, and invocation
207
- decisions when a team needs that control.
208
- For action cards, use `skillboard apply-action <action-id> --yes --json`; raw
209
- `skillboard hook install ... --dry-run --json` previews are underlying manual
210
- operator detail, not the primary action-card flow.
211
-
212
- ## Legacy Project Policy Mode
213
-
214
- Legacy project policy mode is for existing workspaces that still carry local
215
- SkillBoard policy files.
216
-
217
- `skillboard init` is deprecated project-local policy bootstrap and is not
218
- needed for normal use. Global install/postinstall and `skillboard setup`
219
- connect SkillBoard at the agent layer without creating `skillboard.config.yaml`,
220
- `.skillboard/`, `AGENTS.md`, or `CLAUDE.md` in projects. Agent-layer setup does
221
- not run `skillboard init`.
222
-
223
- The command remains for existing workspaces that intentionally maintain local
224
- policy files, bridge guidance, and reports. Use `skillboard help init` before
225
- using it in an existing workspace.
226
-
227
- Default legacy project uninstall removes SkillBoard config, bridge guidance,
228
- and `.skillboard/` project state while preserving local `skills/*/SKILL.md`
229
- files:
140
+ Add `--dry-run` to preview or `--json` for machine-readable output. For mediated
141
+ changes, the agent reads `brief --include-actions --json`, asks once about one
142
+ current action, runs `skillboard apply-action <action-id> --agent <agent> --yes --json`, and
143
+ rereads the returned post-apply brief.
144
+
145
+ This is the distinction from a pure distribution tool: skills stay local by
146
+ default, users promote only selected skills to shared use, and routing preference
147
+ can be remembered without changing installation or availability.
148
+
149
+ ## Migrate version 1
150
+
151
+ Version 1 has a one-release read-only window beginning in v0.3.0. Preview makes
152
+ no writes; apply creates an adjacent byte-for-byte backup; rollback restores it.
230
153
 
231
154
  ```bash
232
- skillboard uninstall --dir /path/to/your/project --dry-run
233
- skillboard uninstall --dir /path/to/your/project
155
+ skillboard migrate v2 --config <path> --json
156
+ skillboard migrate v2 --config <path> --yes --json
157
+ skillboard migrate v2 --config <path> --rollback <backup> --json
234
158
  ```
235
159
 
236
- Use `--keep-settings` only when you want to keep legacy project policy and
237
- bridge guidance in place, for example while cleaning generated helper files.
238
- `--purge` remains accepted as an explicit spelling for the default clean
239
- project removal.
160
+ Setup and package updates keep v1 bytes unchanged and print the preview command.
161
+ SkillBoard does not automatically migrate version 1. All v1 mutations refuse
162
+ and point to migration. v0.4.0 removes the v1 reader.
240
163
 
241
- ## What Works Today
164
+ ## Cleanup
242
165
 
243
- SkillBoard currently supports:
166
+ After removing a local skill with its owning agent or package manager, refresh
167
+ inventory and explicitly forget the stale policy entry:
244
168
 
245
- - YAML policy config parsing and semantic checks.
246
- - Recursive `SKILL.md` discovery.
247
- - Source-profile import for cloned or installed skill repositories.
248
- - Agent runtime install-unit inventory when manifest metadata is available.
249
- - Markdown dashboard and machine-readable brief generation.
250
- - Disable-impact analysis and reconcile plans.
251
- - Workflow-scoped activation, blocking, preference, and guard checks.
252
- - Action-card approval and post-apply brief refresh.
253
- - Agent-layer skill import with compatible copy or user-approved AI-mediated adaptation.
254
- - Manual variant registration, fork, status, approval, and reset.
169
+ ```bash
170
+ skillboard inventory refresh
171
+ skillboard skill forget <skill-id> --dry-run
172
+ skillboard skill forget <skill-id>
173
+ ```
255
174
 
256
- For the full command catalog and config shape, use
257
- [docs/reference.md](docs/reference.md).
175
+ `forget` never deletes skill files. It refuses skills that are still observed or
176
+ shared, so shared skills must be unshared first.
258
177
 
259
- ## Tested Value Proof
178
+ Before removing the SkillBoard package, preview and apply the complete
179
+ user-level cleanup:
260
180
 
261
- A raw list says `matt.tdd` is active. SkillBoard says the same workflow has 0
262
- usable skills because policy health fails.
181
+ ```bash
182
+ skillboard uninstall --user --dry-run
183
+ skillboard uninstall --user --yes
184
+ npm uninstall -g agent-skillboard
185
+ ```
263
186
 
264
- | Question | Raw list | SkillBoard brief |
265
- | --- | --- | --- |
266
- | Does `matt.tdd` look enabled? | `active`, `workflow-auto` | blocked by policy health |
267
- | Can the agent safely use anything now? | not answered | 0 usable skills, 8 blocked skills |
268
- | Why? | not answered | `Policy errors: 2`, `Policy warnings: 1` |
187
+ User cleanup removes marker-owned shared copies, managed guidance, the home
188
+ policy, and generated user state. It preserves agent-owned and unmanaged skills.
189
+ Legacy project and guidance-only cleanup remain available through command help.
269
190
 
270
- The action-card flow is tested too. Applying
271
- `activate-skill:anthropic.docx` in a temporary project changes the next brief
272
- from 2 usable skills to 3 and moves `anthropic.docx` into the manual-allowed
273
- set. SkillBoard applies one approved change, then re-resolves the next state.
191
+ ## Development
274
192
 
275
- Run the proof with:
193
+ From a clone, replace `skillboard ` with `node bin/skillboard.mjs `.
276
194
 
277
195
  ```bash
278
- node --test test/readme-value-proof.test.mjs
196
+ npm install
197
+ npm run check
198
+ node bin/skillboard.mjs help
279
199
  ```
280
200
 
281
- See the [full reproducible proof](docs/value-proof.md) for exact commands,
282
- fixtures, and assertions.
283
-
284
- ## Where To Go Next
285
-
286
- - [AI skill routing goal](docs/ai-skill-routing-goal.md)
287
- - [Install and agent-layer setup](docs/install.md)
288
- - [First-time control flow](docs/user-flow.md)
289
- - [Capability routing](docs/routing.md)
290
- - [Command and config reference](docs/reference.md)
291
- - [Policy model](docs/policy-model.md)
292
- - [Capabilities](docs/capabilities.md)
293
- - [Skill variant lifecycle](docs/variant-lifecycle.md)
294
- - [Value proof](docs/value-proof.md)
295
- - [Source-profile adapters](docs/adapters.md)
296
- - [Rollout runbook](docs/rollout-runbook.md)
297
- - [Versioning and release rules](docs/versioning.md)
298
- - [Contributing](CONTRIBUTING.md)
201
+ Read [installation](docs/install.md), [user flow](docs/user-flow.md),
202
+ [policy model](docs/policy-model.md), [routing](docs/routing.md),
203
+ [reference](docs/reference.md), [versioning](docs/versioning.md), and the
204
+ [Rollout runbook](docs/rollout-runbook.md).
@@ -19,7 +19,7 @@ if (!shouldAutoSetup(process.env)) {
19
19
  "Run skillboard setup later after adding another supported agent:",
20
20
  " skillboard setup",
21
21
  "",
22
- "Setup only writes user agent skill files. It does not create skillboard.config.yaml or .skillboard/.",
22
+ "Setup writes user-agent guidance, reconciles shared skills, and refreshes the user-level policy and inventory.",
23
23
  "skillboard init is deprecated project-local policy bootstrap and is not needed for normal use.",
24
24
  ""
25
25
  ].join("\n")}`);
@@ -43,6 +43,7 @@ try {
43
43
  });
44
44
  if (exitCode === 0) {
45
45
  process.stderr.write("Agent setup complete. Package updates rerun this setup automatically; run skillboard setup later after adding another supported agent. No project init was run.\n");
46
+ process.stderr.write("Run skillboard doctor --summary to check policy and executable paths after the update.\n");
46
47
  } else {
47
48
  process.stderr.write("Agent setup did not find supported agent homes. Run skillboard setup after installing or enabling a supported agent.\n");
48
49
  }