ClawHub
SkillsPluginsOfficialDocsSupport
K
Skillsojimport

ojimport

fslong@fslong520
从 OJ 平台搬运题目(含AtCoder/Codeforces等),生成标准化题目文件包;也可根据用户提供的题目仅生成测试数据。用户说"搬运""搬题""搬道题""导入题目"均适用

Install

$
openclaw skills install @fslong520/ojimport
Security check
Review
Version
3.0.0
Updated
Sep 2, 2026
License
MIT-0

Latest: v3.0.0

定级表加四级体系锚定(GESP/CSP-J/CSP-S/NOI),超纲知识点循跨体系兜底规则升到CSP/NOI禁定格GESP级;CF定分改四维判据档位判定表,水题克制

Development
#测试

Keywords

OJ题目、搬题、搬运、搬运题目、算法题搬运、搬道题、搬一下、AtCoder、Codeforces、GESP、测试点、测试数据

Summary

自OJ搬题,生标准化题包(题面+标程+数据);或依用户所供,仅生测试数据(.in/.out)。

Strategy

基路径

自动检测用户桌面路径(支持 Linux/macOS/Windows),工作目录创建于桌面。 步骤中 {WORK_DIR} 即 {BASE_DIR}/work_{PID}_{标题简写},其中 {BASE_DIR} 为 detect_desktop() 检测结果。 检测逻辑见 steps/01-init.md。

参考文档

生成测试数据前,先读 references/testdata-design.md,按题目类型选取边界清单与 Hack 策略。 所有步骤文件(07-testdata.md)中的测试数据细节均引用该文档。

单题搬运

  1. 读 steps/00-detect-url.md → 辨类型
  2. 初始化:BASE_DIR=$(detect_desktop); cp -r question $BASE_DIR/work_{PID}_{标题简写}(详 01-init.md)
  3. 取题面:按来源
    • URL:urlgo 访问 → snapshot → 解析(urlgo不可用时用 BrowserUse/WebFetch)
    • 文件:读 steps/09-from-file.md → 自本地文件取题面
    • 文本:读 steps/10-from-text.md → 自用户文本取题面
  4. 读 steps/03-gesp.md → 定等级(第二步)+ 定分数(第四步)
  5. 读 steps/04-problem.md → 生题面
  6. 读 steps/05-config.md → 写配置
  7. 实现标程 std.cpp
  8. 读 steps/07-testdata.md → 生数据(⚠️ 只改 mkin.h,勿动 mkdata.cpp)
  9. 读 steps/08-audit.md → 审计(文件完整性、模板一致、GESP等级、分值的复核)
  10. 打包:zip -r $BASE_DIR/{PID}_{标题简写}.zip $BASE_DIR/work_{PID}_{标题简写}(审计未过不打包)

⚠️ 比赛搬运(必先创题面汇总文件)

  1. 读 steps/contest/01-list.md → 创题面汇总文件 {contest_id}.md
  2. 读 steps/contest/02-problem.md → 逐题译之,追加写入汇总文件
  3. 读 steps/contest/03-move.md → 自文件读题面,逐题生完整题包(含审计)
  4. 打包合集:所有题目 zip 打包到同一 {contest_id}.zip 内,不散包

生成测试点

用户已有完整题面,仅需测试数据(.in/.out + config.yaml)。

触发词:用户言"生成测试点"、"出测试数据"、"想测试数据"、"写测试数据"等。

流程:

  1. 读 steps/00-detect-url.md → 辨输入类型
  2. 初始化:BASE_DIR=$(detect_desktop); cp -r question $BASE_DIR/work_{PID}_{标题简写}(详 01-init.md)
  3. 取题面信息:
    • URL:urlgo/BrowserUse/WebFetch 访问并解析
    • 文件:读 steps/09-from-file.md 取题面(仅内部参考,不生正式 problem_zh.md)
    • 文本:读 steps/10-from-text.md 自文本取题面
  4. 读 steps/07-testdata.md → 以「仅测点」模式走流程:实现标程 + 生测试数据 + 打包 testdata.zip + 交付
  5. 跳过:题面格式化(04-problem.md)、GESP 定级(03-gesp.md)、配置写入(05-config.md)、审计(08-audit.md)、全局打包(09-package.md)

