name: research-review-scaffold
description: Create a low-entropy review/ workspace from a user's research intention. Use when a project needs a literature-review folder with nested agent files, root review docs, a reusable note template, and topic-derived theme folders. Do not use it to seed a paper corpus or to curate an existing review in place without first clarifying the review intention.
Research Review Scaffold
Trigger
- Use when the user wants a
review/folder created from a research topic or research intention. - Use when the user needs a clean literature-review scaffold before collecting sources.
- Use when the user wants topic-derived theme folders and topic-aware review framing, but not a seeded corpus.
- Do not use this skill to create paper notes, source-index rows, or bibliography entries in the initial scaffold.
- Do not use this skill when the research intention is still too vague to derive stable review themes; refine the intention first.
Inputs
project_dir: project root where the review workspace should be createdresearch_intention: concise statement of the review topic or research question; used to derive a purpose-only review mission, not workflow rules or current task statereview_dir: optional relative path for the review folder, defaultreviewchat_context: optional conversation context that helps clarify wording and theme derivation; it must not become durable scope unless intentionally converted into the review mission or explicit scaffold texttheme_count_hint: optional preferred starting theme count; default behavior is approximately 3 themesoverwrite: when true, allow replacing existing scaffold files; otherwise skip collisionsdry_run: when true, return the scaffold plan without writing
Workflow
- Read
research_intentionand anychat_context, then clarify the review question until the intended literature scope is stable enough to scaffold. Treat chat context as supporting evidence only; do not persist chat-only instructions as durable review scope unless they are intentionally converted into the mission or scaffold docs. - Derive a low-entropy starting theme map from the user's intention. Default to about 3 themes when no
theme_count_hintis provided, but do not hard-code a maximum. - Resolve the target review folder as
project_dir/<review_dir>. - Create a self-contained review workspace even when no parent agent workspace exists.
- Scaffold the four base agent files by invoking the
agent-filesskill (toolagent_files_init) withtarget_dir = project_dir/<review_dir>, a purpose-onlymissionderived from the stabilizedresearch_intention, and the sameoverwriteflag. The derived mission must not include reusable workflow rules, current repository state, source-collection next steps, or transient objectives. This is the mechanism by which the parent relationship toagent-filesis realized — do not re-implement the four base templates locally or patch immutableAGENT.md. On completion the target folder holds:AGENT.mdAGENT_GOAL.mdAGENT_HARNESS.mdAGENT_PROGRESS.md
- Always scaffold the root review docs:
README.mdmethodology.mdsummary.mdsource-index.mdreferences.bibreference-audit.mdtemplates/paper-note-template.md
- Create numbered theme folders using
NN-<theme>/and preserve user-approved wording for the theme names whenever possible. - Initialize topic-aware scaffold text only:
summary.mdcontains framing and placeholder synthesis sections, not final conclusionssource-index.mdcontains only the canonical header rowreferences.bibis empty or stubbed- no literature notes, source rows, or bibliography entries are created in v1
- If the topic crosses domains, mark transfer into the target domain as inference in the scaffold text unless the user clearly scopes the review as cross-domain by design.
- If
overwriteis false, rely on the upstreamagent-filescompatibility checks for the four AGENT files, including immutableAGENT.md. For review-specific root docs, skip existing files cleanly and return them infiles_skipped. - If
dry_runis true, perform steps 1–3 and 7 (derive the theme map) without writing. Returnwritten=false, the plannedreview_path, the plannedtheme_folders, and the list of files that would be created infiles_createdas intent only; leavefiles_skippedempty; do not invokeagent_files_init.
Outputs
review_paththeme_foldersfiles_createdfiles_skippedsummarywrittenwarningsopen_questions
Failure / Escalation
- If the research intention is too ambiguous to derive a stable review question or theme map, stop with
written=falseand list the blockers inopen_questions. - If the derived themes are obviously unstable or one-off chat artifacts, refine them with the user before writing.
- If the target folder already exists and
overwrite=false, do not replace files silently; rely onagent-filescompatibility checks for AGENT files, skip compatible collisions, and report all collisions. - If deriving the review mission would require embedding workflow rules, current state, or source-collection next steps, stop and ask the user for a cleaner purpose statement.
- If the request expands into corpus building, note taking, or bibliography population, state that those are follow-on review tasks rather than part of the initial scaffold.
Tool Contract
- Read
tool.jsonfor the authoritative schema. - The JSON schema enforces input/output shape only. Semantic checks for purpose-only derived mission text and chat-context persistence are workflow requirements enforced before writing files.
project_dirandresearch_intentionare required.review_dir,chat_context,theme_count_hint,overwrite, anddry_runare optional.- Return the full output envelope even when no write occurs.