doe-plan
by @minmin-patsnap
Evidence-backed bioprocess DOE planning for fermentation and upstream optimization. Use this skill when a task requires turning fetched patent, paper, and we...
clawhub install doe-planπ About This Skill
name: doe-plan description: "Evidence-backed bioprocess DOE planning for fermentation and upstream optimization. Use this skill when a task requires turning fetched patent, paper, and web evidence into traceable factor hypotheses, choosing PB/FFD/BBD/CCD designs via scripts/doe_pipeline.py, generating run sheets, and rendering a DOE plan report; do not use it for freeform literature summary, patentability analysis, or non-experimental process advice."
DOE Plan
Turn readable evidence into an executable DOE plan, run sheet, and traceable report.
Prerequisites
patsnap_search
- patsnap_fetch
search_input.json, fetch_manifest.json, evidence_catalog.json, or other readable evidence files, continue with the current pipeline. If there is neither MCP access nor evidence input, stop at setup guidance.Public Edition Notes
Trigger Boundary
triz-analysis
- VOC-to-HOQ prioritization: hand off to qfd-analysis
Primary Entrypoint
Use scripts/doe_pipeline.py for all new work.
Available subcommands:
evidencefactordesignreportrun-allTreat evidence_pipeline.py, patent_factor_extractor.py, doe_designer.py, and doe_plan_report.py as compatibility wrappers rather than primary entrypoints.
Minimum Inputs
Before producing an executable DOE plan, you need at least:
search_input.json
- fetch_manifest.json
context.json is optional but strongly recommended for reportingIf key inputs are missing:
Evidence Routing
patsnap_search -> patsnap_fetch -> filesweb_search -> web_fetch -> filesinferenceResource Map
Read the minimum required material for the current step:
references/output-contract.md before writing or reviewing artifactsreferences/patent-to-factor-mapping.md when converting evidence into factor hypothesesreferences/bioprocess-factor-library.md when normalizing factor names, units, and baseline mechanism descriptionsreferences/doe-method-selector.md when choosing PB, FFD, BBD, CCD, or explaining selection_rationalereferences/regulatory-qbd-guardrails.md before finalizing factors, ranges, or stop / continue criteriaWorkflow
1. Lock objective and input files
Define:
Prepare:
search_input.jsonfetch_manifest.jsoncontext.json2. Build the evidence catalog
python3 scripts/doe_pipeline.py evidence \
--search-input \
--fetch-manifest \
--top-k 12 \
--output
Continue only when the evidence catalog has enough coverage and failed fetches are not dominating the result.
3. Extract factor hypotheses
python3 scripts/doe_pipeline.py factor \
--evidence-catalog \
--max-factors 8 \
--output
Before manually changing factor name, unit, or range, read the factor library and mapping guide.
4. Design the experiment
python3 scripts/doe_pipeline.py design \
--factors-json \
--design-type auto \
--phase screening \
--resource-budget 0 \
--replicates 1 \
--center-points 3 \
--seed 42 \
--responses yield,titer \
--max-factors 6 \
--output-json \
--output-csv
If you manually force PB, FFD, BBD, or CCD, justify the choice through references/doe-method-selector.md.
5. Render the report
python3 scripts/doe_pipeline.py report \
--context-json \
--evidence-catalog \
--factors-json \
--design-json \
--output
The report must follow the output contract and explicitly separate facts, inferences, and unknowns.
6. Use run-all only when inputs are stable
python3 scripts/doe_pipeline.py run-all \
--search-input \
--fetch-manifest \
--context-json \
--output-dir \
--top-k 12 \
--max-factors 8 \
--design-type auto \
--phase screening \
--resource-budget 0 \
--replicates 1 \
--center-points 3 \
--seed 42 \
--responses yield,titer
Use run-all only when evidence inputs are stable and unlikely to change repeatedly.
Output Artifacts
evidence_catalog.jsonfactor_hypotheses.jsondoe_design.jsonrun_sheet.csvdoe_plan.mdValidation
Validate outputs by stage:
evidence_catalog.jsongates.status should be ready
factor_hypotheses.jsonsummary.status should be ready
- enough design_ready_factors should exist
doe_design.jsondesign_type, selection_rationale, runs[], and analysis_plan[]
run_sheet.csvrun_order, run_id, replicate, and per-factor _actual / _coded columns
doe_plan.mdreferences/output-contract.mdIf any stage fails validation, do not cover the gap by pushing ahead to later stages.
Failure Handling
evidence and jump straight to factor or design work.Reporting Rules
selection_rationale must explain:doe_plan.md must distinguish facts, inferences, and unknowns.Guardrails
run-all to hide unresolved problems while inputs are still changing.PB, FFD, BBD, or CCD without sufficient evidence coverage.references/regulatory-qbd-guardrails.md.Handoffs
triz-analysis when the real upstream problem is a system contradiction or solution-path decisionqfd-analysis when experiment priorities should first be driven by VOC / HOQ outputWhat's Next
βοΈ Configuration
patsnap_search
- patsnap_fetch
search_input.json, fetch_manifest.json, evidence_catalog.json, or other readable evidence files, continue with the current pipeline. If there is neither MCP access nor evidence input, stop at setup guidance.π Constraints
Validate outputs by stage:
evidence_catalog.jsongates.status should be ready
factor_hypotheses.jsonsummary.status should be ready
- enough design_ready_factors should exist
doe_design.jsondesign_type, selection_rationale, runs[], and analysis_plan[]
run_sheet.csvrun_order, run_id, replicate, and per-factor _actual / _coded columns
doe_plan.mdreferences/output-contract.mdIf any stage fails validation, do not cover the gap by pushing ahead to later stages.