๐งชTDD Challengeยทadvancedยทโฑ๏ธ 35โ50mยทโญ 250 XP
M-025Self-Critique Content Improver
Description
Nebula Corp's content team needs a system that doesn't just generate blog posts โ it critiques and improves them iteratively. The current workflow generates content once and ships it, but quality is inconsistent. Build a two-stage prompt system: Stage 1 generates initial content, Stage 2 critiques it (identifying weaknesses, missing elements, and improvements), and Stage 3 produces an improved version addressing the critique. The critique must evaluate clarity, completeness, engagement, and structure.
Test Cases (10)
Generate prompt includes topic
The generate prompt must include the topic
Input:"AI ethics", "blog-post"
Expected:CONTAINS:AI ethics
Generate prompt specifies content type
The generate prompt must specify the content type
Input:"API documentation", "documentation"
Expected:CONTAINS:documentation
Critique prompt evaluates clarity
The critique prompt must evaluate clarity
Input:"Product launch", "email"
Expected:CONTAINS_ANY:clarity,clear,understand
Critique prompt evaluates completeness
The critique prompt must evaluate completeness
Input:"User guide", "documentation"
Expected:CONTAINS_ANY:completeness,complete,missing,cover
Critique prompt evaluates engagement
The critique prompt must evaluate engagement
Input:"Marketing tips", "blog-post"
Expected:CONTAINS_ANY:engagement,engaging,interesting,attention
Critique prompt evaluates structure
The critique prompt must evaluate structure
Input:"Tutorial", "documentation"
Expected:CONTAINS_ANY:structure,organized,flow,logical
Critique prompt requests specific improvements
The critique prompt should ask for specific, actionable improvements
Input:"Newsletter", "email"
Expected:CONTAINS_ANY:specific,improvements,fix,issues
Improve prompt references original content
The improve prompt must reference the original content
Input:"Feature announcement", "blog-post"
Expected:CONTAINS_ANY:original,Original content,previous
Improve prompt references critique
The improve prompt must reference the critique
Input:"How-to guide", "documentation"
Expected:CONTAINS_ANY:critique,Critique,feedback,identified
Improve prompt instructs addressing weaknesses
The improve prompt must instruct addressing identified weaknesses
Input:"Welcome email", "email"
Expected:CONTAINS_ANY:address,fix,improve,weakness
Related Lessons
Click Run / Check to validate your solution