rstack
The research counterpart to pstack. pstack helps you write less, higher quality code. rstack helps you run research projects the same way: state the question, pick a playbook, delegate deliberately, and verify every number against a file.
rstack has 18 playbooks, 24 principles and one agent (critic, six modes), plus 26 bundled domain skills. You never pick among them by hand: /rstack:research-mode reads the project's state and the task, then picks the playbook. For project learning notes use /rstack:learn-mode; for cross-project lab wiki protocols use /rstack:wiki-mode; for meta workflow governance use /rstack:playbook-control.
The four parts
flowchart LR
D["2. Design<br/>question, hypothesis, power, protocol"] --> A["1. Analysis<br/>plan, run, review, package"]
M["3. Admin<br/>tasks, docs, state gates"] -.keeps in step.-> D
M -.keeps in step.-> A
S["4. Support<br/>figure it out, correct, reflect"] -.improves.-> D
S -.improves.-> A
| Part | Use it when | Playbooks |
|---|
| 1. Analysis | You have data and need figures and claims you can defend | analysis-plan, analysis-run, analysis-review, package-results, and the critic agent. Every figure gets its own provenance folder |
| 2. Experimental design | You are choosing what to measure, how many, and how to test it | experimental-design, with statistical-power, hypotheses and what-if-oracle |
| 3. Project admin | You need the project to stay organised and in sync | project-admin (tasks, docs, exit review, phase briefs; the only writer of tasks.md, mirrored to Todoist), plus init and setup-research |
| 4. Support | The task matches no playbook, or the method itself needs fixing | playbook-control (figure-it-out, correct, reflect, skill-creator) |
Before and after those four, rstack also covers the literature loop (literature-review, inquiry, report-init) and raw-data intake (raw-intake), the write phase (paper-preparation, paper-writing, paper-critique, presentation, peer-review, reviewer-response; the user writes every paragraph), plus experiment-log, using-rstack (intent router), learn-mode (project understanding) and wiki-mode (cross-project lab wiki). The full list is in docs/references/playbooks.md.
Principles
Every part follows a small set of principles, stored in skills/research-mode/principles/. Some apply everywhere, some to one part only. docs/guide/06-principles.md lists them.
Install these separately
rstack coaches papers and slides but never writes their prose; it does not view raw files or search the web itself. It calls these tools, which install outside rstack. Without one, only the step that uses it is skipped. /rstack:setup-research lists which are missing.
| Tool | Used for | Where it installs | How |
|---|
/hyperresearch | Literature search and deep research (Literature review, Inquiry) | Python CLI + vault in ~/academic-space (or research-space root so projects share one vault) | pip install hyperresearch, then hyperresearch install in that folder |
| raw-viewer | Inventory and look at data/raw/ (Raw intake) | Global CLI on PATH (~/.local/bin/raw-viewer) + macOS app | Follow that repository's README; setup-rawviewer configures each project |
zotero-cli | Read and write the Zotero library (papers, annotations) | Global CLI on PATH (~/.local/bin/zotero-cli), installed as a uv tool from zotero-mcp. rstack bundles only the zotero-cli skill | uv tool install zotero-mcp-server, then see zotero-cli skill for first-run check |
qmd | Local hybrid search over each project (excluding **/data/**) and wiki/ (Inquiry) | Global Node/Bun CLI on PATH (@tobilu/qmd). rstack bundles only the qmd skill | npm install -g @tobilu/qmd (update: npm update -g @tobilu/qmd), then qmd collection add and qmd embed |
figrecipe | Publication-quality figures, presets, and figrules checks (Analysis plan, Analysis run) | Workspace tools/figrecipe/ (with .venv/bin/python and presets/ used by rstack_run.py) | Clone/install into research-space/tools/figrecipe and create .venv (uv sync / pip install -e .) |
doc-coauthoring | Co-authoring docs/understanding/, fundamental/, and lab wiki/ (learn-mode, wiki-mode, Report init) | Global (~/.claude/skills/doc-coauthoring/) or project (.claude/skills/doc-coauthoring/) | Copy doc-coauthoring from anthropics/skills into global or project skills |