.claude/skills/context-engineering/SKILL.md
Strictly enforce context engineering principles to avoid context stuffing, optimize memory architecture, and manage the Research-Plan-Reset-Implement cycle.
npx skillsauth add tranhieutt/software_development_department context-engineeringInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Context engineering bridges the gap between static training data and dynamic reality. Context Stuffing (jamming volume without intent) degrades reasoning, increases noise, and leads to hallucinations. Context Engineering treats AI attention as a scarce resource and allocates it deliberately through structure, bounded contexts, and intelligent memory retrieval (RAG / MCP Supermemory). Without this skill, the AI suffers from "Context Hoarding Disorder," leading to goal drift, high latency, and poor execution quality.
Activate this skill immediately upon detecting the following signs:
/context or /memory.ULTIMATUM: You are an Agent. You DO NOT have the right to ignore, truncate, or alter the order of these steps, even if you think "the model has a 1 million token context limit anyway."
mcp_supermemory_recall for historical lookups instead of keeping them in the prompt.PLAN.md or SPEC.md.mcp_supermemory_memory and explicitly ask the user to clear the context window (start a new chat) or summarize everything to drop the past context rot.mcp_supermemory_memory.These are lazy thoughts that Agents (like you) commonly fall prey to. If an idea in your head matches the Left Column, you MUST immediately obey the Right Column:
| Agent's Lazy Rationalization | Refutation & Mandatory Action |
| :--- | :--- |
| "I have a massive context window; I can just read all 50 files the user provided without complaining." | Volume != Quality. Context is an attention economy. You MUST explicitly tell the user that "Context Stuffing" dilutes attention. Limit the working context to only the files strictly needed for the immediate decision. |
| "I'll just try again and rewrite the code if it hallucinates." | Retries mask bad information architecture. Do not normalize retries. Stop and fix the context structure, break down the problem, or refine the retrieved memory BEFORE writing another line of code. |
| "I'll keep all the research logs and failed attempts in the chat history so I remember what I tried." | "Context Rot" kills reasoning. Once a plan is synthesized, the previous dead ends become pure noise. You MUST instruct the user to flush the context or start fresh with a clean SPEC.md. |
You are NOT allowed to end your turn and respond "Context established" or proceed to implementation until the following checks pass:
mcp_supermemory_memory to commit important established facts, or mcp_supermemory_recall to fetch past facts instead of asking the user to paste them.PLAN.md or SPEC.md) and proposed a Context Reset.Immediately STOP and request User intervention if:
mcp_supermemory) fail repeatedly, meaning you are operating blind on historical context.testing
Generates high-fidelity architecture diagrams, sequence flows, and component maps for SDD projects. Use when finalizing a design phase, documenting system architecture, or visualizing agentic workflows. Default style: Style 6 (Claude Official).
data-ai
Provides vector database and semantic search patterns for Pinecone, Weaviate, Qdrant, Milvus, and pgvector in RAG and recommendation systems. Use when implementing vector search or when the user mentions vector database, semantic search, embeddings, or similarity search.
development
Updates docs/technical/CODEMAP.md by scanning the current codebase structure. Run after a significant feature merge, refactor, or when CODEMAP feels stale.
development
Unlocks the codebase after a release freeze or incident freeze period to resume normal development. Use when a freeze period ends or when the user mentions unfreezing or lifting the code freeze.