Logotipo de My Mathmodel Agent

My Mathmodel Agent

Comunidad
chengyike20110519-create
my-mathmodel-agent

Evidence-driven mathematical modeling contest workflow for Claude Code: decompose a problem, select baseline/primary/fallback model routes, validate PoCs, run reproducible Python/AMPL experiments, freeze results, write LaTeX or Typst papers, render, and audit every claim. Use for CUMCM, MCM/ICM, HiMCM, and similar contests; not for casual homework or one-off coding questions.

Descripción general

Editorchengyike20110519-create
RepositorioMathModelRun
Nombre de la habilidadmy-mathmodel-agent
Estrellas
113
Forks
3
Archivos incluidos
Solo instrucciones
LicenciaMIT
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Todo en las instrucciones

    Todo lo que necesita el modelo está en las instrucciones: no hay archivos adicionales que sincronizar.

  • Código abierto

    Publicada por chengyike20110519-create en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA My Mathmodel Agent en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/chengyike20110519-create/MathModelRun/tree/main/.claude/skills/my-mathmodel-agent
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/chengyike20110519-create/MathModelRun.git /tmp/MathModelRun
mkdir -p .claude/skills
cp -r /tmp/MathModelRun/.claude/skills/my-mathmodel-agent .claude/skills/my-mathmodel-agent
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa My Mathmodel Agent en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga My Mathmodel Agent automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que My Mathmodel Agent no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

MathModel Run

Use this skill when working on Chinese or international mathematical modeling contest projects that need a reproducible path from problem files to defensible decisions and, later, a defensible paper.

Default user experience

The primary product is not one-click paper generation. First identify the current blocker, compare model routes, run the smallest useful validation, and write a critique report when the evidence is weak. Unless the user explicitly asks for a complete paper, return a bounded work package instead:

  1. current blocker;
  2. why it blocks later work;
  3. smallest next action;
  4. acceptance criteria;
  5. exact fallback if it fails.

Paper writing is a controlled downstream action. Use only verified and frozen results, and prefer a problem card, model decision card, experiment plan, critique report, result explanation, or single section when that is enough.

Structure papers from evidence

Use exemplar papers to extract useful decisions, not to copy headings or named methods. Map every prompt deliverable to a section, then organize the paper as problem and scope, data and assumptions, one section per major model or task, validation and robustness, and conclusion. A strong model route often has a simple baseline, a primary mechanism model, an ordered simulation algorithm, direct requested outputs, and an interpretation with explicit limits. Add only the parts supported by the current problem and evidence.

Make model states and transitions visible with a workflow or state diagram. Choose figures by the question they answer: maps or spatial small multiples for geometry, time series for forcing and growth, distributions or intervals for randomness, and sensitivity or ablation plots for robustness. Keep colors and state names consistent. A representative run may illustrate a pattern, but statistical claims must use the declared replicate set. Label sourced data, assumed parameters, and model-generated outputs separately. Do not add a Leslie matrix, cellular automaton, AHP, TOPSIS, radar chart, or other named technique unless it is necessary and independently checkable. Page count must come from a complete argument rather than empty headings or decorative plots.

This is the Claude Code skill entry point. For Codex, use my-mathmodel-agent/SKILL.md in the repository root.

For quantitative Python figures, read the shared my-mathmodel-agent/references/python-figures.md from the repository root and use my-mathmodel-agent/scripts/figure_tools.py as an adaptable plotting helper. Plan evidence-driven combinations, use native axes and intended manuscript dimensions, and inspect actual exports before claiming visual quality. Update requested active figures in place so their original links show the revision.

For substantial result charts, use the shared my-mathmodel-agent/references/data-figure-agent.md and its reference-figure lessons. Delegate to mathmodel-data-figure when appropriate and keep review independent. AI workflow images follow the shared ai-workflow-gate.md: freeze implemented labels and topology, then verify every actual label/arrow. Use my-mathmodel-agent/scripts/figure_gate.py and its review template to block pending, unresolved or stale reviews. Standalone approval precedes insertion; final paper approval also inspects the actual rendered page. Update original active files rather than creating unsolicited numbered alternatives.

Startup ritual

  1. Read state.json, project_manifest.json, and PROGRESS.md.
  2. Find the first gate whose value is false.
  3. Read only the stage contract needed for that gate.
  4. Work on one gate at a time and update the durable handoff log.

