From kw-engine
Drives a problem-driven research loop: decomposes a project/idea into structural problems, maps to a principle library, and fills gaps with targeted reading. Use when pushing a research project forward, not just absorbing papers.
How this skill is triggered — by the user, by Claude, or both
Slash command
/kw-engine:kw-exploreThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This is the **problem-driven** loop. (`/kw` is the corpus-driven loop: absorb papers, synthesize
This is the problem-driven loop. (/kw is the corpus-driven loop: absorb papers, synthesize
globally. /kw-explore starts from the user's actual problem and pulls the library toward solving
it.) It is the workflow that turns the engine from a knowledge library into a research accelerator.
You are the orchestrator. Dispatch the kw-* subagents for reading/distilling (model boundary
below); do the framing/mapping/assembly reasoning yourself.
Separation of concerns (hard rule). Use-case outputs — the problem decomposition, the design,
the handoff — go in the user's project (cwd). Reusable principles go into the linked
knowledge base (kw status shows which one). Never mix: the knowledge base stays domain-general
and reusable across projects.
Model boundary (same as /kw). The orchestrator never reads PDFs or calls read_*/search_*/
download_* MCP tools. Acquisition → kw-fetcher (sonnet); reading → kw-reader (sonnet);
distilling → kw-distiller (opus). Pass model explicitly on every Agent dispatch.
Prerequisite: the project must be linked to a knowledge base. If kw status errors, run
kw link <name-or-path> (or /kw-init) first.
A good decomposition is most of the value. Do not skip to fetching papers.
If a Question Card already exists (<project>/problems/<slug>/QUESTION.md, produced by
/kw-question): the question's worth is already validated — do NOT re-litigate stakes/
falsifiability. Read the card and go straight to extracting the structural signature (below).
If the user only has a vague idea and no card, and it's unclear whether the question is even
worth pursuing, suggest running /kw-question first.
<project>/problems/<slug>/PROBLEM.md: the signature axes, plus what any solution MUST
satisfy (the constraints — e.g. "must work on both targeted-amplicon AND shotgun data").For each seed paper the user has (or names), run the standard absorb loop:
kw-fetcher (if no local PDF) → kw-reader → kw-distiller → then kw-verifier scope=all.
New principles land in the linked knowledge base. If the user has no papers yet, skip to Phase 2
(the library may already cover part of the problem) and lean on Phase 3.
For each axis of the problem signature, run kw search "<axis keywords>".
Build a coverage map and show it to the user:
memory/synthesis/gaps.md)."A pile of papers that's not enough" shows up here as gaps. That's expected — Phase 3 closes them.
For each gap, propose specific papers or searches that would supply the missing mechanism (name candidate authors/titles/DOIs). On the user's pick:
kw-fetcher the chosen papers → absorb (reader → distiller → verifier).kw search and update the coverage map.
Report each round: which gaps closed, which remain. Loop until coverage is good enough OR the user
stops. Never auto-run many fetch rounds without a pick — keep the human steering.Compose the matched principles into a candidate design/solution for the user's project:
<project>/docs/DESIGN.md. (See the PRISM design as a worked example of the target
shape: modules, math specs, data requirements, validation plan, traceability matrix, risks.)The design is living — each future round of reading sharpens it. Write/update
<project>/plan/HANDOFF.md: current state, decisions made (with rationale), the next gaps to fill,
and the exact commands/prompts to resume. Also write a short <project>/docs/RATIONALE.md
capturing WHY the design is shaped this way (the problem signature + the direction choices) so a
fresh session can continue seamlessly.
Reproducibility: after each phase, append a one-line run record (phase, ids touched,
subagents+models, date) to .kw/logs/runs.log.
After Phase 4, offer: "(a) 补更多 gap (b) 深化某个模块的设计 (c) 跑 L3 综合看全局 (d) 收尾写 handoff".
Provides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
npx claudepluginhub chenpg2/kw-engine --plugin kw-engine