comp-code

Generate runnable competition code from modeling reports with constraint validation.

1|Updated May 14, 2026
One-click install
npx skills add https://github.com/lix965996-art/MMM --skill comp-code
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: comp-code
Source: https://github.com/lix965996-art/MMM/tree/main/resources/app/skills/comp-code
Command: npx skills add https://github.com/lix965996-art/MMM --skill comp-code

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill turns a competition modeling report into deterministic, verifiable programming implementations by enforcing algorithm/constraint/parameter consistency and producing structured JSON outputs for paper figures.

Core Features & Use Cases

  • Modeling-to-Code Consistency Contract: Extracts and enforces the modeling report’s required algorithms, constraints, parameters, and validation checkpoints to prevent silent simplification.
  • End-to-End Competition Workflow: Reads modeling inputs (MODELING_REPORT.md, PROBLEM_ANALYSIS.md, TOPIC_PLAN.md, user_data/), prepares the environment, validates data ingestion, implements each sub-problem, and aggregates outputs for figures.
  • Mandatory Verification Guardrails: Performs automated sanity checks, constraint validation (validate_constraints), and rationale checks to ensure results are within the declared expected ranges and boundaries.

Quick Start

Use the comp-code Skill to implement and run competition code based on the attached modeling package containing MODELING_REPORT.md, PROBLEM_ANALYSIS.md, TOPIC_PLAN.md, and user_data/.

Frequently Asked Questions about comp-code

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate runnable Python code from a math modeling report for competition programming?

To generate runnable Python code from a math modeling report, you provide your modeling package including analysis documents and user data. The implementation enforces algorithm, constraint, and parameter consistency to prevent silent simplification.

How do I validate data ingestion and constraints when implementing a multi-subproblem math model?

Validating data ingestion and constraints during math model implementation is handled through automated sanity checks and a mandatory validate_constraints function. This ensures all results stay within declared expected ranges and boundaries.

What's the best way to ensure modeling-to-code consistency for competition programming sub-problems?

Ensuring modeling-to-code consistency for competition programming requires extracting and enforcing the report's required algorithms and validation checkpoints. This approach prevents silent simplification and guarantees verifiable implementations.

Can I produce structured JSON outputs from math modeling code for generating paper figures?

Yes, producing structured JSON outputs from math modeling code directly supports downstream paper figure generation. The implementation aggregates sub-problem results and formats them into structured JSON for easy visualization.

Do I need specific input documents to start generating competition programming code from a modeling report?

Yes, generating competition programming code requires a modeling package containing MODELING_REPORT.md, PROBLEM_ANALYSIS.md, TOPIC_PLAN.md, and a user_data directory for complete end-to-end workflow execution.

How does error prevention work when implementing math modeling algorithms in Python?

Error prevention when implementing math modeling algorithms in Python works through mandatory safety checks using reference materials. The system performs rationale checks and reports against a checklist to ensure expected boundaries are met.