One-click install
npx skills add https://github.com/josuenavarroaguado/josuenavarroaguado.github.io --skill context-engineering-josuenavarroaguado
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-engineering
Source: https://github.com/josuenavarroaguado/josuenavarroaguado.github.io/tree/main/.github/skills/context-engineering
Command: npx skills add https://github.com/josuenavarroaguado/josuenavarroaguado.github.io --skill context-engineering-josuenavarroaguado

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill ensures AI agents receive the right information at the right time so outputs remain accurate, follow project conventions, and avoid hallucinations or wasted iterations.

Core Features & Use Cases

  • Persistent rules files: Maintain a project-wide rules file (commands, conventions, boundaries) that is always loaded to enforce consistent behavior.
  • Hierarchical context loading: Load context in order of persistence and relevance—rules, specs/architecture, relevant source files, error output, and conversation history—to keep agents focused.
  • Confusion and conversation management: Surface ambiguities, summarize long sessions, compact history, and use inline planning to prevent incorrect assumptions.
  • Use Case: Onboard an AI to fix a failing authentication test by loading CLAUDE.md rules, the authentication spec excerpt, the related source and test files, and the failing test output to reproduce and resolve the issue.

Quick Start

Start a new coding session by loading the project's rules file, the relevant spec section, and only the source and test files needed for the 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 reduce AI agent hallucinations during coding sessions?

To reduce AI agent hallucinations, curate context hierarchically by loading project rules, specifications, source files, and error outputs in order of relevance so the agent receives focused, accurate information.

What is hierarchical context loading for AI-assisted development?

Hierarchical context loading is a strategy that orders context ingestion by persistence and relevance—starting with rules files, then specs, source files, errors, and conversation history—to keep agents focused and produce reproducible behavior.

How do I set up a persistent rules file for consistent agent behavior?

Set up a persistent rules file by defining project commands, conventions, and boundaries in a file like CLAUDE.md that is always loaded at the start of a coding session to enforce consistent agent behavior.

Why does my AI agent output quality decline during long conversations?

AI agent output quality declines in long conversations due to context confusion and bloated history. Manage this by surfacing ambiguities, summarizing long sessions, and compacting conversation history to prevent incorrect assumptions.

Can I use selective context packing strategies for task switches?

Yes, you can use selective context packing strategies during task switches to load only the relevant spec sections, source files, and test outputs needed for the new task, preventing wasted iterations and maintaining accuracy.

What is the best way to onboard an AI agent to fix a failing test?

The best way to onboard an AI agent to fix a failing test is to load the project rules, the relevant specification excerpt, the related source and test files, and the failing test output to reproduce and resolve the issue accurately.