← 返回 Skills 市场
wpank

Context Driven Development

作者 wpank · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
1734
总下载
0
收藏
15
当前安装
1
版本数
在 OpenClaw 中安装
/install 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.
使用说明 (SKILL.md)

Context-Driven Development

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.

Installation

OpenClaw / Moltbot / Clawbot

npx clawhub@latest install context-driven-development

WHAT This Skill Does

Creates and maintains a set of context documents that:

  • Define what you're building and why (product.md)
  • Specify technology choices and constraints (tech-stack.md)
  • Establish how the team works (workflow.md)
  • Track what's happening (tracks.md)

WHEN to Use

Use for:

  • Setting up new projects with AI-assisted development
  • Onboarding team members to existing codebases
  • Ensuring consistent AI behavior across sessions
  • Documenting decisions that affect code generation
  • Managing projects with multiple contributors or AI assistants

Skip for:

  • Solo experiments or throwaway prototypes
  • Single-file scripts
  • Projects without AI assistance

Keywords: context, project setup, documentation, AI alignment, team workflow, product vision, tech stack

Core Philosophy

Context precedes code.
Living documentation.
Single source of truth.
AI alignment.
  1. Context precedes code — Define what you're building and how before implementation
  2. Living documentation — Context artifacts evolve with the project
  3. Single source of truth — One canonical location for each type of information
  4. AI alignment — Consistent context produces consistent AI behavior

The Workflow

Context → Spec & Plan → Implement
  1. Context Phase: Establish or verify project context artifacts exist and are current
  2. Specification Phase: Define requirements and acceptance criteria for work units
  3. Planning Phase: Break specifications into phased, actionable tasks
  4. Implementation Phase: Execute tasks following established workflow patterns

The Context Documents

product.md — WHAT and WHY

Purpose: Captures product vision, goals, target users, and business context.

Contents:

  • Product name and one-line description
  • Problem statement and solution approach
  • Target user personas
  • Core features and capabilities
  • Success metrics and KPIs
  • Product roadmap (high-level)

Update when:

  • Product vision or goals change
  • New major features are planned
  • Target audience shifts

tech-stack.md — WITH WHAT

Purpose: Documents technology choices, dependencies, and architectural decisions.

Contents:

  • Primary languages and frameworks
  • Key dependencies with versions
  • Infrastructure and deployment targets
  • Development tools and environment
  • Testing frameworks
  • Code quality tools

Update when:

  • Adding new dependencies
  • Upgrading major versions
  • Changing infrastructure
  • Adopting new tools or patterns

workflow.md — HOW to Work

Purpose: Establishes development practices, quality gates, and team workflows.

Contents:

  • Development methodology (TDD, trunk-based, etc.)
  • Git workflow and commit conventions
  • Code review requirements
  • Testing requirements and coverage targets
  • Quality assurance gates
  • Deployment procedures

Update when:

  • Team practices evolve
  • Quality standards change
  • New workflow patterns are adopted

tracks.md — WHAT'S HAPPENING

Purpose: Registry of all work units with status and metadata.

Contents:

  • Active tracks with current status
  • Completed tracks with completion dates
  • Track metadata (type, priority, assignee)
  • Links to individual track specs

Update when:

  • New work starts
  • Work status changes
  • Work completes

Directory Structure

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
    └── ...

Setup: New Project (Greenfield)

For new projects, create all artifacts from scratch:

  1. Create context/product.md:

    • Define the problem you're solving
    • Describe target users
    • List core features for v1
    • Define success metrics
  2. Create context/tech-stack.md:

    • Choose languages and frameworks
    • Document key dependencies with versions
    • Specify infrastructure targets
    • List development tools
  3. Create context/workflow.md:

    • Define branching strategy
    • Set commit conventions
    • Establish testing requirements
    • Document deployment process
  4. Create context/tracks.md:

    • Start with empty registry
    • Add work units as they're created

Setup: Existing Project (Brownfield)

For existing codebases, extract context from what exists:

  1. Analyze the codebase:

    • Read package.json, requirements.txt, go.mod, etc.
    • Look at existing README and docs
    • Check git history for patterns
  2. Create context/tech-stack.md:

    • Document discovered dependencies
    • Note infrastructure from configs (Docker, CI, etc.)
  3. Create context/product.md:

    • Infer product purpose from code
    • Document current feature set
    • Note any README content
  4. Create context/workflow.md:

    • Document existing practices
    • Note any established patterns

Maintenance Principles

Keep Artifacts Synchronized

Changes in one artifact should reflect in related documents:

  • New feature in product.md → Update tech-stack.md if new dependencies needed
  • Completed track → Update product.md to reflect new capabilities
  • Workflow change → Update all affected track plans

Update tech-stack.md When Adding Dependencies

Before adding any new dependency:

  1. Check if existing dependencies solve the need
  2. Document the rationale for new dependencies
  3. Add version constraints
  4. Note any configuration requirements

Verify Context Before Implementation

