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.

Good fit Use it when setting up agent guidance files, working in large codebases, or coordinating long, multi-step tasks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vanja-emichi/a0_agent_skills/context-engineering
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.

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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for context-engineering

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.5 $0.00021 $0.00991
Sonnet 5.5 $0.00010 $0.00496
Haiku 4.5 $0.00005 $0.00248

Measured 1mo ago against content hash 532f166991a2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 2mo ago), licensed MIT. It adds 52 tokens to every session and 2,478 once invoked, about $0.0002 per session on Opus 5.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

A system for creating and maintaining a project wiki: a set of organized documents that explain a software project's plans, rules, references, and progress.

GeminiLight/MindOS · 63 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-zh

A local knowledge-base assistant for storing and finding decisions, meeting notes, procedures, troubleshooting lessons, and preferences across conversations and coding agents. It works only with the MindOS knowledge base.

GeminiLight/MindOS · 490 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-views

Manage shared local people and project tasks, generate reusable tables or boards, and compose/customize multi-source MindOS work pages with isolated custom HTML. Use when the user asks to maintain contacts, follow-ups or tasks, build a personal dashboard, or adjust a page with AI.

GeminiLight/MindOS · 60 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