One-click install
npx skills add https://github.com/corticalstack/claude-code-flow --skill context-fundamentals-corticalstack
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-fundamentals
Source: https://github.com/corticalstack/claude-code-flow/tree/main/.claude/skills/context-fundamentals
Command: npx skills add https://github.com/corticalstack/claude-code-flow --skill context-fundamentals-corticalstack

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It teaches you how to structure and budget AI agent context so the model recalls the right instructions and evidence reliably within token limits.

Core Features & Use Cases

  • Token-aware context budgeting: Prioritizes what to include to avoid wasted tokens and attention dilution.
  • Lost-in-the-middle mitigation: Places critical constraints at attention-favored positions (beginning and end).
  • Progressive disclosure patterns: Loads only skill summaries initially and fetches details on demand to reduce unnecessary context.
  • Context degradation troubleshooting: Helps debug agent failures tied to effective context capacity, history bloat, and verbose tool outputs.
  • Component-specific guidance: Covers system prompts, tool definitions, retrieved documents, message history, and tool outputs with actionable heuristics.

Quick Start

Use this skill when you notice the agent is ignoring important instructions or behaving inconsistently as conversations grow, and ask it to propose a context restructuring plan with budgets and progressive disclosure thresholds.

Frequently Asked Questions about context-fundamentals

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I stop my AI agent from forgetting important instructions as the conversation grows?

To stop AI agents from forgetting instructions, apply context engineering techniques like token budgeting and progressive disclosure to prioritize critical constraints and prevent context degradation as message history expands.

What is the lost-in-the-middle problem in AI agent context windows?

The lost-in-the-middle problem in agent context windows occurs when models overlook critical instructions buried in long prompts; mitigating it requires placing high-signal constraints at attention-favored positions at the beginning and end.

How do I structure AI agent context to stay within token limits?

Structure AI agent context within token limits by applying token-aware budgeting heuristics that prioritize essential system prompts, retrieved documents, and tool outputs while eliminating attention dilution from unnecessary text.

When should I use progressive disclosure patterns for LLM agents?

Use progressive disclosure patterns for LLM agents when initial context loads only skill summaries and fetches detailed evidence on demand, reducing wasted tokens and keeping the effective context window focused on high-signal data.

Why does my agent ignore retrieved documents and tool outputs during long sessions?

Agents ignore retrieved documents and tool outputs during long sessions due to context degradation from history bloat; resolving this requires debugging effective context capacity and restructuring tool output verbosity.

Can I debug system prompt failures and message history bloat without changing my agent architecture?

You can debug system prompt failures and message history bloat without changing agent architecture by applying component-specific heuristics that restructure existing context placement and enforce strict token budgets.