skillwiki 0.10.32 → 0.10.34

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.
@@ -251,7 +251,17 @@ platform_launchd_plist_validate() {
251
251
  function process(line) {
252
252
  line = trim(line)
253
253
  if (line == "") return
254
- if (line ~ /^<!--.*-->$/) return
254
+ # Comments are ignorable XML; skip content until the closing -->.
255
+ # The shipped templates carry a multi-line comment, so a single-line
256
+ # /^<!--.*-->$/ match is not enough.
257
+ if (in_comment) {
258
+ if (line ~ /-->$/) in_comment = 0
259
+ return
260
+ }
261
+ if (line ~ /^<!--/) {
262
+ if (line !~ /-->$/) in_comment = 1
263
+ return
264
+ }
255
265
  if (line ~ /^<\?xml[[:space:]][^>]*\?>$/) {
256
266
  if (plist_seen || xml_declaration_seen) invalid()
257
267
  xml_declaration_seen = 1
@@ -359,7 +369,7 @@ platform_launchd_plist_validate() {
359
369
  if (program_wait_array) program_kind = "not-array"
360
370
  if (program_wait_first) program_kind = "missing"
361
371
  document_kind = (plist_seen && plist_closed && root_dict_seen && root_dict_closed &&
362
- dict_depth == 0 && container_depth == 0 && !invalid_token ? "valid" : "invalid")
372
+ dict_depth == 0 && container_depth == 0 && !invalid_token && !in_comment ? "valid" : "invalid")
363
373
  printf "DOCUMENT_KIND=%s\n", document_kind
364
374
  printf "LABEL_KIND=%s\n", label_kind
365
375
  printf "LABEL_VALUE=%s\n", label_value
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skillwiki",
3
- "version": "0.10.32",
3
+ "version": "0.10.34",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "skillwiki": "dist/cli.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skillwiki",
3
- "version": "0.10.32",
3
+ "version": "0.10.34",
4
4
  "skills": "./",
5
5
  "description": "Project-aware Karpathy-style knowledge base for Claude Code: 19 prompt-only skills (wiki-*, proj-*, using-skillwiki) backed by the deterministic `skillwiki` CLI.",
6
6
  "author": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skillwiki",
3
- "version": "0.10.32",
3
+ "version": "0.10.34",
4
4
  "description": "Project-aware Karpathy-style knowledge base for Codex with 19 prompt-only skills backed by the deterministic skillwiki CLI.",
5
5
  "author": {
6
6
  "name": "karlorz",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skillwiki/skills",
3
- "version": "0.10.32",
3
+ "version": "0.10.34",
4
4
  "private": true,
5
5
  "files": [
6
6
  "wiki-*",
@@ -19,14 +19,21 @@ Use this section as procedural planning guidelines:
19
19
 
20
20
  ## Activation File (Cross-Harness Alternative to SessionStart)
21
21
 
22
- On harnesses where the SessionStart hook does not fire (Grok, Codex), SkillWiki activation context is delivered via a compact file installed at session start. Run `npm run install:activation` from the repo to install:
22
+ **Claude Code** and **Codex** activate SkillWiki via the plugin SessionStart hook (`hooks/session-start` / `hooks/session-start-codex`). Do **not** install activation markers into `~/.claude/CLAUDE.md` or `~/.codex/AGENTS.md` when the plugin is present that double-injects context and pollutes user-scope instruction files.
23
23
 
24
- - `~/.grok/skillwiki.md` and `~/.claude/skillwiki.md` - compact derivative (~31 lines) covering identity, CLI probe, skill map, PRD bridge, fail-closed boundary, and drift warning.
25
- - `~/.grok/AGENTS.md` and `~/.claude/CLAUDE.md` - prepended with a marker-wrapped reference: `Read @skillwiki.md for SkillWiki activation context.`
24
+ On harnesses where SessionStart `additionalContext` does **not** fire (**Grok**), SkillWiki activation context is delivered via a compact file. Run `npm run install:activation` from the repo to install:
26
25
 
27
- The activation file is self-contained literal text (ADR-3). On harnesses with `@file` import support (Claude Code, Cursor, Gemini), the reference is inlined automatically. On harnesses without it (Grok, Codex), the agent reads the file manually.
26
+ - `~/.grok/skillwiki.md` compact derivative covering identity, CLI probe, skill map, PRD bridge, fail-closed boundary, and drift warning.
27
+ - `~/.grok/AGENTS.md` — prepended with a marker-wrapped reference: `Read @skillwiki.md for SkillWiki activation context.`
28
28
 
29
- The template lives at `packages/skills/using-skillwiki/activation.md`. Run `npm run install:activation:check` to verify the installed copy matches the template.
29
+ Default install is **Grok only**. Re-running `install:activation` also **removes** any prior Claude/Codex activation marker and matching `skillwiki.md` (cleanup for the earlier dual-target installer). Opt-in fallbacks only when the plugin SessionStart path is unavailable:
30
+
31
+ - `npm run install:activation -- --with-claude` — `~/.claude/skillwiki.md` + `CLAUDE.md` marker
32
+ - `npm run install:activation -- --with-codex` — `~/.codex/skillwiki.md` + `AGENTS.md` marker
33
+
34
+ The activation file is self-contained literal text (ADR-3). On harnesses with `@file` import support, the reference is inlined automatically. On Grok (no `@file` support), the agent reads the file manually when it sees the instructional reference.
35
+
36
+ The template lives at `packages/skills/using-skillwiki/activation.md`. Run `npm run install:activation:check` to verify the Grok install matches the template and that Claude/Codex are not still carrying the activation block.
30
37
 
31
38
  ## When to Use These Skills
32
39
  Invoke a skillwiki skill when the user:
@@ -19,14 +19,21 @@ Use this section as procedural planning guidelines:
19
19
 
20
20
  ## Activation File (Cross-Harness Alternative to SessionStart)
21
21
 
22
- On harnesses where the SessionStart hook does not fire (Grok, Codex), SkillWiki activation context is delivered via a compact file installed at session start. Run `npm run install:activation` from the repo to install:
22
+ **Claude Code** and **Codex** activate SkillWiki via the plugin SessionStart hook (`hooks/session-start` / `hooks/session-start-codex`). Do **not** install activation markers into `~/.claude/CLAUDE.md` or `~/.codex/AGENTS.md` when the plugin is present that double-injects context and pollutes user-scope instruction files.
23
23
 
24
- - `~/.grok/skillwiki.md` and `~/.claude/skillwiki.md` - compact derivative (~31 lines) covering identity, CLI probe, skill map, PRD bridge, fail-closed boundary, and drift warning.
25
- - `~/.grok/AGENTS.md` and `~/.claude/CLAUDE.md` - prepended with a marker-wrapped reference: `Read @skillwiki.md for SkillWiki activation context.`
24
+ On harnesses where SessionStart `additionalContext` does **not** fire (**Grok**), SkillWiki activation context is delivered via a compact file. Run `npm run install:activation` from the repo to install:
26
25
 
27
- The activation file is self-contained literal text (ADR-3). On harnesses with `@file` import support (Claude Code, Cursor, Gemini), the reference is inlined automatically. On harnesses without it (Grok, Codex), the agent reads the file manually.
26
+ - `~/.grok/skillwiki.md` compact derivative covering identity, CLI probe, skill map, PRD bridge, fail-closed boundary, and drift warning.
27
+ - `~/.grok/AGENTS.md` — prepended with a marker-wrapped reference: `Read @skillwiki.md for SkillWiki activation context.`
28
28
 
29
- The template lives at `packages/skills/using-skillwiki/activation.md`. Run `npm run install:activation:check` to verify the installed copy matches the template.
29
+ Default install is **Grok only**. Re-running `install:activation` also **removes** any prior Claude/Codex activation marker and matching `skillwiki.md` (cleanup for the earlier dual-target installer). Opt-in fallbacks only when the plugin SessionStart path is unavailable:
30
+
31
+ - `npm run install:activation -- --with-claude` — `~/.claude/skillwiki.md` + `CLAUDE.md` marker
32
+ - `npm run install:activation -- --with-codex` — `~/.codex/skillwiki.md` + `AGENTS.md` marker
33
+
34
+ The activation file is self-contained literal text (ADR-3). On harnesses with `@file` import support, the reference is inlined automatically. On Grok (no `@file` support), the agent reads the file manually when it sees the instructional reference.
35
+
36
+ The template lives at `packages/skills/using-skillwiki/activation.md`. Run `npm run install:activation:check` to verify the Grok install matches the template and that Claude/Codex are not still carrying the activation block.
30
37
 
31
38
  ## When to Use These Skills
32
39
  Invoke a skillwiki skill when the user: