Agent skill

AutoMCM-Pro for opencode

by RealSeaberry in RealSeaberry/AutoMCM-Pro

The opencode binding of the AutoMCM-Pro math modeling pipeline for CUMCM and MCM/ICM contests, with tool mappings, install prompts and checkpointed runs.

MITAuto-check passedResearch & Science

SKILL.md written in Chinese; this summary is our English description.

Install AutoMCM-Pro for opencode

skills CLI
$ npx skills add RealSeaberry/AutoMCM-Pro --skill auto-mcm -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install RealSeaberry/AutoMCM-Pro auto-mcm --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/RealSeaberry/AutoMCM-Pro.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.opencode/skills/auto-mcm .claude/skills/auto-mcm && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
auto-mcm
GitHub stars
257
Token cost
~1.2k tokens
SKILL.md length
274 words
Files
1
Skills in repo
7
Repo updated
First seen
Licence
MIT

At a glance

The opencode binding of the AutoMCM-Pro math modeling pipeline for CUMCM and MCM/ICM contests, with tool mappings, install prompts and checkpointed runs.

  • Running the AutoMCM-Pro math modeling workflow inside opencode
  • SKILL.md covers 【工具映射表】—— opencode 的工具名和…, 【触发时的依赖安装询问】, 【运行方式】(opencode 特有) and 【流水线执行】, plus 2 more sections
  • Calls opencode, python and bash
  • Entering a CUMCM or MCM/ICM modeling contest with an AI-led pipeline

What it does

This is the opencode runtime binding of the AutoMCM-Pro protocol, not a separate protocol. Behavior is defined by AutoMCM_SOP.md at the repository root, with sibling bindings for Claude Code, Codex and the DeepSeek Harness. A table maps Claude Code tool names to opencode ids such as task, question, bash and read, and says all 12 were tested on real tasks. The SKILL.md is written in Chinese.

On first trigger in a session it asks, through the question tool, whether to install the core Python modeling dependencies and the optional Lean 4 gate, and never installs silently. Interactive steps, including manual-mode stage confirmations and the mandatory human review at a checkpoint, need the opencode TUI or web mode, since question is denied by default in opencode run. The pipeline covers stages, five checkpoints, a quality gate, plot styling, an Andon emergency stop and a launch check.

When your agent uses it

  • Running the AutoMCM-Pro math modeling workflow inside opencode
  • Entering a CUMCM or MCM/ICM modeling contest with an AI-led pipeline
  • Choosing between AI-led and human-spec-led modes for a modeling paper

Example prompts

  • “Start an AutoMCM-Pro run for this year's MCM problem C in AP mode.”
  • “Switch the pipeline to Manual mode so I confirm each stage myself.”
  • “Pull the Andon stop on the current modeling run and show its status.”

Requirements

  • opencode, the sst/opencode CLI, in interactive or web mode
  • Python modeling dependencies, installed with `install.sh --with-python-deps`
  • Optional Lean 4, installed with `--with-lean`

What it can do on your machine

Read from SKILL.md and the folder at commit 90c4727. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • opencode
    • python
    • bash

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

AutoMCM-Pro for opencode loads about 1.2k tokens when it runs. Until then it costs about 92 tokens; SKILL.md has 274 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~92
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from RealSeaberry/AutoMCM-Pro at commit 90c4727, republished under its MIT licence (© RealSeaberry). 274 words, ~1,169 tokens.

