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

Strengths & Limitations

Strengths

  • High community interest (13.8k stars)
  • Permissive open-source license (MIT)
  • Responsive to issues, low backlog

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

Claude Code Best Practice

65.6k · HTML
Active A+

From vibe coding to agentic engineering — a practice guide helping developers master Claude Code best practices and advanced techniques.

agentcodingclaude +2
  • · Subagents best practices — guide to creating, configuring, and orchestrating Claude Code sub-agents
  • · Commands & Skills tutorials — comprehensive coverage of slash commands and skills writing patterns
  • · Hooks integration guide — automated workflow hooks configuration and hands-on examples

AutoCodeRover

3.1k · Python
Stale C

AutoCodeRover is a project structure-aware autonomous software engineer agent that achieves automated program repair and issue resolution by understanding the overall codebase architecture.

codingpythonagent +2
  • · Fully autonomous bug fixing and feature addition on GitHub issues using LLM-powered program analysis
  • · Program Structure Aware code search via abstract syntax tree analysis for precise context retrieval
  • · Statistical fault localization using test cases to achieve higher repair rates when tests are available

DeepCode

16.5k · Python
Active A+

DeepCode is an open agentic coding platform supporting Paper2Code, Text2Web, and Text2Backend, leveraging agent technology for automated software development workflows.

codingpythonllm +2
  • · Multi-agent coding system with separate Planning, Implementation, and Review agents for structured development
  • · Paper2Code capability to convert research papers into working code implementations
  • · Text2Web and Text2Backend for generating web frontends and backend services from natural language descriptions