💻 Data & Code

Code generation, review, data analysis, visualization, and debugging.

← Back to Domain Guides

Prompt Patterns

Structured Output (JSON)
Return a JSON object matching this schema:\n{\n "function": {"name": "string", "params": ["string"], "doc": "string"},\n "tests": [{"name":"string","given":"string","expect":"string"}]\n}\nConstraints: Valid JSON only.
Review Checklist
Review the following code for correctness, complexity, edge cases, and security.\nReturn a table: Issue | Evidence | Suggestion | Severity.

Data Tasks

Analyze the CSV (columns: {cols}).\nTasks: summary stats, outliers, segment insights.\nReturn: Markdown with tables and 2 plots described.