skills-research
Use when the user wants to design, research, or document something — OR asks a question about the codebase, backlog, or how anything in this project works. This is the ONLY way to answer questions about rks internals. Do NOT answer from memory or call MCP tools directly — always use this skill. Questions get a direct answer. Everything else produces a report in notes/.
- License 许可
- AGPL-3.0
- 最近更新
- 2026-11-13
- Stars
- ★ 1
- Forks
- 1
01 前言 Front Matter
- name
- skills-research
- verbosity
- heartbeat
- description
- Use when the user wants to design, research, or document something — OR asks a question about the codebase, backlog, or how anything in this project works. This is the ONLY way to answer questions about rks internals. Do NOT answer from memory or call MCP tools directly — always use this skill. Questions get a direct answer. Everything else produces a report in notes/.
- user-invocable
- true
- disable-model-invocation
- false
03 SKILL.md 正文
Research Skill
This skill handles two modes based on $ARGUMENTS:
Mode Detection
Query mode — $ARGUMENTS starts with ? OR is phrased as a question (who/what/where/when/why/how/which/is/are/does/do/can):
- Init a Governor (
flowType: 'open') - Classify the subject first — INTERNAL or EXTERNAL. This decides the tool, and getting it
wrong produces an ungrounded answer wearing the authority of a governed one, which is worse
than an obviously-unsourced one.
- INTERNAL — this codebase, its backlog, its config, its history. Call
rks_agent_research, which retrieves over THIS project's corpus. - EXTERNAL — anything the corpus cannot contain: third-party pricing, another vendor's API,
library behaviour, statutes, standards, current events. Call
rks_agent_external_research.rks_agent_researchcannot answer these — the index holds only this project, so it can only return a confident non-answer. - MIXED — call both, and say which claim came from which.
- INTERNAL — this codebase, its backlog, its config, its history. Call
- Return the answer directly to the user — no note created
Document mode — everything else:
- Launch the Research Governor subagent
- Produces a research report in
notes/ - Returns report location and key findings
- A paper whose subject is EXTERNAL to this project does not belong in this project's
backlog namespace. File it under
research.external.*so it is distinguishable from research about this codebase. If the subject belongs to a different project, say so and offer to hand it off rather than filing it here — a paper about another domain sitting in this backlog is misfiled, not merely untidy.
Query Mode Instructions
rks_governor_init({ projectId: 'routekit-shell', flowType: 'open' })→ store TOKEN- Classify the subject per Mode Detection above, then call the matching tool:
- INTERNAL →
rks_agent_research({ projectId: 'routekit-shell', query: '$ARGUMENTS', _governorToken: TOKEN }) - EXTERNAL →
rks_agent_external_research({ projectId: 'routekit-shell', query: '$ARGUMENTS', _governorToken: TOKEN }) - MIXED → call both, and attribute each claim to the tool that produced it.
2b. End the session inited at step 1 (backlog.feat.governor-session-end):
rks_governor_end({ projectId: 'routekit-shell', _governorToken: TOKEN }). It is the last MCP call of Query Mode;ended: falsewithsession_not_liveis not an error.
- INTERNAL →
- Present the answer directly to the user, naming which tool answered. If an EXTERNAL question
was answered by
rks_agent_research, that answer is not grounded — say so rather than presenting it.
Document Mode Instructions
Launch the Research Governor:
subagent_type: governor max_turns: 10 prompt: You are a Research Governor for projectId routekit-shell. Read your prompt at .rks/prompts/governor-research.md. Replace PROJECT_ID with routekit-shell. Then execute:
# Task
$ARGUMENTS
If the projectId above is still an unsubstituted template token, resolve it from the projectId declared at the top of CLAUDE.md.
On Return
- Query mode: Present the answer inline.
- Document mode: Research Governor returns
review— present the report location and key findings to the user.
Singleton Rule
Research, PO and ARCH Governors are open-flow (their init carries no problemId) and may run concurrently with each other, provided each one targets a distinct note filename and topic. Never run two Governors in parallel when either one is a Build, exec, ship, ops or QA Governor, or while an off-rail (guardrails-off) session is active: those run alone, because they mutate the branch or worktree, or (story-flow Build and QA) check out the base branch at init. In that case, wait for each Governor to complete before launching the next.
04 同仓库更多 Skills
doctor
Run `routekit doctor` against the invoking shell's child-project ecosystem and surface per-child outcomes. Default mode is detect + auto-fix across all registered children. Pass `--dry-run` to inspect the fix plan without mutating anything. Non-recoverable findings (pinned-but-drifted children) are reported but not repaired.
skills-telemetry
Use when the user asks about recent activity, failures, build history, or wants to query telemetry events. Calls MCP telemetry tools directly — no Task subagent needed. $ARGUMENTS can be: summary, failures, or an event type filter string.
skills-telemetry-export
Use when the user wants to EXPORT/SHARE a project's telemetry — e.g. for a UAT report or to attach to a GitHub issue. Produces a redacted .json + .md bundle via an MCP tool; no Task subagent or Governor is launched. $ARGUMENTS may be a storyId to scope the export.
skills-ship
Use when the user wants to commit and ship uncommitted changes. Accepts an optional commit message as $ARGUMENTS. Launches the Ship Governor via Task subagent. Handles both 2-branch (push → PR → merge) and 3-branch (local merge, no PR) workflows automatically based on project config.
skills-rks-welcome
Alias for /rks-onboard — same guided first-run tour through rks stories, permissions, cost, and first PR.
skills-rks-onboard
Run the rks onboarder — guided first-run tour through stories, permissions, cost, and first PR. Resumes from last completed stage if a session exists. Use when the user types /rks-onboard or asks to start onboarding.