Agent skill

Scaffold Exercises

by pedrohcgs in pedrohcgs/claude-code-my-workflow

Scaffold a graded problem set with sections, problems, worked solutions, and short "why this matters" explainers across analytical, empirical, and coding types.

MITAuto-check: notesResearch & Science

Install Scaffold Exercises

skills CLI
$ npx skills add pedrohcgs/claude-code-my-workflow --skill scaffold-exercises -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install pedrohcgs/claude-code-my-workflow scaffold-exercises --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/pedrohcgs/claude-code-my-workflow.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/scaffold-exercises .claude/skills/scaffold-exercises && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
scaffold-exercises
GitHub stars
1.7k
Token cost
~2k tokens
SKILL.md length
830 words
Files
1
Skills in repo
59
Repo updated
First seen
Licence
MIT

At a glance

Scaffold a graded problem set with sections, problems, worked solutions, and short "why this matters" explainers across analytical, empirical, and coding types.

  • Works in 4 steps: Set topic, difficulty, counts, types… → Generate problems → Generate worked solutions + explainers → …
  • User says make a problem set on X
  • SKILL.md covers When to use, Problem types, Workflow and Output / Report format, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Scaffold Exercises is an agent skill from pedrohcgs/claude-code-my-workflow. Scaffold a graded problem set with sections, problems, worked solutions, and short "why this matters" explainers across analytical, empirical, and coding types. Use when user says "make a problem set on X", "scaffold exercises for this lecture", "create practice problems", "generate homework with a solution key", "build a graded assignment on topic Y". Emits a clean student set plus a separate solution key — NOT for grading submissions or auto-checking student answers.

Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Research & Science, covering Project scaffolding. The repository describes itself as: A ready-to-fork Claude Code template for academics using LaTeX/Beamer + R. Multi-agent review, quality gates, adversarial QA, and replication protocols. The licence is MIT.

When your agent uses it

  • User says make a problem set on X
  • Scaffold exercises for this lecture
  • Create practice problems
  • Generate homework with a solution key

Example prompts

  • “why this matters”
  • “make a problem set on X”
  • “scaffold exercises for this lecture”
  • “/scaffold-exercises”

Requirements

  • Pre-approved tools (allowed-tools): Read, Grep, Glob, Write, Bash

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Set topic, difficulty, counts, types (Pre-Flight)
  2. Generate problems
  3. Generate worked solutions + explainers
  4. Write student set + solution key

What it can do on your machine

Read from SKILL.md and the folder at commit ae72617. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Grep
    • Glob
    • Write
    • Bash

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Scaffold Exercises loads about 2k tokens when it runs. Until then it costs about 123 tokens; SKILL.md has 830 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~123
When it runs · the whole SKILL.md, loaded when a task matches
~2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Grep, Glob, Write, Bash

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from pedrohcgs/claude-code-my-workflow at commit ae72617, republished under its MIT licence (© pedrohcgs). 830 words, ~2,009 tokens.

