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.
npx agentmods add skills/vanja-emichi/a0_agent_skills/context-engineeringnpx skills add vanja-emichi/a0_agent_skills --skill context-engineeringgit clone --depth 1 https://github.com/vanja-emichi/a0_agent_skillsWrote 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.
[](https://agentmods.dev/skills/vanja-emichi/a0_agent_skills/context-engineering)<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>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.
| Model | Per session | Once 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 |
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.
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/, useroute.tshandlers - Imports: Use
@/alias for src root - Error handling: Throw domain errors (
NotFoundError,ValidationError), catch in route handlers - State: React Query for server state,
useStatefor 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
anyin TypeScript (useunknown+ type guards) - Don't bypass Zod validation at API boundaries
- Don't commit
.envfiles (use.env.exampleas template) - Don't use
useEffectfor data fetching (use React Query)
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.
- 6d ago First seen · 321 lines · 52 tokens per session scan A 532f166991a2
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.
Other skills, from other repositories
project-wiki
组织和维护 Vibe Coding 项目的 wiki 文档体系。当用户要求初始化/重构 wiki 结构、进入新项目且 wiki/ 不存在、需要诊断和修复文档腐化、或需要管理 specs/refs/reviews 子目录的生命周期时触发。.
mindos-zh
MindOS 是用户的本地知识助手,也是跨会话、跨 Agent 共享的知识库。它保存决策记录、会议纪要、SOP、 排错经验、架构选型、调研结论和偏好设置。 仅 mindRoot 知识库内任务。不用于:改代码仓库、项目源码、KB 外路径。 核心概念:空间、指令(INSTRUCTION.md)、技能(SKILL.md);笔记可承载指令与技能。 触发场景:保存或记录任何内容、搜索历史笔记或上下文、更新或编辑文件、整理或重组文件结构、 执行SOP或工作流、捕获对话中的决策、复盘或总结经验、追加表格或CSV数据、跨Agent交接上下文、 提炼经验教训、同步关联文档、查找之前是否讨论过某事、查询历史决策、查找模板或SOP、…
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…
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…
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…
plugin-core-builtin-migration
将 MindOS 渲染器插件从“可选插件”升级为“完全内置能力(core builtin)”的通用流程。 当用户要求“把某插件改成内置/核心”“插件不应可关闭”“插件主程序化”或需要将旧入口迁移到 新主流程并保留兼容迁移能力时触发。.