← knowledge.oriz.in

ICC prompt formula — Instructions + Context + Constraints

rule promptingagentstructurequality

ICC prompt formula

The rule

Every non-trivial prompt (to Claude directly, to subagent, or in skill/agent instructions) has three parts:

Order flexible. Completeness matters.

Bad → Good example

Recommend 5 ways to implement AI in my marketing agency.

Generic answer. Model has no anchor.

[I] Recommend 5 ways to implement AI in my agency.
[C] I run a 3-person marketing agency, ~10 clients, mostly SaaS.
    Biggest time drain: client reporting + slack-check-in overhead.
    Team is non-technical.
[C] Low-cost, no technical expertise required, <2 weeks to setup each.
    Format: numbered list, one-sentence justification per item.

Why ICC works

Model output quality is bounded by prompt information density. Missing:

Constraints describe BEHAVIOR, not code

The most common ICC failure: writing constraints that prescribe HOW the code should look instead of HOW the feature should BEHAVE.

Wrong (prescribes code):

Right (prescribes behavior):

Why: AI writes better code than us. What we know better is what the FEATURE should DO in the presence of other features + edge cases + protected state. Constraints should encode:

Think like a product engineer, not a code reviewer.

When to relax

Combines with context interview

If you START with ICC but realize context is thin, invoke context-interview: "ask me any further questions you need before answering." Model fills the C gap for you.

Apply to subagent prompts

The Agent tool prompt you write MUST have ICC:

Anti-patterns

Cross-refs