context-engineering
Skill18 starsChanged 8 months agoMITView on GitHub
Hierarchical context loading for AI coding agents — load what you need, defer what you don't
We split this skill into the rules it gives an agent
14 rules. 0 are common, 12 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 113 edited versions we read keep these.
12
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 28
Start of every /temper stage (plan, design, build, review, check, fix)
- Distinctive: line 29
Before making changes to unfamiliar code
- Distinctive: line 30
When resuming a session from saved state
- Distinctive: line 36
Before loading anything, answer:
- Distinctive: line 52
Start with the file you need to change
- Very specific: line 55
If plan.md exists: read the file list section only (not the full plan)
- Distinctive: line 59
Read only files listed in tasks.md or plan.md
- Distinctive: line 60
Read tests before implementation (TDD discipline)
- Distinctive: line 61
Read error logs or test output if fixing a bug
- Distinctive: line 66
Test output from the last run
- Distinctive: line 89
After loading context, verify:
- Distinctive: line 91
Can you name the files you'll modify?: If not, scope is unclear.
- Distinctive: line 92
Can you describe the module boundary you're working within?: If not, load architecture.
- Distinctive: line 93
Do you know what tests exist for the code you're changing?: If not, load test files.
“Common” is measured: kept by at least 6 in 10 of the 113 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Context Engineering
Version: 1.0.0 Last Updated: 2026-05-12
Overview
Context engineering is the discipline of loading the right information, in the right order, at the right time. Context loaded and never used still costs tokens and attention; context skipped and needed shows up as guessed APIs and missed dependencies.
This skill fixes the loading order for a Temper stage. How much to load is your judgment, sized to the change:
Priority 1: rules → pack rules, stack conventions, guardrails
Priority 2: arch → module boundaries, dependency graph, entry points
Priority 3: source → specific files relevant to the current task
Priority 4: errors → recent failures, test output, runtime errors
Priority 5: conversation → prior decisions, user intent, stakeholder contextWhen to Use
- Start of every
/temperstage (plan, design, build, review, check, fix) - Before making changes to unfamiliar code
- When resuming a session from saved state
Process
Step 1: Determine Task Scope
Before loading anything, answer:
- What am I doing? (fixing a bug, adding a feature, reviewing code)
- What files am I likely to touch? (from tasks.md or plan.md)
- What do I already know? (from current context or build-state.json)
Step 2: Load Rules (always first)
Load in this order:
.claude/temper.config— enabled packs, stack, review settingsrules.mdof each enabled pack, from the highest tier that has it (project.claude/packs/{enabled-pack}/rules.md, then global, then the built-in files listed in${CLAUDE_PLUGIN_ROOT}/reference/pack.md) — only enabled packs, only those scoped to the current phase.claude/packs/stacks/{detected-stack}.md— stack-specific patterns (if exists).claude/CLAUDE.md— project conventions
Step 3: Load Architecture (if touching unfamiliar code)
- Start with the file you need to change
- Trace its imports and importers as far as the change's blast radius reaches;
grepfor imports rather than reading whole files to find them - If
plan.mdexists: read the file list section only (not the full plan)
Step 4: Load Source (only what's needed)
- Read only files listed in tasks.md or plan.md
- Read tests before implementation (TDD discipline)
- Read error logs or test output if fixing a bug
- Skip files you're not modifying and don't need to understand for the change
Step 5: Load Errors (if fixing or debugging)
- Test output from the last run
check-context.jsonorreview-context.json(if resuming from feedback loop)- Git diff (if reviewing changes)
- Runtime error logs or stack traces
Step 6: Defer Everything Else
Load these only when the task needs them:
- Full file contents of files not being modified
- Historical git log beyond the recent commits that touched the files in play
- Documentation for frameworks you're not currently using
- Design docs for features you're not currently building
Red Flags
Signs that the loaded context does not match the task:
- Agent hallucinates APIs — not enough source context. Load the actual module.
- Agent misses obvious dependencies — architecture context was skipped. Load the import graph.
- Agent fixes symptoms, not root cause — error context is incomplete. Load the full stack trace.
Verification
After loading context, verify:
- Can you name the files you'll modify? If not, scope is unclear.
- Can you describe the module boundary you're working within? If not, load architecture.
- Do you know what tests exist for the code you're changing? If not, load test files.
Other versions126 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 126
- addyosmani/agent-skills★ 112ksame name
- bojieli/ai-agent-book-projects★ 53ksame name
- bojieli/ai-agent-book★ 53ksame name
- rohitg00/pro-workflow★ 2.9ksame name
- mrgoonie/claudekit-skills★ 2.2ksame name
- kdlbs/kandev★ 1ksame name
- liza-mas/liza★ 414same name
- typv/nest-turbo-starter★ 224same name
- VAMFI/claude-user-memory★ 206same name
- shashankswe2020-ux/whoop-mcp★ 174same name
116 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Used alongsideProjects with it also use using-agent-skills, idea-refine and 9 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
LLl0k0laDSkillusing-agent-skills
Use when starting a session or when you need to discover which skill applies to the current task. This is the meta-skill that governs how all other skills are discovered and invoked.
Also in 36 projects that use this
LLl0k0laDSkillidea-refine
Refine ideas through structured divergent and convergent thinking. Use "idea-refine" or "ideate" to trigger.
Also in 42 projects that use this
MrCipherSmithSkillconstraint-driven-development
Use when a project needs a persistent, measurable quality bar — starting a project without documented standards, 'set up constraints', or when coverage/perf/a11y thresholds get re-debated per-PR. Produces CONSTRAINTS.md with enforceable numbers, ratchets, and a guard against silent weakening. NOT for throwaway prototypes or a one-off CI setup.
Also in 14 projects that use this
HK-hubSkilldeprecation-and-migration
Manages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when deciding whether to maintain or sunset existing code.
Also in 39 projects that use this
- +7 more from LLl0k0laD
In this repository5 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- grill-meSkill
- source-driven-developmentSkill
- teach-meSkill
- temper-coreSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

