Idea · Aug 18, 2026
Competitive Prompt Engineering Lab
A multi-week assignment where students iteratively engineer prompts against a fixed benchmark test suite, studying which strategies improve AI code generation quality and why.
What it would do
Students are given a fixed set of coding benchmark tasks with automated test cases (e.g., implement a graph algorithm, parse a config format, write a data pipeline). Their goal is to engineer prompts that make Claude or Gemini produce code passing the maximum number of tests, iterating over three rounds. A Flask + React leaderboard tracks each team's best score, prompt length, and number of iterations. Students document their prompt evolution in a lab notebook and write a final reflection analyzing what strategies worked: few-shot examples, chain-of-thought, constraint specification, persona framing, etc. The lab teaches prompt engineering as an empirical discipline, not a collection of tips, while giving students hands-on experience evaluating LLM output quality systematically.
Key features
- Fixed benchmark suite of 10-15 coding tasks with automated test cases
- Prompt submission portal with immediate test-case feedback and score
- Live leaderboard showing team rankings, best score, and prompt iteration count
- Lab notebook template for documenting prompt evolution and hypotheses
- Instructor dashboard comparing class-wide prompt strategies and failure patterns