agentleFS
zhnnky329zhnnky329/MathModeling-skills/.claude/skills/workflow-orchestrator/SKILL.md

workflow-orchestrator

Skill1.1k starsChanged 3 months agoMITView on GitHub

Inspect a mathematical-modeling workspace, evaluate lean or submission gates per subquestion, update machine-readable manifests, classify change impact, and route one next action without duplicating downstream work.

9 other projects use a version of this.

Trending

Quiet since October.thin dataabout the whole repository

Jan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 2 mentionsNov 2026: 0 mentionsDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the zhnnky329/MathModeling-skills repository that our weekly crawl found: only 2 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. 0 are common, 12 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 12

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before orchestration in a new workspace:

    line 14
  2. Distinctive:

    check the chosen runtime and required core packages.

    line 17
  3. Distinctive:

    verify the workspace skeleton needed for the current request.

    line 18
  4. Very specific:

    read planning/session_config.json, accepting legacy mode.

    line 19
  5. Distinctive:

    Never trust a dashboard over newer canonical artifacts.

    line 31
  6. Distinctive:

    Update only fields affected by the current state change.

    line 66
  7. Distinctive:

    Do not require a fixed number of candidates, universal PoCs, or a source-line limit.

    line 86
  8. Distinctive:

    Do not invoke several judgment-bearing skills speculatively.

    line 138
  9. Distinctive:

    Never schedule a full-workspace consistency audit solely because more than one file changed.

    line 156
  10. Distinctive:

    do not require per-round Markdown reports, full success logs, frozen numbers, paper artifacts, or final audits.

    line 163
  11. Distinctive:

    run the full three-auditor layer once before final assembly.

    line 169
  12. Distinctive:

    Read legacy artifacts when new ones are absent:

    line 173
  13. Distinctive:

    Do not paste a full dashboard or large JSON structure unless the user asks.

    line 195

“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Purpose

Act as the gate-driven scheduler and state reader. Do not solve models, write model code, or draft paper sections.

../../AGENTS.md is the packaged policy source. Prefer a project-root AGENTS.md when one exists; otherwise read the packaged copy relative to this SKILL.md. Apply that policy without reproducing large reports or dashboards.

Session Start

Before orchestration in a new workspace:

  • show git status --short;
  • check the chosen runtime and required core packages;
  • verify the workspace skeleton needed for the current request;
  • read planning/session_config.json, accepting legacy mode.

Report warnings concisely. Do not create the full project skeleton unless the user is initializing a project.

State Sources

Prefer, in order:

  1. planning/manifests/Qx.json
  2. canonical artifacts on disk
  3. legacy dashboard and legacy method/decision artifacts

Never trust a dashboard over newer canonical artifacts.

Manifest Contract

Maintain one compact JSON manifest per subquestion:

{
  "schema_version": 1,
  "question_id": "Q1",
  "rigor_profile": "lean",
  "current_gate": "G2",
  "status": "method_screened_waiting_human",
  "artifacts": {
    "method_card": "methods/Q1/q1_method_card.md",
    "decision_ledger": "methods/Q1/q1_decisions.jsonl",
    "risk_probe": "methods/Q1/probes/risk_probe_summary.json",
    "latest_run": null
  },
  "allowed": {
    "code_generation": false,
    "freeze": false,
    "paper_writing": false,
    "final_assembly": false
  },
  "blockers": [],
  "next_action": {
    "owner": "human",
    "skill": "decision-prompt-builder",
    "reason": "method choice not recorded"
  },
  "updated_at": "ISO-8601"
}

Update only fields affected by the current state change. Generate a human dashboard on request or at a milestone; otherwise derive status directly from manifests.

Gate Evaluation

Evaluate each Qx independently.

G1 — PROBLEM_FRAMED

Pass when parse, classification, data inventory, success criteria, and human framing exist. A placeholder in a human-owned field blocks the gate.

G2 — METHOD_SCREENED

