generate-problem

Generates competitive programming problems through a six-stage subagent pipeline with quality gates.

1|Updated Jul 17, 2026
One-click install
npx skills add https://github.com/vaskoyudha/agent-skills-problem-gen --skill generate-problem-vaskoyudha
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: generate-problem
Source: https://github.com/vaskoyudha/agent-skills-problem-gen/tree/main/.qwen/skills/generate-problem
Command: npx skills add https://github.com/vaskoyudha/agent-skills-problem-gen --skill generate-problem-vaskoyudha

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Creating a contest-quality competitive programming problem requires a statement, verified solution, adversarial test suite, and pedagogical editorial — a process that is error-prone and inconsistent when done ad hoc. This Skill orchestrates the entire pipeline with specialized subagents and enforced quality gates. ## Core Features & Use Cases - Six-Stage Pipeline: Dispatches dedicated subagents for architecture, statement writing, solution verification, test generation, quality review, and editorial writing. - Dual Quality Gates: A solvability gate with retry loops after Stage 3 and a 10-criteria adversarial review gate after Stage 5, with bounded revision rounds. - Structured JSON Outputs: Every stage produces a schema-conforming JSON artifact, assembled into a single final_problem.json package. - Use Case: Ask for a binary search problem at Codeforces rating 1400 and receive a complete package with statement, proven solution, 10+ categorized tests, and a progressive-hint editorial. ## Quick Start Generate a complete competitive programming problem on dynamic programming at rating 1600 using the full pipeline.

Frequently Asked Questions about generate-problem

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

FAQPage Schema
How do I generate a complete competitive programming problem with AI?▼

Provide parameters like domain, topic, difficulty rating, and Bloom level, then run the pipeline. It dispatches six specialized subagents covering blueprint design, statement writing, solution verification, test generation, quality review, and editorial writing, producing a final_problem.json package.

What does the generated problem package include?▼

The final_problem.json includes metadata with difficulty and tags, the full problem statement, a verified solution with correctness proof and complexity analysis, a test suite of 10+ categorized cases, an editorial with progressive hints, and a quality report with review scores.

How does the pipeline handle an unsolvable or ambiguous problem?▼

The Solution Engineer stage outputs a SOLVABILITY_FAILURE verdict when constraints are contradictory or ambiguous. Gate 1 then retries the Problem Writer stage up to twice, then the Architect stage once, before aborting with partial output.

What quality checks does the review gate perform?▼

The Quality Reviewer scores 10 Shield criteria from 0 to 10, including learning objective clarity, difficulty calibration, and test coverage. Any score below 8 forces a REVISION verdict, and Sword attacks probe for ambiguity, untested edge cases, and incorrect passing solutions.

Can I resume the pipeline after an interruption?▼

Yes. Progress is tracked in a durable ledger file at .superpowers/sdd/progress.md. On restart, the Skill reads the ledger and resumes at the first incomplete stage rather than starting over.

When should I not use the full problem generation pipeline?▼

Avoid it when you only need a single artifact, such as just a statement or just test cases, since the pipeline always runs all stages. For targeted work, invoke the individual stage skills like write-statement or generate-tests directly.