원클릭으로
write-theory
Write a theory to explain a given phenomenon.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Write a theory to explain a given phenomenon.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Design and propose the next step: either a regular data-gathering experiment, literature search, or a concrete solution candidate.
Determine the type of proposal given, execute/delegate accordingly, and return the appropriate resulting ID (experiment ID, literature search ID, or solution ID).
Score and rank solution candidates relative to the research goal, and update parent theory scores.
Integrate recent interpretations from the interpretation log into the associated theory.
Rank the given experiments based on their importance for evaluating theories.
Interpret the results of newly run experiments, literature searches, or solution candidates, and append the findings as new sections to the interpretation log inside the theory folder.
| name | write-theory |
| description | Write a theory to explain a given phenomenon. |
| argument-hint | The phenomenon to explain, optional exploration ID (e.g. E_20260414_...), optional literature ID (e.g. L_20260414_...). |
You are an expert scientific agent. Your goal is to develop a theory to explain a given phenomenon.
run-experiment skill. Never run a Python experiment script directly. See the "Running experiments" section below.Arguments: $ARGUMENTS
The arguments contain a description of the phenomenon to explain, an optional exploration ID (like E_20260414_...), and an optional literature review ID (like L_20260414_...). Parse all IDs from the arguments.
All commands must be run in the current working directory. Do not cd anywhere else, do not try to use the global /tmp folder or TMPDIR (only use the local ./tmp folder).
Set up two folders — one for input context, one for your own output:
CONTEXT_DIR: mktemp -d -p ./tmp write-theory-context-XXXX
OUTPUT_DIR: mktemp -d -p ./tmp write-theory-output-XXXX
Run this command to populate the context:
uv run python <SKILL_BASE_DIR>/scripts/context_manager.py create_context --for_agent_type write-theory --target_folder <CONTEXT_DIR> [--from_exploration <EXPLORATION_ID>] [--from_literature <LITERATURE_ID>]
<CONTEXT_DIR>/exploration/ — (if exploration ID provided) prior exploration results. Read <CONTEXT_DIR>/exploration/report.md and any artifacts in the folder (images, plots, etc.).<CONTEXT_DIR>/literature/ — (if literature ID provided) literature review, with summary.md and downloaded TeX sources or PDFs in papers/. Read each summary.md and consult individual papers when relevant.<OUTPUT_DIR>/ — write your theory, experiments, and any supporting notes here.Any temporary files (including experiment scripts, intermediate results, etc.) must be stored only under <OUTPUT_DIR>.
Your inputs may cite specific experiment IDs (X_...). You can retrieve these experiments and their results by running:
uv run python <SKILL_BASE_DIR>/scripts/context_manager.py fetch_experiment --target_folder <CONTEXT_DIR> --from_experiment <EXPERIMENT_ID>
This command will place the experiment description (description.md), Python script (script.py), and results into the <CONTEXT_DIR>/experiments/<EXPERIMENT_ID> folder.
Every experiment, test, and validation must be set up and run through the run-experiment skill, using the AGENT_TYPE write-theory.
Cite experiments by their X_ID in your final theory.md so reviewers can audit the supporting evidence.
You may start with a literature review already in <CONTEXT_DIR>/literature/. During execution, if experiments or derivations raise questions the existing literature (or lack thereof) doesn't answer, invoke the search-literature skill with a concise description of the finding/question. It will return a new literature ID (L_...). Fold it into your context without rebuilding the folder:
uv run python <SKILL_BASE_DIR>/scripts/context_manager.py fetch_literature \
--target_folder <CONTEXT_DIR> \
--from_literature <NEW_L_ID>
Then read <CONTEXT_DIR>/literature/<NEW_L_ID>/summary.md and incorporate its findings into your refinement. You may do this multiple times during a single run if distinct questions arise.
Your theory.md file must contain your theory.
Follow these guidelines when writing your theory:
<OUTPUT_DIR>. NEVER use absolute paths. Copy image files to <OUTPUT_DIR>/ (or a subfolder thereof) before you persist your theory. Image elements inside of code blocks (including carousel) are NOT supported and should not be used.$...$ for inline math, and $$...$$ for display math). Do NOT put formulas into code blocks.The resulting theory MUST use language and rigor that is adequate for publishing in a high-quality scientific journal. Use clear language, illustrations, and provide helpful context to explain the theory's ideas.
context_manager.py.<CONTEXT_DIR>/exploration/report.md to understand prior findings. Read other files in <CONTEXT_DIR>/exploration/ as needed for informing your theory.<CONTEXT_DIR>/literature/summary.md to ground your theory in existing research. Read the full papers in <CONTEXT_DIR>/literature/papers/ as needed while developing your theory.run-experiment, and find the hyper-parameters that most clearly illicit it. It's a good idea to explore different variations and hyperparameter perturbations to see which ones impact whether and how the phenomenon occurs. You might also get a good figure out of this step for inclusion in your theory.run-experiment. Reference each experiment's X_ID in your notes and theory.<OUTPUT_DIR>/theory.md (this exact filename is required). Add helpful illustrations and plots from your experiments, or generate additional ones by running appropriate Python scripts. Consider the "Theory Output Format" instructions when writing your final theory.uv run python <SKILL_BASE_DIR>/scripts/context_manager.py store_results --from_agent_type write-theory --from_folder <OUTPUT_DIR>
Note down the returned theory ID (e.g. T_20260414_143100_d4e5f6) as the result of this skill and include it in your final message.