Pass when:

  • qx_method_card.md defines a main candidate and usable baseline;
  • the baseline completes the real task with comparable output;
  • risk_probe_summary.json covers applicable checks, including output degeneracy;
  • main and baseline verdicts are PASS or justified CONDITIONAL;
  • any fallback has a concrete trigger.

Do not require a fixed number of candidates, universal PoCs, or a source-line limit.

G2.5 — METHOD_CHOSEN_BY_HUMAN

Pass when qx_decisions.jsonl contains a human DECIDED method choice citing probe evidence. While blocked, allow data preparation but not model code generation.

G3 — CODE_AND_EXPERIMENT_REVIEWED

Pass when:

  • approved main and baseline executed;
  • latest run_summary.json is complete;
  • language review contains passing named checks for syntax, input contract, method alignment, reproducibility, and output contract.

Accept legacy Markdown review artifacts during migration, but prefer JSON for new work.

G4 — RESULTS_JUDGED_AND_FROZEN

In lean, pass the result-judgment subgate when final-result and stability decisions cite computed evidence. Continue iterating without freezing when the human selects adjust or fallback.

In submission, additionally require:

  • final method explanation;
  • final result analysis;
  • robustness report;
  • package sign-off in the decision ledger;
  • solution package;
  • current frozen_numbers.json.

G5 — PAPER_SECTION_READY

Require the three writer rules, frozen-number sourcing, human-confirmed interpretation/claim scope, and verified figures.

G6 — FINAL_AUDIT_PASSED

Evaluate only in submission. Require passing consistency, completeness, and QA artifacts. Never infer that one auditor covers another.

Routing

Choose one primary next action:

  • missing framing → parser/classifier or human framing card;
  • missing data profile → data-auditor-cleaner;
  • missing method card/probe → method-selector;
  • missing human method choice → decision-prompt-builder;
  • approved method without implementation plan → model-code-analyzer;
  • code/review incomplete → language generator or reviewer;
  • meaningful experiment awaiting judgment → result choice card;
  • final results without robustness → robustness-checker;
  • submission package incomplete → final explainer, result report, or package builder;
  • paper ready but unaudited → the earliest missing final auditor.

Do not invoke several judgment-bearing skills speculatively.

Change Impact

Classify changes before scheduling checks:

  • NONE: scratch, formatting, comments, non-semantic docs.
  • LOCAL: exploratory code or method-card updates before freeze.
  • CANONICAL: schema/units, symbols, equations, parameters, official values, figure paths.
  • FROZEN: changes affecting frozen values or paper claims.

Route checks:

  • NONE: none.
  • LOCAL: local tests/review.
  • CANONICAL: scoped consistency for affected Qx.
  • FROZEN: thaw log, rerun affected work, re-freeze, scoped consistency.

Never schedule a full-workspace consistency audit solely because more than one file changed.

Lean vs Submission

In lean:

  • require only manifests, method card, decision ledger, probe summary, and run summaries;
  • do not require per-round Markdown reports, full success logs, frozen numbers, paper artifacts, or final audits;
  • persist a detailed report only at a human decision point or final round.

In submission:

  • require final explanations, reviews, analyses, robustness, package, freeze, paper, and G6;
  • run the full three-auditor layer once before final assembly.

Compatibility

Read legacy artifacts when new ones are absent:

  • planning/progress_dashboard.md
  • qx_method_candidates.md
  • qx_method_iteration_log.md
  • qx_decision_log.md
  • decisions/*_modeler_decision.md
  • Markdown code reviews

Mark them legacy_source in the manifest and recommend migration at the next material edit. Do not regenerate legacy files for new work.

Output

Return a compact state report:

  • profile;
  • per-question current gate and blocker;
  • artifacts changed or missing;
  • change-impact class;
  • one next action;
  • optional runners-up only when they can proceed independently.

Do not paste a full dashboard or large JSON structure unless the user asks.

Verification

  • State is derived from current canonical artifacts.
  • Lean requirements are not confused with submission requirements.
  • Human decisions were not inferred from AI suggestions.
  • Code generation, freeze, paper writing, and final assembly flags match the gates.
  • Audit scope matches semantic impact.
  • Manifest and reported next action agree.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.