skillwiki 0.8.5-beta.4 → 0.8.5
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/cli.js +595 -129
- package/package.json +1 -1
- package/skills/.claude-plugin/plugin.json +1 -1
- package/skills/.codex-plugin/plugin.json +1 -1
- package/skills/agents/wiki-lint.md +17 -13
- package/skills/package.json +1 -1
- package/skills/skills/using-skillwiki/SKILL.md +4 -4
- package/skills/skills/wiki-lint/SKILL.md +8 -6
- package/skills/using-skillwiki/SKILL.md +4 -4
- package/skills/wiki-lint/SKILL.md +8 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skillwiki",
|
|
3
|
-
"version": "0.8.5
|
|
3
|
+
"version": "0.8.5",
|
|
4
4
|
"skills": "./",
|
|
5
5
|
"description": "Project-aware Karpathy-style knowledge base for Claude Code: 18 prompt-only skills (wiki-*, proj-*, using-skillwiki) backed by the deterministic `skillwiki` CLI.",
|
|
6
6
|
"author": {
|
|
@@ -6,7 +6,7 @@ color: blue
|
|
|
6
6
|
tools: ["Read", "Bash", "Grep", "Glob"]
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
-
You are a vault health inspector specializing in running `skillwiki
|
|
9
|
+
You are a vault health inspector specializing in running `skillwiki health` and `skillwiki lint --summary`, then reasoning over the results. You operate autonomously during maintenance cycles — no user interaction expected.
|
|
10
10
|
|
|
11
11
|
## When to invoke
|
|
12
12
|
|
|
@@ -15,33 +15,37 @@ You are a vault health inspector specializing in running `skillwiki lint` and re
|
|
|
15
15
|
- **Pre-merge gate.** Verify vault health before allowing a sync/push.
|
|
16
16
|
|
|
17
17
|
**Your Core Responsibilities:**
|
|
18
|
-
1. Run `skillwiki
|
|
19
|
-
2.
|
|
20
|
-
3.
|
|
21
|
-
4.
|
|
18
|
+
1. Run `skillwiki health` for whole-system coverage when the task asks for vault health
|
|
19
|
+
2. Run `skillwiki lint --summary` for lint-only maintenance
|
|
20
|
+
3. Parse bounded buckets and risk flags by severity (error > warning > info)
|
|
21
|
+
4. Present actionable recommendations per finding kind
|
|
22
|
+
5. Append a summary entry to `log.md` only when the task explicitly asks for a persisted maintenance note
|
|
22
23
|
|
|
23
24
|
**Execution Process:**
|
|
24
25
|
|
|
25
26
|
1. **Resolve vault.** Run `skillwiki path`. If NO_VAULT_CONFIGURED, report failure and STOP.
|
|
26
|
-
2. **Run lint.**
|
|
27
|
-
3. **
|
|
28
|
-
4. **
|
|
29
|
-
5. **
|
|
30
|
-
6. **
|
|
27
|
+
2. **Run health or lint summary.** For whole-system health, execute `skillwiki health <vault> --out /tmp/skillwiki-health.json --no-fail`. For lint-only maintenance, execute `skillwiki lint <vault> --summary`. Read the JSON envelope. Treat `skillwiki doctor` as setup/runtime diagnostics only.
|
|
28
|
+
3. **Drill into details only when needed.** If capped examples are insufficient, run the bucket's `details_command` or `skillwiki lint <vault> --only <bucket>`.
|
|
29
|
+
4. **Reason over findings.** Group by severity. For each kind of finding, suggest concrete next actions. If the CLI was recently updated, new checks may flag pre-existing pages — treat these as legitimate findings, not false positives.
|
|
30
|
+
5. **Log rotation.** If `log_rotate_needed` is present, note that user consent is required — do NOT auto-rotate.
|
|
31
|
+
6. **Post-migration check.** If content was recently migrated, note whether broken_wikilinks count decreased after re-running `skillwiki lint <vault> --summary`. Remaining broken links for migrated content indicate pages still referencing moved files.
|
|
32
|
+
7. **Optional summary.** Append one entry to `{vault}/log.md` with the lint counts (errors/warnings/info) and a timestamp only when explicitly requested.
|
|
31
33
|
|
|
32
34
|
**Output Format:**
|
|
33
35
|
Return a structured summary:
|
|
34
36
|
- Vault path
|
|
35
37
|
- Lint counts: errors N, warnings N, info N
|
|
36
38
|
- Findings grouped by severity with suggested actions
|
|
39
|
+
- Health risk flags and coverage state when `skillwiki health` was run
|
|
37
40
|
- Whether log rotation is needed
|
|
38
|
-
- The log.md entry that was appended
|
|
41
|
+
- The log.md entry that was appended, if any
|
|
39
42
|
|
|
40
43
|
**Stop Conditions:**
|
|
41
44
|
- `skillwiki path` returns NO_VAULT_CONFIGURED
|
|
42
|
-
- `skillwiki
|
|
45
|
+
- `skillwiki health` returns malformed JSON or self_check.status is error
|
|
46
|
+
- `skillwiki lint --summary` returns malformed JSON
|
|
43
47
|
|
|
44
48
|
**Forbidden:**
|
|
45
49
|
- Auto-rotating logs without user consent
|
|
46
50
|
- Auto-updating sha256 fields
|
|
47
|
-
- Modifying any page beyond
|
|
51
|
+
- Modifying any page beyond an explicitly requested lint summary entry in `log.md`
|
package/skills/package.json
CHANGED
|
@@ -68,7 +68,7 @@ sha256: # computed by skillwiki hash over body bytes after closing ---
|
|
|
68
68
|
| `wiki-init` | Bootstrap a new vault — SCHEMA.md, index.md, log.md, ~/.skillwiki/.env |
|
|
69
69
|
| `wiki-ingest` | Convert URLs, files, or pasted text into typed-knowledge pages |
|
|
70
70
|
| `wiki-query` | Search the vault and synthesize an answer with ranked results |
|
|
71
|
-
| `wiki-lint` | Vault health
|
|
71
|
+
| `wiki-lint` | Vault health and lint checks; use `health` for whole-system reports and `lint --summary` for bounded lint buckets |
|
|
72
72
|
| `wiki-crystallize` | Distill the current working session into a typed-knowledge page |
|
|
73
73
|
| `wiki-audit` | Verify raw provenance references and source frontmatter integrity |
|
|
74
74
|
| `wiki-archive` | Archive a typed-knowledge page — move to `_archive/`, remove from index |
|
|
@@ -106,9 +106,9 @@ Use `prd_layer` + `prd_pipeline` from `.claude/dev-loop.config.md` as source of
|
|
|
106
106
|
- `manual` / `none`: no forced PRD skills; preserve skillwiki logging and provenance discipline.
|
|
107
107
|
|
|
108
108
|
## CLI Backbone
|
|
109
|
-
All skills are backed by the `skillwiki` CLI — a deterministic tool with no LLM calls. It handles path resolution, config management, validation, and linting. Skills invoke it via Bash for the mechanical parts and use Claude for the creative parts.
|
|
110
|
-
Key CLI subcommands: `init`, `lint`, `config`, `doctor`, `path`, `lang`, `install`, `graph build`, `archive`, `drift`, `compound`, `tag-sync`, `sync status`, `seed`, `stale`, `observe`, `canvas generate`.
|
|
111
|
-
Run `skillwiki doctor` to diagnose setup issues. Run `skillwiki config list` to see current configuration.
|
|
109
|
+
All skills are backed by the `skillwiki` CLI — a deterministic tool with no LLM calls. It handles path resolution, config management, validation, health reporting, and linting. Skills invoke it via Bash for the mechanical parts and use Claude for the creative parts.
|
|
110
|
+
Key CLI subcommands: `init`, `health`, `lint`, `config`, `doctor`, `path`, `lang`, `install`, `graph build`, `archive`, `drift`, `compound`, `tag-sync`, `sync status`, `seed`, `stale`, `observe`, `canvas generate`.
|
|
111
|
+
Run `skillwiki health <vault> --out /tmp/skillwiki-health.json --no-fail` for a bounded whole-system report that includes doctor, lint, vault-sync, query-readiness, source-freshness, risk flags, and self-check coverage. Run `skillwiki lint <vault> --summary` for lint-only bucket counts with capped examples and details commands. Run `skillwiki doctor` to diagnose setup/runtime issues only. Run `skillwiki config list` to see current configuration.
|
|
112
112
|
|
|
113
113
|
## Typical Workflow
|
|
114
114
|
1. **Init** (`wiki-init`) — create vault, set domain and taxonomy
|
|
@@ -11,14 +11,16 @@ Standard four reads.
|
|
|
11
11
|
## Steps
|
|
12
12
|
0. Resolve vault: `skillwiki path` (record source for context).
|
|
13
13
|
- **CRITICAL**: Verify the correct vault when the user has multiple wiki instances (e.g., ~/wiki vs ~/wiki-fin). User may explicitly specify which vault to target — confirm before destructive operations.
|
|
14
|
-
1.
|
|
15
|
-
2.
|
|
16
|
-
3.
|
|
17
|
-
4.
|
|
18
|
-
5.
|
|
14
|
+
1. For a whole-system health report, run `skillwiki health <vault> --out /tmp/skillwiki-health.json --no-fail`. Read the JSON envelope from stdout or the report file. Treat `skillwiki doctor` as setup/runtime diagnostics only, not a vault-content health report.
|
|
15
|
+
2. For lint-only maintenance, run `skillwiki lint <vault> --summary`. This returns bounded bucket counts, capped examples, and `details_command` hints without full item arrays.
|
|
16
|
+
3. Drill into important buckets with `skillwiki lint <vault> --only <bucket>` when examples are insufficient for remediation.
|
|
17
|
+
4. Reason over findings; present grouped by severity with concrete suggested actions per kind. If the CLI was recently updated with new lint checks, re-running lint on the full vault may flag pre-existing pages that predate the new rule — treat these as legitimate findings, not false positives.
|
|
18
|
+
5. If `log_rotate_needed` is present and the user consents, run `skillwiki log-rotate <vault> --apply`. Otherwise leave alone.
|
|
19
|
+
6. **Post-migration verification**: If the user recently migrated content (e.g., moved entity/concept pages to another vault), re-run `skillwiki lint <vault> --summary` and verify that broken_wikilinks count decreased. Remaining broken links for migrated content indicate pages still referencing the moved files — these should be cleaned up (remove citations or migrate the referencing pages too).
|
|
20
|
+
7. Append a `log.md` entry summarizing lint counts only when the user asked to record the maintenance result. Do not log routine `health` reports by default.
|
|
19
21
|
## Stop conditions
|
|
20
22
|
None — lint reports all findings even on per-page errors.
|
|
21
23
|
## Forbidden
|
|
22
24
|
- Auto-rotating logs.
|
|
23
25
|
- Auto-updating sha256 fields.
|
|
24
|
-
- Modifying any page beyond
|
|
26
|
+
- Modifying any page beyond a user-approved lint summary entry in `log.md`.
|
|
@@ -68,7 +68,7 @@ sha256: # computed by skillwiki hash over body bytes after closing ---
|
|
|
68
68
|
| `wiki-init` | Bootstrap a new vault — SCHEMA.md, index.md, log.md, ~/.skillwiki/.env |
|
|
69
69
|
| `wiki-ingest` | Convert URLs, files, or pasted text into typed-knowledge pages |
|
|
70
70
|
| `wiki-query` | Search the vault and synthesize an answer with ranked results |
|
|
71
|
-
| `wiki-lint` | Vault health
|
|
71
|
+
| `wiki-lint` | Vault health and lint checks; use `health` for whole-system reports and `lint --summary` for bounded lint buckets |
|
|
72
72
|
| `wiki-crystallize` | Distill the current working session into a typed-knowledge page |
|
|
73
73
|
| `wiki-audit` | Verify raw provenance references and source frontmatter integrity |
|
|
74
74
|
| `wiki-archive` | Archive a typed-knowledge page — move to `_archive/`, remove from index |
|
|
@@ -106,9 +106,9 @@ Use `prd_layer` + `prd_pipeline` from `.claude/dev-loop.config.md` as source of
|
|
|
106
106
|
- `manual` / `none`: no forced PRD skills; preserve skillwiki logging and provenance discipline.
|
|
107
107
|
|
|
108
108
|
## CLI Backbone
|
|
109
|
-
All skills are backed by the `skillwiki` CLI — a deterministic tool with no LLM calls. It handles path resolution, config management, validation, and linting. Skills invoke it via Bash for the mechanical parts and use Claude for the creative parts.
|
|
110
|
-
Key CLI subcommands: `init`, `lint`, `config`, `doctor`, `path`, `lang`, `install`, `graph build`, `archive`, `drift`, `compound`, `tag-sync`, `sync status`, `seed`, `stale`, `observe`, `canvas generate`.
|
|
111
|
-
Run `skillwiki doctor` to diagnose setup issues. Run `skillwiki config list` to see current configuration.
|
|
109
|
+
All skills are backed by the `skillwiki` CLI — a deterministic tool with no LLM calls. It handles path resolution, config management, validation, health reporting, and linting. Skills invoke it via Bash for the mechanical parts and use Claude for the creative parts.
|
|
110
|
+
Key CLI subcommands: `init`, `health`, `lint`, `config`, `doctor`, `path`, `lang`, `install`, `graph build`, `archive`, `drift`, `compound`, `tag-sync`, `sync status`, `seed`, `stale`, `observe`, `canvas generate`.
|
|
111
|
+
Run `skillwiki health <vault> --out /tmp/skillwiki-health.json --no-fail` for a bounded whole-system report that includes doctor, lint, vault-sync, query-readiness, source-freshness, risk flags, and self-check coverage. Run `skillwiki lint <vault> --summary` for lint-only bucket counts with capped examples and details commands. Run `skillwiki doctor` to diagnose setup/runtime issues only. Run `skillwiki config list` to see current configuration.
|
|
112
112
|
|
|
113
113
|
## Typical Workflow
|
|
114
114
|
1. **Init** (`wiki-init`) — create vault, set domain and taxonomy
|
|
@@ -11,14 +11,16 @@ Standard four reads.
|
|
|
11
11
|
## Steps
|
|
12
12
|
0. Resolve vault: `skillwiki path` (record source for context).
|
|
13
13
|
- **CRITICAL**: Verify the correct vault when the user has multiple wiki instances (e.g., ~/wiki vs ~/wiki-fin). User may explicitly specify which vault to target — confirm before destructive operations.
|
|
14
|
-
1.
|
|
15
|
-
2.
|
|
16
|
-
3.
|
|
17
|
-
4.
|
|
18
|
-
5.
|
|
14
|
+
1. For a whole-system health report, run `skillwiki health <vault> --out /tmp/skillwiki-health.json --no-fail`. Read the JSON envelope from stdout or the report file. Treat `skillwiki doctor` as setup/runtime diagnostics only, not a vault-content health report.
|
|
15
|
+
2. For lint-only maintenance, run `skillwiki lint <vault> --summary`. This returns bounded bucket counts, capped examples, and `details_command` hints without full item arrays.
|
|
16
|
+
3. Drill into important buckets with `skillwiki lint <vault> --only <bucket>` when examples are insufficient for remediation.
|
|
17
|
+
4. Reason over findings; present grouped by severity with concrete suggested actions per kind. If the CLI was recently updated with new lint checks, re-running lint on the full vault may flag pre-existing pages that predate the new rule — treat these as legitimate findings, not false positives.
|
|
18
|
+
5. If `log_rotate_needed` is present and the user consents, run `skillwiki log-rotate <vault> --apply`. Otherwise leave alone.
|
|
19
|
+
6. **Post-migration verification**: If the user recently migrated content (e.g., moved entity/concept pages to another vault), re-run `skillwiki lint <vault> --summary` and verify that broken_wikilinks count decreased. Remaining broken links for migrated content indicate pages still referencing the moved files — these should be cleaned up (remove citations or migrate the referencing pages too).
|
|
20
|
+
7. Append a `log.md` entry summarizing lint counts only when the user asked to record the maintenance result. Do not log routine `health` reports by default.
|
|
19
21
|
## Stop conditions
|
|
20
22
|
None — lint reports all findings even on per-page errors.
|
|
21
23
|
## Forbidden
|
|
22
24
|
- Auto-rotating logs.
|
|
23
25
|
- Auto-updating sha256 fields.
|
|
24
|
-
- Modifying any page beyond
|
|
26
|
+
- Modifying any page beyond a user-approved lint summary entry in `log.md`.
|