Design the complete modular context structure for an AI application using the 6-layer model (Instructions, Memory, Retrieved Context, Tools, State, Turn). Describe your application type, model, and session requirements — get a layered template, token allocation table, refresh strategy, and implementation skeleton. Free template — copy and paste into ChatGPT, Claude, or Copilot.