Context Engineering Intro

Stale
GitHub Python MIT

Description

An introductory guide to context engineering - the systematic approach to building high-quality context for AI coding assistants, centered on Claude Code but applicable to any AI coding tool.

Key Features

  • Comprehensive template for context engineering — the discipline of providing AI coding assistants with complete project context
  • PRP (Product Requirements Prompt) workflow: generate detailed implementation blueprints from feature requests
  • CLAUDE.md global rules system for project-aware AI coding with file size limits, testing patterns, and style conventions
  • Custom slash commands /generate-prp and /execute-prp for automated PRP generation and feature implementation
  • Structured examples/ folder for providing code patterns that dramatically improve AI coding assistant performance
  • INITIAL.md feature request template with structured sections for features, examples, documentation, and considerations

Use Cases

💡 Setting up structured AI coding workflows that reduce failures by addressing context gaps instead of prompt wording
💡 Generating comprehensive implementation plans for complex features with validation gates and test requirements
💡 Teaching teams the paradigm shift from prompt engineering to context engineering for better AI development outcomes
💡 Building reusable project templates that enable AI assistants to maintain consistency across codebases

Quick Start

Clone the template repository and edit CLAUDE.md with your project-specific guidelines. Add relevant code examples to the examples/ folder. Write your feature request in INITIAL.md describing functionality, examples, documentation, and considerations. In Claude Code, run '/generate-prp INITIAL.md' to create a comprehensive implementation blueprint. Execute with '/execute-prp PRPs/your-feature-name.md' to implement the feature.

Related Projects