npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@emb715/cdd

v0.1.5

Published

Context-Driven Development methodology

Readme

CDD Methodology

Context-Driven Development (CDD) methodology template with Claude commands

Overview

This package provides a shareable template for initializing Context-Driven Development (CDD) workflow in your projects. It includes:

  • CDD folder structure - Example work items and metadata organization
  • Claude commands - Slash commands for AI-assisted development workflow

Looking for the why behind these artefacts? See the methodology overview in What is CDD and the full set of influences in Inspiration & Resources.

What's Included

📁 CDD Folder Structure

The cdd/ folder contains:

  • .meta/ - Methodology metadata and templates
  • Work item folders (e.g., 0001-phase-02-metrics-dashboard/)
  • Example of how to organize context-driven work

🤖 Claude Commands

The .claude/commands/ folder includes:

  • cdd:create-work.md/cdd:create-work - Create new work items
  • cdd:plan-work.md/cdd:plan-work - Generate implementation plans from decisions
  • cdd:save-session.md/cdd:save-session - Document session progress
  • cdd:complete-work.md/cdd:complete-work - Mark work items complete with summaries
  • cdd:list-work.md/cdd:list-work - List and filter work items

📊 Metrics System

The .meta/metrics/ folder provides automated productivity tracking:

Purpose: Quantify the impact of CDD on session efficiency and track evidence-based development metrics.

What's Tracked:

  • Context reacquisition time (minutes spent recreating context at session start)
  • Session duration (total work session length)
  • Task completion rate (completed vs. planned tasks)
  • Evidence items (artefacts attached per requirement)

How It Works:

  1. Session saves capture metrics - When you run /cdd:save-session, frontmatter in DECISIONS.md is automatically updated with session data
  2. Scripts aggregate data - Run node cdd/.meta/metrics/scripts/collect-metrics.js to generate summaries from all work items
  3. Dashboards consume summaries - The /cdd:list-work command.

Files:

  • metrics/README.md - Full methodology, data templates, and automation guide
  • metrics/AI_AUTOMATION_GUIDE.md - When AI should run metrics scripts
  • metrics/WORKFLOW_EXAMPLE.md - Step-by-step example of metrics capture
  • metrics/scripts/collect-metrics.js - Aggregates metrics from all work items
  • metrics/scripts/lib/frontmatter.js - Programmatic frontmatter management
  • metrics-summary.json - Auto-generated dashboard data (empty skeleton in template)

AI Automation: The AI assistant automatically runs metrics collection after each /cdd:save-session to keep dashboards up-to-date.

Evidence-Based Claims: CDD tracks real productivity data so efficiency claims stay grounded in measurement rather than assumptions. See metrics/README.md for current findings.

Usage

  1. Initialize your first work item:

    • Use /cdd:create-work or manually create folders following the pattern
    • Follow the CDD workflow documented in the main README
  2. Customize for your needs:

    • Adjust the .meta/ templates
    • Modify Claude commands as needed
    • Add project-specific workflows

With AI Assistants

When asking an AI to initialize CDD in your project, you can say:

Install the CDD methodology template using npx @cdd/installer

Or for manual installation:

Copy the CDD template from packages/cdd/ to set up
the workflow with cdd/ folder and .claude/commands/

Directory Structure

cdd/
├── cdd/                                # Work items and metadata
│   ├── .meta/                         # Methodology templates and system files
│   │   ├── metrics/                   # Metrics system
│   │   │   ├── README.md             # Full metrics methodology
│   │   │   ├── AI_AUTOMATION_GUIDE.md # When AI runs metrics scripts
│   │   │   ├── WORKFLOW_EXAMPLE.md    # Step-by-step metrics example
│   │   │   └── scripts/              # Automation scripts
│   │   │       ├── collect-metrics.js
│   │   │       ├── lib/frontmatter.js
│   │   │       └── README.md
│   │   ├── metrics-summary.json       # Auto-generated metrics dashboard
│   │   └── templates/                 # Document templates
│   └── NNNN-work-item/                # Example work items
└── .claude/                           # Claude commands
    └── commands/                      # Slash commands
        ├── cdd:create-work.md
        ├── cdd:plan-work.md
        ├── cdd:save-session.md
        ├── cdd:complete-work.md
        └── cdd:list-work.md

🔌 Optional Extensions

CDD can be enhanced with optional extensions:

CDD-RAG: Searchable Knowledge Base

Transform your CDD workspace into a searchable knowledge base with semantic search.

Features:

  • 🔍 Semantic search across all work items
  • 🤖 AI-powered answers from your documentation (optional)
  • 📚 Discover similar solutions from past work
  • 💰 Cost-effective (~$0.0006/query with AI)
  • 🔒 Privacy-first (local indexing, optional cloud AI)

Install:

npx @emb715/cdd add rag

Learn more: packages/cdd-rag/README.md


License

MIT