generate-learning-content
Generate 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. -
Report the generated or changed paths, validation and evaluation performed, assumptions made, and intentionally retained warnings.