Download SKILL.mdSave it as .claude/skills/scaffold-exercises/SKILL.md (or your agent's skills folder).
name
scaffold-exercises
description
Scaffold a graded problem set with sections, problems, worked solutions, and short "why this matters" explainers across analytical, empirical, and coding types. Use when user says "make a problem set on X", "scaffold exercises for this lecture", "create practice problems", "generate homework with a solution key", "build a graded assignment on topic Y". Emits a clean student set plus a separate solution key — NOT for grading submissions or auto-checking student answers.
allowed-tools
Read, Grep, Glob, Write, Bash
argument-hint
[topic] [--difficulty intro|core|advanced] [--count N] [--types analytical,empirical,coding] [--dataset path] [--no-solutions]
effort
medium

/scaffold-exercises — Problem Set Scaffolder

Generate a graded problem set as two files: a clean student set (problems only) and a solution key (worked solutions + a one-line explainer per problem). Pattern imported from mattpocock/skills, adapted for economics teaching — the primary lens is graded coursework that mixes derivation, estimation, and code.

Input: $ARGUMENTS — a topic (e.g., "instrumental variables", "consumer theory", "quantile regression") and optional flags. See Flags.


When to use

  • You have a lecture or reading and want a matching assignment with an answer key.
  • You want a mix of problem types (derive, estimate, code) at a controlled difficulty, with solutions emitted separately so the student file stays clean.

Do not use this to grade submissions, auto-check answers, or build a timed exam — it scaffolds practice/graded material, not assessment infrastructure.


Problem types

TypeWhat the student doesSolution artifact
analyticalDerive / prove / characterize (theory: optimization, identification, comparative statics)Step-by-step derivation with the key lemma named
empiricalEstimate + interpret on a provided or simulated datasetExpected estimate, sign/magnitude reasoning, common-mistake note
codingImplement an estimator or simulation in R or StataRunnable reference snippet + expected output shape

If no dataset is supplied for an empirical problem, generate a small simulated one with a fixed seed (YYYYMMDD) so the answer key is deterministic and reproducible.


Workflow

Phase 0: Set topic, difficulty, counts, types (Pre-Flight)

Read any source material the user points at (lecture .tex/.qmd, a paper, a dataset header) and produce a Pre-Flight Report before generating problems:

markdown
## Pre-Flight Report — Problem Set

**Topic:** [topic]
**Source(s) read:** [lecture/paper/dataset — one-line takeaway each]
**Difficulty:** intro | core | advanced
**Counts by type:** analytical=N, empirical=N, coding=N  (total = `--count`)
**Dataset:** [provided path | simulated with seed YYYYMMDD | none]
**Learning objectives:** [2-4 bullets the set should exercise]

Resolve every flag here (interactive choices are gathered before generation, not mid-run). If the topic is too vague to write objectives, ask one clarifying question and stop. Otherwise proceed.

Phase 1: Generate problems

For each problem, write a number, a section heading, the prompt, and any data/notation it needs. Conventions:

  • Motivation before mechanics — one sentence on why the problem is worth solving, matching create-lecture's pedagogy.
  • Notation reuse — match symbols to the source lecture; never introduce a clashing symbol for an already-defined object.
  • Difficulty calibration — intro checks one concept; core chains 2-3 steps; advanced requires a non-obvious insight or identification argument.
  • Self-contained — each problem states its own assumptions; no "as in lecture 4" dangling references.
Phase 2: Generate worked solutions + explainers

For every problem, write:

  1. A worked solution — full derivation, expected estimate, or runnable code (depending on type). Coding solutions must actually run; if Bash + R/Stata are available, execute the snippet and paste real output.
  2. A "why this matters" explainer — 1-2 sentences linking the answer to the broader concept (the imported pattern's signature: every problem ships with a short rationale, not just a number).
Phase 3: Write student set + solution key

Emit two files (paths configurable; default under quality_reports/teaching/, beside /respond-to-eval's teaching plans. A new top-level directory such as exercises/ fails scripts/check-repo-hygiene.py once committed, unless it is added to that script's ROOT_ALLOW_DIRS):

  • quality_reports/teaching/<topic-slug>_problems.md — the student set: sections, problems, any data, NO answers.
  • quality_reports/teaching/<topic-slug>_solutions.md — the solution key: each problem restated, its worked solution, and its explainer.

The split is load-bearing: never leak a solution into the student file. With --no-solutions, write only the student set and stop.


Show full SKILL.md (320 more words)Show less

Output / Report format

Student set:

markdown
# Problem Set: [Topic]  (Difficulty: core)

## Section 1 — Analytical
**1.** [Motivation sentence.] [Prompt.]

## Section 2 — Empirical
**2.** Using `data/<file>` (vars: ...), [estimate + interpret prompt].

## Section 3 — Coding (R)
**3.** [Implement-X prompt.]

Solution key mirrors the numbering, adding ### Solution and > Why this matters: blocks per problem. Close your chat reply with a one-line manifest: files written, problem count by type, and whether code solutions were executed or only drafted.


Exit behavior

  • Print the two output paths (absolute), the per-type counts, and the seed if a dataset was simulated.
  • If a coding solution could not be executed (no R/Stata, or it errored), flag it as DRAFTED — NOT RUN rather than implying it was verified.
  • If any empirical problem references variables not present in the supplied dataset, stop and surface the mismatch instead of inventing columns.

Flags

  • --difficulty — intro | core | advanced (default core); calibrates step depth as in Phase 1.
  • --count — total number of problems (default 6); split across types per the Pre-Flight counts.
  • --types — comma-separated subset of analytical,empirical,coding (default all three).
  • --dataset — path to a real dataset for empirical problems; omit to simulate one with a seeded DGP.
  • --no-solutions — write only the student set; skip the solution key (Phase 2/3 key file).

Cross-references


What this skill does NOT do

  • Does not grade student submissions or auto-check answers against a key.
  • Does not run a timed exam or enforce assessment policy (point weights, rubrics, proctoring).
  • Does not invent data — empirical problems use a supplied dataset or an explicitly seeded simulation, never fabricated numbers.
  • Does not leak solutions into the student file, and does not deploy/publish anything (no /deploy).
  • Does not auto-invoke other skills — it references siblings; it does not call them.

© pedrohcgs, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/scaffold-exercises of pedrohcgs/claude-code-my-workflow.

Open the folder on GitHubat commit ae72617

Compare with similar skills

Scaffold Exercises next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Scaffold Exercises compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Scaffold Exercises this skillpedrohcgs/claude-code-my-workflow1.7k—~2kAutomated safety check: NotesMIT
Complexa DesignNVIDIA-BioNeMo/bionemo-agent-toolkit479—~4.1kAutomated safety check: NotesCustom licence
Gtdscunning1975/MixtapeTools474—~2.9kAutomated safety check: NotesNone
RfdiffusionPKU-YuanGroup/OpenAI4S622—~2.2kAutomated safety check: PassMIT
Intake ProjectAperivue/medsci-skills333—~1.6kAutomated safety check: PassMIT
Draft PolisherWILLOSCAR/research-units-pipeline-skills513—~2.8kAutomated safety check: PassNone

Similar skills

  • Complexa Design

    NVIDIA-BioNeMo/bionemo-agent-toolkit

    End-to-end Proteina-Complexa design pipeline driver. An agent skill from NVIDIA-BioNeMo/bionemo-agent-toolkit.

    479 GitHub stars~4.1k tokensUpdated yesterday
    Research & ScienceAuto-check: notes
  • Gtd

    scunning1975/MixtapeTools

    Warrant-first research GTD system. An agent skill from scunning1975/MixtapeTools.

    474 GitHub stars~2.9k tokensUpdated 1 mo ago
    Research & ScienceAuto-check: notes
  • Rfdiffusion

    PKU-YuanGroup/OpenAI4S

    Generate de novo protein backbones with RFdiffusion for protein-target binders, hotspot-conditioned interfaces, motif scaffolding, partial diffusion, or symmetric assemblies.

    622 GitHub stars~2.2k tokensUpdated yesterday
    Research & ScienceAuto-check passed
  • Intake Project

    Aperivue/medsci-skills

    A skill your agent uses when starting or inheriting a radiology research project and need to know what it is.

    333 GitHub stars~1.6k tokensUpdated 5 days ago
    Research & ScienceAuto-check passed
  • Draft Polisher

    WILLOSCAR/research-units-pipeline-skills

    Audit-style editing pass for output/DRAFT.md: remove template boilerplate, improve coherence, and enforce citation anchoring.

    513 GitHub stars~2.8k tokensUpdated 5 days ago
    Research & ScienceAuto-check passed
  • New Analysis

    brycewang-stanford/Auto-Empirical-Research-Skills

    Scaffolds a method-specific analysis notebook (DiD, IV, RDD, LASSO, Panel FE) with boilerplate.

    4.6k GitHub stars~764 tokensUpdated 5 days ago
    Research & ScienceAuto-check: notes

More from pedrohcgs/claude-code-my-workflow

All 59 skills in this repo
  • Devils Advocate

    pedrohcgs/claude-code-my-workflow

    Adversarial 5-7 question challenge to a deck's pedagogical choices — ordering, prerequisites, cognitive load, motivation.

    1.7k GitHub starsUsed in 2 repos~641 tokens
    Auto-check passed
  • Vaccinate

    pedrohcgs/claude-code-my-workflow

    Qualify a check before it is allowed to clear anything — prove it can detect the failure it is meant to catch.

    1.7k GitHub stars~2.1k tokensUpdated 12 days ago
    Auto-check: notes
  • Compile Latex

    pedrohcgs/claude-code-my-workflow

    Compile a Beamer LaTeX slide deck with XeLaTeX (3 passes + bibtex).

    1.7k GitHub starsUsed in 1 repo~492 tokens
    Auto-check: notes
  • Context Status

    pedrohcgs/claude-code-my-workflow

    Show current context status and session health. An agent skill from pedrohcgs/claude-code-my-workflow.

    1.7k GitHub starsUsed in 1 repo~613 tokens
    Auto-check: notes
  • Capture Environment

    pedrohcgs/claude-code-my-workflow

    Snapshot the computational environment for a replication package — detects the analysis stack (R / Stata / Python) and emits the right lockfiles (renv.lock + sessionInfo.txt, requirements.txt /…

    1.7k GitHub stars~2.8k tokensUpdated 12 days ago
    Auto-check: notes
  • Checkpoint

    pedrohcgs/claude-code-my-workflow

    Save a structured state snapshot before stopping or handing off.

    1.7k GitHub stars~2.8k tokensUpdated 12 days ago
    Auto-check: notes

Questions about Scaffold Exercises

What does Scaffold Exercises do?

Scaffold a graded problem set with sections, problems, worked solutions, and short "why this matters" explainers across analytical, empirical, and coding types. Scaffold Exercises is an agent skill from pedrohcgs/claude-code-my-workflow. Scaffold a graded problem set with sections, problems, worked solutions, and short "why this matters" explainers across analytical, empirical, and coding types.

When should I use Scaffold Exercises?

Scaffold Exercises fits situations like: user says make a problem set on X; scaffold exercises for this lecture; create practice problems; generate homework with a solution key.

How do I install Scaffold Exercises in Claude Code?

Run `npx skills add pedrohcgs/claude-code-my-workflow --skill scaffold-exercises -a claude-code`. Or copy the skill folder (.claude/skills/scaffold-exercises in pedrohcgs/claude-code-my-workflow) into .claude/skills/scaffold-exercises in your project. Claude Code loads it when a task matches its description.

How do I install Scaffold Exercises in Codex?

Run `npx skills add pedrohcgs/claude-code-my-workflow --skill scaffold-exercises -a codex`. Or copy the skill folder (.claude/skills/scaffold-exercises in pedrohcgs/claude-code-my-workflow) into .agents/skills/scaffold-exercises in your project. Codex loads it when a task matches its description.

Can I use Scaffold Exercises in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add pedrohcgs/claude-code-my-workflow --skill scaffold-exercises -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/scaffold-exercises, .gemini/skills/scaffold-exercises, .github/skills/scaffold-exercises and .opencode/skills/scaffold-exercises in your project.

What does Scaffold Exercises need to run?

SKILL.md names no scripts, command-line tools or credentials: Scaffold Exercises is instructions for the agent only. Its frontmatter pre-approves these tools: Read, Grep, Glob, Write, Bash.

Does Scaffold Exercises access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Scaffold Exercises safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Scaffold Exercises use?

Scaffold Exercises is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Scaffold Exercises use?

About 2k tokens (SKILL.md is roughly 8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Scaffold Exercises?

Skills that share tags, products or a category with Scaffold Exercises: Complexa Design (NVIDIA-BioNeMo/bionemo-agent-toolkit, 479 stars), Gtd (scunning1975/MixtapeTools, 474 stars), Rfdiffusion (PKU-YuanGroup/OpenAI4S, 622 stars) and Intake Project (Aperivue/medsci-skills, 333 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Scaffold Exercises?

pedrohcgs (a GitHub user) maintains it in pedrohcgs/claude-code-my-workflow, which has 1,655 GitHub stars. The repository holds 59 skills in this directory. The repository was last updated on September 27, 2026.

Source: pedrohcgs/claude-code-my-workflow on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.