StackPatch is liveSee product

All posts
Framework· 6 min·April 10, 2026

The RCC Framework: Why Your AI Prompts Fail

Role, Context, Constraints — the three-part mental model that turns AI from a toy into a tool.

Most people use AI like a search engine. They type a question, get an answer, and wonder why it's generic. The problem isn't the model — it's the input. RCC fixes this.

R — Role

Give the AI an identity before giving it a task. "You are a senior quantitative analyst at a hedge fund" produces fundamentally different output than "You are a helpful assistant." The role constrains the model's probability space — it's not roleplaying, it's precision targeting.

The role should match the expertise level of the output you want. If you need a legal review, set the role to a corporate attorney. If you need Python code, set it to a senior backend engineer. The model has the knowledge in both cases — the role tells it which knowledge to surface.

C — Context

Context is the information the AI needs to do the job. This is where most people fail — they provide either too little (the AI hallucinates to fill gaps) or too much (the AI gets confused by irrelevant details).

The rule: provide exactly what a competent human in that role would need to see. If you're asking for a code review, provide the code, the language version, the framework, and the specific concern. Don't provide the entire codebase. Don't provide nothing and expect magic.

C — Constraints

Constraints are the guardrails. Format, length, tone, structure, what to include, what to exclude. Without constraints, the AI defaults to verbose, generic, middle-of-the-road output.

Examples of powerful constraints:

  • "Respond in bullet points, max 5 items"
  • "Use only data from 2024-2026"
  • "Write for a technical audience — no analogies"
  • "If you're not confident in the answer, say so explicitly"
  • "Output as JSON with keys: analysis, confidence, recommendation"

RCC in Action

Here's the difference. Without RCC:

"What should I invest in?"

You'll get a generic disclaimer about diversification and risk tolerance.

With RCC:

Role: You are a quantitative crypto analyst specializing in momentum strategies.
Context: BTC is at $98,400 after a 12% rally in 7 days. RSI(14) is at 74. Volume is 2.3x the 20-day average. ETH/BTC ratio is declining. Fed meeting in 3 days.
Constraints: Give me a 1-paragraph thesis, a specific entry/exit plan with prices, and the single biggest risk to this trade. No disclaimers.

The output is night and day. Same model, same API call, same cost. The only variable is the quality of the input.

Building on RCC

RCC is Module 2 of the MindSparkStack course, and every subsequent module uses it as the foundation. The trading strategies in Modules 4-5 are built by chaining RCC prompts — one for market analysis, one for signal generation, one for risk assessment. The sentiment analysis in Module 8 uses RCC to structure how the AI interprets social media data.

It's not a trick. It's a framework. And it works every time.

Get daily insights like this

The Accuoa Daily — one prompt, one workflow, every day. Free.

Subscribe free