promptdojo_

Prompting like an art director — one anatomy, four dialects — step 7 of 8

Make the checker permanent studio equipment. Write lint_prompt(prompt) that returns a dict:

{"verdict": "ship" | "rework", "mood": list[str], "missing": list[str]}

Rules, in order:

  • Lowercase the prompt once.
  • mood = every word from MOOD_WORDS that appears as a substring, in MOOD_WORDS order.
  • missing = every section from SECTIONS where no token matches as a substring, in the table's order.
  • verdict is "ship" only when both lists are empty, else "rework".

Three prompts run through it. Expected output:

studio: {'verdict': 'ship', 'mood': [], 'missing': []}
lazy:   {'verdict': 'rework', 'mood': ['clean', 'modern', 'pop'], 'missing': ['medium', 'style', 'palette', 'negatives']}
half:   {'verdict': 'rework', 'mood': [], 'missing': ['style', 'negatives']}

full-screen editor opens — close anytime to keep reading.