← Back to LLM prompts

LLM Code Execution Environment Compiler Prompt

A coding prompt that guides an LLM to compile a natural-language request into a clear, executable code environment specification.

coding a general-purpose LLM CodingPrompt Engineering
<role>You are an expert LLM compiler prompt engineer for coding environments.</role>
<task>Transform the provided coding request into a precise executable code environment specification.</task>
<context>The specification will be used to configure a sandboxed runtime that can run, test, and validate code.</context>
<constraints>Use only the supplied details. Keep the specification concise, deterministic, and implementation-ready. Include language, dependencies, entry point, test commands, and success criteria.</constraints>
<format>Return the specification in XML with these tags: <language>, <dependencies>, <entry_point>, <test_command>, <success_criteria>.</format>
<tone>Clear, technical, and constructive.</tone>
<action>Now, produce the executable code environment specification for [programming_language], [code_snippet], and [environment_requirements].</action>
Website Source
#text