AVOID

  • AVOID 不读步骤文档即执行
  • ⚠️ AVOID 跳过审计(08-audit.md):题包生成后必审计,未过不打包
  • ⚠️ AVOID 不按模板格式
  • AVOID 测试数据只写样例
  • AVOID GESP等级乱判
  • ⚠️ AVOID 按速查表/公式机械估 CF 分(含星级映射、AtCoder 换算表、GESP 等级映射):每次必走 03-gesp.md 第四步「CF 档位判定」,逐项判四维(思维拐点/算法门槛/数据规模/实现细节)锁定档位,水题克制(零思维量 ≤900),拿不准取低档(宁低勿高)
  • ⚠️ AVOID 等级乱判:凡涉及线段树/树状数组/平衡树/最短路/MST/并查集/堆/AC自动机/网络流/计算几何等进阶结构,必查 03-gesp.md 2.4 跨体系锚定表,禁低估(线段树 ≠ 5级);GESP 大纲无此知识点必循 2.5 兜底规则升到 CSP-J/CSP-S/NOI,禁定格在 GESP 级
  • AVOID 忘清理工作目录(work_*)
  • AVOID PID 格式错误(用小写 abc451a)
  • ⚠️ AVOID tag 只写等级:必含 1~3 个知识点标签 + 1 个等级标签(GESP X级/CSP-J/CSP-S/NOI),禁单标签敷衍
  • ⚠️ AVOID 自对话上下文记忆题面,必自文件读取
  • ⚠️ AVOID 忘填出处 source:URL 搬运必填原题 URL(problem.yaml 的 source 字段 + 题面出处行)
  • ⚠️ AVOID 生成数据时修改 mkdata.cpp,只许修改 mkin.h
  • ⚠️ AVOID 测试数据缺少特殊性质和 hack 数据
  • ⚠️ AVOID 写完 std 不验样例:所有样例输入逐一喂入,输出须与题面完全一致,全过方可进入数据生成
  • ⚠️ AVOID 修改样例:样例输入/输出必原样复制,禁增删改任何字符
  • ⚠️ AVOID 删除图片链接:题面中 ![](url)、<img> 标签等所有图片语法必原样保留
  • ⚠️ AVOID 删除示意图:题面原有示意图、表格、公式必完整保留
  • ⚠️ 生成测试点时 AVOID 生成 problem_zh.md、problem.yaml
  • ⚠️ 生成测试点时 AVOID 全局打包(09-package.md 之整个工作目录 zip),只打包 testdata/ 下文件
  • ⚠️ 生成测试点时 AVOID 跳过 std.cpp:无标程则 .out 不出
  • ⚠️ 生成测试点时 AVOID 只写样例数据:25 组全覆盖(含 Hack)
  • ⚠️ 生成测试点时 AVOID 交付前不验证:必查 .in 格式、.out 与样例一致、文件成对存在
  • ⚠️ AVOID 在 std.cpp 中使用 C 语言的输入输出(scanf/printf)——必须用 cin/cout
  • ⚠️ AVOID 在 std.cpp 中使用 C 风格写法(qsort、char[]、strcpy 等)——除数组外,尽量用 C++ 标准库(std::sort、std::string、std::vector 等)

入口

读 steps/00-detect-url.md

Related skills

More in Development
ClawHub

Skills and plugins for OpenClaw agents. Part of the wider OpenClaw ecosystem.

Explore docs

SkillsPluginsOfficialAudits

Publish SkillPublish PluginCreate org

OverviewOpenClawDocsBlog

SupportGitHubDiscord

Built alongside the OpenClaw ecosystem

LobsterCrabboxClickClackCrabfleetOctopoolClawSweeperagent-skillsdiscrawlgitcrawlslacrawlnotcrawltelecrawlgraincrawlcrawlkitcrawlbaracpxmcporterTachikomaclawpatchclawbenchPeekaboocookbookplugin-inspectorwacrawlcrabpotAll projectsLobsterCrabboxClickClackCrabfleetOctopoolClawSweeperagent-skillsdiscrawlgitcrawlslacrawlnotcrawltelecrawlgraincrawlcrawlkitcrawlbaracpxmcporterTachikomaclawpatchclawbenchPeekaboocookbookplugin-inspectorwacrawlcrabpotAll projects

© 2026 OpenClaw Foundation

Privacy policy·Status·Deployed on Vercel·Powered by Convex

....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals
  hooks runners slash-commands skill.md templates scanners review-bots     safe browse paths   official gateways   publisher handles   org trust   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@
openclaw ecosystem    crabbox clickclack crawler packs gateway plugins   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship
---- downloads installs stars lineage ownership docs package integrity   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@   :::: signed manifests ::::: moderated releases ::::: version history ::::
  safe browse paths   official gateways   publisher handles   org trust     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship     hooks runners slash-commands skill.md templates scanners review-bots
....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals
  hooks runners slash-commands skill.md templates scanners review-bots     safe browse paths   official gateways   publisher handles   org trust   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@
openclaw ecosystem    crabbox clickclack crawler packs gateway plugins   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship
---- downloads installs stars lineage ownership docs package integrity   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@   :::: signed manifests ::::: moderated releases ::::: version history ::::
  safe browse paths   official gateways   publisher handles   org trust     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship     hooks runners slash-commands skill.md templates scanners review-bots
....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals
  hooks runners slash-commands skill.md templates scanners review-bots     safe browse paths   official gateways   publisher handles   org trust   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@
openclaw ecosystem    crabbox clickclack crawler packs gateway plugins   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship
---- downloads installs stars lineage ownership docs package integrity   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@   :::: signed manifests ::::: moderated releases ::::: version history ::::
  safe browse paths   official gateways   publisher handles   org trust     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship     hooks runners slash-commands skill.md templates scanners review-bots
....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals
  hooks runners slash-commands skill.md templates scanners review-bots     safe browse paths   official gateways   publisher handles   org trust   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@
openclaw ecosystem    crabbox clickclack crawler packs gateway plugins   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship
---- downloads installs stars lineage ownership docs package integrity   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@   :::: signed manifests ::::: moderated releases ::::: version history ::::
  safe browse paths   official gateways   publisher handles   org trust     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship     hooks runners slash-commands skill.md templates scanners review-bots
....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals
  hooks runners slash-commands skill.md templates scanners review-bots     safe browse paths   official gateways   publisher handles   org trust   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@
openclaw ecosystem    crabbox clickclack crawler packs gateway plugins   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship
---- downloads installs stars lineage ownership docs package integrity   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@   :::: signed manifests ::::: moderated releases ::::: version history ::::
  safe browse paths   official gateways   publisher handles   org trust     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship     hooks runners slash-commands skill.md templates scanners review-bots
....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals