context-engineering-collection
A comprehensive collection of Agent Skills for context engineering, harness engineering, multi-agent architectures, and production agent systems.
Skill by percymcn
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/percymcn-context-engineering-collection
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
context-engineering-collection- Description
- A comprehensive collection of Agent Skills for context engineering, harness engineering, multi-agent architectures, and production agent systems. Use when building, optimizing, evaluating, or debugging agent systems that require effective context management and reliable operating loops.
- License
- MIT
- Instructions
- 117 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Agent Skills for Context Engineering This collection provides structured guidance for building production-grade AI agent systems through effective context engineering. ## When to Activate Activate these skills when: - Building new agent systems from scratch - Optimizing existing agent performance - Debugging context-related failures - Designing multi-agent architectures - Creating or evaluating tools for agents - Implementing memory and persistence layers - Designing autonomous research or evaluation harnesses ## Skill Map ### Foundational Context Engineering **Understanding Context Fundamentals** Context is not just prompt text—it is the complete state available to the language model at inference time, including system instructions, tool definitions, retrieved documents, message history, and tool outputs. Effective context engineering means understanding what information truly matters for the task at hand and curating that information for maximum signal-to-noise ratio. **Recognizing Context Degradation** Language models exhibit predictable degradation patterns as context grows: the "lost-in-middle" phenomenon where information in the center of context receives less attention; U-shaped attention curves that prioritize beginning and end; context poisoning when errors compound; and context distraction when irrelevant information overwhelms relevant content. ### Architectural Patterns **Multi-Agent Coordination** Production multi-agent systems converge on three dominant patterns: supervisor/orchestrator architectures with centralized control, peer-to-peer swarm architectures for flexible handoffs, and hierarchical structures for complex task decomposition. The critical insight is that sub-agents exist primarily to isolate context rather than to simulate organizational roles. **Memory System Design** Memory architectures range from simple scratchpads to sophisticated temporal knowledge graphs. Vector RAG provides semantic retrieval but loses relationship information. Knowledge graphs preserve structure but require more engineering investment. The file-system-as-memory pattern enables just-in-time context loading without stuffing context windows. **Filesystem-Based Context** The filesystem provides a single interface for storing, retrieving, and updating effectively unlimited context. Key patterns include scratch pads for tool output offloading, plan persistence for long-horizon tasks, sub-agent communication via shared files, and dynamic skill loading. Agents use `ls`, `glob`, `grep`, and `read_file` for targeted context discovery, often outperforming semantic search for structural queries. **Hosted Agent Infrastructure** Background coding agents run in remote sandboxed environments rather than on local machines. Key patterns include pre-built environment images refreshed on regular cadence, warm sandbox pools for instant session starts, filesystem snapshots for session persistence, and multiplayer support for collaborative agent sessions. Critical optimizations include allowing file reads before git sync completes (blocking only writes), predictive sandbox warming when users start typing, and self-spawning agents for parallel task execution. **Tool Design Principles** Tools are contracts between deterministic systems and non-deterministic agents. Effective tool design follows the consolidation principle (prefer single comprehensive tools over multiple narrow ones), returns contextual information in errors, supports response format options for token efficiency, and uses clear namespacing. ### Operational Excellence **Context Compression** When agent sessions exhaust memory, compression becomes mandatory. The correct optimization target is tokens-per-task, not tokens-per-request. Structured summarization with explicit sections for files, decisions, and next steps preserves more useful information than aggressive compression. Artifact trail integrity remains the weakest dimension across all compression methods. **Context Optimization** Techniques include compaction (summarizing context near limits), observation masking (replacing verbose tool outputs with references), prefix caching (reusing KV blocks across requests), and strategic context partitioning (splitting work across sub-agents with isolated contexts). **Latent Briefing (KV Memory Sharing)** Orchestrator-worker systems can compound tokens when supervisors accumulate long trajectories but workers see only narrow text slices. Latent Briefing compacts the orchestrator trajectory in the worker model's KV cache using task-guided attention (Attention Matching-style compaction) so workers receive relevant latent state without full-text replay when the stack exposes worker KV state and the models are compatible. **Evaluation Frameworks** Production agent evaluation requires deterministic checks and multi-dimensional rubrics covering factual accuracy, completeness, tool efficiency, and process quality. Use model judges only after structure, evidence, and rubric math are valid; route judge design, pairwise comparison, and bias mitigation to Advanced Evaluation. **Harness Engineering** Reliable autonomous agents need explicit operating loops around the model: locked metrics, editable surfaces, durable logs, novelty checks, rollback rules, and human approval boundaries. Harnesses prevent agents from weakening the evaluator, losing state across compaction, or turning ambiguous goals into unreviewable changes. ### Development Methodology **Project Development** Effective LLM project development begins with task-model fit analysis: validating through manual prototyping that a task is well-suited for LLM processing before building automation. Production pipelines follow staged, idempotent architectures (acquire, prepare, process, parse, render) with file system state management for debugging and caching. Structured output design with explicit format specifications enables reliable parsing. Start with minimal architecture and add complexity only when proven necessary. ### Cognitive Architecture **BDI Mental States** Belief-desire-intention modeling provides a formal way to translate structured external context into agent mental states. Use it for rational agency, explainability, and systems that need auditable links between beliefs, goals, and chosen actions. ## Core Concepts The collection is organized around four core themes. First, context fundamentals establish what context is, how attention mechanisms work, and why context quality matters more than quantity. Second, architectural patterns cover the structures and coordination mechanisms that enable effective agent systems. Third, operational excellence addresses optimization, evaluation, and harness reliability. Fourth, development methodology and cognitive architecture cover project execution and formal mental-state modeling. ## Practical Guidance Each skill can be used independently or in combination. Start with fundamentals to establish context management mental models. Branch into architectural patterns based on your system requirements. Reference operational skills when optimizing production systems. The skills are platform-agnostic and work with Claude Code, Cursor, or any agent framework that supports custom instructions or skill-like constructs. ## Integration This collection integrates with itself—skills reference each other and build on shared concepts. The fundamentals skill provides context for all other skills. Architectural skills (multi-agent, memory, tools) can be combined for complex systems. Operational skills (optimization, evaluation) apply to any system built using the foundational and architectural skills. ## References Internal skills in this collection: - [context-fundamentals](skills/context-fundamentals/SKILL.md) - [context-degradation](skills/context-degradation/SKILL.md) - [context-compression](skills/context-compression/SKILL.md) - [multi-agent-patterns](skills/multi-agent-patterns/SKILL.md) - [memory-systems](skills/memory-systems/SKILL.md) - [tool-design](skills/tool-design/SKILL.md) - [filesystem-context](skills/filesystem-context/SKILL.md) - [hosted-agents](skills/hosted-agents/SKILL.md) - [context-optimization](skills/context-optimization/SKILL.md) - [latent-briefing](skills/latent-briefing/SKILL.md) - [evaluation](skills/evaluation/SKILL.md) - [advanced-evaluation](skills/advanced-evaluation/SKILL.md) - [harness-engineering](skills/harness-engineering/SKILL.md) - [project-development](skills/project-development/SKILL.md) - [bdi-mental-states](skills/bdi-mental-states/SKILL.md) External resources on context engineering: - Research on attention mechanisms and context window limitations - Production experience from leading AI labs on agent system design - Framework documentation for LangGraph, AutoGen, and CrewAI --- ## Skill Metadata **Created**: 2025-12-20 **Last Updated**: 2026-05-15 **Author**: Agent Skills for Context Engineering Contributors **Version**: 2.3.0
From percymcn/agent-cookbook, MIT.
More from percymcn/agent-cookbook
- 0.471score
apple-ecosystem
percymcn
Apple/macOS ecosystem umbrella: Apple Notes, Reminders, iMessage/SMS, Find My, and macOS background computer-use automation.
SkillCFreshness: CClaude Code +9 - 0.471score
autonomous-idea-pipeline
percymcn
Build and operate fully autonomous systems for continuously discovering, validating, and preparing business opportunities from multiple data sources without…
SkillCFreshness: CClaude Code +9 - 0.471score
external-coding-agents
percymcn
Umbrella for delegating software work to external coding-agent CLIs: Claude Code, OpenAI Codex, and OpenCode.
SkillCFreshness: CClaude Code +9 - 0.468score
prospect-response-monitoring
percymcn
Monitors outreach logs for new prospect responses and sends urgent notifications via Telegram when responses are detected.
SkillCFreshness: CClaude Code +9 - 0.468score
agent-os
percymcn
Agent Operating System — Hermes is the command hub on Telegram.
SkillCFreshness: CClaude Code +9 - 0.468score
autonomous-business-system
percymcn
A fully automated system for discovering, analyzing, and generating business plans from YouTube channels and Reddit pain points
SkillCFreshness: CClaude Code +9 - 0.468score
tradeflow-paper
percymcn
Build and operate a paper-mode self-improving trading agent for BTC/USDT with parametric strategy optimization and safety gates.
SkillCFreshness: CClaude Code +9 - 0.468score
business-factory-oss-stack
percymcn
Use Purse's installed open-source business factory stack from the 2026-05-21 hot GitHub repos PDF: CodeGraph, Bun, Supertonic, CloakBrowser, AgentMemory, and…
SkillCFreshness: CClaude Code +9 - 0.464score
gideon-autonomous-prospector
percymcn
Interact with Gideon's autonomous prospector system for researching and identifying new prospects across target niches for AI content repurposing business
SkillCFreshness: CClaude Code +9 - 0.464score
ai-pdf-guide-business
percymcn
Build and operate an autonomous AI-powered PDF guide generation and sales business that creates valuable guides from trending topics and sells them…
SkillCFreshness: CClaude Code +9 - 0.464score
gumroad-operations
percymcn
Manage Purse's Gumroad store through the local Gumroad CLI and MCP server: products, sales, offer codes, subscribers, licenses, webhooks, reports, and guarded…
SkillCFreshness: CClaude Code +9 - 0.461score
delegate-to-claude-code
percymcn
Delegate complex coding/reasoning tasks to Claude Code CLI via the call_claude_code Python wrapper.
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 2
- Last commit (this folder)
- Jun 12, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/percymcn/agent-cookbook
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.858score
context-engineering-collection
muratcankoylan
A comprehensive collection of Agent Skills for context engineering, harness engineering, multi-agent architectures, and production agent systems.
SkillAFreshness: A★ 18.2KClaude Code +9 - 0.312score
context-engineering-collection
pretty998
A comprehensive collection of Agent Skills for context engineering, harness engineering, multi-agent architectures, and production agent systems.
SkillBFreshness: BClaude Code +9
More from percymcn
- 0.471score
autonomous-idea-pipeline
percymcn
Build and operate fully autonomous systems for continuously discovering, validating, and preparing business opportunities from multiple data sources without…
SkillCFreshness: CClaude Code +9 - 0.471score
apple-ecosystem
percymcn
Apple/macOS ecosystem umbrella: Apple Notes, Reminders, iMessage/SMS, Find My, and macOS background computer-use automation.
SkillCFreshness: CClaude Code +9 - 0.471score
external-coding-agents
percymcn
Umbrella for delegating software work to external coding-agent CLIs: Claude Code, OpenAI Codex, and OpenCode.
SkillCFreshness: CClaude Code +9 - 0.468score
prospect-response-monitoring
percymcn
Monitors outreach logs for new prospect responses and sends urgent notifications via Telegram when responses are detected.
SkillCFreshness: CClaude Code +9 - 0.468score
agent-os
percymcn
Agent Operating System — Hermes is the command hub on Telegram.
SkillCFreshness: CClaude Code +9 - 0.468score
autonomous-business-system
percymcn
A fully automated system for discovering, analyzing, and generating business plans from YouTube channels and Reddit pain points
SkillCFreshness: CClaude Code +9
Cite this page
context-engineering-collection skill. Agent Mart. https://agentmart.dev/skills/percymcn-context-engineering-collection (last updated 2026-10-24)