MathModeling-skills
AGENTS.md1.1k starsChanged 3 months agoMITView on GitHub
planning/session_config.json has two independent controls: Human decisions are captured in one append-only ledger per subquestion: methods/Qx/qx_decisions.jsonl Use planning/framing_decisions.jsonl for global or pre-subquestion framing decisions made before a Qx method directory exists. Each line is a JSON object with at least: Use choice cards only at
Trending
More talk lately.thin dataabout the whole repository
Who's talking about zhnnky329/MathModeling-skills
- sudosubin/agents.nix“codex-plugins.github.zhnnky329.mathmodeling-skills: init at 0-unstable-2026-09-24”GitHub · Oct 4, 2026
- sudosubin/agents.nix“codex-marketplaces.github.zhnnky329.mathmodeling-skills: init at 0-unstable-2026-09-24”GitHub · Oct 4, 2026
The biggest 2 of 2 mentions linking to the repository that our crawl found. Each line is their own headline.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository30 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- code-reviewerSkill
- completeness-auditorSkill
- consistency-auditorSkill
- data-auditor-cleanerSkill
- decision-prompt-builderSkill
- figure-table-plannerSkill
- final-method-explainerSkill
- math-figure-generatorSkill
- matlab-code-reviewerSkill
- matlab-model-code-generatorSkill
- method-selectorSkill
- model-assumptions-builderSkill
- model-code-analyzerSkill
- modeler-decision-loggerSkill
- paper-polisherSkill
- paper-section-writerSkill
- problem-classifierSkill
- problem-parserSkill
- python-code-reviewerSkill
- python-model-code-generatorSkill
- quality-assurance-auditorSkill
- reference-managerSkill
- related-paper-analyzerSkill
- result-report-generatorSkill
- robustness-checkerSkill
- solution-package-builderSkill
- submission-packagerSkill
- symbol-table-builderSkill
- workflow-orchestratorSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
31 rules. About 0 are common, 22 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈22
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 4
Start from goals, objects, constraints, data, outputs, variables, relationships, and checkable conclusions.
- Distinctive: line 5
Do not start from model names or favorite techniques.
- Very specific: line 22
Default to learning + lean in a fresh workspace.
- Very specific: line 23
Use lean while exploring and iterating.
- Distinctive: line 29
Every skill and referenced local resource required at runtime must exist in both trees.
- Distinctive: line 30
When a shared skill contract changes, update and validate both copies in the same change.
- Distinctive: line 33
Keep both plugin manifests and both marketplace catalogs aligned for every release.
- Distinctive: line 38
Ask the modeler about output form, priority, unacceptable failure, and experiment budget before creating a method shortlist.
- Distinctive: line 46
Keep changes minimal, traceable, and reviewable.
- Very specific: line 54
Use planning/framing_decisions.jsonl for global or pre-subquestion framing decisions made before a Qx method directory exists.
- Very specific: line 74
Do not create per-skill *_modeler_decision.md files for new work.
- Distinctive: line 80
Use choice cards only at modeling-judgment points, normally twice per subquestion:
- Distinctive: line 82
Before method screening: output form, interpretability/performance priority, unacceptable failure, experiment budget.
- Distinctive: line 83
After the first meaningful experiment: proceed, adjust, or activate the fallback.
- Distinctive: line 99
No fixed candidate count or source-line limit is used.
- Distinctive: line 129
Every paper figure passes render verification.
- Very specific: line 133
Run only in submission profile.
- Distinctive: line 153
Do not reject a method merely because an irrelevant generic test is unavailable.
- Distinctive: line 177
Before writer handoff, add:
- Distinctive: line 190
No final method explanation, no paper section.
- Distinctive: line 191
No final result analysis, no writer handoff.
- Very specific: line 209
Do not run a full-workspace audit merely because multiple files changed.
- Very specific: line 214
Never edit frozen_numbers.json by hand.
- Distinctive: line 221
Every executed round writes:
- Very specific: line 231
Create logs/ only when a failure, warning, or reproducibility need justifies it.
- Distinctive: line 238
Do not choose complexity for appearance.
- Distinctive: line 239
Do not invent data, assumptions, evidence, results, or references.
- Distinctive: line 240
Keep assumptions explicit and distinguish necessary from simplifying assumptions.
- Distinctive: line 242
Use fixed random seeds.
- Very specific: line 244
Keep raw data untouched under workspace/data_raw/.
- Distinctive: line 261
Do not approve final assembly while any G6 auditor fails.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Core Philosophy
- The AI owns mechanical correctness; the human owns modeling judgment.
- Start from goals, objects, constraints, data, outputs, variables, relationships, and checkable conclusions.
- Do not start from model names or favorite techniques.
- Separate assumptions, observations, derivations, and validated conclusions.
- Preserve evidence that changes a decision; do not create files merely to prove that a skill ran.
Configuration
planning/session_config.json has two independent controls:
{
"interaction_mode": "learning",
"rigor_profile": "lean"
}interaction_mode:learningorspeed. It changes question density and when AI suggestions are shown.rigor_profile:leanorsubmission. It changes artifact and audit density, never the human-judgment boundary.- Default to
learning + leanin a fresh workspace. - Use
leanwhile exploring and iterating. Switch tosubmissiononly when preparing writer handoff or final assembly. - For compatibility, read legacy
{ "mode": "learning" | "speed" }asinteraction_mode.
Repository Skill Copies
.codex/skills/and.claude/skills/are two complete, independently usable skill trees.- Every skill and referenced local resource required at runtime must exist in both trees; neither tree may depend on a wrapper, symlink, or path into the other.
- When a shared skill contract changes, update and validate both copies in the same change.
- Runtime-specific wording may differ only when necessary, but each copy must remain standalone and behaviorally consistent with this policy.
plugins/mathmodeling-skills/skills/is the generated distribution copy used by both native plugin manifests. After the two standalone trees agree, refresh it withscripts/sync-plugin.shand verify it withscripts/sync-plugin.sh --check.- Keep both plugin manifests and both marketplace catalogs aligned for every release. Bump the version in both plugin manifests and the Claude marketplace entry together.
Workflow Discipline
- Parse before classifying; classify before screening methods.
- Ask the modeler about output form, priority, unacceptable failure, and experiment budget before creating a method shortlist.
- Build a role-based shortlist rather than filling a quota:
- one
main_candidate; - one
usable_baseline; - at most one
conditional_fallback.
- one
- Allow only a main candidate plus baseline when no genuine fallback exists.
- A trivial reference that cannot complete the real task is
diagnostic_reference, not a baseline. - Fully implement the human-approved main method and usable baseline only. Activate a fallback only when its recorded trigger fires.
- Keep changes minimal, traceable, and reviewable.
Human Decision Convention
Human decisions are captured in one append-only ledger per subquestion:
methods/Qx/qx_decisions.jsonl
Use planning/framing_decisions.jsonl for global or pre-subquestion framing decisions made before a Qx method directory exists.
Each line is a JSON object with at least:
{
"decision_id": "q2_method_choice",
"decision_type": "method_choice",
"status": "DECIDED",
"decided_by": "human",
"captured_in_mode": "learning",
"choice": "M2",
"rationale": "M2 is selected because ...",
"evidence_refs": ["methods/Q2/probes/risk_probe_summary.json"],
"decided_at": "ISO-8601 timestamp"
}- The AI may present evidence and options but must not originate the human's choice, rationale, confidence, physical interpretation, or submission authorization.
- The AI may append the user's answer verbatim or faithfully structure it; it must not strengthen or invent the rationale.
- Do not create per-skill
*_modeler_decision.mdfiles for new work. - Existing decision Markdown files remain readable during migration but are not required for new work.
- A decision passes only when it is human-authored, evidence-linked, non-empty, and contains no placeholder.
Choice Cards
Use choice cards only at modeling-judgment points, normally twice per subquestion:
- Before method screening: output form, interpretability/performance priority, unacceptable failure, experiment budget.
- After the first meaningful experiment: proceed, adjust, or activate the fallback.
An optional third card may be used before final freeze for claim scope and confidence. Do not ask users to decide mechanically checkable matters.
Workflow Gates
G1 — PROBLEM_FRAMED
- Parse, classification, data inventory, success criteria, and human framing exist.
G2 — METHOD_SCREENED
methods/Qx/qx_method_card.mddefines the main candidate, usable baseline, and optional conditional fallback.methods/Qx/probes/risk_probe_summary.jsonexists.- The main candidate and usable baseline pass the applicable risk checks.
- Any fallback has an explicit activation trigger.
- No fixed candidate count or source-line limit is used.
G2.5 — METHOD_CHOSEN_BY_HUMAN
qx_decisions.jsonlcontains aDECIDEDhumanmethod_choicerecord citing probe evidence.- Code generation is allowed only when G2 and G2.5 both pass.
G3 — CODE_AND_EXPERIMENT_REVIEWED
- The approved main method and usable baseline ran.
results/Qx/experiments/roundN/run_summary.jsonrecords configuration, seed, metrics, outputs, and failures.- A language review artifact contains the required named checks:
syntaxinput_contractmethod_alignmentreproducibilityoutput_contract
- New review artifacts use
code/Qx/reviews/qx_<lang>_review.json. Legacy Markdown reviews may be read during migration.
G4 — RESULTS_JUDGED_AND_FROZEN
- The human decision ledger contains result, stability, and claim-scope verdicts tied to computed evidence.
- Final result analysis and robustness report exist.
- In
submissionprofile, the solution package and immutablefrozen_numbers.jsonexist and are current.
G5 — PAPER_SECTION_READY
- The writer uses the solution package as the primary source.
- Numerical claims come from
frozen_numbers.json. - Physical/domain interpretation and contribution claims are human-confirmed.
- Every paper figure passes render verification.
G6 — FINAL_AUDIT_PASSED
Run only in submission profile. All three must pass:
- cross-media consistency;
- semantic completeness;
- final quality assurance.
Risk Probe Contract
The risk probe replaces universal ≤30-line PoCs. It is time-bounded, method-specific, and may use reusable scripts.
methods/Qx/probes/risk_probe_summary.json must contain:
executability: can the method produce a legal result?data_coverage: missingness, effective sample size, imbalance, cardinality, and distribution coverage.assumption_checks: only checks relevant to the method, such as stationarity, multicollinearity, identifiability, clusterability, or constraint feasibility.output_degeneracy: variance, unique-output count, top-k mass, entropy/Gini, score or rank concentration, and constraint slack where applicable.perturbation_sensitivity: response to a small justified perturbation.scale_check: runtime and memory at representative sizes.verdict:PASS,CONDITIONAL, orFAIL, with evidence and fallback trigger when conditional.
Do not reject a method merely because an irrelevant generic test is unavailable. Do reject or condition it when a load-bearing assumption fails or its output degenerates.
Lean Artifact Contract
During exploration, keep only:
planning/session_config.json
planning/framing_decisions.jsonl # only when global framing decisions exist
planning/manifests/Qx.json
methods/Qx/qx_method_card.md
methods/Qx/qx_decisions.jsonl
methods/Qx/probes/risk_probe_summary.json
results/Qx/experiments/roundN/run_summary.jsonplanning/manifests/Qx.jsonis the machine-readable state source.- Derive dashboards from manifests; do not rewrite a large dashboard after every state transition.
qx_method_card.mdcontains roles, assumptions, risks, fallback triggers, and a compact decision history. Do not maintain a separate iteration log for new work.- Successful runs store summaries and artifact paths. Persist full console logs only for failures or when needed to reproduce an anomaly.
- Ordinary rounds do not require a Markdown experiment report. Generate one only at a human decision point or for the final round.
Submission Artifact Contract
Before writer handoff, add:
methods/Qx/qx_final_method_explanation.md
code/Qx/reviews/qx_<lang>_review.json
results/Qx/reports/qx_final_result_analysis.md
robustness/Qx/qx_robustness_report.md
results/Qx/reports/qx_solution_package_for_writer.md
results/Qx/reports/frozen_numbers.jsonThe three critical writer rules remain:
- No final method explanation, no paper section.
- No final result analysis, no writer handoff.
- The writer reads the solution package rather than guessing from scattered results.
Final Submission Package
After G6, submission-packager can assemble one paper Markdown and a 支撑材料/ directory. The packager selects scripts and inputs from the frozen round's run_summary.json, results from that round and the freeze, and images referenced by the delivered paper. It preserves code, data formats, module imports, and workspace-relative paths. It updates image paths only in the packaged paper.
Each final audit must record an explicit Verdict: PASSED. The human reviews the dry-run inclusion list and confirms its plan digest before copying. Early packaging requires a human packaging_waiver decision with a rationale. The packaging manifest stays at planning/submission_packaging_manifest.json, outside the package. Runtime checks are reported as PASS, FAIL, or UNVERIFIED; a syntax check alone never establishes runnable output.
Change Impact and Auditing
Classify a change before auditing:
NONE: scratch files, formatting, comments, non-semantic documentation. No consistency audit.LOCAL: exploratory code or method-card changes before freeze. Run local tests/review only.CANONICAL: data schema/units, symbols, equations, parameters, official result values, or figure paths. Run a scoped consistency check for affected Qx.FROZEN: anything that can change a frozen number or paper claim. Log the thaw, update the canonical source, rerun affected experiments, re-freeze, then run scoped consistency.
Do not run a full-workspace audit merely because multiple files changed. Always run the full three-auditor layer once in submission profile before final assembly.
Frozen Numbers
- Numbers flow code → results → freeze → paper.
- Never edit
frozen_numbers.jsonby hand. - To change a frozen value: 解冻 → 修改 canonical source → 重跑 affected work → 重冻结.
- Record the reason in
results/Qx/reports/freeze_change_log.md. - A freeze is stale when a referenced canonical source is newer than
frozen_at.
Experiment Output
Every executed round writes:
results/Qx/experiments/roundN/
├── figures/
├── tables/
├── metrics/
└── run_summary.jsonCreate logs/ only when a failure, warning, or reproducibility need justifies it.
run_summary.json records question, round, approved methods, role, status, inputs, outputs, metric summary, seed, environment, warnings, and fallback-trigger state.
Modeling and Coding Rules
- Match methods to output, data, interpretability, time, and contest constraints.
- Do not choose complexity for appearance.
- Do not invent data, assumptions, evidence, results, or references.
- Keep assumptions explicit and distinguish necessary from simplifying assumptions.
- Maintain
planning/symbol_table.md; define every symbol and unit before use. - Use fixed random seeds.
- Save formal outputs to files; console output alone is not a deliverable.
- Keep raw data untouched under
workspace/data_raw/; write cleaned copies underworkspace/data_clean/.
Figures and Paper
- Type 1 diagnostic: internal only.
- Type 2 comparison: may appear in paper.
- Type 3 paper: must support a main claim and pass publication-quality render checks.
- Type 4 appendix: supplementary and referenced from the main text.
- Paper claims must remain proportional to tested evidence.
- Mention eliminated methods only when the record helps explain a real trade-off; do not manufacture breadth.
Verification
- In
lean, verify the current gate and only the affected artifacts. - In
submission, verify all required artifacts, frozen-number lineage, figure rendering, references, and the three independent audits. - A review or audit passes by completing its named semantic checks, not by reaching an arbitrary bullet count.
- Flag uncertainty and blocking issues explicitly.
- Do not approve final assembly while any G6 auditor fails.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

