skillwiki 0.7.0 → 0.8.1-beta.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skillwiki",
3
- "version": "0.7.0",
3
+ "version": "0.8.1-beta.1",
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.7.0",
3
+ "version": "0.8.1-beta.1",
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": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skillwiki",
3
- "version": "0.7.0",
3
+ "version": "0.8.1-beta.1",
4
4
  "description": "Project-aware Karpathy-style knowledge base for Codex with 18 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.7.0",
3
+ "version": "0.8.1-beta.1",
4
4
  "private": true,
5
5
  "files": [
6
6
  "wiki-*",
@@ -1,13 +1,24 @@
1
1
  ---
2
- version: 0.2.1
2
+ version: 0.2.2
3
3
  name: using-skillwiki
4
- description: Invoke at session start or when knowledge-base tasks arise — maps all skillwiki skills and teaches the skillwiki CLI workflow
4
+ description: Invoke at session start or when knowledge-base tasks arise — maps skillwiki skills, dev-loop alignment, and PRD/TDD routing with plan-mode gate checks
5
5
  ---
6
6
  <SUBAGENT-STOP>
7
7
  If you were dispatched as a subagent to execute a specific task, skip this skill.
8
8
  </SUBAGENT-STOP>
9
9
  # using-skillwiki
10
10
  You have skillwiki — a project-aware Karpathy-style knowledge base for Claude Code.
11
+
12
+ ## Last Hook Gate (SessionStart)
13
+
14
+ This skill is injected by the plugin SessionStart hook on `startup|clear|compact`.
15
+ Treat this section as the final gate before planning work:
16
+
17
+ 1. If the task requires spec/plan work, route through PRD skills (not built-in plan mode).
18
+ 2. If `prd_layer` is `superpowers` or `tdd`, ensure `EnterPlanMode` is gated (`wiki-gate-plan-mode on` or `status` if uncertain).
19
+ 3. If `prd_layer` is `manual` or `none`, do not force the gate; follow project policy.
20
+ 4. Always apply the PRD bridge: spec/plan outputs go to vault work-item paths, never `docs/superpowers/`.
21
+
11
22
  ## When to Use These Skills
12
23
  Invoke a skillwiki skill when the user:
13
24
  - Wants to create, build, or start a vault/wiki/knowledge base
@@ -24,6 +35,7 @@ Invoke a skillwiki skill when the user:
24
35
  - Wants to sync vault changes to/from a git remote
25
36
  - Wants to visualize the vault graph as an Obsidian Canvas
26
37
  - Wants to run a research scan of repo and vault health
38
+
27
39
  ## Vault Structure
28
40
  A skillwiki vault has three layers. The canonical architecture lives in `SCHEMA.md` at the vault root — read it before creating any new directories.
29
41
  **Layer 1 — Raw (`raw/`):** Immutable source material. Never modify after ingest. `raw/transcripts/` doubles as the ad-hoc capture point for meeting notes and unprocessed ideas.
@@ -51,6 +63,7 @@ sha256: # computed by skillwiki hash over body bytes after closing ---
51
63
  | `/wiki-add-task <text>` | You're in a Claude session | Creates `raw/transcripts/YYYY-MM-DD-{type}-{slug}.md` with ad-hoc capture frontmatter |
52
64
  | Filesystem drop | You're NOT in a Claude session (Obsidian, editor, sync) | Create/edit any `.md` file in `raw/transcripts/` — dev-loop discovers it on next cycle |
53
65
  | Dev-loop discovery | Automatic, next cycle | Scans `raw/transcripts/` for new files since last cycle, surfaces as claimable work |
66
+
54
67
  ## Skill Map
55
68
  | Skill | When to Invoke |
56
69
  |-------|----------------|
@@ -72,10 +85,33 @@ sha256: # computed by skillwiki hash over body bytes after closing ---
72
85
  | `proj-decide` | Write an Architectural Decision Record (ADR) |
73
86
  | `wiki-gate-plan-mode` | Toggle EnterPlanMode gating — force superpowers planning instead of built-in plan mode |
74
87
  | `dev-loop:research` | Research agent for dev-loop IDLE — scans repo + vault health, outputs prioritized work-item recommendations (formerly `/dev-loop-research`) |
88
+
89
+ ## dev-loop Alignment
90
+
91
+ Use these skills as the knowledge layer in dev-loop. The loop remains capability-based:
92
+ branch on capabilities (`BACKEND_CAPS`, `PRD_CAPS`), not backend names.
93
+
94
+ Typical sequence with PRD enabled:
95
+ `REFRESH → QUERY → WORK → SPEC → PLAN → EXECUTE → SIMPLIFY → MERGE → SAVE → RETRO`.
96
+
97
+ - `QUERY/WORK/SAVE/RETRO` map naturally to `wiki-query`, `proj-work`, `wiki-crystallize`, and vault logs.
98
+ - `SIMPLIFY` is a quality gate before merge; keep it in the loop even for small changes.
99
+ - For no-work cycles, run maintenance (`wiki-lint`, `wiki-audit`, `proj-distill`, `dev-loop:research`).
100
+
101
+ ## PRD/TDD Compatibility
102
+
103
+ Use `prd_layer` + `prd_pipeline` from `.claude/dev-loop.config.md` as source of truth:
104
+
105
+ - `superpowers` + `full`: brainstorming/spec/plan/execute/review; route spec+plan through `proj-work`.
106
+ - `tdd` + `tdd-first`: plan-first then test-driven execute; still route artifacts through `proj-work`.
107
+ - `single-pass` or `debug-only`: may skip formal spec/plan, but if generated they still belong in vault work items.
108
+ - `manual` / `none`: no forced PRD skills; preserve skillwiki logging and provenance discipline.
109
+
75
110
  ## CLI Backbone
76
111
  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.
77
112
  Key CLI subcommands: `init`, `lint`, `config`, `doctor`, `path`, `lang`, `install`, `graph build`, `archive`, `drift`, `compound`, `tag-sync`, `sync status`, `seed`, `stale`, `observe`, `canvas generate`.
78
113
  Run `skillwiki doctor` to diagnose setup issues. Run `skillwiki config list` to see current configuration.
114
+
79
115
  ## Typical Workflow
80
116
  1. **Init** (`wiki-init`) — create vault, set domain and taxonomy
81
117
  2. **Ingest** (`wiki-ingest`) — add sources, build pages
@@ -85,6 +121,7 @@ Run `skillwiki doctor` to diagnose setup issues. Run `skillwiki config list` to
85
121
  6. **Audit** (`wiki-audit`) — verify source integrity
86
122
  For longer-running project work, use `proj-init` → `proj-work` → `proj-distill` / `proj-decide`.
87
123
  Maintenance: **Archive** (`wiki-archive`) superseded pages, **Drift** (`wiki-reingest`) to detect stale sources, **Adapter** (`wiki-adapter-prd`) for foreign PRD format ingestion.
124
+
88
125
  ## Troubleshooting Version Drift
89
126
  skillwiki has three distribution channels that can drift:
90
127
  | Channel | Location | Update Command |
@@ -96,6 +133,7 @@ skillwiki has three distribution channels that can drift:
96
133
  **Check versions:** `skillwiki doctor` reports "Plugin/CLI version" mismatch warnings.
97
134
  **Common issue:** npm package ships SKILL.md files with older `version:` frontmatter than CLI code. This creates false-positive "version warnings" in `skillwiki doctor` — the CLI is newer but skills report older version.
98
135
  **Fix:** If developing locally, use `npm link` from the git repo. If using released versions, wait for maintainer to bump SKILL.md versions in source and republish.
136
+
99
137
  ## Multi-Wiki Profiles
100
138
  skillwiki supports named wiki profiles for working with multiple vaults. Set `WIKI_DEFAULT` to control which wiki all skills target by default.
101
139
  **Manage profiles:**
@@ -104,16 +142,17 @@ skillwiki supports named wiki profiles for working with multiple vaults. Set `WI
104
142
  - `skillwiki config list --profiles` — list all profiles
105
143
  - `skillwiki --wiki <name> lint` — override per-command
106
144
  **Project-local override:** Place a `./skillwiki/.env` in a project root to bind that project to a specific wiki. Skills will use it automatically when running from that directory.
145
+
107
146
  ## PRD Bridge — Redirect Spec/Plan Output to Vault
108
- When skillwiki is installed, **all spec and plan documents must land in the vault**, not in repo-local directories like `docs/superpowers/`. This applies to any PRD/design skill (superpowers:brainstorming, superpowers:writing-plans, CodeStable, AIDE, Hermes, etc.).
147
+ When skillwiki is installed, **all spec and plan documents must land in the vault**, not in repo-local directories like `docs/superpowers/`. This applies to PRD and TDD workflows (superpowers, codestable, AIDE, Hermes, manual templates).
109
148
  **Rule:** Before a PRD skill writes a spec or plan file, redirect its save path:
110
149
  1. Resolve the vault path: `skillwiki path`
111
150
  2. If the cwd is inside a project (check for `projects/{slug}/` via `skillwiki path --init-time` or look for `./skillwiki/.env`), use that project's work directory
112
151
  3. Create or locate the work item via `proj-work`, which emits redirect paths for `spec.md` and `plan.md`
113
- 4. Pass those vault paths to the PRD skill as its save location
152
+ 4. Pass those vault paths to the PRD/TDD skill as its save location
114
153
  **Concrete overrides for superpowers:**
115
154
  - `superpowers:brainstorming` step 6: override `docs/superpowers/specs/YYYY-MM-DD-<topic>-design.md` → vault work-item `spec.md` path from `proj-work`
116
155
  - `superpowers:writing-plans` header: override `docs/superpowers/plans/YYYY-MM-DD-<feature-name>.md` → vault work-item `plan.md` path from `proj-work`
117
- Both skills say "User preferences for spec location override this default" — the vault work-item path IS the override.
156
+ Both skills say "User preferences for spec location override this default" — the vault work-item path IS the override. Apply the same override pattern to any TDD-oriented planner that emits spec/plan artifacts.
118
157
  **If no project context exists** (standalone vault, not inside a project), default to the `playground` project slug. Invoke `proj-work` with `playground` as the slug so redirect paths are emitted normally and the PRD bridge chain works. The `playground` project is a pre-initialized catch-all workspace at `projects/playground/` for exploratory work, experiments, and unclassified features. Work items that mature can be moved to a real project later.
119
158
  **Never create `docs/superpowers/` in any repo.**
@@ -8,7 +8,7 @@ Capture ad-hoc ideas, bugs, tasks, and notes into the vault. Three entry points
8
8
  | Entry | When | What happens |
9
9
  |-------|------|-------------|
10
10
  | `/wiki-add-task <text>` | You're in a Claude Code session (NOT Hermes compact) | Creates `raw/transcripts/YYYY-MM-DD-{type}-{slug}.md` with ad-hoc capture frontmatter |
11
- | `skillwiki add-task <text>` | Hermes Agent compact mode | Same as above — compact-compatible CLI trigger |
11
+ | Filesystem drop | Hermes Agent compact mode (no slash commands available) | Same as above — create `.md` in `raw/transcripts/`, dev-loop discovers it |
12
12
  | Filesystem drop | You're NOT in a Claude session (Obsidian, editor, sync) | Create any `.md` file in `raw/transcripts/` using the vault template — dev-loop discovers it on next cycle |
13
13
  | Dev-loop discovery | Automatic, next cycle | Scans `raw/transcripts/` for new files since last cycle, surfaces as claimable work |
14
14
  **Path Rule:** Captures ALWAYS go to `$(skillwiki path)/raw/transcripts/` (Layer 1). Never under `projects/{slug}/raw/` — that violates SCHEMA.md Layer 1 immutability.