cognitive-scaffolding

Assemble zone-based prompts with anchor, chunked middle, and background sections.

31|8|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/itallstartedwithaidea/agent-skills --skill cognitive-scaffolding
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cognitive-scaffolding
Source: https://github.com/itallstartedwithaidea/agent-skills/tree/main/skills/claude-mythos/cognitive-scaffolding
Command: npx skills add https://github.com/itallstartedwithaidea/agent-skills --skill cognitive-scaffolding

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Cognitive Scaffolding prevents performance drop-offs caused by long prompts where the most important instructions or evidence get ignored or missed.

Core Features & Use Cases

  • Zone-based context placement: Organizes information into anchor (rules), structured middle (chunked data), background (reference material), and foreground (current task) to match attention patterns.
  • Chunking with delimiters: Uses clearly delimited sections to reduce “lost in the middle” behavior and improve retrieval across multiple documents or data blocks.
  • Attention-aware assembly: Builds prompts that emphasize immutable constraints and the latest user intent while still preserving useful fallbacks.

Quick Start

Use cognitive-scaffolding to restructure your agent prompt so that immutable rules appear at the start, the current task appears at the end, and large reference data is chunked into delimited middle sections.

Frequently Asked Questions about cognitive-scaffolding

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

FAQPage Schema
Why does my AI agent ignore critical instructions in long context windows?

AI agents ignore critical instructions in long context windows due to inefficient placement of evidence and constraints. Restructuring prompts using zone-based assembly with anchor, foreground, and chunked middle sections prevents this performance drop-off.

How do I structure prompts for multi-document reasoning?

Structure prompts for multi-document reasoning by applying cognitive scaffolding: place immutable rules at the start, the current task at the end, and chunk large reference data into explicitly delimited middle sections to maintain attention.

What is the best way to prevent lost in the middle behavior in transformer prompting?

Prevent lost in the middle behavior in transformer prompting by using attention-aware assembly with clear delimiters. This organizes information into anchor, structured middle, background, and foreground zones to match attention patterns.

Can I use cognitive scaffolding for code review tasks with large reference data?

Yes, you can use cognitive scaffolding for code review tasks. It organizes large reference data into explicitly delimited background and middle sections, ensuring the model retrieves both task-critical constraints and fallback information efficiently.

When should I use attention allocation techniques for prompt engineering?

Use attention allocation techniques for prompt engineering when your model intermittently ignores constraints during multi-document reasoning or code review, requiring zone-based context placement to emphasize immutable rules and current user intent.