Prompt pattern · Build
Spec to code
The template
Build {what it is} in {language or tool}. It should: {feature 1}; {feature 2}; {feature 3}. It must not: {limits}. Input: {what goes in}. Output: {what comes out}. Explain how to run it, and keep it to a single file if you can.
Fill in the {blanks} with your own words, then send it.
Before and after
Write me a Python script for my photos.
Build a Python script that renames the photos in a folder by the date they were taken. It should: read the date from each photo's details; rename files in a 2026-05-01_001.jpg style; skip anything that isn't a photo. It must not: delete or overwrite any file. Explain how to run it, and keep it to a single file.
Works best for
Scripts, small apps, spreadsheet formulas and automations.