When Code When LLM

Decision framework for choosing between deterministic code (regex, keyword match, AST parse, schema validation) and LLM-based processing (classification, semantic similarity, judge) for a single task. Use when you catch yourself writing a regex for a task that keeps producing false positives or negatives, or when you are about to call an LLM for something a three-line code check would handle. Covers the structural-vs-semantic axis, the false-positive test, worked examples of both directions, and the enumerate/decide split for tasks where detection is structural but resolution needs judgment.

shimo4228 f587d6b 11.5 KB Updated

File contents

shimo4228/when-code-when-llm/tree/main/skills/when-code-when-llm commit f587d6b19e

Frequently asked questions

npx skillmds@latest add shimo4228/when-code-when-llm