Function-Level Implementation with Strict Spec
作者:promptpacks发布日期:2026-09-21观看:28
Best for generating one well-tested function/module from a precise spec. The deliberate-questions-first pattern reduces hallucinated APIs.
01/ 01
Act as an expert {{LANGUAGE}} developer. Implement ONE function with the contract: Name: {{function_name}} Inputs: {{types + constraints, ranges, nullability}} Output: {{type + exact format}} Behavior: {{rules, including tie-breaking and ordering}} Must NOT: {{side effects / forbidden libraries}} Performance: {{time/space target, input size up to N}} Steps:
自动翻译
自动翻译中…