scaffold-exercises

Creates exercise directory structures with sections, variants, and readme stubs that pass linting.

1|Updated Jun 2, 2026
One-click install
npx skills add https://github.com/SevWren/Daily-Motivation-Brain-Helper --skill scaffold-exercises-sevwren
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: scaffold-exercises
Source: https://github.com/SevWren/Daily-Motivation-Brain-Helper/tree/main/CLAUDE/skills/misc/scaffold-exercises
Command: npx skills add https://github.com/SevWren/Daily-Motivation-Brain-Helper --skill scaffold-exercises-sevwren

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Setting up course exercise directories by hand is error-prone: naming conventions, required subfolders, and readme files must all satisfy a strict linter, and mistakes only surface after running validation. This Skill scaffolds the entire structure correctly the first time. ## Core Features & Use Cases - Directory Scaffolding: Creates numbered section folders (XX-section-name) and exercise folders (XX.YY-exercise-name) with dash-case naming inside exercises/. - Variant Stubs: Generates problem/, solution/, and explainer/ subfolders, each with a non-empty readme.md containing a title and description. - Lint Validation & Fixes: Runs pnpm ai-hero-cli internal lint, interprets failures (empty readmes, .gitkeep files, broken links, missing main.ts), and iterates until clean. - Safe Renumbering: Uses git mv to move or renumber exercises while preserving git history, then re-validates. - Use Case: Given a course plan listing sections and exercises, scaffold the full directory tree with stub readmes, pass lint, and commit the result in one workflow. ## Quick Start Scaffold the exercises from my course plan into the exercises directory, create stub readmes for each variant, and run the linter until it passes.

Frequently Asked Questions about scaffold-exercises

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

FAQPage Schema
How do I scaffold course exercise directories from a plan?▼

Parse the plan to extract section names, exercise names, and variant types, then create directories with mkdir -p using the XX-section-name and XX.YY-exercise-name conventions. Add a readme.md with a title to each variant subfolder, then run the linter to validate.

What files are required for an exercise to pass linting?▼

Each exercise needs at least one of problem/, solution/, or explainer/ subfolders, and the primary subfolder must contain a non-empty readme.md with no broken links. Subfolders with code also need a main.ts file longer than one line.

Why does the exercise linter reject my directory structure?▼

Common failures include empty readme files, leftover .gitkeep or speaker-notes.md files, broken links in readmes, and pnpm run exercise commands in readme content. Remove these and ensure every variant subfolder has a titled readme.

How do I rename or renumber exercises without losing git history?▼

Use git mv instead of mv to rename exercise directories, which preserves version history. Update the numeric prefix to maintain ordering, then re-run pnpm ai-hero-cli internal lint to confirm the structure still validates.

When should I use explainer versus problem and solution folders?▼

Use explainer/ for conceptual material with no TODOs, problem/ for student workspaces containing TODOs, and solution/ for reference implementations. When stubbing without a detailed plan, default to explainer/ since a readme-only exercise is valid.