Stage machine

text
S0 PREFLIGHT  → S1 ANALYZE  → S2 ROUTE  → S3 DATA_PLAN
→ S4 METHOD_POC  → S5 EXPERIMENT  → S6 FREEZE
→ S7 WRITE  → S8 RENDER  → S9 AUDIT  → READY

The required state gates are:

text
input_snapshot
problem_decomposed
model_route_selected
data_plan_ready
method_validated
experiments_reproduced
results_frozen
paper_written
pdf_verified
audit_passed

Every gate starts false. A gate becomes true only after independent, reproducible evidence exists in audit/gate_evidence.json. Evidence is labeled STRUCTURAL, RUNTIME, or VISUAL; structural checks alone cannot open runtime or visual gates. A fallback renderer must be identified and cannot be called submission-compliant without an explicit format check.

Core contracts

  • Each subproblem gets planning/problem_analysis.json with observable acceptance criteria.
  • Each model route records baseline, primary_model, fallback_model, rejected alternatives, and a validation plan.
  • Each experiment run records command, input hash, parameters, seed, environment, metrics, logs, and outputs.
  • Paper numbers may only come from frozen_numbers.json.
  • Each paper claim maps through paper/evidence_map.json to a frozen value, figure, or run.
  • Each paper contains a labeled Workflow/工作流 section or equivalent figure, mapped step-by-step in paper/workflow.json.
  • Every PDF page is checked in paper/render_log.json.
  • Final readiness requires zero hard errors in audit/final_report.md and a hashed audit/package_manifest.json with caches, secrets, personal paths, and obsolete duplicates excluded.

Role subagents

Invoke the role agents under .claude/agents/:

  • mathmodel-analyst: decompose problem facts, assumptions, ambiguities, and acceptance criteria.
  • mathmodel-modeler: define symbols, assumptions, objectives, constraints, and model routes.
  • mathmodel-coder: implement reproducible experiments and logs.
  • mathmodel-writer: assemble the paper only from frozen evidence.
  • mathmodel-reviewer: independently reproduce evidence and audit the project.

Recovery

Return to the earliest invalid gate:

  • question or data scope → S1
  • model route → S2
  • data leakage or units → S3
  • PoC → S4
  • experiment or solver status → S5
  • numbers → S6
  • claim or evidence mismatch → S7
  • compile or layout → S8

Use the recorded fallback instead of silently changing the model. Append KEEP/CUT/DEFER/PIVOT/ACCEPT_RISK decisions to planning/decision_log.jsonl.

Completion behavior

Do not claim completion because code ran, a solver returned success, or a PDF compiled. Report stage, artifacts, reproduced evidence, risks, and next entry point. Completion requires all gates true and a final independent audit with zero hard errors.

For detailed stage instructions, read my-mathmodel-agent/references/workflow-contract.md. For machine-readable JSON shapes, read my-mathmodel-agent/references/artifact-contracts.md. For final review scoring, read my-mathmodel-agent/references/evaluation-rubric.md.

When updating a user-requested file, replace the current version at its original path and remove obsolete content or duplicate old versions. If upstream inputs, code, parameters, environment, or templates change, invalidate downstream gates and rerun the affected evidence.

Preguntas frecuentes

¿Qué hace la habilidad de IA My Mathmodel Agent?

Evidence-driven mathematical modeling contest workflow for Claude Code: decompose a problem, select baseline/primary/fallback model routes, validate PoCs, run reproducible Python/AMPL experiments, freeze results, write LaTeX or Typst papers, render, and audit every claim. Use for CUMCM, MCM/ICM, HiMCM, and similar contests; not for casual homework or one-off coding questions.

¿Por qué usar My Mathmodel Agent en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. My Mathmodel Agent está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo My Mathmodel Agent en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/chengyike20110519-create/MathModelRun/tree/main/.claude/skills/my-mathmodel-agent. TypingMind lee el archivo SKILL.md de esa carpeta e instala su contenido como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar My Mathmodel Agent?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar My Mathmodel Agent?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar My Mathmodel Agent con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA My Mathmodel Agent?

Sí. chengyike20110519-create la ha publicado en GitHub bajo la licencia MIT. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