context-engineering
Curates the right context for an agent at the right time.
Skill by jankneumann
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/jankneumann-context-engineering
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: productivity, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/context-engineering
What's inside
- Skill name
context-engineering- Description
- Curates the right context for an agent at the right time. Loaded by orchestrator skills (plan-feature, implement-feature, validate-feature) when a worker is about to start a task and needs to decide which rules, specs, source files, errors, and conversation history to surface. Covers the 5-level context hierarchy, named packing strategies, and the most common failure modes (starvation, flooding, stale context, missing examples, implicit knowledge, silent confusion). Tied to this repo's coordinator, work-packages.yaml scope rules, worktree branching, and OPENSPEC_BRANCH_OVERRIDE handoff conventions.
- License
- MIT
- Instructions
- 618 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Agent Skills spec issues
- body: 618 lines (spec recommends under 500)
Files (4)
- SKILL.md
- __init__.py · scripts/
- render_semantic_context.py · scripts/
- semantic_context.py · scripts/
SKILL.md (first lines)
# Context Engineering ## Overview Feed agents the right information at the right time. Context is the single biggest lever for output quality — too little and the agent hallucinates, too much and it loses focus. Context engineering is the practice of deliberately curating what the agent sees, when it sees it, and how it is structured. This skill is **orchestrator-loaded**, not a slash command. `plan-feature`, `implement-feature`, `validate-feature`, and the parallel-review skills consult this skill when assembling the context block they pass to a worker agent or sub-agent. It encodes the conventions specific to this repo: OpenSpec proposals, `work-packages.yaml` scopes, agent worktrees, and the coordinator handoff layer. ## When to Use - Starting a new coding session, especially after `worktree.py setup` - Agent output quality is declining (wrong patterns, hallucinated APIs, ignoring conventions) - Switching between work packages (different `wp-*` IDs in the same change) - Setting up a new project for AI-assisted development (rules file, references library) - A worker is about to be dispatched and the orchestrator must decide what context to pack - Cross-session handoff — sanitizing prior session logs before exposing them to a fresh worker ## The Context Hierarchy Structure context from most persistent to most transient: ``` +-------------------------------------+ | 1. Rules Files (CLAUDE.md, etc.) | <- Always loaded, project-wide +-------------------------------------+ | 2. Spec / Architecture Docs | <- Loaded per feature/session +-------------------------------------+ | 3. Relevant Source Files | <- Loaded per task +-------------------------------------+ | 4. Error Output / Test Results | <- Loaded per iteration +-------------------------------------+ | 5. Conversation History | <- Accumulates, compacts +-------------------------------------+ ``` ### Level 1: Rules Files Create a rules file that persists across sessions. This is the highest-leverage context you can provide. **`CLAUDE.md` at the repo root** (loaded by the Claude Code harness on every turn): ```markdown # Project: [Name] ## Tech Stack - Python 3.12, uv, pytest - TypeScript 5, Vite, React 18 (web app) ## Commands - Test (Python, **source-contribution-only**): `skills/.venv/bin/python -m pytest skills/tests/` - Test (Node): `npm test` - Lint: `npm run lint --fix` - Type check: `npx tsc --noEmit` ## Code Conventions - Functional components with hooks (no class components) - Named exports (no default exports) - Colocate tests next to source: `Button.tsx` -> `Button.test.tsx` ## Boundaries - Never commit `.env` files or secrets - Ask before modifying database schema - Always run tests before committing ``` **Equivalent files for other tools:** - `.cursorrules` or `.cursor/rules/*.md` (Cursor) - `.windsurfrules` (Windsurf) - `.github/copilot-instructions.md` (GitHub Copilot) - `AGENTS.md` (OpenAI Codex) In this source repo, the canonical rules file is `CLAUDE.md` at the root. After source-contribution-only edits, regenerate the runtime mirrors with the repository installer. ### Level 2: Specs and Architecture Load the relevant spec section when starting a feature. Don't load the entire spec if only one section applies. In this repo, the per-feature specs live under `openspec/changes/<change-id>/`: - `openspec/changes/<change-id>/proposal.md` — what we're building and why - `openspec/changes/<change-id>/design.md` — design decisions (D1, D2, ...) and trade-offs - `openspec/changes/<change-id>/work-packages.yaml` — scope, locks, verification per package - `openspec/changes/<change-id>/specs/` — delta specs scoped per capability **Effective:** "Here is the relevant section of `proposal.md` plus design decisions D2 and D4 that motivate this work package: [excerpt]" **Wasteful:** "Here is the entire 5,000-word proposal." (when only one capability matters) When the orchestrator dispatches a worker for a specific `wp-*` package, the context block should include: 1. The package's own entry from `work-packages.yaml` (its `description`, `depends_on`, `scope`, `verification`, and `locks.reason`). 2. The matching design decisions referenced by that entry (e.g. "Design decisions: D2, D4"). 3. The matching spec scenarios listed in the entry. ### Level 3: Relevant Source Files Before editing a file, read it. Before implementing a pattern, find an existing example in the codebase. **Pre-task context loading:** 1. Read the file(s) you'll modify 2. Read related test files 3. Find one example of a similar pattern already in the codebase 4. Read any type definitions or interfaces involved
From jankneumann/agentic-coding-tools, MIT.
More from jankneumann/agentic-coding-tools
- 0.611score
bug-scrub
jankneumann
Comprehensive project health diagnostic — collects signals from CI tools, reports, deferred work, code markers, and open GitHub issues
SkillAFreshness: A★ 4Claude Code +9 - 0.608score
autopilot-roadmap
jankneumann
Execute roadmap items iteratively with policy-aware vendor routing and learning feedback
SkillAFreshness: A★ 4Claude Code +9 - 0.608score
coordination-bridge
jankneumann
HTTP fallback bridge for coordinator when MCP transport is unavailable
SkillAFreshness: A★ 4Claude Code +9 - 0.605score
bao-vault
jankneumann
OpenBao/Vault credential seeding and management scripts
SkillAFreshness: A★ 4Claude Code +9 - 0.599score
autopilot
jankneumann
Orchestrate the full plan-review-implement-validate-PR lifecycle with multi-vendor review convergence
SkillAFreshness: A★ 4Claude Code +9 - 0.571score
collect-transcripts
jankneumann
Ingest raw session transcripts from coding-agent harnesses via vendor-specific adapters, normalize to a common event schema, triage for struggle signals, and…
SkillBFreshness: B★ 4Claude Code +9 - 0.571score
audit-choices
jankneumann
Independent, read-only audit of implementation-time decisions made where the spec was silent, producing a schema-valid choices ledger
SkillBFreshness: B★ 4Claude Code +9 - 0.571score
codebase-atlas
jankneumann
Render the architecture graph as a single self-contained interactive HTML page — foldable structure tree, animated dependency graph, and cross-connection…
SkillBFreshness: B★ 4Claude Code +9 - 0.568score
archive-roadmap
jankneumann
Archive a completed roadmap workspace to openspec/roadmaps/archive/<date>-<id>/
SkillBFreshness: B★ 4Claude Code +9 - 0.568score
coordinator-task-status-renderer
jankneumann
Render and seed coordinator-owned task status block in OpenSpec tasks.md
SkillBFreshness: B★ 4Claude Code +9 - 0.566score
agent-ergonomics
jankneumann
Refine a system design or plan to be maximally agent-intuitive, agent-ergonomic, and agent-accretive — grounded in simulated agent journeys and real friction…
SkillBFreshness: B★ 4Claude Code +9 - 0.565score
debugging-and-error-recovery
jankneumann
Guides systematic root-cause debugging with the Stop-the-Line rule and a reproduce → localize → reduce → fix → guard → verify triage checklist.
SkillBFreshness: B★ 4Claude Code +9
Signals
- Stars
- 4
- Forks
- 1
- Open issues
- 129
- Last commit (this folder)
- Aug 4, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from jankneumann
- 0.611score
bug-scrub
jankneumann
Comprehensive project health diagnostic — collects signals from CI tools, reports, deferred work, code markers, and open GitHub issues
SkillAFreshness: A★ 4Claude Code +9 - 0.608score
autopilot-roadmap
jankneumann
Execute roadmap items iteratively with policy-aware vendor routing and learning feedback
SkillAFreshness: A★ 4Claude Code +9 - 0.608score
coordination-bridge
jankneumann
HTTP fallback bridge for coordinator when MCP transport is unavailable
SkillAFreshness: A★ 4Claude Code +9 - 0.605score
bao-vault
jankneumann
OpenBao/Vault credential seeding and management scripts
SkillAFreshness: A★ 4Claude Code +9 - 0.599score
autopilot
jankneumann
Orchestrate the full plan-review-implement-validate-PR lifecycle with multi-vendor review convergence
SkillAFreshness: A★ 4Claude Code +9 - 0.571score
audit-choices
jankneumann
Independent, read-only audit of implementation-time decisions made where the spec was silent, producing a schema-valid choices ledger
SkillBFreshness: B★ 4Claude Code +9
Cite this page
context-engineering skill. Agent Mart. https://agentmart.dev/skills/jankneumann-context-engineering (last updated 2026-10-24)