Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
A comprehensive collection of Agent Skills for context engineering, multi-agent architectures, and production agent systems.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
CLAUDE.md
1# CLAUDE.md23This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.45## Project Overview67Agent Skills for Context Engineering — an open collection of 14 Agent Skills teaching context engineering principles for production AI agent systems. Skills are platform-agnostic (Claude Code, Cursor, GitHub Copilot, any Open Plugins-conformant tool).89Context engineering is the discipline of curating everything that enters a model's context window (system prompts, tool definitions, retrieved documents, message history, tool outputs) to maximize signal within limited attention budget.1011## Repository Structure1213- `skills/` — 14 skill directories, each containing a `SKILL.md` with YAML frontmatter (`name`, `description`) and optional `references/` and `scripts/` subdirectories14- `examples/` — 5 complete demonstration projects (digital-brain-skill, llm-as-judge-skills, book-sft-pipeline, x-to-book-system, interleaved-thinking)15- `docs/` — Research materials and reference documentation16- `researcher/` — Research output examples17- `template/SKILL.md` — Canonical skill template (use when creating new skills)18- `SKILL.md` (root) — Collection-level metadata and skill map19- `.claude-plugin/marketplace.json` — Claude Code marketplace manifest (5 bundled plugins)20- `.plugin/plugin.json` — Open Plugins format manifest (v2.0.0)2122## Build & Test Commands2324No top-level build system. Individual example projects have their own tooling:2526### examples/llm-as-judge-skills (TypeScript, Node >= 18)27```28cd examples/llm-as-judge-skills29npm install30npm run build # tsc31npm test # vitest (19 tests)32npm run lint # eslint33npm run format # prettier34npm run typecheck # tsc --noEmit35```3637### examples/interleaved-thinking (Python >= 3.10)38```39cd examples/interleaved-thinking40pip install -e ".[dev]"41pytest # pytest + pytest-asyncio42ruff check . # linting (100 char line length)43```4445### examples/digital-brain-skill (Node.js)46```47cd examples/digital-brain-skill48npm run setup49npm run weekly-review50npm run content-ideas51npm run stale-contacts52```5354## Skill Authoring Rules5556When creating or editing skills:57581. **SKILL.md must stay under 500 lines** — move detailed content to `references/` directory592. **YAML frontmatter is required** — must include `name` and `description` fields603. **Folder naming**: lowercase with hyphens (e.g., `context-fundamentals`)614. **Write in third person** — descriptions are injected into system prompts; inconsistent POV causes discovery issues625. **Platform-agnostic** — no vendor-locked examples or platform-specific tool names without abstraction636. **Token-conscious** — challenge each paragraph: "Does Claude really need this?" Assume advanced audience647. **Include a Gotchas section** — experience-derived failure modes are the highest-signal content in any skill658. **Update root README.md** when adding new skills669. **Update marketplace/plugin manifests** when adding skills (`.claude-plugin/marketplace.json`, `.plugin/plugin.json`)6768## Plugin Architecture6970All 14 skills are distributed as a single plugin (`context-engineering`) in the marketplace manifest. This avoids cache duplication — Claude Code caches each plugin's `source` directory separately, so multiple plugins pointing to `source: "./"` would each cache a full copy of the repo.7172Progressive disclosure pattern: only skill names/descriptions load at startup; full content loads on activation.7374## Key Design Principles7576- **Context quality over quantity** — attention scarcity and lost-in-middle phenomenon mean more context is not always better77- **Sub-agents isolate context** — they exist to manage attention budget, not simulate org roles78- **Skills reference each other** — use plain text skill names (not links) in Integration sections to avoid cross-directory reference issues79- **Examples use Python pseudocode** — conceptual demonstrations that work across environments, not production-ready implementations80