My agent consistently ignores instructions I place in the middle of long system prompts. It follows the beginning and end perfectly but misses middle sections. How do I diagnose and fix this? - [ ] Identifies "lost-in-middle" degradation pattern - [ ] Explains U-shaped attention curve (beginning/end favored) - [ ] Recommends restructuring critical info to beginning/end positions - [ ] Suggests context partitioning or chunking - [ ] May reference context-degradation.md for detailed patterns
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Debug Lost In Middle?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/tstapler-debug-lost-in-middle)
---
name: debug-lost-in-middle
description: ''
---
# Prompt
My agent consistently ignores instructions I place in the middle of long system prompts. It follows the beginning and end perfectly but misses middle sections. How do I diagnose and fix this?
# Expected
- [ ] Identifies "lost-in-middle" degradation pattern
- [ ] Explains U-shaped attention curve (beginning/end favored)
- [ ] Recommends restructuring critical info to beginning/end positions
- [ ] Suggests context partitioning or chunking
- [ ] May reference context-degradation.md for detailed patterns