Install
openclaw skills install context-driven-developmentTreat project context as a managed artifact alongside code. Use structured context documents (product.md, tech-stack.md, workflow.md) to enable consistent AI interactions and team alignment. Essential for projects using AI-assisted development.
openclaw skills install context-driven-developmentTreat project context as a first-class artifact managed alongside code. Instead of relying on ad-hoc prompts or scattered documentation, establish a persistent, structured foundation that informs all AI interactions.
npx clawhub@latest install context-driven-development
Creates and maintains a set of context documents that:
Use for:
Skip for:
Keywords: context, project setup, documentation, AI alignment, team workflow, product vision, tech stack
Context precedes code.
Living documentation.
Single source of truth.
AI alignment.
Context → Spec & Plan → Implement
Purpose: Captures product vision, goals, target users, and business context.
Contents:
Update when:
Purpose: Documents technology choices, dependencies, and architectural decisions.
Contents:
Update when:
Purpose: Establishes development practices, quality gates, and team workflows.
Contents:
Update when:
Purpose: Registry of all work units with status and metadata.
Contents:
Update when:
context/
├── product.md # Product vision and goals
├── tech-stack.md # Technology choices
├── workflow.md # Development practices
├── tracks.md # Work unit registry
└── styleguides/ # Language-specific conventions
├── python.md
├── typescript.md
└── ...
For new projects, create all artifacts from scratch:
Create context/product.md:
Create context/tech-stack.md:
Create context/workflow.md:
Create context/tracks.md:
For existing codebases, extract context from what exists:
Analyze the codebase:
Create context/tech-stack.md:
Create context/product.md:
Create context/workflow.md:
Changes in one artifact should reflect in related documents:
Before adding any new dependency:
Before starting any work:
Before starting implementation, validate:
Product Context:
Technical Context:
Workflow Context:
| Anti-Pattern | Problem | Fix |
|---|---|---|
| Stale Context | Documents become outdated and misleading | Update context as part of each track's completion |
| Context Sprawl | Information scattered across multiple locations | Use defined artifact structure; resist new document types |
| Implicit Context | Relying on knowledge not captured in artifacts | If referenced repeatedly, add to appropriate artifact |
| Over-Specification | Context so detailed it's impossible to maintain | Keep focused on decisions affecting AI behavior and team alignment |
Team Alignment:
AI Consistency:
Institutional Memory: