Research

From docxology/template · View interactive version

Research is an AI agent skill from the GitHub repository docxology/template. Descriptive research planning API: scope, survey, hypothesise, experiment, validate, review and write. Use for inspecting ordered stage descriptors, expected artifacts, gates and tracking configuration. Instantiate ResearchWorkflow; query stage(name), all_stages(), describe() or to_dict(). The libra

How to use this skill

Skill file

Research Workflow

Use this module when a caller needs an inspectable research plan or tracking

configuration. Execution and evidence are supplied by the caller's actual

project pipeline.

Quick reference

from infrastructure.research import ResearchWorkflow, load_research_workflow_config

workflow = ResearchWorkflow()
print(workflow.describe())
for stage in workflow.all_stages():
    print(stage.order, stage.name, stage.gate)
record = workflow.stage("survey").to_dict()
plan = workflow.to_dict()
settings = load_research_workflow_config("projects/templates/template_code_project")

Stage names are scope, survey, hypothesise, experiment, validate,

review and write. Descriptors contain name, label, description, inputs,

outputs, gate, status and order; no computation happens when they are displayed.

Configuration

The library reads optional projects/<qualified-project>/research_workflow.yaml:

enabled: true
active_stage: survey
skip_stages: []
strict: true

Unknown keys and invalid stage names fail. Missing files return tracking defaults.

The separate repository inspection CLI reads research_workflow.enabled from

manuscript/config.yaml and supports these actual arguments:

uv run python scripts/pipeline/stage_10_research_workflow.py \
  --project templates/template_code_project --describe
uv run python scripts/pipeline/stage_10_research_workflow.py \
  --project templates/template_code_project --stage survey

--describe works without enabling the inspection switch. --stage reports

a descriptor with the switch enabled. These are inspection commands;

actual computations use the canonical execution DAG and domain producers.

Boundaries and verification

The optional documents under CODE0 provide agent-context prose.

They are separate from the Python planning API. Every execution or acceptance

claim needs actual source-bound producer evidence.

uv run pytest tests/infra_tests/research/ --no-cov -q

See CODE0, CODE1,

CODE0 and CODE1.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.