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.
- package/dist/vault-sync/scripts/lib/platform.sh +12 -2
- package/package.json +1 -1
- package/skills/.claude-plugin/plugin.json +1 -1
- package/skills/.codex-plugin/plugin.json +1 -1
- package/skills/package.json +1 -1
- package/skills/skills/using-skillwiki/SKILL.md +12 -5
- package/skills/using-skillwiki/SKILL.md +12 -5
|
@@ -251,7 +251,17 @@ platform_launchd_plist_validate() {
|
|
|
251
251
|
function process(line) {
|
|
252
252
|
line = trim(line)
|
|
253
253
|
if (line == "") return
|
|
254
|
-
|
|
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.
|
|
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": {
|
package/skills/package.json
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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:
|