context-engineering

Curates rules files, specs, and source files to structure agent context per task.

Updated May 21, 2026
One-click install
npx skills add https://github.com/nicorevo/AI-SDLC-Template --skill context-engineering-nicorevo
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: context-engineering
Source: https://github.com/nicorevo/AI-SDLC-Template/tree/main/.opencode/skills/context-engineering
Command: npx skills add https://github.com/nicorevo/AI-SDLC-Template --skill context-engineering-nicorevo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? AI coding agents produce poor output when they receive too little context (hallucinated APIs, ignored conventions) or too much context (lost focus, degraded quality). This Skill provides a systematic method for deciding what information an agent sees, when it sees it, and how it is structured across a session. ## Core Features & Use Cases - Five-Level Context Hierarchy: Organizes context from persistent rules files (AGENTS.md, CLAUDE.md, .cursorrules) down through specs, source files, error output, and conversation history. - Context Packing Strategies: Provides templates like the Brain Dump, Selective Include, and Hierarchical Summary for loading focused context per task. - Confusion Management: Defines explicit patterns for surfacing conflicting specs, missing requirements, and ambiguity instead of silently guessing. - Use Case: When starting a new feature, you load only the relevant spec section, the files to modify, one existing pattern example, and the project rules file — keeping context under roughly 2,000 focused lines so the agent follows conventions instead of inventing them. ## Quick Start Ask the agent to set up a context plan for your project by creating an AGENTS.md rules file and selecting only the files relevant to your current task.

Frequently Asked Questions about context-engineering

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up context for an AI coding agent?▼

Create a rules file such as AGENTS.md covering tech stack, commands, conventions, and boundaries, then load only the spec section and source files relevant to the current task. Include one example of the pattern to follow so the agent matches your style.

What is context engineering for AI agents?▼

Context engineering is the practice of deliberately curating what an agent sees, when it sees it, and how it is structured. It organizes context into a hierarchy from persistent rules files down to per-iteration error output and conversation history.

How much context should I give an AI coding agent?▼

Aim for under roughly 2,000 lines of focused, task-relevant context. Loading more than about 5,000 lines of non-task-specific material causes the agent to lose focus, and more files does not mean better output.

Why does my AI agent ignore project conventions?▼

The agent ignores conventions when they are not written down or when stale context accumulates over a long session. Write conventions into a rules file, include a pattern example, and start a fresh session when switching between major features.

What should I do when the spec conflicts with existing code?▼

Surface the conflict explicitly instead of silently picking one interpretation. Present the options — follow the spec, follow existing patterns, or ask — and let the human decide, since inventing requirements leads to rework.