en un clic
bootstrap-exercise-from-outline
// Bootstrap a GitHub Skills exercise repository from an approved outline. Use when asked to turn an outline into a working exercise with README, step content, workflows, and review content.
// Bootstrap a GitHub Skills exercise repository from an approved outline. Use when asked to turn an outline into a working exercise with README, step content, workflows, and review content.
| name | bootstrap-exercise-from-outline |
| description | Bootstrap a GitHub Skills exercise repository from an approved outline. Use when asked to turn an outline into a working exercise with README, step content, workflows, and review content. |
When you have an exercise outline, follow these steps to bootstrap a repository freshly created from the exercise-template repository:
Ignore this step if the user already has a new repository created from the exercise template.
Create a new repository - Use the CLI to initialize a new local repository based on the exercise template.
/workspaces/repos folder.Update README.md - Replace template content with exercise-specific information from the outline:
Keep the original format of the README!
Create step content files - Generate .github/steps/N-step.md files for each step in the outline if not already present:
.github/instructions/step-content.instructions.md for formattingCreate review content file - Generate .github/steps/x-review.md:
Update start exercise workflow - Modify .github/workflows/0-start-exercise.yml:
Create step workflows - Generate .github/workflows/N-step.yml files:
Configure workflow triggers - Set appropriate on: events:
paths: filters for push eventspull_request: types: [closed])Configure grading checks - Implement workflow validation:
check_step_work jobs for steps requiring grading.github/instructions/step-workflows.instructions.mdUpdate environment variables - Set proper step file paths:
STEP_N_FILE variables in workflowsValidate structure - Ensure consistency:
finish-exercise.yml instead of enabling next stepfinish-exercise.ymlReview content flow - Verify logical progression:
Create or refine a GitHub Skills exercise outline. Use when asked to plan a new exercise, draft an outline, turn notes into an outline, or improve an existing outline before implementation.
Publish a GitHub Skills exercise repository safely to GitHub. Use when asked to create the remote repository, prepare repository settings, and publish an exercise after review is complete.
Review a GitHub Skills exercise for format, clarity, learner flow, and workflow correctness. Use when asked to review an exercise draft, inspect step content, or find issues before publishing.