agent-context-engineeringlisted
Install: claude install-skill SylphxAI/skills
# Agent Context Engineering
Produce a **Context and Memory Contract** that makes useful information
available without letting stale, untrusted, or excessive context silently
control behavior. Read
[references/context-and-memory-methods.md](references/context-and-memory-methods.md)
for memory classes, retrieval controls, and research sources.
## Method
1. Inventory each information class and owner: current task state, source
evidence, decisions, episodic history, semantic knowledge, procedures,
user preferences, secrets, and derived summaries.
2. Define the context assembly order and authority rules. Preserve the
distinction between source facts, retrieved memory, inference, and generated
summary.
3. Assign memory class, scope, retention, provenance, freshness, sensitivity,
invalidation trigger, and deletion path to every durable item.
4. Set a retrieval budget and rank by task relevance, authority, freshness,
expected decision value, diversity, and token cost. Require abstention when
retrieval confidence is inadequate.
5. Compile only the minimum sufficient working context. Deduplicate repeated
instructions and keep conflicting evidence visible rather than blending it.
6. Treat summarization and compaction as lossy transformations. Retain source
locators, material uncertainty, unresolved commitments, and a way to recover
omitted detail.
7. Define handoff as a typed state transfer, not a transcript dump. Bind the
recipient to objective, curr