Skip to content
Skills Library
AI & agents · Planning

context-placement

/context-placement

Decide where in a prompt to put documents, history, and instructions, given that models attend unevenly across a long context. Use when prompts are long and the model ignores material in the middle.

Repository
AI-SKILLS ↗
Licence
MIT
Last repository change
05.09.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 05.09.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Decide where in a prompt to put documents, history, and instructions, given that models attend unevenly across a long context. Use when prompts are long and the model ignores material in the middle.

Original author description

Decide where in a prompt to put documents, history, and instructions, given that models attend unevenly across a long context. Use when prompts are long and the model ignores material in the middle.

How it works

  1. Method
  2. Boundaries
Original SKILL.md headings · 37 lines, 240 words
SKILL.md preview
---
name: context-placement
description: Decide where in a prompt to put documents, history, and instructions, given that models attend unevenly across a long context. Use when prompts are long and the model ignores material in the middle.
---

# Context placement

Attention across a long context is not uniform. Material at the
beginning and end is used more reliably than material in the middle,
which means placement is a real variable and not a formatting
preference.

## Method

1. **Put instructions at both ends for long prompts.** Task at the top,
   restated requirements at the bottom, with the bulk of material
   between.
2. **Place the most relevant material closest to the question.**
   Retrieval results ordered with the best last, adjacent to the
   instruction that uses them (see retrieval-reranking).
3. **Keep the total short.** Filling a large window degrades attention
   even within the limit, so relevance filtering beats inclusion (see
   context-compression).
4. **Delimit sections clearly.** Explicit boundaries let the model
   locate material rather than searching prose, and they also mark data
   as data (see prompt-structure).
5. **Put stable content first for caching.** Prefix caching rewards
   putting unchanging instructions ahead of variable input, which is a
   cost win at no quality cost (see prompt-caching).
6. **Summarise the middle when it must be long.** A brief index of what
   the long section contains helps the model use it.
7. **Test with material deliberately placed in the middle.** It is the
   position that fails, and it is invisible unless tested for.

## Boundaries

Placement effects vary by model and change between versions, so
conclusions need re-testing. Optimising placement cannot compensate for
including the wrong material. Very long contexts degrade regardless of
arrangement.

Versions

The database has no other skills named context-placement.

Database snapshot: 13.11.2026 · package version 27fa541de9cd (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100prompt-and-context-engineering
    Guides structuring system prompts, managing context window budget, and organizing what an LLM agent sees at each turn. Use when a user asks to "write a system prompt," "reduce token usage," "fix inconsistent agent behavior," "the model ignores my instructions," "organize context…
  • 100long-context-vs-rag
    Decision framework: when long-context (Gemini 2M, Claude 200k, GPT 128k) beats RAG, hybrid approaches (RAG narrows, long-context reads), cost-quality-latency tradeoffs, lost-in-the-middle / context rot research, needle vs synthesis tasks, prompt caching economics, concrete $ per…
  • 86agent-context
    Use to set up or review project agent instructions
  • 95system-vs-user-prompt
    What belongs in system prompt vs user prompt and why. Placement decisions for API calls, system messages, and prompt architecture — system as identity/constraints/tools, user as task/context/state. Use when designing system prompts, structuring API calls, deciding where…
  • 100placement-picker
    Decide where to place a new rule, skill, hook, KB entry, agent, CLAUDE.md rule, memory, or context artifact. Use when choosing among user, project, plugin, hook, memory, and knowledge-base surfaces, especially before saving a behavioral rule or feedback memory.
  • 100context-compression
    Compress selected context to a target token budget while preserving decisions, evidence, constraints, and unresolved questions. Use when relevant material is already selected but too long; use context-optimization when selection, deduplication, and ordering are also required.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.