C++ 算法竞赛自动化测试数据生成与校验框架

v1.2.0

基于原题生成新题面、验证器及完整测试数据,自动套用 testlib 标准模板。 当用户要求生成测试数据时使用。

0· 99·0 current·0 all-time
MIT-0
Download zip
LicenseMIT-0 · Free to use, modify, and redistribute. No attribution required.
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
medium confidence
Purpose & Capability
The skill's name/description (generate problems, validators, test data using testlib) matches the included files (generator/validator templates, testlib.h, scripts/generate.py). Requiring compilation and execution of C++ generators/validators/solutions is expected for this purpose.
Instruction Scope
SKILL.md gives detailed runtime SOP: read user input/std.cpp, generate gen.cpp/valid.cpp/problem.md, create files in the workspace, compile and run them in a Docker sandbox, and postprocess outputs. It intentionally instructs reading references/* files and writing to the user's working directory — this is coherent for generating test data. It does instruct the agent to run host docker commands and to prompt the user to download a docker image from a GitHub Releases page if the cpp-sandbox image is missing; that is outside the skill bundle and requires user attention.
Install Mechanism
There is no automated install spec (instruction-only), which is low-risk. However, the runtime flow requires a local Docker image named cpp-sandbox:latest (the SKILL.md points users to a GitHub Releases URL to obtain it). Downloading and loading an external image is a non-trivial action and should be verified by the user before use.
Credentials
The skill declares no environment variables, no credentials, and no config paths. It does require the ability to run Docker and to read/write the current working directory (expected). No unrelated secrets or system credentials are requested.
Persistence & Privilege
always is false, no special persistence requested, and the skill does not attempt to modify other skills or system-wide agent configuration. The code will create files in the working directory (problem_temp/ and outputs) which is expected behavior.
Assessment
This skill is coherent for generating competition-style C++ problems: it compiles and executes user/AI-provided C++ generator/validator/solution code and expects to run that inside a Docker sandbox image named cpp-sandbox. Before installing or running: 1) verify the origin and integrity of the cpp-sandbox image (the SKILL.md points to a GitHub Releases page); do not load images from untrusted sources into Docker on sensitive machines. 2) Understand that the skill will compile and execute arbitrary C++ code (generators/validators/solutions) — run in an isolated sandbox or VM and avoid using important host mounts. 3) No credentials are requested by the skill, which is good. 4) If you need higher assurance, inspect the Docker image content or run the provided scripts in a controlled environment (temporary VM or dedicated build agent) before using on your main workstation.

Like a lobster shell, security has layers — review code before you run it.

acmvk97fb92nfwryq36sy4v1d7s5sx83tcr4algorithmvk97fb92nfwryq36sy4v1d7s5sx83tcr4automationvk97fb92nfwryq36sy4v1d7s5sx83tcr4competitive-programmingvk97fb92nfwryq36sy4v1d7s5sx83tcr4cppvk97fb92nfwryq36sy4v1d7s5sx83tcr4latestvk97fbcm3p7d156n8fpc3btemjh83w6mpoivk97fb92nfwryq36sy4v1d7s5sx83tcr4test-data-generationvk97fb92nfwryq36sy4v1d7s5sx83tcr4

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

Comments