Treat 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.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install context-driven-development或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install context-driven-development⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/context-driven-development/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: context-driven-development model: reasoning version: 2.0.0 description: > Treat 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. tags: [context, documentation, ai-alignment, team-workflow, methodology] ---
Treat 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:
context/product.md:- Define the problem you're solving - Describe target users - List core features for v1 - Define success metrics
context/tech-stack.md:- Choose languages and frameworks - Document key dependencies with versions - Specify infrastructure targets - List development tools
context/workflow.md:- Define branching strategy - Set commit conventions - Establish testing requirements - Document deployment process
context/tracks.md:- Start with empty registry - Add work units as they're created
For existing codebases, extract context from what exists:
- Read package.json, requirements.txt, go.mod, etc. - Look at existing README and docs - Check git history for patterns
context/tech-stack.md:- Document discovered dependencies - Note infrastructure from configs (Docker, CI, etc.)
context/product.md:- Infer product purpose from code - Document current feature set - Note any README content
context/workflow.md:- Document existing practices - Note any established patterns
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 |
...
安装 Context Driven Development 后,可以对 AI 说这些话来触发它
Help me get started with Context Driven Development
Explains what Context Driven Development does, walks through the setup, and runs a quick demo based on your current project
Use Context Driven Development to treat project context as a managed artifact alongside code
Invokes Context Driven Development with the right parameters and returns the result directly in the conversation
What can I do with Context Driven Development in my product manager workflow?
Lists the top use cases for Context Driven Development, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/context-driven-development/ 目录(个人级,所有项目可用),或 .claude/skills/context-driven-development/(项目级)。重启 AI 客户端后,用 /context-driven-development 主动调用,或让 AI 根据上下文自动发现并使用。
Context Driven Development 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Context Driven Development 可免费安装使用。请查阅仓库了解许可证信息。
Treat 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.
Automate my product manager tasks using Context Driven Development
Identifies repetitive steps in your workflow and sets up Context Driven Development to handle them automatically
Context Driven Development 属于「Product Manager」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。