Add README for WISC framework use case
Explains the four WISC strategies (Write, Isolate, Select, Compress), the 3-tier progressive disclosure context system, and how each slash command maps to a strategy.
Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802032778号
Context Engineering Template
A comprehensive template for getting started with Context Engineering - the discipline of engineering context for AI coding assistants so they have the information necessary to get the job done end to end.
🚀 Quick Start
📚 Table of Contents
What is Context Engineering?
Context Engineering represents a paradigm shift from traditional prompt engineering:
Prompt Engineering vs Context Engineering
Prompt Engineering:
Context Engineering:
Why Context Engineering Matters
Template Structure
This template doesn’t focus on RAG and tools with context engineering because I have a LOT more in store for that soon. ;)
Step-by-Step Guide
1. Set Up Global Rules (CLAUDE.md)
The
CLAUDE.mdfile contains project-wide rules that the AI assistant will follow in every conversation. The template includes:You can use the provided template as-is or customize it for your project.
2. Create Your Initial Feature Request
Edit
INITIAL.mdto describe what you want to build:See
INITIAL_EXAMPLE.mdfor a complete example.3. Generate the PRP
PRPs (Product Requirements Prompts) are comprehensive implementation blueprints that include:
They are similar to PRDs (Product Requirements Documents) but are crafted more specifically to instruct an AI coding assistant.
Run in Claude Code:
Note: The slash commands are custom commands defined in
.claude/commands/. You can view their implementation:.claude/commands/generate-prp.md- See how it researches and creates PRPs.claude/commands/execute-prp.md- See how it implements features from PRPsThe
$ARGUMENTSvariable in these commands receives whatever you pass after the command name (e.g.,INITIAL.mdorPRPs/your-feature.md).This command will:
PRPs/your-feature-name.md4. Execute the PRP
Once generated, execute the PRP to implement your feature:
The AI coding assistant will:
Writing Effective INITIAL.md Files
Key Sections Explained
FEATURE: Be specific and comprehensive
EXAMPLES: Leverage the examples/ folder
examples/DOCUMENTATION: Include all relevant resources
OTHER CONSIDERATIONS: Capture important details
The PRP Workflow
How /generate-prp Works
The command follows this process:
Research Phase
Documentation Gathering
Blueprint Creation
Quality Check
How /execute-prp Works
See
PRPs/EXAMPLE_multi_agent_prp.mdfor a complete example of what gets generated.Using Examples Effectively
The
examples/folder is critical for success. AI coding assistants perform much better when they can see patterns to follow.What to Include in Examples
Code Structure Patterns
Testing Patterns
Integration Patterns
CLI Patterns
Example Structure
Best Practices
1. Be Explicit in INITIAL.md
2. Provide Comprehensive Examples
3. Use Validation Gates
4. Leverage Documentation
5. Customize CLAUDE.md
Resources