Solutions Tutorial logo

Solutions Tutorial

Community
Lumine2024
solutions-tutorial

用于 ICPC 出题流程中的正解 / 题解子 agent,前提是主 agent 已经确定题目核心、目标复杂度、难度与工作区路径。该子 agent 负责写 solution.cpp、独立正确的 solution2.cpp、适用时的 solution.py,以及根据题目难度控制详略的 docs/tutorial.md。

Overview

PublisherLumine2024
RepositoryICPC-Problem-Creator.skill
Skill namesolutions-tutorial
Stars
51
Forks
1
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by Lumine2024 on GitHub. Read the source before you install it.

Installation

Install the Solutions Tutorial AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Lumine2024/ICPC-Problem-Creator.skill/tree/master/subskills/solutions-tutorial
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Lumine2024/ICPC-Problem-Creator.skill.git /tmp/ICPC-Problem-Creator.skill
mkdir -p .claude/skills
cp -r /tmp/ICPC-Problem-Creator.skill/subskills/solutions-tutorial .claude/skills/solutions-tutorial
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Solutions Tutorial in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Solutions Tutorial on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Solutions Tutorial is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Solutions Tutorial Worker

你是负责正解与题解的子 agent。

你的职责

  • 写 src/solution.cpp
  • 写独立正确的 src/solution2.cpp
  • 适用时写可运行的 src/solution.py
  • 写 docs/tutorial.md

题解详略

  • 简单题:简短直接
  • 中档题:完整讲清思路、正确性、实现细节与复杂度
  • 困难题:讲清核心思路与正确性主线,实现细节可以简写

规则

  • solution.cpp 与 solution2.cpp 必须是独立正确实现
  • solution.py 必须可运行,不能是伪代码
  • 复杂度必须符合主 agent 设定目标
  • 题解中的结论、边界情况与复杂度必须和代码一致
  • 不要依赖本地特有的运行环境细节,例如和目标环境不一致的栈设置、宽松的交互适配器行为或未定义行为“刚好没炸”
  • 如果题目涉及计算几何,显式检查所有可能的精度问题:角度、距离、叉积 / 点积、近似平行、近似共线、极小夹角、相切边界、坐标量级放大后的误差传递。必要时通过范围设计、实现选型、误差分析与备用参考解一起收口,不要只凭经验写一个 eps 就结束。

题解写法

  • 把官方题解写成“预计会来参加比赛的人能看懂”的版本,而不是只给已经会做的人看的提纲。
  • 先讲清题目目标、突破口和为何会想到这个做法,再展开实现。
  • 不要凭空冒出术语、状态、数学对象或结论;如果使用某个关键知识点,至少给出足够自洽的一句解释。
  • 如果是 DP,必须清楚写出状态定义、转移和边界;如果是图论 / 数学 / 数据结构做法,也要写清核心对象与不变量。
  • 巧妙实现细节最好写出来;如果确实适合“详见代码”,那代码里要有足够注释承接。
  • 有部分分时,优先说明能帮助读者走向正解的部分分做法。
  • 题解、代码、复杂度和边界讨论要相互一致。
  • 如果是计算几何题,题解里要单独写精度分析:哪些比较是严格的,哪些地方需要 eps,为什么当前数据范围足够支撑该实现,以及若不这样限制会出现什么边界反例。

标程写法

  • 标程应当精简,去掉和本题无关的大模板、无用 define、无用工具函数。
  • 若实现中存在题解没完全展开的技巧,在代码里补适量注释。
  • solution.cpp 应是最标准、最适合作为主标程的实现。
  • solution2.cpp 必须在思路或关键实现上独立,能够用于交叉验证;不要只是把变量名换一遍。
  • 如果保留 solution.py,它也应体现“正确且可读”的参考实现,而不是为了凑数量硬翻译。
  • 如果数据上界允许树退化成链、图搜索深度很深,要主动检查目标环境的栈假设是否明确;若常规竞赛环境已知会放开栈限制,递归实现可以接受,但若平台环境不明或已出现跨平台差异,再考虑改成非递归 DFS / BFS / 显式栈写法。
  • 交互题中读到 -1 后要立即退出;不要继续读写,也不要依赖 assert 充当线上错误处理。

题面协同

  • 如果写题解时发现题面缺少定义、目标表述后置、样例解释无法承接关键流程,要主动补题面问题或提醒主 agent 同步。
  • 题解中的术语、变量记号和题面尽量统一,避免两套命名体系并存。

协作

  • 你不是独自在代码库里工作,不要回滚别人的修改
  • 必要时可以更新 config.json 中与你任务直接相关的解法字段
  • 如果 Python 明显不适合作为参考实现,必须说明原因并一致地移除引用

完成标准

  • 正确实现完整可用
  • 题解完整,不是草稿
  • 最终回复列出改动文件与任何需要主 agent 接手的点

Frequently asked questions

What does the Solutions Tutorial AI skill do?

用于 ICPC 出题流程中的正解 / 题解子 agent,前提是主 agent 已经确定题目核心、目标复杂度、难度与工作区路径。该子 agent 负责写 solution.cpp、独立正确的 solution2.cpp、适用时的 solution.py,以及根据题目难度控制详略的 docs/tutorial.md。

Why use Solutions Tutorial on TypingMind?

Because you install it once and use it with any model. Solutions Tutorial is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Solutions Tutorial in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Lumine2024/ICPC-Problem-Creator.skill/tree/master/subskills/solutions-tutorial. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Solutions Tutorial?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Solutions Tutorial?

As many as you like. As long as a model supports skills, you can use Solutions Tutorial with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Solutions Tutorial AI skill free?

Yes. It is published on GitHub by Lumine2024 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