context-engineering

Load project-wide context rules, specs, and source files for agent sessions.

13|3|Updated May 12, 2026
One-click install
npx skills add https://github.com/kevinnft/ai-agent-skills --skill context-engineering-kevinnft
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-engineering
Source: https://github.com/kevinnft/ai-agent-skills/tree/main/skills/addyosmani/context-engineering
Command: npx skills add https://github.com/kevinnft/ai-agent-skills --skill context-engineering-kevinnft

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Context engineering helps ensure agents see the right information at the right time, improving output quality and reducing hallucinations by curating what the agent loads across sessions and tasks.

Core Features & Use Cases

  • Rules Files: Create and load project-wide rules (CLAUDE.md or equivalents) to persistently govern agent behavior.
  • Spec & Architecture Loading: Load relevant spec sections and architectural guidance when starting or switching tasks.
  • Context Hierarchy & Guards: Structure context from persistent to transient and guard against data leakage or misconfiguration.
  • Use Case: When starting a new project or changing scope, load rules, specs, and relevant source files to keep the agent aligned with project conventions.

Quick Start

Load the project rules (CLAUDE.md or equivalents), a relevant spec section, and the context for the current feature to begin.

Frequently Asked Questions about context-engineering

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

FAQPage Schema
How do I load project rules and specs to align agent context with conventions?

To load project rules and align agent context, apply context engineering techniques by loading Level 1 rules files (like CLAUDE.md), per-feature specs, and relevant source files when starting a new session or switching tasks.

What is context engineering and when do I need to manage agent context?

Context engineering is the practice of curating what information an agent loads across sessions and tasks. You need it when starting new projects or changing scope to reduce hallucinations and ensure the agent sees the correct project-wide rules.

How do I set up guardrails to prevent data leakage in agent sessions?

To set up guardrails against data leakage, structure your context hierarchy from persistent rules to transient data, ensuring the agent loads only the correct project-wide rules, specs, and source files required for the current feature.

Can I use rules files like CLAUDE.md to persistently govern agent behavior?

Yes, you can create and load rules files like CLAUDE.md to persistently govern agent behavior across sessions. This ensures the agent consistently follows project-wide conventions and architectural guidance.

What is the best way to structure context hierarchy for coding agents?

The best way to structure context hierarchy is to organize information from persistent project rules to transient feature specs, loading relevant spec sections and source files only when needed to maintain focus and guard against misconfiguration.

Why does my agent lose alignment with project conventions when switching tasks?

Agents lose alignment when switching tasks because context is not properly refreshed. To fix this, apply context engineering to reload project rules, relevant spec sections, and feature-specific source files at the start of each new task.