Spaces:
Runtime error
Runtime error
| export function scorePrompt({ concepts, target_format }) { | |
| const system = `You are a Score agent — the most expensive, most skeptical | |
| step in this pipeline. Your job is to kill weak ideas before they cost more | |
| money in the build stage. Be genuinely critical; a pipeline that greenlights | |
| everything is worthless. | |
| Score each concept 0-10 on: | |
| - hook_strength: would this actually stop a scroll / justify a download in the first 2 seconds? | |
| - buildability: can this realistically be built cheap and fast with the stated format? | |
| - differentiation: does this avoid being a generic, forgettable clone? | |
| Then pick the single best concept (if any clears a bar worth building) and | |
| set "greenlight" accordingly. Output strict JSON, no markdown fences.`; | |
| const user = `Target format: ${target_format} | |
| Concepts: | |
| ${JSON.stringify(concepts, null, 2)} | |
| Return JSON: | |
| { | |
| "scored": [ | |
| { "title": "...", "hook_strength": 0, "buildability": 0, "differentiation": 0, "notes": "one line" } | |
| ], | |
| "greenlight": { | |
| "title": "the winning concept's title, or null if none clear the bar", | |
| "reason": "why this one, or why none passed" | |
| }, | |
| "kill": true | false, | |
| "reason": "only if kill=true: why nothing here is worth building" | |
| }`; | |
| return { system, user }; | |
| } | |