home/productivity/task-prompt-2

Task Prompt

GPTClaudeDeepSeek··1,361 copies·updated 2026-07-14
task-prompt-2.prompt
Implement and export a function `requireField(item, field)` in a self-contained ES
module (solution.mjs): return true if `item[field]` is present and truthy; otherwise
throw an error indicating the field is missing.

when to use it

Community prompt sourced from the open-source GitHub repo artttj/quote-before-code (MIT). A "Task Prompt" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

productivitycommunitydeveloper

source

artttj/quote-before-code · MIT