context-engineering

Comprehensive context engineering guidance for AI agent systems. Routes to specialized sub-skills for production agent work. Use when the user asks to: "optimize context", "reduce token costs", "context compression", "summarize conversation history", "design multi-agent system", "implement supervisor pattern", "create swarm architecture", "implement memory", "build memory system", "offload context to files", "use filesystem for agent memory", "debug agent failure", "diagnose context problems", "fix lost-in-middle", "build agent tools", "design agent tools", "evaluate agent performance", "build test framework", "implement LLM-as-judge", "understand context", "explain context windows", "build background agent", "implement BDI architecture", "start an LLM project", or any discussion of context degradation, attention patterns, multi-agent coordination, or production agent architecture.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "context-engineering" with this command: npx skills add levineam/levineam-context-engineering

Context Engineering Skill

Routes to the appropriate sub-skill from Koylan's Agent-Skills-for-Context-Engineering collection, located at:

references/context-engineering-skills/skills/<sub-skill>/SKILL.md

Setup

No setup required. This skill uses GitHub raw URLs as the primary method to fetch sub-skill documentation.

Sub-skill SKILL.md files are loaded directly from GitHub:

https://raw.githubusercontent.com/muratcankoylan/Agent-Skills-for-Context-Engineering/main/skills/<sub-skill>/SKILL.md

Example: For context-optimization, use:

https://raw.githubusercontent.com/muratcankoylan/Agent-Skills-for-Context-Engineering/main/skills/context-optimization/SKILL.md

Optional Enhancement (Offline Use): For offline access or faster local reads, you can optionally initialize the git submodule:

git submodule update --init

This will populate the references/context-engineering-skills/ directory locally. When the local directory exists, the skill loader will prefer local files over GitHub fetches.

Sub-Skill Routing Table

Match the user's task to one sub-skill and read its SKILL.md before proceeding. Load additional sub-skills only if the task spans multiple domains.

Task / trigger phraseSub-skill directory
"optimize context", reduce token costs, KV-cache, context budgetingcontext-optimization
"context compression", summarize history, compaction, long sessionscontext-compression
"design multi-agent", supervisor pattern, swarm architecture, agent handoffsmulti-agent-patterns
"implement memory", memory frameworks, Mem0, Zep, Letta, vector RAGmemory-systems
"offload context to files", filesystem memory, scratch pads, dynamic discoveryfilesystem-context
"debug agent failure", lost-in-middle, context poisoning, degradation patternscontext-degradation
"build agent tools", tool descriptions, MCP tools, tool consolidationtool-design
"evaluate agent", LLM-as-judge, test framework, quality gatesevaluation
Advanced evaluation: rubrics, pairwise comparison, position biasadvanced-evaluation
"understand context", context windows, attention mechanics, fundamentalscontext-fundamentals
"build background agent", sandboxed execution, hosted coding agenthosted-agents
"implement BDI", mental state modeling, belief-desire-intentionbdi-mental-states
"start an LLM project", batch pipeline, task-model fit, project structureproject-development

How to Load a Sub-Skill

  1. Identify the best-matching row above.
  2. Check if the local sub-skill SKILL.md exists:
    references/context-engineering-skills/skills/<sub-skill>/SKILL.md
    
    • If the file exists locally: Read it directly.
    • If the file does NOT exist (e.g., submodule not initialized): Fetch from GitHub:
      https://raw.githubusercontent.com/muratcankoylan/Agent-Skills-for-Context-Engineering/main/skills/<sub-skill>/SKILL.md
      
  3. Follow the instructions in that file. Most sub-skills have a references/ directory with detailed patterns — read those files only when the relevant pattern is needed (progressive disclosure).
  4. If the user's task spans two sub-skills (e.g., memory + multi-agent), read both SKILL.md files before responding.

Progressive Disclosure

Sub-skill SKILL.md files are compact routing documents. The deep content lives in each sub-skill's references/ folder. Load reference files only when the specific topic is active — do not bulk-load all references upfront.

Example:

references/context-engineering-skills/skills/context-optimization/references/

Read individual reference files from that directory only when the matching pattern is needed.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

reflectt-node

Local team collaboration server on localhost:4445 managing tasks, messaging, presence, and team health with a web dashboard and API endpoints.

Registry SourceRecently Updated
Automation

moss-tts-family-chatbot

MOSI Studio 音频全套能力:语音转文字(ASR)、文字转语音(TTS)、 多说话人对话合成、声音克隆、飞书语音气泡。 两类触发场景: 1. 消息中包含 "[media attached:"、"audio/ogg"、"audio/opus" 或 路径 /home/openclaw/.openclaw/me...

Registry SourceRecently Updated
Automation

Soul Harbor

Stop talking to a robot. Give your OpenClaw agent a soul that truly cares.

Registry SourceRecently Updated
Automation

Acp Loop

Schedule recurring AI agent prompts using intervals or cron expressions. Use when users need to run prompts periodically, automate agent tasks on a schedule,...

Registry SourceRecently Updated
3840femto