/research-superpowers:scaffold-research-project [project-name]from research-superpowers
Guides users through creating a new research project from a template via conversation, without terminal commands. Collects project name, methodology, discipline, and languages, then scaffolds the directory structure and CLAUDE.md.
Ships in research-superpowers. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Create a new research project from the research-project-template without leaving the chat. Designed for users on Cowork (no terminal) and for Claude Code users who prefer a guided setup.
Announce at start: "Using scaffold-research-project to set up <project_name> at <parent_directory>."
cp -r and manual frontmatter editingNOT for: modifying an existing project (edit CLAUDE.md directly), copying parts of the template in isolation (use the relevant skill — e.g. ingest-source will create the wiki structure on demand).
Create a task-list item for each. Complete in order; do not write files until all inputs are collected and confirmed.
Ask for project name. Require kebab-case (lowercase, hyphens, no spaces). Reject MyProject or my project — request a slug like iron-age-chronology or negev-fortresses-debate. Validate against the regex ^[a-z][a-z0-9-]*$.
Ask for parent directory. Offer ~/Documents as default (expand via the Bash tool if available). If Bash is not available, ask the user to paste an absolute path. Verify the directory exists; if not, ask whether to create it.
Ask for methodology. Present the three options briefly:
hermeneutic — default. Theology, exegesis, source criticism, interpretive archaeology. No frozen hypothesis; the plan documents research question + method sketch + expected sources.quantitative — geostatistics, 14C Bayesian, quantitative DH. Full pre-registration (hypothesis, operationalisation, stop criterion).mixed — per-sub-study; quantitative tasks opt into pre-registration individually.
If the user is unsure, recommend hermeneutic and note that they can change it later.Ask for discipline. Free text. Offer examples: "Biblical Archaeology", "Theology / Old Testament", "Ancient History", "Digital Humanities". The string is used in the project's CLAUDE.md frontmatter.
Ask for languages. Default [en]. Offer [de, en] for German-speaking research. Other ISO 639-1 codes welcome.
Confirm the plan with the user. Present a single block:
"I'll create
<parent_directory>/<project_name>/with methodology<methodology>, discipline<discipline>, languages<languages>. Proceed?" Wait for explicit confirmation. Do not write any files before confirmation.
Locate the template. Try, in order:
${CLAUDE_PLUGIN_ROOT:-$RESEARCH_SUPERPOWERS_DIR}/templates/research-project-template/ (Claude Code sets CLAUDE_PLUGIN_ROOT, the OpenCode plugin sets RESEARCH_SUPERPOWERS_DIR). Failing that, the Claude Code plugin cache: ~/.claude/plugins/cache/<marketplace>/research-superpowers/templates/research-project-template/. Use Bash ls to confirm if Bash is available; otherwise try common marketplace names (leiverkus-research, claude-plugins-community).https://raw.githubusercontent.com/leiverkus/research-superpowers/main/templates/research-project-template/...) via the WebFetch tool. Slower but works without any local clone.Copy the template tree file-by-file using Read (from the located template path) and Write (to the new project path). Preserve directory structure exactly. Copy these top-level entries:
CLAUDE.mdREADME.md.vscode/settings.json and .vscode/tasks.json.gitignore.gitlab-ci.ymlschema/knowledge-frontmatter.schema.jsonscripts/library.py — resolves the shared source library. Without it nothing can find a PDF.scripts/bib-subset.py — writes output/bibtex/references.bib as the cited subset of the libraryscripts/bib-search.py — page-level full-text search across the library (SQLite FTS5; the index is a local cache, never in the synced folder)scripts/check-pdf-version.py — flags manuscript-vs-published PDFs before ingestscripts/check-quotes.py — checks every verbatim quote on a source page against its PDF (wording and printed page)scripts/add-to-library.py — adds one PDF directly to the shared master library (the add-to-library skill drives it)scripts/lint-wiki.pyscripts/wiki-to-graph.pyscripts/graph_mcp.py — stdlib MCP server exposing the graph queriesscripts/vendor/cytoscape.min.js (+ scripts/vendor/README.md) — bundled offline lib for the HTML graph viz.mcp.json — registers the wiki-graph MCP server for Claude Codeinput/ (with its bibliography/, data/, description/, ideas/, notes/ subdirectories — the description/project-description.md template file goes too)knowledge/ (plain Markdown wiki — _meta/, the four _example-*.md files in entities/, concepts/, sources/, synthesis/, plus an empty assets/ and _meta/log.md, _meta/index.md; no _quarto.yml or Makefile — the wiki has no build step)output/ (bibtex/references.bib, bibtex/csl/, article/article.qmd, book/_quarto.yml and chapters, presentation/talk.qmd, plus their Makefiles; and the empty article/outline/ + book/outline/ dirs where drafting-manuscript keeps each manuscript's argument architecture — not rendered, never listed in _quarto.yml)Patch CLAUDE.md frontmatter with the user's answers. Read the new CLAUDE.md, replace the placeholder frontmatter block at the top:
---
methodology: <user-answer>
discipline: "<user-answer>"
languages: <user-answer>
plugin_version: "<version from .claude-plugin/plugin.json>"
---
Use the Edit tool with the original placeholder block as old_string.
plugin_version is not a user answer — read it from ${CLAUDE_PLUGIN_ROOT:-$RESEARCH_SUPERPOWERS_DIR}/.claude-plugin/plugin.json
and copy the version string verbatim. It records which plugin version this project's copied
schema/ and scripts/ came from, and it is what lets scripts/sync-project.py tell an old
copy from a local patch later. Leaving it at 0.0.0 is not fatal — the project is then
simply treated as behind — but it costs the user a false "local edit" warning on every file they
never touched.
Point the project at the shared library. Source PDFs do not live in the project — they live in one shared folder (<library>/pdf/<bibkey>.pdf), so the same paper exists once across every project. Write its path into .research-library (one line, no trailing slash). Without this the project has no sources: ingest-source will hard-stop on the very first ingest.
~/.config/research-superpowers/library already exists, offer its contents as the default — most users have one library for everything.~/UOLcloud/Bibliothek). Leave blank to set it later."Optionally init git. If the Bash tool is available, ask: "Initialise a git repository here? (recommended; lets you track changes and roll back.)" If yes, run:
cd <parent_directory>/<project_name>
git init -b main
git add .
git commit -m "Scaffold research project from research-superpowers template"
If Bash is not available or the user declines, skip — note that git can be initialised later.
Register the project and audit its join keys. Append the new project's absolute path to ~/.config/research-superpowers/projects (one path per line; create the file if missing — the session-start drift check also auto-registers, but only once a session starts in the project). If the registry now lists ≥ 2 projects, run python scripts/wiki-global-graph.py bibkeys <all registry roots> — a new project is exactly when its own doc says to run the audit, because no single project's CI can see a cross-project COLLISION or SPLIT.
Confirm completion. Tell the user:
"Project created at
<parent_directory>/<project_name>/. Next steps:
- Open
CLAUDE.mdto see the project's conventions- Point the project at the shared library (one line in
.research-library), then say 'ingest ' to populate the wiki- For the full walkthrough, see the plugin's
docs/tutorial.md"
digraph scaffold {
"Ask project name" [shape=box];
"Valid kebab-case?" [shape=diamond];
"Ask parent directory" [shape=box];
"Ask methodology" [shape=box];
"Ask discipline" [shape=box];
"Ask languages" [shape=box];
"Confirm plan" [shape=box];
"User confirms?" [shape=diamond];
"Locate template" [shape=box];
"Template found?" [shape=diamond];
"Fallback to WebFetch" [shape=box];
"Copy files via Read+Write" [shape=box];
"Patch CLAUDE.md frontmatter" [shape=box];
"Bash available?" [shape=diamond];
"Offer git init" [shape=box];
"User wants git?" [shape=diamond];
"git init + commit" [shape=box];
"Confirm + next steps" [shape=doublecircle];
"Ask project name" -> "Valid kebab-case?";
"Valid kebab-case?" -> "Ask project name" [label="no, retry"];
"Valid kebab-case?" -> "Ask parent directory" [label="yes"];
"Ask parent directory" -> "Ask methodology";
"Ask methodology" -> "Ask discipline";
"Ask discipline" -> "Ask languages";
"Ask languages" -> "Confirm plan";
"Confirm plan" -> "User confirms?";
"User confirms?" -> "Ask project name" [label="no, restart"];
"User confirms?" -> "Locate template" [label="yes"];
"Locate template" -> "Template found?";
"Template found?" -> "Fallback to WebFetch" [label="no"];
"Fallback to WebFetch" -> "Copy files via Read+Write";
"Template found?" -> "Copy files via Read+Write" [label="yes"];
"Copy files via Read+Write" -> "Patch CLAUDE.md frontmatter";
"Patch CLAUDE.md frontmatter" -> "Bash available?";
"Bash available?" -> "Offer git init" [label="yes"];
"Bash available?" -> "Confirm + next steps" [label="no"];
"Offer git init" -> "User wants git?";
"User wants git?" -> "git init + commit" [label="yes"];
"User wants git?" -> "Confirm + next steps" [label="no"];
"git init + commit" -> "Confirm + next steps";
}
| Thought | Reality |
|---|---|
| "I'll skip the methodology question and default to hermeneutic" | No — ask explicitly. Methodology drives writing-research-plan and executing-research-plan behaviour; assuming wrong wastes the user's time later. |
"I can just cp -r the template" | Not in Cowork (no Bash). The Read+Write approach works everywhere. |
| "Partial copy is fine, the user can fix it" | No — failed mid-copy leaves a confusing half-state. Either complete or roll back. |
| "I'll write files before the user confirms" | No — explicit confirmation is the gate between Q&A and disk writes. |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
research-project, project-scaffolding, template-copy, cowork
npx claudepluginhub leiverkus/research-superpowers --plugin research-superpowers18 skills in this plugin
/acquire-sourcesUse AFTER literature-review and BEFORE ingest-source to obtain the actual PDFs for the A+B graded sources. Auto-downloads Open-Access PDFs into the shared library (<library>/pdf/<bibkey>.pdf — the bibkey IS the filename) and writes a manual-download worklist (input/bibliography/acquisition-todo.md) for everything paywalled or bot-blocked, so the user can fetch originals via university VPN. Re-run to reconcile manually-downloaded files. Triggers on "acquire the sources", "download the literature", "get the PDFs", "Quellen beschaffen", "lade die Literatur herunter". NOT a search skill (that is literature-review), NOT an ingest skill (that is ingest-source)./add-to-libraryAdd ONE document (a PDF) directly to the shared master library — outside the project ingest flow. Auto-discovers the bibliographic metadata, VERIFIES it against Crossref/OpenAlex (never guessing), derives keywords cheaply from the PDF's docinfo + first-page abstract (no full read), computes the canonical bibkey, places the PDF at <library>/pdf/<bibkey>.pdf and appends the entry to <library>/references.bib. Stops and asks when metadata cannot be verified. Triggers on "add this PDF to the library", "add to the master bibliography", "put this straight in the library", "füge das Dokument der Bibliothek hinzu", "nimm das PDF in die Bibliothek auf". NOT ingest-source (which reads a source into a project's wiki), NOT acquire-sources (which downloads a review's worklist).Other plugins' skills for the same job