About generate-learning-content
A skill for creating and revising Exercode course materials, judge problems, and contests. It guides repository setup, selects the relevant authoring workflows, and requires validation and model-answer checks before reporting changes.
Key features
- 01Repository and content inspection
- 02Exercode repository setup guidance
- 03Course and contest authoring workflows
- 04Validation and evaluation checks
- 05Model-answer judging with CLI
Use cases
- 01Creating course lessons and embedded questions
- 02Writing coding practice problems or contests
- 03Revising existing Exercode learning content
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ willbooster/ exercode-problem-utils --skill generate-learning-contentAfter installing, type/generate-learning-contentin Claude Code to confirm it loaded.
Details
From the project READMEGenerate or improve exercode learning content
-
Inspect the requested outcome, repository instructions, and existing learning-content layout. When the user is unavailable (e.g. in an automated workflow), make reasonable decisions from the available context instead of pausing for confirmation; the confirmation steps of the workflows below then fall back to the same rule.
-
If the repository is not prepared for Exercode course authoring, follow setup-exercode-course-repository before authoring.
-
Follow every applicable authoring workflow:
- generate-course-materials for courses, lecture texts, and embedded questions.
- generate-judge-problems for judge v2 problems.
- generate-judge-contest for contests and their problem sets.
Treat both course-material and Judge-problem workflows as applicable when writing, modifying, or executing code is part of the course's learning objective. Do not treat embedded questions or complete code examples as substitutes for graded coding practice.
-
Run the validation and evaluation required by every applicable workflow and fix failures until clean.
-
For each generated or changed judge problem, run every model answer through the
exercode-problemCLI when@exercode/problem-utilsis available: from the problem directory,bunx exercode-problem judge model_answers/<languageId>(it applies the problem's ownjudge.tswhen present and the standard stdio judge otherwise; see generate-judge-problems/references/problem-format.md). Confirm the command exits 0, prints at least oneTEST_CASE_RESULTline, and every printed line has the accepted decision code2000;bunx exercode-problem <problemsDir>checks all problems' model answers at once, but runs them without harness params and therefore fails parameterized problems — exclude those with--skip <substring>and judge them individually. Judge each starter template too and confirm it does not pass every test case. An agent challenge (agentChallengeinproblem.md) has no harness: do not judge it; validate it withbunx exercode-problem validate-problem <problemDir>instead. -
Report the generated or changed paths, validation and evaluation performed, assumptions made, and intentionally retained warnings.