Skip to content
OpenSmartRoute
Skillv1.0.0

scaffold-exercises

Create educational exercise directories compliant with pnpm ai-hero-cli internal lint

by akillness(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from akillness/jeo-skills (.agent-skills/scaffold-exercises/SKILL.md). Install upstream with npx skills add akillness/jeo-skills --skill scaffold-exercises. Copyright stays with the author.

Scaffold Exercises

Create exercise directory structures that pass linting validation for educational content.

When to use this skill

  • Creating course sections and exercises for educational content
  • Scaffolding structured learning materials with problem/solution variants
  • Building content that must pass pnpm ai-hero-cli internal lint

When not to use this skill

  • General project scaffolding → use file-organization
  • Documentation writing → use technical-writing

Directory structure

exercises/
├── 01-introduction/
│   ├── 01.01-getting-started/
│   │   ├── problem/
│   │   │   ├── readme.md     (required, non-empty, has title)
│   │   │   └── main.ts       (optional, >1 line if present)
│   │   └── solution/
│   │       ├── readme.md
│   │       └── main.ts
│   └── 01.02-basic-concepts/
│       └── explainer/
│           └── readme.md

Naming conventions

  • Sections: XX-section-name/ (two-digit number, lowercase, hyphens)
  • Exercises: XX.YY-exercise-name/ (section.exercise number, lowercase, hyphens)
  • Variants: problem/, solution/, explainer/

Required files per variant

Every variant folder needs:

  • readme.md — non-empty, must have at least a title (# Title)
  • main.ts — optional, but must be >1 line if present

Workflow

1. Parse requirements

Identify section names, exercise names, and which variants are needed (problem, solution, explainer, or combinations).

2. Create directory hierarchy

mkdir -p exercises/01-section-name/01.01-exercise-name/problem
mkdir -p exercises/01-section-name/01.01-exercise-name/solution

3. Add stub readme files

# Minimum valid readme
echo "# Exercise: Getting Started\n\nComplete the task described below." > exercises/01-section-name/01.01-exercise-name/problem/readme.md

4. Validate

pnpm ai-hero-cli internal lint

5. Fix iteratively

The linter checks:

  • Exercises have appropriate subfolders
  • Readmes are non-empty with titles
  • No broken links
  • No prohibited files (.gitkeep, speaker-notes.md)

Moving exercises

Use git mv (not mv) to rename directories — preserves git history:

git mv exercises/01-old-name exercises/01-new-name

Instructions

  1. Identify the task trigger and expected output.
  2. Follow the workflow steps in this skill from top to bottom.
  3. Validate outputs before moving to the next step.
  4. Capture blockers and fallback path if any step fails.

Examples

  • Example: Apply this skill to a small scope first, then scale to full scope after validation passes.

Best practices

  • Keep outputs deterministic and auditable.
  • Prefer small reversible changes over broad risky edits.
  • Record assumptions explicitly.

References

  • Project standards: .agent-skills/skill-standardization/SKILL.md
  • Validator script: .agent-skills/skill-standardization/scripts/validate_skill.sh

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/akillness-jeo-skills-scaffold-exercises/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

akillness-jeo-skills-scaffold-exercises.ocm.jsonjson
{
  "ocm": "1",
  "id": "akillness-jeo-skills-scaffold-exercises",
  "kind": "skill",
  "name": "scaffold-exercises",
  "description": "Create educational exercise directories compliant with pnpm ai-hero-cli internal lint",
  "publisher": "akillness",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "general"
    ],
    "tags": [
      "skill-md",
      "education",
      "exercises",
      "scaffolding",
      "course-content",
      "linting",
      "structure",
      "skills-sh"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Create educational exercise directories compliant with pnpm ai-hero-cli internal lint"
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "skills.sh",
      "repository": "https://github.com/akillness/jeo-skills",
      "path": ".agent-skills/scaffold-exercises/SKILL.md",
      "ref": "HEAD",
      "url": "https://github.com/akillness/jeo-skills/blob/HEAD/.agent-skills/scaffold-exercises/SKILL.md",
      "key": "akillness/jeo-skills/.agent-skills/scaffold-exercises/SKILL.md"
    },
    "compatibility": "Designed for ai-hero-cli course content structure. Validates with `pnpm ai-hero-cli internal lint`. Primarily for educational content creators building structured learning materials.\n",
    "allowed_tools": [
      "Read",
      "Grep",
      "Glob",
      "Bash",
      "Write",
      "Edit"
    ]
  },
  "instructions": "# Scaffold Exercises\n\nCreate exercise directory structures that pass linting validation for educational content.\n\n## When to use this skill\n\n- Creating course sections and exercises for educational content\n- Scaffolding structured learning materials with problem/solution variants\n- Building content that must pass `pnpm ai-hero-cli internal lint`\n\n## When not to use this skill\n\n- General project scaffolding → use `file-organization`\n- Documentation writing → use `technical-writing`\n\n## Directory structure\n\n```\nexercises/\n├── 01-introduction/\n│   ├── 01.01-getting-started/\n│   │   ├── problem/\n│",
  "cost": {
    "context_tokens": 727
  }
}

Fetch it by URL: GET /api/v1/registry/akillness-jeo-skills-scaffold-exercises/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.