Before starting any work:

  1. Read all context artifacts
  2. Flag any outdated information
  3. Propose updates before proceeding
  4. Confirm context accuracy

Validation Checklist

Before starting implementation, validate:

Product Context:

  • product.md reflects current vision
  • Target users are accurately described
  • Feature list is up to date

Technical Context:

  • tech-stack.md lists all current dependencies
  • Version numbers are accurate
  • Infrastructure targets are correct

Workflow Context:

  • workflow.md describes current practices
  • Quality gates are defined
  • Commit conventions are documented

Anti-Patterns

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

Session Continuity

Starting a New Session

  1. Read context/product.md to orient yourself
  2. Check context/tracks.md for active work
  3. Read relevant track specs for current task
  4. Verify context artifacts are current

Ending a Session

  1. Update track status with current progress
  2. Note any blockers or decisions made
  3. Commit in-progress work with clear status
  4. Update tracks.md if status changed

Benefits

Team Alignment:

  • New team members onboard faster with explicit context
  • Consistent terminology across the team
  • Shared understanding of product goals

AI Consistency:

  • AI assistants produce aligned outputs across sessions
  • Reduced need to re-explain context
  • Predictable behavior based on documented standards

Institutional Memory:

  • Decisions and rationale are preserved
  • Context survives team changes
  • Historical context informs future decisions

NEVER Do

  1. NEVER start implementation without reading context — context precedes code
  2. NEVER add dependencies without updating tech-stack.md — keep the source of truth current
  3. NEVER let context documents get stale — update them as part of completing work
  4. NEVER scatter context across ad-hoc documents — use the defined structure
  5. NEVER assume AI remembers previous sessions — context must be in artifacts
  6. NEVER skip context for "quick" changes — small changes compound into drift
安全使用建议
This skill is a documentation/workflow template and appears internally consistent. Before installing: (1) preview the SKILL.md and template files (they're included) to confirm you like the formats; (2) be aware the agent will read repository files (package manifests, README, git history) to infer context — grant it only to repos you trust; (3) if you plan to run any installation commands from the README (e.g., npx copy commands), inspect those commands first — the skill metadata itself does not auto-download or run external code. If you need stronger guarantees, install locally and inspect templates before enabling autonomous invocation.
功能分析
Type: OpenClaw Skill Name: context-driven-development Version: 1.0.0 The OpenClaw AgentSkills skill bundle 'context-driven-development' is designed to help AI agents and teams manage project context through structured markdown documents. The `SKILL.md` and `README.md` files contain instructions for the AI agent to create and maintain these context documents, including reading existing project files (e.g., `package.json`, `README`, `git history`) to infer context. This file access is explicitly part of the skill's stated purpose for 'brownfield' project setup. The `templates/` directory contains benign markdown templates. There is no evidence of malicious intent, such as data exfiltration, unauthorized command execution, persistence mechanisms, or prompt injection designed to subvert the agent for harmful activities beyond its stated purpose of context management.
能力评估
Purpose & Capability
Name/description match the actual contents: templates and prose to create product.md, tech-stack.md, workflow.md, and tracks.md. There are no unrelated binaries, credentials, or config paths requested.
Instruction Scope
SKILL.md instructs the agent to read repository metadata (package.json, requirements.txt, go.mod, README, git history) and to create/maintain context files — these actions fit the stated purpose of extracting and managing project context. No instructions reference external endpoints or ask the agent to collect unrelated secrets or system-wide data.
Install Mechanism
This is an instruction-only skill with no install spec and no code files to execute. README suggests manual copy and an npx-based install command, but there is no automated download/extract step in the skill metadata itself.
Credentials
No environment variables, credentials, or config paths are declared or required. The documents' guidance to inspect project files is proportional to the stated goal of building project context.
Persistence & Privilege
always:false and model invocation is default; the skill does not request persistent system-wide privileges or modification of other skills' configurations.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install context-driven-development
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /context-driven-development 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Version 2.0.0 summary: Major update introducing structured context management as a core project artifact for AI-assisted development. - Adds a comprehensive methodology for treating context documents (product.md, tech-stack.md, workflow.md, tracks.md) as first-class project artifacts. - Provides clear setup instructions for both new (greenfield) and existing (brownfield) projects. - Defines maintenance principles for keeping context artifacts synchronized and up-to-date. - Introduces validation checklists and anti-patterns to ensure consistent, high-quality project documentation. - Establishes a recommended directory structure and workflows to maximize AI alignment and team onboarding.
元数据
Slug context-driven-development
版本 1.0.0
许可证
累计安装 17
当前安装数 15
历史版本数 1
常见问题

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. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1734 次。

如何安装 Context Driven Development?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install context-driven-development」即可一键安装,无需额外配置。

Context Driven Development 是免费的吗?

是的,Context Driven Development 完全免费(开源免费),可自由下载、安装和使用。

Context Driven Development 支持哪些平台?

Context Driven Development 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Context Driven Development?

由 wpank(@wpank)开发并维护,当前版本 v1.0.0。

💬 留言讨论