skillwiki 0.10.28 → 0.10.30

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.
@@ -4817,19 +4817,24 @@ async function runQuery(input) {
4817
4817
  });
4818
4818
  }
4819
4819
  const seedPaths = /* @__PURE__ */ new Set();
4820
+ const operationalSeedPaths = /* @__PURE__ */ new Set();
4820
4821
  let historicalCyclePageCount = 0;
4821
4822
  let hasDirectOperationalSeed = false;
4822
4823
  for (const page of pages) {
4823
4824
  if (page.historicalCycle) historicalCyclePageCount += 1;
4824
4825
  if (page.keywordScore <= 0) continue;
4825
4826
  seedPaths.add(page.relPath);
4826
- if (!page.historicalCycle) hasDirectOperationalSeed = true;
4827
+ if (!page.historicalCycle) {
4828
+ operationalSeedPaths.add(page.relPath);
4829
+ hasDirectOperationalSeed = true;
4830
+ }
4827
4831
  }
4828
4832
  const suppressRepetitiveHistoricalCycles = historicalCyclePageCount >= 3 && hasDirectOperationalSeed;
4833
+ const structuralSeedPaths = suppressRepetitiveHistoricalCycles ? operationalSeedPaths : seedPaths;
4829
4834
  const results = pages.map((page) => {
4830
- const sourceOverlap = scoreSourceOverlap(page, pages, seedPaths);
4831
- const wikilink = scoreWikilink(page.relPath, seedPaths, graph);
4832
- const aa = scoreAdamicAdar(page.relPath, seedPaths, graph);
4835
+ const sourceOverlap = scoreSourceOverlap(page, pages, structuralSeedPaths);
4836
+ const wikilink = scoreWikilink(page.relPath, structuralSeedPaths, graph);
4837
+ const aa = scoreAdamicAdar(page.relPath, structuralSeedPaths, graph);
4833
4838
  const typeAffinity = scoreTypeAffinity(page.type, queryTerms);
4834
4839
  const isSeed = page.keywordScore > 0;
4835
4840
  const structuralBoost = sourceOverlap * W_SOURCE_OVERLAP + wikilink * W_WIKILINK + aa * W_ADAMIC_ADAR;
package/dist/cli.js CHANGED
@@ -38,7 +38,7 @@ import {
38
38
  scanConflictMarkerBlocksInText,
39
39
  snapshotterHealthChecks,
40
40
  upsertIndexEntry
41
- } from "./chunk-W7NPTDIU.js";
41
+ } from "./chunk-6EEI6REK.js";
42
42
  import {
43
43
  normalizeDistTag,
44
44
  readCache,
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  runSkillwikiMcpStdio
4
- } from "./chunk-W7NPTDIU.js";
4
+ } from "./chunk-6EEI6REK.js";
5
5
  import "./chunk-7I2TPIV5.js";
6
6
  import "./chunk-OJVIND5D.js";
7
7
  import "./chunk-5XQWYC5K.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skillwiki",
3
- "version": "0.10.28",
3
+ "version": "0.10.30",
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.28",
3
+ "version": "0.10.30",
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.28",
3
+ "version": "0.10.30",
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,7 +1,7 @@
1
1
  ---
2
2
  name: proj-decide
3
3
  description: Use this agent when recording architectural decisions during automated maintenance cycles. Typical triggers include dev-loop IDLE DISCOVERY maintenance, capturing design decisions from work items, or generalizing decisions into concept pages. See "When to invoke" in the agent body for worked scenarios.
4
- model: sonnet
4
+ model: inherit
5
5
  color: yellow
6
6
  tools: ["Read", "Write", "Edit", "Bash", "Grep", "Glob"]
7
7
  ---
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: proj-work
3
3
  description: Use this agent when creating or executing work items during automated development cycles. Typical triggers include dev-loop work item creation from captured tasks, executing existing work items, or managing status transitions. See "When to invoke" in the agent body for worked scenarios.
4
- model: sonnet
4
+ model: inherit
5
5
  color: green
