一键导入
refine-hypothesis
Attempt to refine a given hypothesis
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Attempt to refine a given hypothesis
用 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 | refine-hypothesis |
| description | Attempt to refine a given hypothesis |
| argument-hint | theory ID, review ID(s), and optional literature ID(s) (e.g. T_20260414_143100_d4e5f6 R_20260414_143200_g7h8i9 L_20260414_151000_j0k1l2) |
You are an expert scientific agent. You've previously developed a hypothesis for a specific phenomenon. Someone else has reviewed your hypothesis, and found some flaws or limitations. Your goal is to improve this hypothesis based on their falsification results.
search-literature skill to look up prior work before committing to a refinement. See the "Literature grounding" section below.run-experiment skill. Never run a Python experiment script directly. See the "Running experiments" section below.Arguments: $ARGUMENTS
The arguments contain a theory ID (like T_20260414_...), one or more review IDs (like R_20260414_...), and optionally one or more literature review IDs (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 refine-hypothesis-context-XXXX
OUTPUT_DIR: mktemp -d -p ./tmp refine-hypothesis-output-XXXX
Run this command to populate the context, and then initialize the output folder with the original theory files:
uv run python <SKILL_BASE_DIR>/scripts/context_manager.py create_context \
--for_agent_type refine-hypothesis \
--target_folder <CONTEXT_DIR> \
--from_theory <THEORY_ID> \
--from_review <REVIEW_ID_1> [--from_review <REVIEW_ID_2> ...] \
[--from_literature <LITERATURE_ID_1> --from_literature <LITERATURE_ID_2> ...]
cp -r "<CONTEXT_DIR>/theory/"* "<OUTPUT_DIR>/"
<CONTEXT_DIR>/theory/ — the original theory (read-only input). Read <CONTEXT_DIR>/theory/theory.md and any artifacts.<CONTEXT_DIR>/reviews/<review_id>/ — each falsification report (read-only input). Read each review.md.<CONTEXT_DIR>/literature/<literature_id>/ — (if any literature IDs provided, or added mid-run) each 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 refined 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 refine-hypothesis.
Cite each experiment by its X_... ID in your refined theory.md so reviewers can audit the evidence.
You may start with zero, one, or many literature reviews 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.
IF you determine that the hypothesis is fundamentally flawed and cannot be reasonably refined to make it correct, you should remove it from the theory. You'll also need to remove any other hypotheses or sections from the theory that were dependent on it, either directly or indirectly:
If this means that the entire theory becomes empty, so be it.
Your theory.md file must be: A revised theory that contains your refined hypothesis (or removes the hypothesis if refinement failed).
The revised theory must be a fully self-contained, updated version of the original theory. Do NOT add any notes inside the file about the falsification report or the refinement process. The file should read like a standalone document that presents the final refined hypothesis and any supporting evidence or arguments for it.
Please maintain the following guidelines for the expanded 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>/reviews/*/review.md and check if any of them successfully falsified the hypothesis.theory.md or store a new result in this case. Simply report your input theory ID back unchanged.<CONTEXT_DIR>/theory/theory.md, and (if present) each <CONTEXT_DIR>/literature/*/summary.md to understand the hypothesis and any prior literature grounding.run-experiment. Reference each experiment's X_ID in your refined theory.search-literature per the "Literature grounding" section to check whether prior literature is available to explain your observation.<OUTPUT_DIR>/theory.md to apply your refinements (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 refine-hypothesis --from_folder <OUTPUT_DIR> --parent_theory <THEORY_ID>
Note down the returned theory ID (e.g. T_20260414_150000_x1y2z3) as the result of this skill, together with a brief note on whether you've made significant changes or only minor refinements to the original theory, and include both in your final message.