skillwiki 0.8.0 → 0.8.1-beta.10

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.
@@ -1,13 +1,23 @@
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
- <SUBAGENT-STOP>
7
- If you were dispatched as a subagent to execute a specific task, skip this skill.
8
- </SUBAGENT-STOP>
6
+ *Note: If executing as a background subagent, skip this skill section.*
7
+
9
8
  # using-skillwiki
10
9
  You have skillwiki — a project-aware Karpathy-style knowledge base for Claude Code.
10
+
11
+ ## Last Hook Gate (SessionStart)
12
+
13
+ This skill is activated by the plugin during `startup|clear|compact` lifecycle events.
14
+ Use this section as procedural planning guidelines:
15
+
16
+ 1. If the task requires spec/plan work, route through PRD skills (not built-in plan mode).
17
+ 2. If `prd_layer` is `superpowers` or `tdd`, ensure `EnterPlanMode` is gated (`wiki-gate-plan-mode on` or `status` if uncertain).
18
+ 3. If `prd_layer` is `manual` or `none`, do not force the gate; follow project policy.
19
+ 4. Always apply the PRD bridge: spec/plan outputs go to vault work-item paths, never `docs/superpowers/`.
20
+
11
21
  ## When to Use These Skills
12
22
  Invoke a skillwiki skill when the user:
13
23
  - Wants to create, build, or start a vault/wiki/knowledge base
@@ -24,6 +34,7 @@ Invoke a skillwiki skill when the user:
24
34
  - Wants to sync vault changes to/from a git remote
25
35
  - Wants to visualize the vault graph as an Obsidian Canvas
26
36
  - Wants to run a research scan of repo and vault health
37
+
27
38
  ## Vault Structure
28
39
  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
40
  **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 +62,7 @@ sha256: # computed by skillwiki hash over body bytes after closing ---
51
62
  | `/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
63
  | 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
64
  | Dev-loop discovery | Automatic, next cycle | Scans `raw/transcripts/` for new files since last cycle, surfaces as claimable work |
65
+
54
66
  ## Skill Map
55
67
  | Skill | When to Invoke |
56
68
  |-------|----------------|
@@ -72,10 +84,33 @@ sha256: # computed by skillwiki hash over body bytes after closing ---
72
84
  | `proj-decide` | Write an Architectural Decision Record (ADR) |
73
85
  | `wiki-gate-plan-mode` | Toggle EnterPlanMode gating — force superpowers planning instead of built-in plan mode |
74
86
  | `dev-loop:research` | Research agent for dev-loop IDLE — scans repo + vault health, outputs prioritized work-item recommendations (formerly `/dev-loop-research`) |
87
+
88
+ ## dev-loop Alignment
89
+
90
+ Use these skills as the knowledge layer in dev-loop. The loop remains capability-based:
91
+ branch on capabilities (`BACKEND_CAPS`, `PRD_CAPS`), not backend names.
92
+
93
+ Typical sequence with PRD enabled:
94
+ `REFRESH → QUERY → WORK → SPEC → PLAN → EXECUTE → SIMPLIFY → MERGE → SAVE → RETRO`.
95
+
96
+ - `QUERY/WORK/SAVE/RETRO` map naturally to `wiki-query`, `proj-work`, `wiki-crystallize`, and vault logs.
97
+ - `SIMPLIFY` is a quality gate before merge; keep it in the loop even for small changes.
98
+ - For no-work cycles, run maintenance (`wiki-lint`, `wiki-audit`, `proj-distill`, `dev-loop:research`).
99
+
100
+ ## PRD/TDD Compatibility
101
+
102
+ Use `prd_layer` + `prd_pipeline` from `.claude/dev-loop.config.md` as source of truth:
103
+
104
+ - `superpowers` + `full`: brainstorming/spec/plan/execute/review; route spec+plan through `proj-work`.
105
+ - `tdd` + `tdd-first`: plan-first then test-driven execute; still route artifacts through `proj-work`.
106
+ - `single-pass` or `debug-only`: may skip formal spec/plan, but if generated they still belong in vault work items.
107
+ - `manual` / `none`: no forced PRD skills; preserve skillwiki logging and provenance discipline.
108
+
75
109
  ## CLI Backbone
76
110
  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
111
  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
112
  Run `skillwiki doctor` to diagnose setup issues. Run `skillwiki config list` to see current configuration.
113
+
79
114
  ## Typical Workflow
80
115
  1. **Init** (`wiki-init`) — create vault, set domain and taxonomy
81
116
  2. **Ingest** (`wiki-ingest`) — add sources, build pages
@@ -85,6 +120,7 @@ Run `skillwiki doctor` to diagnose setup issues. Run `skillwiki config list` to
85
120
  6. **Audit** (`wiki-audit`) — verify source integrity
86
121
  For longer-running project work, use `proj-init` → `proj-work` → `proj-distill` / `proj-decide`.
87
122
  Maintenance: **Archive** (`wiki-archive`) superseded pages, **Drift** (`wiki-reingest`) to detect stale sources, **Adapter** (`wiki-adapter-prd`) for foreign PRD format ingestion.
123
+
88
124
  ## Troubleshooting Version Drift
89
125
  skillwiki has three distribution channels that can drift:
90
126
  | Channel | Location | Update Command |
@@ -96,6 +132,7 @@ skillwiki has three distribution channels that can drift:
96
132
  **Check versions:** `skillwiki doctor` reports "Plugin/CLI version" mismatch warnings.
97
133
  **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
134
  **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.
135
+
99
136
  ## Multi-Wiki Profiles
100
137
  skillwiki supports named wiki profiles for working with multiple vaults. Set `WIKI_DEFAULT` to control which wiki all skills target by default.
101
138
  **Manage profiles:**
@@ -104,16 +141,17 @@ skillwiki supports named wiki profiles for working with multiple vaults. Set `WI
104
141
  - `skillwiki config list --profiles` — list all profiles
