context-engineering

context-engineering is a skill for Claude Code, Codex from vanja-emichi/a0_agent_skills. It costs 52 tokens per session (2,478 once invoked), scanned A, original, MIT.

A method for organizing the project information and instructions an AI coding agent needs during development.

In plain words
What is it for?
Use it when setting up agent guidance files, working in large codebases, or coordinating long, multi-step tasks.
Why use it?
It helps prevent mistakes caused by missing project rules, forgotten decisions, or insufficient background.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions AGENTS.md; mentions Gemini CLI.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/vanja-emichi/a0_agent_skills/context-engineering
Any agent
npx skills add vanja-emichi/a0_agent_skills --skill context-engineering
Clone the repo
git clone --depth 1 https://github.com/vanja-emichi/a0_agent_skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for context-engineering

README.md
[![agentmods](https://agentmods.dev/badge/skills/vanja-emichi/a0_agent_skills/context-engineering.svg)](https://agentmods.dev/skills/vanja-emichi/a0_agent_skills/context-engineering)
Your own site
<a href="https://agentmods.dev/skills/vanja-emichi/a0_agent_skills/context-engineering"><img src="https://agentmods.dev/badge/skills/vanja-emichi/a0_agent_skills/context-engineering.svg" alt="Measured on agentmods" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,478 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00052 $0.02478
Opus 5 $0.00026 $0.01239
Sonnet 5 $0.00010 $0.00496
Haiku 4.5 $0.00005 $0.00248

Measured 6d ago against content hash 532f166991a2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

context-engineering scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/context-engineering/SKILL.md · 321 lines

How it starts

The opening of the file, as written. The whole thing — 321 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Context Engineering

Overview

Agent performance is determined by the quality of context provided, not just the quality of the model. Context engineering is the practice of structuring project information, task instructions, and session state so agents can do their best work. This applies whether you're writing a project guidance file, structuring a long conversation, or coordinating a multi-step development task.

When to Use

  • Setting up a new project for agent-assisted development
  • Agent is making mistakes that suggest missing context (wrong conventions, wrong tech stack)
  • Writing or updating a project guidance file (CLAUDE.md, AGENTS.md, etc.)
  • Planning a complex multi-step development session
  • Agent keeps losing track of decisions made earlier in a session

The Context Hierarchy

Context sources (highest to lowest priority):
├── 1. Immediate message — what you just said
├── 2. Conversation history — this session's decisions
├── 3. Project guidance file — persistent project conventions
├── 4. Loaded skills — active behavioral protocols
└── 5. Training data — model's built-in knowledge

The first source wins when there's a conflict. Use this to override defaults: put critical constraints in the immediate message or project guidance file.

The Project Guidance File

Every project that uses agent-assisted development should have a guidance file. In Agent Zero, this is typically read via text_editor:read at the start of a session. Common names: CLAUDE.md, AGENTS.md, .cursorrules, GEMINI.md.

Guidance File Template

# Project: [Name]

## What This Is

One paragraph: what the project does, who it's for, and what problem it solves.

## Tech Stack

- **Runtime**: Node.js 20 + TypeScript 5
- **Framework**: Next.js 15 App Router
- **Database**: PostgreSQL + Prisma
- **Testing**: Vitest + Testing Library + Playwright
- **Styling**: Tailwind CSS
- **Deployment**: Vercel

## Development Commands

```bash
npm run dev          # Start dev server (localhost:3000)
npm test             # Run unit tests
npm run test:e2e     # Run Playwright E2E tests
npm run build        # Production build
npm run type-check   # TypeScript check
npm run lint         # ESLint

Code Conventions

  • Components: Functional components, colocated tests in ComponentName.test.tsx
  • API routes: In app/api/, use route.ts handlers
  • Imports: Use @/ alias for src root
  • Error handling: Throw domain errors (NotFoundError, ValidationError), catch in route handlers
  • State: React Query for server state, useState for local UI state

Project Structure

app/
  (auth)/        # Auth routes
  api/           # API route handlers
  tasks/         # Task feature routes
src/
  components/    # Shared UI components
  lib/           # Utilities, DB client, auth helpers
  types/         # Shared TypeScript types
prisma/
  schema.prisma  # Database schema

Key Decisions

  • Use Prisma (not raw SQL) for all DB access. For complex queries: prisma.$queryRaw.
  • All API validation uses Zod schemas defined in src/lib/validation/
  • Authentication via NextAuth.js with JWT sessions
  • Feature flags managed via src/lib/flags.ts

What Not to Do

  • Don't use any in TypeScript (use unknown + type guards)
  • Don't bypass Zod validation at API boundaries
  • Don't commit .env files (use .env.example as template)
  • Don't use useEffect for data fetching (use React Query)

Read the full file on GitHub · 321 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 321 lines · 52 tokens per session scan A 532f166991a2

Subscribe to this mod's changes

context-engineering is a skill published in the GitHub repository vanja-emichi/a0_agent_skills (5 stars, last pushed 1mo ago), licensed MIT. It adds 52 tokens to every session and 2,478 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

project-wiki

组织和维护 Vibe Coding 项目的 wiki 文档体系。当用户要求初始化/重构 wiki 结构、进入新项目且 wiki/ 不存在、需要诊断和修复文档腐化、或需要管理 specs/refs/reviews 子目录的生命周期时触发。.

GeminiLight/MindOS · 63 tokens

mindos-zh

MindOS 是用户的本地知识助手,也是跨会话、跨 Agent 共享的知识库。它保存决策记录、会议纪要、SOP、 排错经验、架构选型、调研结论和偏好设置。 仅 mindRoot 知识库内任务。不用于:改代码仓库、项目源码、KB 外路径。 核心概念:空间、指令(INSTRUCTION.md)、技能(SKILL.md);笔记可承载指令与技能。 触发场景:保存或记录任何内容、搜索历史笔记或上下文、更新或编辑文件、整理或重组文件结构、 执行SOP或工作流、捕获对话中的决策、复盘或总结经验、追加表格或CSV数据、跨Agent交接上下文、 提炼经验教训、同步关联文档、查找之前是否讨论过某事、查询历史决策、查找模板或SOP、…

GeminiLight/MindOS · 490 tokens

mindos

MindOS: local knowledge assistant & shared KB. Keeps decisions, notes, SOPs, debugging lessons, research findings, preferences across sessions/agents. Core: save notes, search KB, organize files, run workflows, review, append CSV, hand off context, distill lessons. NOT for app source or paths outside KB. Triggers…

GeminiLight/MindOS · 136 tokens

mindos-max

MindOS: local knowledge assistant & global memory layer. Keeps decisions, notes, SOPs, debugging lessons, architecture choices, research findings, preferences, conversation summaries for all connected agents. PROACTIVE: (1) search MindOS first for past context, (2) offer to save after valuable work, (3) persist key…

GeminiLight/MindOS · 145 tokens

mindos

Operate a MindOS knowledge base: update notes, search, organize files, execute SOPs/workflows, retrospective, append CSV, cross-agent handoff, route unstructured input to the right files, distill experience, sync related docs. Use when the task targets files inside the user's MindOS KB (mindRoot). NOT for editing app…

GeminiLight/MindOS · 157 tokens

plugin-core-builtin-migration

将 MindOS 渲染器插件从“可选插件”升级为“完全内置能力(core builtin)”的通用流程。 当用户要求“把某插件改成内置/核心”“插件不应可关闭”“插件主程序化”或需要将旧入口迁移到 新主流程并保留兼容迁移能力时触发。.

GeminiLight/MindOS · 86 tokens