Skip to content
Back to skills

Scaffold Exercises

ASecurity

Use when creating exercise directory structures with problems, solutions, and explainers

  • 2 stars
  • 0 votes
  • 0 copies
  • 7 views
  • Added September 10, 2026
ai-agents

Security analysis

A100/100

Scanned September 10, 2026

npx -y skills add LoopyLuci/Skills --skill scaffold-exercises --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Scaffold Exercises?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Scaffold Exercises
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/loopyluci-scaffold-exercises/badge)](https://www.skillsdirectory.com/skills/loopyluci-scaffold-exercises)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: scaffold-exercises
description: Use when creating exercise directory structures with problems, solutions, and explainers
tags: [scaffolding, exercises, education, structure, linting]
related_skills: [teach, setup-matt-pocock-skills, writing-great-skills]
---

# Scaffold Exercises

Create exercise directory structures that pass linting validation, then commit.

## Directory naming
- Sections: `XX-section-name/` inside exercises/
- Exercises: `XX.YY-exercise-name/` inside a section
- Names are dash-case (lowercase, hyphens)

## Exercise variants
Each exercise needs at least one subfolder:
- `problem/` - student workspace with TODOs
- `solution/` - reference implementation
- `explainer/` - conceptual material, no TODOs

## Required files
Each variant folder needs a non-empty readme.md with real content. If the subfolder has code, it also needs a main.ts (>1 line).

## Workflow
1. Parse the plan - extract section names, exercise names, and variant types
2. Create directories with mkdir -p
3. Create stub readmes with title and description
4. Run lint to validate
5. Fix any errors until lint passes

## Common Pitfalls

- **Empty readme files**: Each variant folder's readme.md must have real content. An empty or near-empty readme fails linting.
- **Wrong directory naming convention**: Sections are XX-section-name, exercises are XX.YY-exercise-name. Wrong naming fails the linter.
- **Not running lint after creation**: Always run the linter after scaffolding. Fix errors before committing.

## Verification Checklist

- [ ] Section directories follow XX-section-name convention
- [ ] Exercise directories follow XX.YY-exercise-name convention
- [ ] Each variant folder has non-empty readme.md
- [ ] Code files have main.ts if needed
- [ ] Lint passes

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.