Download SKILL.mdSave it as .claude/skills/auto-mcm/SKILL.md (or your agent's skills folder).
name
auto-mcm
description
AutoMCM-Pro industrial-grade math modeling agent (opencode binding). Supports AP (AI-led) and Manual (human-spec-led) dual modes with mandatory GitOps checkpoints, forced self-verification of all solver code before LaTeX inclusion, and structured human cross-validation at each pipeline stage. Use for both CUMCM (Chinese) and MCM/ICM (English) competitions.

AutoMCM-Pro:opencode 绑定

这是 AutoMCM-Pro 协议在 opencode(sst/opencode, MIT 授权)上的运行时绑定(Binding),不是另一套独立协议。 行为规范权威来源仍是 仓库根目录的 AutoMCM_SOP.md(工具无关,原样复用);可选探索层见 LOS_ALAMOS_DESIGN.md。Claude Code 绑定是 .claude/skills/auto-mcm/SKILL.md, DeepSeek Harness 绑定是 .dsh/skills/auto-mcm/SKILL.md,Codex 绑定是 .agents/skills/auto-mcm/SKILL.md——几份文件描述同一套流程,只是把"怎么调用 工具"换成各自 runtime 的实际工具名。完整背景见 OPENCODE_INTEGRATION.md。


【工具映射表】—— opencode 的工具名和 Claude Code 几乎一一对应

Claude Codeopencode 工具
Agent(description, prompt)task
AskUserQuestionquestion
Bashbash
Readread
Writewrite
Editedit
Globglob
Grepgrep
WebSearchwebsearch
WebFetchwebfetch
TodoWritetodowrite
(载入其他 skill)skill

以上 12 个工具 id 全部用真实任务实测过(不是文档推断),详见 OPENCODE_INTEGRATION.md §3。

【触发时的依赖安装询问】

每个新的 OpenCode 会话首次触发本 Skill 时,先用 question 分别询问是否安装核心 Python 建模依赖,以及是否准备可选的 LeanGate / Lean 4。不预扫描、不静默安装; 用户同意后才调用 bash install.sh --with-python-deps 和/或 --with-lean,拒绝后 同一会话不重复询问。opencode run 无法等待回答时,显示问题并暂停,不得自行选择。

⚠ 关键限制:question 在 opencode run(单次任务/headless)模式下默认权限 是 deny——模型会尝试提问,但工具调用被权限系统挡下,退化成打印文字、没人能 回答。【唤醒协议】Step 2a、MANUAL 模式的逐阶段确认、Checkpoint LA 的强制人类 终审,这几个环节都依赖 question 真正等到回复,必须用交互式的 opencode (TUI)或 opencode web 跑,不能用 opencode run。 工作区初始化完成后,如果 某一段流程确定不会触发任何需要人类介入的分支,才可以考虑用 opencode run 做 单次调用。

task(子代理委派)实测发现:委派子代理访问项目工作区之外的绝对路径会触发 工作区边界限制、卡在 running 状态问不到答案;委派子代理操作工作目录内的相对 路径则正常。Los Alamos 路径 C 用 task 派发 Division/红队/评审子代理时, prompt 里给的路径应该是当前工作区内的相对路径,不要用跨目录的绝对路径。

【运行方式】(opencode 特有)

sh
opencode          # 交互式 TUI
opencode run "task"   # 单次任务模式

Skill 发现路径是 .opencode/skills/<name>/SKILL.md(opencode 自己的仓库 sst/opencode 就用这个路径放它自己的内部 skill,.opencode/skills/auto-mcm/ 是同一套约定)。opencode 额外还有 .opencode/agent/*.md(子代理人格定义, frontmatter 支持 mode/tools 白名单/黑名单)和 .opencode/command/*.md (slash command,支持 !`shell命令` 内联执行)两种配置文件类型,本次绑定 用不到,仅供后续想做更深度定制时参考。


【流水线执行】

阶段定义、状态机、Checkpoint 编号(①~⑤)、质量门控(quality_gate.py)、 Los Alamos 探索层(路径 C)、图表风格规范(plot_style.py)、Andon 紧急停止 (pipeline_manager.py andon-pull/andon-clear/andon-status)、Go/No-Go 发射前检查 (quality_gate.py launch-check,final_compile 前强制)、Skunk Works 轻量模式 (pipeline_manager.py init --skunk-works)、Track2 的 RAND Delphi 多轮收敛 (adjudicate.py delphi-summary)、Kaizen 质量打磨循环 (pipeline_manager.py kaizen-assess/kaizen-round-start/kaizen-status)、工作日志 (worklog.py append/tail,单文件简体中文完整记录,唤醒协议 Step 0)、文献引用 真实性核验+共享池(cite_check.py register/verify/list/export-bibitems)、写作 风格打磨(style_check.py scan,latex_draft 固有规范非可选 addon)、官方格式 合规(quality_gate.py anon-check、ai_usage_doc.py generate/cite-format/ mcm-entry、compile_pdf.py 编译后页数提醒,AutoMCM_SOP.md §17)、画图前先查 领域惯例(AutoMCM_SOP.md §18)全部内容 与 Claude Code 版本一致,见 .claude/skills/auto-mcm/SKILL.md 对应小节(标题相同), 按上方【工具映射表】逐一替换调用方式即可——由于工具名高度对应,这份绑定的 替换规则比 dsh/Codex 都更直接:几乎是把 Agent( 换成 task(、 AskUserQuestion 换成 question,其余照搬。

scripts/*.py 系列命令(pipeline_manager.py/quality_gate.py/ los_alamos/*.py/plot_style.py)完全不变,全部通过 bash 调用。


【安全规程】

AutoMCM_SOP.md 的 S1~S5 原样适用。


【LeanGate:可选 Lean 形式化验证】

LeanGate 默认关闭;共享规范见 AutoMCM_SOP.md §19。OpenCode 用 bash 调用同一实现:

bash
python scripts/leangate.py doctor
python scripts/leangate.py --workspace CUMCM_Workspace init --policy selected
python scripts/leangate.py --workspace CUMCM_Workspace status --problem-n 1
python scripts/leangate.py --workspace CUMCM_Workspace verify --problem-n 1
python scripts/quality_gate.py formal --problem-n 1

LeanGate 启用后,离开 problem_analysis 前必须逐问题登记适用性并执行 leangate.py seal-assessment;安全边界、整数可行性、守恒、不变量、递推、收敛、 求解器证书或决策关键结论必须用 --risk-category 标注,自动成为 mandatory。

不得直接编辑权威状态或用 reviewer 意见升级 FORMALLY_PROVED。输入变化后必须重新审查、 冻结和验证;Lean FAIL、UNKNOWN、STALE 或 Python FAIL 都是 NO-GO。 LeanGate 启用后的 model_N_verify 推进必须传入工作区内真实验证脚本: pipeline_manager.py advance model_N_verify --verify-script CUMCM_Workspace/src/verifications/verify_*.py。 required claim 还必须使用人类文件中的 [APPROVED LeanGate ...] 与 [REQUIRED LeanGate ...] 标记。

© RealSeaberry, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .opencode/skills/auto-mcm of RealSeaberry/AutoMCM-Pro.

Open the folder on GitHubat commit 90c4727

Compare with similar skills

AutoMCM-Pro for opencode next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

AutoMCM-Pro for opencode compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
AutoMCM-Pro for opencode this skillRealSeaberry/AutoMCM-Pro257—~1.2kAutomated safety check: PassMIT
Nucleus Delivery Evidence Finalizerprotect-my-hair/nucleus-marketplace164—~454Automated safety check: PassMIT
Light Research OrchestratorLight0305/Light-skills640—~3.8kAutomated safety check: PassMIT
Research Writing AssistantNorman-bury/research-writing-skill3.4k—~1.3kAutomated safety check: NotesMIT
Aer Statspaibrycewang-stanford/Auto-Empirical-Research-Skills4.6k—~3kAutomated safety check: PassCustom licence
Arxiv MCP Serverblazickjp/arxiv-mcp-server3.2k—~353Automated safety check: PassApache-2.0

Similar skills

  • Nucleus Delivery Evidence Finalizer

    protect-my-hair/nucleus-marketplace

    Combines the evidence from completed Nucleus workflow steps into a final evidence report and result package, without scheduling steps, updating trackers or opening pull requests.

    164 GitHub stars~454 tokensUpdated 2 mo ago
    Agent WorkflowsAuto-check passed
  • Light Research Orchestrator

    Light0305/Light-skills

    Coordinates and recovers multi-stage Light research projects from a single passport file, with checkpoints, stale-work tracking and rerouting only when you approve.

    640 GitHub stars~3.8k tokensUpdated 3 mo ago
    Research & ScienceAuto-check passed
  • Research Writing Assistant

    Norman-bury/research-writing-skill

    A skill your agent uses when writing academic papers, theses, or research articles - supports brainstorming, chapter writing, literature review, and LaTeX output

    3.4k GitHub stars~1.3k tokensUpdated 4 mo ago
    Research & ScienceAuto-check: notes
  • Aer Statspai

    brycewang-stanford/Auto-Empirical-Research-Skills

    A skill your agent uses when aer-identification has fixed the design, after methodology choice and before aer-robustness or aer-tables-figures, to run an AER-track analysis with StatsPAI — the…

    4.6k GitHub stars~3k tokensUpdated 4 days ago
    Research & ScienceAuto-check passed
  • Arxiv MCP Server

    blazickjp/arxiv-mcp-server

    A skill your agent uses when finding, comparing, reading, or monitoring arXiv papers, including requests for abstracts, citation graphs, original LaTeX, section-level technical details, or…

    3.2k GitHub stars~353 tokensUpdated yesterday
    Research & ScienceAuto-check passed
  • Zotero

    congcongwang0122/zotero-skill

    Use Zotero Desktop to enable/probe the local API, search a local Zotero library, list items/collections/tags, export BibTeX, insert citation keys into LaTeX or Markdown drafts, read indexed full…

    200 GitHub stars~1.6k tokensUpdated 1 mo ago
    Research & ScienceAuto-check passed

More from RealSeaberry/AutoMCM-Pro

  • AutoMCM-Pro for Codex CLI

    RealSeaberry/AutoMCM-Pro

    Runs a math modeling contest pipeline for CUMCM and MCM/ICM entries in Codex CLI, with git checkpoints, verified solver code and human review at each stage.

    257 GitHub stars~1.6k tokensUpdated 29 days ago
    Auto-check passed
  • AutoMCM Math Modeling Agent

    RealSeaberry/AutoMCM-Pro

    Runs a staged workflow for math modeling contests such as CUMCM and MCM/ICM, with checkpoints, verified solver code and a LaTeX paper, on DeepSeek Harness.

    257 GitHub stars~2.3k tokensUpdated 29 days ago
    Auto-check passed
  • CUMCM Math Modeling Agent

    RealSeaberry/AutoMCM-Pro

    Drives an end-to-end workflow for the CUMCM math modeling contest: reads the problem and data, researches, codes and verifies models, then writes a LaTeX paper and PDF.

    257 GitHub stars~1.6k tokensUpdated 29 days ago
    Auto-check passed
  • Draw Image Diagrams

    RealSeaberry/AutoMCM-Pro

    Generates diagrams, flowcharts and conceptual illustrations with OpenAI's gpt-image models, while leaving data plots and result figures to real plotting code.

    257 GitHub stars~1.9k tokensUpdated 29 days ago
    Auto-check: notes
  • MCM/ICM Autonomous Modeling Agent

    RealSeaberry/AutoMCM-Pro

    Runs an MCM/ICM math modeling competition end to end: collects contest metadata, builds and verifies models and code, then generates an English LaTeX paper and any required memo.

    257 GitHub stars~2.8k tokensUpdated 29 days ago
    Auto-check passed
  • AutoMCM-Pro Math Modeling Agent

    RealSeaberry/AutoMCM-Pro

    Runs a math modeling competition entry end to end, in AI-led or human-led mode, with Git checkpoints and self-verified solver code before it enters the LaTeX paper.

    257 GitHub stars~8.5k tokensUpdated 29 days ago
    Auto-check passed

Works with

Questions about AutoMCM-Pro for opencode

What does AutoMCM-Pro for opencode do?

The opencode binding of the AutoMCM-Pro math modeling pipeline for CUMCM and MCM/ICM contests, with tool mappings, install prompts and checkpointed runs. This is the opencode runtime binding of the AutoMCM-Pro protocol, not a separate protocol.md at the repository root, with sibling bindings for Claude Code, Codex and the DeepSeek Harness.

When should I use AutoMCM-Pro for opencode?

AutoMCM-Pro for opencode fits situations like: running the AutoMCM-Pro math modeling workflow inside opencode; entering a CUMCM or MCM/ICM modeling contest with an AI-led pipeline; choosing between AI-led and human-spec-led modes for a modeling paper.

How do I install AutoMCM-Pro for opencode in Claude Code?

Run `npx skills add RealSeaberry/AutoMCM-Pro --skill auto-mcm -a claude-code`. Or copy the skill folder (.opencode/skills/auto-mcm in RealSeaberry/AutoMCM-Pro) into .claude/skills/auto-mcm in your project. Claude Code loads it when a task matches its description.

How do I install AutoMCM-Pro for opencode in Codex?

Run `npx skills add RealSeaberry/AutoMCM-Pro --skill auto-mcm -a codex`. Or copy the skill folder (.opencode/skills/auto-mcm in RealSeaberry/AutoMCM-Pro) into .agents/skills/auto-mcm in your project. Codex loads it when a task matches its description.

Can I use AutoMCM-Pro for opencode in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add RealSeaberry/AutoMCM-Pro --skill auto-mcm -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/auto-mcm, .gemini/skills/auto-mcm, .github/skills/auto-mcm and .opencode/skills/auto-mcm in your project.

What does AutoMCM-Pro for opencode need to run?

Going by SKILL.md and its folder, AutoMCM-Pro for opencode needs the command-line tools its instructions call (opencode, python and bash). Our summary lists: opencode, the sst/opencode CLI, in interactive or web mode; Python modeling dependencies, installed with `install.sh --with-python-deps`; Optional Lean 4, installed with `--with-lean`.

Does AutoMCM-Pro for opencode access the network?

SKILL.md names 1 domain. As links in the text: github.com. This is read from the text; nothing was executed.

Is AutoMCM-Pro for opencode safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does AutoMCM-Pro for opencode use?

AutoMCM-Pro for opencode is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does AutoMCM-Pro for opencode use?

About 1.2k tokens (SKILL.md is roughly 4.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to AutoMCM-Pro for opencode?

Skills that share tags, products or a category with AutoMCM-Pro for opencode: Nucleus Delivery Evidence Finalizer (protect-my-hair/nucleus-marketplace, 164 stars), Light Research Orchestrator (Light0305/Light-skills, 640 stars), Research Writing Assistant (Norman-bury/research-writing-skill, 3.4k stars) and Aer Statspai (brycewang-stanford/Auto-Empirical-Research-Skills, 4.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains AutoMCM-Pro for opencode?

RealSeaberry (a GitHub user) maintains it in RealSeaberry/AutoMCM-Pro, which has 257 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on September 10, 2026.

Source: RealSeaberry/AutoMCM-Pro on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.