105
142
  - `skillwiki --wiki <name> lint` — override per-command
106
143
  **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.
144
+
107
145
  ## 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.).
146
+ 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
147
  **Rule:** Before a PRD skill writes a spec or plan file, redirect its save path:
110
148
  1. Resolve the vault path: `skillwiki path`
111
149
  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
150
  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
151
+ 4. Pass those vault paths to the PRD/TDD skill as its save location
114
152
  **Concrete overrides for superpowers:**
115
153
  - `superpowers:brainstorming` step 6: override `docs/superpowers/specs/YYYY-MM-DD-<topic>-design.md` → vault work-item `spec.md` path from `proj-work`
116
154
  - `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.
155
+ 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
156
  **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
157
  **Never create `docs/superpowers/` in any repo.**
@@ -29,7 +29,7 @@ Standard four reads (SCHEMA, index, log, project context if applicable).
29
29
  - User declines to file.
30
30
  ## Pitfalls
31
31
  ### Claimed-status vs actual-state gap
32
- When a wiki page (especially a work item `tasks.md`) claims that fixes were applied, features were completed, or files were removed — **verify on disk before accepting the claim**. In one incident, a `tasks.md` marked 6 items DONE but 5 were not actually applied: a script claimed "removed" was still 2020 bytes on disk, a crontab claimed "updated to 30min" was still `*/10`, and a build target claimed "verified has consumers" had no web server serving it.
32
+ When a wiki page (especially a work item `tasks.md`) claims that fixes were applied, features were completed, or files were removed — **verify on disk before accepting the claim**. In one incident, a `tasks.md` marked 6 items DONE but 5 were not actually applied: a script claimed "removed" was still 2020 bytes on disk, a crontab claimed "updated to 30min" was still `*/10`, and a build target claimed "verified has consumers" had no web server serving it.
33
33
  **Rule**: After reading a work item that declares completion, run at least one verification command per critical claim (check file existence, grep a config, inspect a crontab). Documents can drift from reality — the filesystem is the source of truth.
34
34
  ## Forbidden
35
35
  - Filing without `validate` passing.