6
6
  tools: ["Read", "Write", "Edit", "Bash", "Grep", "Glob"]
7
7
  ---
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skillwiki/skills",
3
- "version": "0.10.28",
3
+ "version": "0.10.30",
4
4
  "private": true,
5
5
  "files": [
6
6
  "wiki-*",
@@ -5,6 +5,14 @@ description: Write an Architectural Decision Record (ADR). If the decision gener
5
5
 
6
6
  # proj-decide
7
7
 
8
+ ## Model routing
9
+
10
+ `proj-decide` authors architectural decisions and ADRs, so its companion
11
+ agent must run at the invoking main-agent model. Keep `model: inherit` in
12
+ `packages/skills/agents/proj-decide.md`; do not pin decision-making work to
13
+ `sonnet`, `haiku`, or `opus`. Do not add a `model` field to this `SKILL.md`
14
+ frontmatter.
15
+
8
16
  ## When to invoke
9
17
  - User commits to an architectural decision worth recording for future reference.
10
18
 
@@ -5,6 +5,13 @@ description: Open or run a work item under projects/{slug}/work/YYYY-MM-DD-{slug
5
5
 
6
6
  # proj-work
7
7
 
8
+ ## Model routing
9
+
10
+ `proj-work` authors implementation specifications and plans, so its companion
11
+ agent must run at the invoking main-agent model. Keep `model: inherit` in
12
+ `packages/skills/agents/proj-work.md`; do not pin planning work to `sonnet`,
13
+ `haiku`, or `opus`. Do not add a `model` field to this `SKILL.md` frontmatter.
14
+
8
15
  ## When to invoke
9
16
  - User starts a feature, issue, refactor, or decision inside an existing project.
10
17
  - User asks to "get work of X" or "run work item Y" to review/execute an existing item.
@@ -5,6 +5,14 @@ description: Write an Architectural Decision Record (ADR). If the decision gener
5
5
 
6
6
  # proj-decide
7
7
 
8
+ ## Model routing
9
+
10
+ `proj-decide` authors architectural decisions and ADRs, so its companion
11
+ agent must run at the invoking main-agent model. Keep `model: inherit` in
12
+ `packages/skills/agents/proj-decide.md`; do not pin decision-making work to
13
+ `sonnet`, `haiku`, or `opus`. Do not add a `model` field to this `SKILL.md`
14
+ frontmatter.
15
+
8
16
  ## When to invoke
9
17
  - User commits to an architectural decision worth recording for future reference.
10
18
 
@@ -5,6 +5,13 @@ description: Open or run a work item under projects/{slug}/work/YYYY-MM-DD-{slug
5
5
 
6
6
  # proj-work
7
7
 
8
+ ## Model routing
9
+
10
+ `proj-work` authors implementation specifications and plans, so its companion
11
+ agent must run at the invoking main-agent model. Keep `model: inherit` in
12
+ `packages/skills/agents/proj-work.md`; do not pin planning work to `sonnet`,
13
+ `haiku`, or `opus`. Do not add a `model` field to this `SKILL.md` frontmatter.
14
+
8
15
  ## When to invoke
9
16
  - User starts a feature, issue, refactor, or decision inside an existing project.
10
17
  - User asks to "get work of X" or "run work item Y" to review/execute an existing item.
@@ -17,6 +17,17 @@ Use this section as procedural planning guidelines:
17
17
  3. If `prd_layer` is `manual` or `none`, do not force the gate; follow project policy.
18
18
  4. Always apply the PRD bridge: spec/plan outputs go to vault work-item paths, never `docs/superpowers/`.
19
19
 
20
+ ## Activation File (Cross-Harness Alternative to SessionStart)
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:
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.`
26
+
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.
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.
30
+
20
31
  ## When to Use These Skills
21
32
  Invoke a skillwiki skill when the user:
22
33
  - Wants to create, build, or start a vault/wiki/knowledge base
@@ -0,0 +1,57 @@
1
+ # SkillWiki Activation
2
+
3
+ You have SkillWiki - a project-aware knowledge-base CLI + skill suite for agent harnesses.
4
+ This file is loaded at session start. For full operational detail, invoke `/using-skillwiki`.
5
+
6
+ ## CLI Probe
7
+
8
+ If `skillwiki --help` fails, the CLI is unavailable. Degrade to manual file ops (grep/find) for read-only queries. Fail closed for managed mutations - never write typed pages, index, or log directly.
9
+
10
+ ## When to Route
11
+
12
+ Invoke a SkillWiki skill when the user: wants vault/wiki/knowledge-base operations, ingests sources or URLs, searches/queries vault content, runs health checks or lint, crystallizes a session, works with project workspaces/ADRs, captures ideas/bugs/tasks, archives pages, removes paths, detects source drift, ingests foreign PRD formats, syncs vault git, or visualizes the vault graph.
13
+
14
+ ## Skill Map
15
+
16
+ | Skill | When to Invoke |
17
+ |-------|----------------|
18
+ | `wiki-init` | Bootstrap a vault |
19
+ | `wiki-ingest` | Convert URLs/files/text into typed-knowledge pages |
20
+ | `wiki-query` | Search typed knowledge |
21
+ | `wiki-lint` | Vault health and lint checks |
22
+ | `wiki-crystallize` | Distill current session into a typed page |
23
+ | `wiki-audit` | Verify raw provenance and source integrity |
24
+ | `wiki-archive` | Archive typed pages or preserve-move raw sources |
25
+ | `wiki-remove` | Hard-delete vault paths without snapshot resurrection |
26
+ | `wiki-reingest` | Detect source drift and re-ingest updated content |
27
+ | `wiki-add-task` | Quick-capture ideas, bugs, tasks, notes |
28
+ | `wiki-adapter-prd` | Map foreign PRD formats (CodeStable, RFC, AIDE, Hermes) |
29
+ | `wiki-sync` | Safely sync vault git repository |
30
+ | `wiki-canvas` | Generate Obsidian Canvas visualization |
31
+ | `wiki-gate-plan-mode` | Toggle EnterPlanMode gating for superpowers planning |
32
+ | `proj-init` | Bootstrap a project workspace |
33
+ | `proj-work` | Open or run a work item |
34
+ | `proj-distill` | Distill project compound entries into concept pages |
35
+ | `proj-decide` | Write an Architectural Decision Record (ADR) |
36
+ | `dev-loop:research` | Research scan of repo + vault health |
37
+
38
+ ## PRD Bridge
39
+
40
+ Route PRD/spec/plan work to `wiki-adapter-prd` and `proj-work`, not `docs/superpowers/`. Spec and plan outputs must land in vault work-item paths. Never create `docs/superpowers/` in any repo.
41
+
42
+ ## Fail-Closed Boundary
43
+
44
+ Never write typed pages, `index.md`, or `log.md` directly. Never bare `rm` or `git rm` as a fleet delete (snapshot resurrects from S3). Never auto `npm install -g skillwiki` in headless/goal/satellite sessions. If `skillwiki page publish --help` is unavailable, fail closed.
45
+
46
+ ## Sensitive Content
47
+
48
+ Never commit secrets, credentials, API keys, tokens, passwords, or PII to the vault. Redact using `[REDACTED:<kind>]` before filing.
49
+
50
+ ## Drift Warning
51
+
52
+ If `skillwiki doctor` mentions a version newer than this file, re-read the full `/using-skillwiki` skill for updated content.
53
+
54
+ ## Canonical Paths
55
+
56
+ - Full skill: `packages/skills/using-skillwiki/SKILL.md`
57
+ - Vault schema: `SCHEMA.md` at the vault root (run `skillwiki path` to resolve)
@@ -17,6 +17,17 @@ Use this section as procedural planning guidelines:
17
17
  3. If `prd_layer` is `manual` or `none`, do not force the gate; follow project policy.
18
18
  4. Always apply the PRD bridge: spec/plan outputs go to vault work-item paths, never `docs/superpowers/`.
19
19
 
20
+ ## Activation File (Cross-Harness Alternative to SessionStart)
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:
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.`
26
+
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.
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.
30
+
20
31
  ## When to Use These Skills
21
32
  Invoke a skillwiki skill when the user:
22
33
  - Wants to create, build, or start a vault/wiki/knowledge base
@@ -0,0 +1,57 @@
1
+ # SkillWiki Activation
2
+
3
+ You have SkillWiki - a project-aware knowledge-base CLI + skill suite for agent harnesses.
4
+ This file is loaded at session start. For full operational detail, invoke `/using-skillwiki`.
5
+
6
+ ## CLI Probe
7
+
8
+ If `skillwiki --help` fails, the CLI is unavailable. Degrade to manual file ops (grep/find) for read-only queries. Fail closed for managed mutations - never write typed pages, index, or log directly.
9
+
10
+ ## When to Route
11
+
12
+ Invoke a SkillWiki skill when the user: wants vault/wiki/knowledge-base operations, ingests sources or URLs, searches/queries vault content, runs health checks or lint, crystallizes a session, works with project workspaces/ADRs, captures ideas/bugs/tasks, archives pages, removes paths, detects source drift, ingests foreign PRD formats, syncs vault git, or visualizes the vault graph.
13
+
14
+ ## Skill Map
15
+
16
+ | Skill | When to Invoke |
17
+ |-------|----------------|
18
+ | `wiki-init` | Bootstrap a vault |
19
+ | `wiki-ingest` | Convert URLs/files/text into typed-knowledge pages |
20
+ | `wiki-query` | Search typed knowledge |
21
+ | `wiki-lint` | Vault health and lint checks |
22
+ | `wiki-crystallize` | Distill current session into a typed page |
23
+ | `wiki-audit` | Verify raw provenance and source integrity |
24
+ | `wiki-archive` | Archive typed pages or preserve-move raw sources |
25
+ | `wiki-remove` | Hard-delete vault paths without snapshot resurrection |
26
+ | `wiki-reingest` | Detect source drift and re-ingest updated content |
27
+ | `wiki-add-task` | Quick-capture ideas, bugs, tasks, notes |
28
+ | `wiki-adapter-prd` | Map foreign PRD formats (CodeStable, RFC, AIDE, Hermes) |
29
+ | `wiki-sync` | Safely sync vault git repository |
30
+ | `wiki-canvas` | Generate Obsidian Canvas visualization |
31
+ | `wiki-gate-plan-mode` | Toggle EnterPlanMode gating for superpowers planning |
32
+ | `proj-init` | Bootstrap a project workspace |
33
+ | `proj-work` | Open or run a work item |
34
+ | `proj-distill` | Distill project compound entries into concept pages |
35
+ | `proj-decide` | Write an Architectural Decision Record (ADR) |
36
+ | `dev-loop:research` | Research scan of repo + vault health |
37
+
38
+ ## PRD Bridge
39
+
40
+ Route PRD/spec/plan work to `wiki-adapter-prd` and `proj-work`, not `docs/superpowers/`. Spec and plan outputs must land in vault work-item paths. Never create `docs/superpowers/` in any repo.
41
+
42
+ ## Fail-Closed Boundary
43
+
44
+ Never write typed pages, `index.md`, or `log.md` directly. Never bare `rm` or `git rm` as a fleet delete (snapshot resurrects from S3). Never auto `npm install -g skillwiki` in headless/goal/satellite sessions. If `skillwiki page publish --help` is unavailable, fail closed.
45
+
46
+ ## Sensitive Content
47
+
48
+ Never commit secrets, credentials, API keys, tokens, passwords, or PII to the vault. Redact using `[REDACTED:<kind>]` before filing.
49
+
50
+ ## Drift Warning
51
+
52
+ If `skillwiki doctor` mentions a version newer than this file, re-read the full `/using-skillwiki` skill for updated content.
53
+
54
+ ## Canonical Paths
55
+
56
+ - Full skill: `packages/skills/using-skillwiki/SKILL.md`
57
+ - Vault schema: `SCHEMA.md` at the vault root (run `skillwiki path` to resolve)