Context Architecture

System Prompt vs. Skills vs. Context Attachments

Most poor AI outputs come from putting instructions in the wrong layer. Cramming every SOP and company PDF into a giant system prompt causes token bloat and instruction drift. Split your context into four clean layers instead.

Layer Equivalent Names When It Loads Put Here Keep Out
1. System Prompt Custom Instructions, CLAUDE.md, AGENTS.md Every single turn (always active) Identity, permanent voice/style rules, safety & code guardrails, stack defaults Long SOPs, rare playbooks, giant reference tables
2. Skills (SKILL.md) Claude Skills, Agent Skills, Playbooks Dynamically on demand (~100 token YAML trigger) Repeatable workflows ("how to do X"): SEO audits, brand reviews, report templates Universal rules needed in 100% of chats or static company facts
3. Files & Attachments Claude Projects, ChatGPT Files, Gemini Docs, RAG, MCP Workspace-scoped or live-fetched Background facts ("what you need to know"): PRDs, transcripts, CSVs, brand books, live DBs Core behavioral rules buried on page 40 of a PDF
4. User Prompt Chat turn / message Single turn (ephemeral) Immediate goal, this run's URL/data, turn-level constraints, follow-up critiques Re-pasting the same 40-line checklist every chat

The Plain-English Mental Model

System Prompt = job description & house rules. Files / Projects = the filing cabinet for this project. MCP = the kitchen & live appliances (browse MCP tools on FastMCP). Skill (SKILL.md) = the recipe card pulled off the shelf only when cooking that dish. User Prompt = tonight's order.

Quick Decision Checklist: Where Does This Rule Go?

  • Does it apply to every single conversation, no matter the topic? Put it in your System Prompt (or CLAUDE.md / AGENTS.md), and keep it concise.
  • Is it a repeatable procedure you paste 3+ times a week? Package it as a Skill (SKILL.md) so it costs almost zero tokens when idle and loads cleanly when triggered.
  • Is it reference data (transcripts, product docs, pricing sheets, customer feedback)? Attach it as a Project File or clean .md attachment—never paste 20 pages of raw background inside your system prompt.
  • Does it change every hour (CRM deals, GitHub issues, Google Drive, Directus)? Connect it live via an MCP server instead of manually re-uploading stale exports.

Primary References