Understand Business Logic — Code Rules in Business Terms
The discount rules live in code; the questions come from sales. This prompt explains implemented business logic to a technical manager — behavior and risk, minimal code.
Overview
Some explanations are not for the people who will edit the code — they are for the people who own the rules the code implements. This prompt pairs the function-walkthrough mode with the technical-manager audience: technically literate, not working in this code. The contract explains in terms of behavior, responsibilities, risks, and effort — not implementation mechanics — keeps code references minimal, and translates any cited code into a business statement. A quick-summary depth keeps it to what a decision-maker absorbs in two minutes: what the rules actually are, where they surprise, and which tradeoffs matter.
Workflow
-
Declare the real audience
Technically literate, not in this code — the assumptions change everything downstream.
-
Translate code to statements
Every cited condition becomes a business sentence: who qualifies, when, and why not.
-
Keep it two minutes deep
The rules, the surprises, and the risks — the quick-summary depth cuts everything else.
Why This Works
- Business-statement translation answers the question stakeholders actually asked
- Minimal-code discipline keeps the explanation readable outside engineering
- Surprises-first ordering surfaces exactly the rule mismatches that caused the question
Best for
- Logic that gets questioned by non-engineers
- Pricing, eligibility, and policy code
- Bridging the engineering-business explanation gap
Not for
- Changing the rules once understood — that's the Refactor Prompt Builder (or a feature change)
- Extracting the rule values into structured data — that's the Extraction Prompt Generator
Use cases
- Answering "why doesn't this customer get the discount?" from the code
- Explaining implemented rules to product and sales stakeholders
- Checking whether the code's rules match the business's belief about them