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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@abdullah-alnahas/claude-sdd

v0.8.0

Published

Spec-Driven Development discipline system for Claude Code — behavioral guardrails, spec-first development, architecture awareness, TDD enforcement, iterative execution loops

Readme

SDD — Spec-Driven Development Plugin

A Claude Code plugin that enforces disciplined software development: behavioral guardrails, spec-first development, architecture awareness, TDD enforcement, and iterative execution loops.

Installation

# From npm (recommended)
claude plugins add @abdullah-alnahas/claude-sdd

# From GitHub
git clone https://github.com/abdullah-alnahas/claude-sdd.git
claude plugins add ./claude-sdd

# For local development
claude plugins add /path/to/sdd

What It Does

Behavioral Guardrails

Defends against 12 known LLM failure modes (sycophantic agreement, premature abstraction, scope creep, etc.) through automatic hooks:

  • Pre-implementation checkpoint: Enumerates assumptions, flags ambiguity, surfaces alternatives, plans TDD approach
  • Scope guard: Detects unrelated file modifications during edits
  • Completion review: Verifies spec adherence, test coverage, complexity, dead code

Spec-First Development

Guides you from rough idea → formal specification through interactive questioning:

  1. Intent Discovery → app-description.md
  2. Behavioral Bounding → behavior-spec.md
  3. Technical Context → stack.md
  4. Architecture → architecture.md
  5. Prioritization → roadmap.md

Architecture Awareness

Integration patterns, anti-patterns, and ADR (Architecture Decision Record) guidance.

TDD Discipline

Red → Green → Refactor enforcement. Test traceability from behavior spec to test to code.

Iterative Execution

Disciplined delivery loops: implement with TDD → verify against spec → fix gaps → repeat. TDD is the inner discipline (how you write code), iterative execution is the outer cycle (how you deliver features).

Performance Optimization

Profile-first discipline for performance work. Defends against convenience bias (shallow, input-specific hacks), bottleneck mis-targeting, and correctness regressions during optimization.

Commands

| Command | Purpose | |---------|---------| | /sdd-guardrails | Show/toggle guardrail status | | /sdd-yolo | Disable all guardrails (auto-clears next session) | | /sdd-phase | Show/set development phase | | /sdd-mode | Switch context mode (dev/review/research) | | /sdd-review | Two-stage review — spec compliance then code quality | | /sdd-verify | Automated checks — build, types, lint, tests, security scans | | /sdd-orchestrate | Agent pipelines — feature, bugfix, refactor, security, or custom | | /sdd-adopt | Adopt an existing project into SDD | | /sdd-execute | Start iterative execution loop against a spec | | /sdd-autopilot | Full autonomous lifecycle: specify → design → implement → verify → review |

Agents

| Agent | Role | |-------|------| | critic | Adversarial reviewer — finds logical errors, spec drift, assumption issues | | simplifier | Complexity reducer — proposes simpler alternatives | | spec-compliance | Spec adherence checker — verifies traceability (spec → test → code) | | security-reviewer | Security analysis — OWASP Top 10, input validation, auth review | | performance-reviewer | Performance optimization reviewer — validates patches for bottleneck targeting, convenience bias, measured improvement | | planner | Implementation planner — reads specs/architecture and produces ordered steps |

Context Modes

SDD supports three context modes that adjust which guardrails are active:

| Mode | Focus | Pre-Implementation | Completion Review | Scope Guard | |------|-------|-------------------|-------------------|-------------| | dev (default) | Build correctly | Active | Active | Strict | | review | Verify and critique | Skipped | Active | Normal | | research | Explore freely | Skipped | Skipped | Relaxed |

Set mode with /sdd-mode <mode> or set a default in .sdd.yaml:

mode: dev  # dev | review | research

Configuration

Create .sdd.yaml in your project root:

verbosity: standard  # minimal | standard | verbose
enabled: true
mode: dev  # dev | review | research
compaction_threshold: 50  # tool invocations before suggesting /compact

guardrails:
  pre-implementation:
    enabled: true
    require-assumptions: true
    require-alternatives: 2
    require-clarification-check: true
  scope-guard:
    enabled: true
    warn-unrelated-files: true
    warn-dead-code: true
  completion-review:
    enabled: true
    max-function-lines: 50
    max-file-lines: 500
  pushback:
    enabled: true
    flag-overengineering: true
    flag-sycophancy: true

discipline:
  require-spec-before-code: false
  require-tests-before-merge: true
  require-adr-for-architecture: true

logging:
  enabled: false
  path: .guardrails-log.jsonl

whitelist:
  - "*.md"
  - "*.yaml"
  - "*.yml"

Self-Test

bash scripts/verify-hooks.sh
bash scripts/verify-skills.sh
bash scripts/verify-commands.sh

Development Phases

The recommended flow:

specify → design → implement → verify → review

Each phase activates relevant skills and agents. Set phase with /sdd-phase <name>.

Troubleshooting

Hooks not firing: Ensure the plugin is loaded (claude --plugin-dir ./sdd). Check hooks.json is valid JSON.

Skills not triggering: Skills activate based on keyword matching in your prompts. Use natural language that matches skill descriptions.

YOLO mode stuck: Delete .sdd-yolo from your project root, or run /sdd-guardrails enable.