context-engineering

Load rules files and hierarchical specs to govern agent context.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/Coldaine/agent-skills-vscode --skill context-engineering-coldaine
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-engineering
Source: https://github.com/Coldaine/agent-skills-vscode/tree/main/skills/context-engineering
Command: npx skills add https://github.com/Coldaine/agent-skills-vscode --skill context-engineering-coldaine

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Feed agents the right information at the right time. Context is the single biggest lever for agent 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's structured.

Core Features & Use Cases

  • Rules Files: Persist project-wide guidelines (e.g., CLAUDE.md) that govern what the agent can access, when to load rules, and how to apply boundaries across sessions.
  • Specs & Architecture: Load relevant spec sections per feature or task to guide planning and implementation without loading the entire document.
  • Relevant Source Files: Load and prioritize source files and patterns per task to keep the agent aligned with current work.
  • Error Output & History: Surface test results and error data to inform next steps and avoid regressions.
  • Conversation Management: Manage session history and context to prevent drift and maintain focus across tasks.

Quick Start

Create a CLAUDE.md rules file at the project root and load it before starting a new session.

Frequently Asked Questions about context-engineering

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

FAQPage Schema
How do I stop my AI coding agent from hallucinating or losing focus?

You manage AI agent context by deliberately curating what the agent sees and when it sees it through rules files, hierarchical spec loading, and prioritized source files, preventing hallucinations from insufficient context and drift from excessive context.

What is context engineering for AI coding agents?

Context engineering is the practice of curating what an AI agent sees, when it sees it, and how it is structured. It uses rules files and hierarchical loading of specs and source files to govern agent context and prevent output quality decline.

How do I set up project-wide rules for my AI coding agent?

Create a CLAUDE.md rules file at your project root and load it before starting a new session to persist project-wide guidelines, govern agent access boundaries, and apply rules consistently across coding sessions.

When should I adjust the context I feed to my AI agent?

You should adjust agent context when starting a new coding session, when agent output quality declines, when switching between tasks, and when configuring project-wide rules and per-task source file loading.

How do I load specifications without overwhelming the AI agent?

Load relevant spec sections per feature or task to guide planning and implementation without loading the entire document, keeping the agent aligned with current work and maintaining focused output.

Why does my AI agent lose focus during long coding sessions?

AI agents lose focus during long sessions due to unmanaged context and session history drift. Managing conversation history and context prevents drift and maintains focus across switching tasks.