Interactive project initialization — asks user for research topic and track, creates workspace, launches pipeline
Guide the user through starting a new arts & social sciences research project. Ask for their research topic, select a research track, create the workspace, and auto-launch the pipeline.
Output exactly this text and wait for the user's reply:
What area do you want to research about arts & social sciences today?
Wait for the user's reply. Do NOT continue until they respond.
Capture the user's response as:
topic_seed — the user's raw textinitial_user_query — same as topic_seed at this stageproject_bootstrap_inputAsk the user to select a research track:
What type of research paper would you like to produce?
A. Systematic literature review — evidence mapping, conceptual synthesis, gap analysis
B. Policy or discourse analysis — policy documents, media discourse, institutional statements
C. Comparative case study — cross-case comparison, 2-6 cases, regional or institutional analysis
Enter A, B, or C (or press Enter for auto-detect):
Map the answer:
literature_reviewpolicy_analysiscomparative_case_studynull (auto-detect during scoping).venv/bin/python3 utils/schemas.py project_id
Store the output as {PROJECT_ID}.
AR_ROOT=$(pwd)
mkdir -p "$AR_ROOT/workspaces/{PROJECT_ID}"/sources/{academic,policy,media,audit}
mkdir -p "$AR_ROOT/workspaces/{PROJECT_ID}"/analysis/{scoping,literature_map,method_cards,evidence/reading_notes,claims,debate_logs}
mkdir -p "$AR_ROOT/workspaces/{PROJECT_ID}"/drafts/sections
mkdir -p "$AR_ROOT/workspaces/{PROJECT_ID}"/reviews/{comments,revision_plans}
mkdir -p "$AR_ROOT/workspaces/{PROJECT_ID}"/{final,exports}
Write workspaces/{PROJECT_ID}/status.json:
{
"project_id": "{PROJECT_ID}",
"topic_seed": "{USER_INPUT}",
"initial_user_query": "{USER_INPUT}",
"project_bootstrap_input": "{USER_INPUT}",
"paper_type": "{TRACK or null}",
"state": "TOPIC_RECEIVED",
"created_at": "<ISO timestamp>",
"updated_at": "<ISO timestamp>",
"stages_completed": ["bootstrap"],
"current_stage": "scoping",
"errors": []
}
Write workspaces/{PROJECT_ID}/config.yaml:
project_id: {PROJECT_ID}
topic_seed: "{USER_INPUT}"
paper_type: "{TRACK or auto}"
created_at: "{ISO timestamp}"
Research project initialized!
Project: {PROJECT_ID}
Topic: {topic_seed}
Track: {track name or "auto-detect"}
Workspace: workspaces/{PROJECT_ID}/
Starting research pipeline...
Do NOT stop after creating the workspace. Immediately continue with the pipeline inline:
status.json: set state to SCOPING_IN_PROGRESSar-scoping via the Agent tool (foreground):
.claude/skills/ar-scoping/SKILL.md for workspace workspaces/{PROJECT_ID}{workspace}/analysis/scoping/scoping_summary.md## GATE 1: Topic & Scope Approval
{contents of scoping_summary.md}
---
Do you approve this scope? Type one of:
- **approve** — proceed to next stages
- **revise** — tell me what to change
- **reject** — stop the pipeline
status.json → state: SCOPING_APPROVED, append scoping to stages_completed. Then hand off to the orchestrator by reading and following .claude/skills/ar-orchestrator/SKILL.md for workspace workspaces/{PROJECT_ID}, starting from Stage 2 (Corpus Building).ar-scoping with user feedback, re-present Gate 1state to TOPIC_RECEIVED, stopThe orchestrator handles the full pipeline after Gate 1: