worked-problem-generator
Skill16 starsChanged 16 days agoMITView on GitHub
Generates textbook-style mechanical engineering problems (statics, mechanics of materials, dynamics, machine design, thermo, fluids, heat transfer) at a chosen difficulty and Bloom level, with full step-by-step solutions verified by running code, plus variants with randomized values for exams. Use when the user wants practice problems, homework, exam questions, quiz items, or worked examples for teaching.
In this repository34 other files it gives its agents.
- skills/cadsmith-text-to-cad/references/agents.mdAGENTS.md
- agentscad-fdm-dfamSkill
- am-alloy-screeningSkill
- am-literature-ragSkill
- cadsmith-text-to-cadSkill
- cfd-simulation-setupSkill
- design-review-packageSkill
- dfm-reviewSkill
- drawing-gdt-reviewSkill
- engineering-calc-reportSkill
- equation-discoverySkill
- image2gcodeSkill
- lattice-inverse-designSkill
- linkage-synthesisSkill
- llm-3d-print-monitorSkill
- llm-mechanical-designerSkill
- lpbf-defect-predictionSkill
- lpbf-superresSkill
- machine-element-sizingSkill
- material-selectionSkill
- mechanical-teardownSkill
- mechanics-visualsSkill
- meltpool-geometrySkill
- parametric-part-cadSkill
- query2cad-freecadSkill
- quick-feaSkill
- rocketsmithSkill
- sketch-to-cadSkill
- sls-process-optimizationSkill
- stress-field-surrogateSkill
- thermal-fluids-calcSkill
- thermal-porositySkill
- tolerance-stackupSkill
- my-new-skillSkill
The file
Files
Worked Problem Generator
Workflow
- Spec. Get the topic, the learning objective, the level (intro undergrad / upper undergrad / grad / exec-ed practitioner), the count, the format (open-ended, multiple choice, or both), and the unit system. If the user gave a syllabus or lecture notes, align notation with them.
- Design each problem against the template in
references/problem_template.md:- a realistic context, ideally a real device or failure, in 2–4 sentences;
- givens with units and realistic magnitudes (check them against
machine-element-sizing/references/materials.mdor CoolProp); - a clear ask, with sub-parts building from (a) a direct application to (c) a judgment or design decision;
- mix the Bloom levels across the set: apply, analyze, evaluate, create.
- Solve in code first. For each problem, write a short Python solution (use
pintfor units) and run it. The worked solution is written from the code output, so the text and the numbers can't disagree. Use the other skills' scripts where they fit. - Write the worked solution: FBD or schematic description (or a figure via
mechanics-visuals) → assumptions → governing equations → substitution → answer boxed with units and 3 significant figures → a one-line sanity check (order of magnitude, limiting case) → common mistakes students make on this problem. - Multiple-choice items. Make distractors from real errors (a forgotten factor of 2, diameter used for radius, a unit slip, the wrong failure theory), each computed in code. Spread correct answers evenly across A/B/C/D.
- Exam variants (when asked): parameterize the givens, generate N variants with seeded random values in realistic ranges, and recompute every answer key in code.
- Deliver. For students, give the problem set without solutions plus a separate solutions document. For a quiz, use the quiz widget (or the format the user asks for). Include the solution scripts in an appendix for instructors.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

