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

micro-claude

v1.4.0

Published

A structured AI-driven development method that interrogates, plans, and implements features through task decomposition

Readme

Micro-Claude

A structured AI-driven development method for Claude Code that interrogates, plans, and implements features through task decomposition.

Philosophy

Micro-Claude transforms vague feature requests into well-structured implementation plans:

  1. Interrogate - Deep questioning to extract comprehensive requirements
  2. Explode - Break down plans into trackable tasks with line references
  3. Implement - Execute tasks while maintaining detailed notes

The model can loop and pick any task it sees fit based on context and dependencies.

Why Detailed Plans Matter

The quality of your implementation depends entirely on the quality of your plan. During /mc:interrogate:

  • Be thorough - Answer every question with specific details
  • Include examples - Show expected inputs, outputs, edge cases
  • Define data models precisely - Field names, types, constraints
  • Specify integrations - APIs, services, existing code patterns

A detailed plan means fewer mistakes, less back-and-forth, and better results.

Ralph Loop (Autonomous Implementation)

Micro-Claude includes ralph.sh - an autonomous implementation loop based on the Ralph Wiggum technique. Unlike /mc:implement which runs in a single session, Ralph runs each task in a fresh context window, avoiding the quality degradation that comes from context accumulation.

Why Ralph?

| /mc:implement | ralph.sh | |-----------------|------------| | Single context window | Fresh context per task | | Quality degrades over time | Stays in "smart zone" | | Interactive (requires approval) | Fully autonomous | | Good for small task sets | Great for 20+ tasks |

Usage

# List available tasks
./ralph.sh

# Run autonomous loop on a specific task
./ralph.sh my-feature

# Limit to 20 iterations
./ralph.sh my-feature 20

How It Works

┌─────────────────────────────────────────────────┐
│  ./ralph.sh my-feature                          │
└─────────────────────────────────────────────────┘
                    │
                    ▼
┌─────────────────────────────────────────────────┐
│  Check: Any pending tasks in prd.json?          │
│  ├─ No  → Exit with success                     │
│  └─ Yes → Continue                              │
└─────────────────────────────────────────────────┘
                    │
                    ▼
┌─────────────────────────────────────────────────┐
│  Run Claude with fresh context                  │
│  → Picks next pending task                      │
│  → Implements it                                │
│  → Updates notes.md and prd.json                │
│  → Exits                                        │
└─────────────────────────────────────────────────┘
                    │
                    ▼
┌─────────────────────────────────────────────────┐
│  Loop restarts → Fresh context for next task    │
└─────────────────────────────────────────────────┘

Requirements

  • jq - JSON processor (brew install jq or apt install jq)
  • claude CLI - (npm install -g @anthropic-ai/claude-code)

Installation

npx micro-claude

This installs the slash commands in your project's .claude/commands/ directory.

Commands

/mc:interrogate

Starts a deep interrogation session to create a comprehensive plan.

Flow:

  1. Asks for feature/task name
  2. Phases of questions: Core Identity, Functional Requirements, Technical Context, Edge Cases, Success Criteria
  3. Generates plan.md with all specifications

Output: .micro-claude/[task-name]/plan.md

/mc:mini-explode

Explodes the plan into high-level tasks (bigger chunks).

Output: .micro-claude/[task-name]/prd.json with ~5-15 tasks

/mc:explode

Explodes the plan into fine-grained atomic tasks.

Output: .micro-claude/[task-name]/prd.json with ~20-50 tasks

/mc:implement

Implements tasks in a loop while maintaining notes.

Flow:

  1. Reads prd.json and notes.md for context
  2. Picks or suggests next task
  3. Reads relevant section from plan.md (using from/to line numbers)
  4. Implements the task
  5. Updates notes.md with implementation details
  6. Marks task as done in prd.json
  7. Loops or exits

/mc:mutate

Extends, modifies, or fixes an existing plan and PRD through interactive dialogue.

Use when:

  • You forgot to include something in the original plan
  • Requirements changed and you need to update the spec
  • You discovered a mistake that needs correction
  • A section needs more detail or clarification

Flow:

  1. Loads existing plan.md, prd.json, and notes.md
  2. Shows current state summary
  3. Asks what you want to change (add/modify/remove/fix/clarify)
  4. Asks targeted follow-up questions based on change type
  5. Shows proposed changes with before/after comparison
  6. Applies changes to all artifacts
  7. Logs mutation in notes.md for traceability
  8. Loops until you're done making changes

File Structure

.micro-claude/
└── [task-name]/
    ├── plan.md     # Comprehensive specifications from interrogation
    ├── prd.json    # Task definitions with line references
    └── notes.md    # Implementation notes by task ID

prd.json Format

{
  "project": "feature-name",
  "document": "plan.md",
  "granularity": "full",
  "tasks": [
    {
      "id": 1,
      "title": "Create database schema",
      "description": "Add tables for the feature",
      "from": 45,
      "to": 62,
      "done": false
    }
  ]
}

notes.md Format

# Implementation Notes - Feature Name

## Task #1: Create database schema
**Status**: Completed
**Files**: db/schema.ts
**Notes**:
- Added stores table with JSONB content
- Used uuid for primary key

Workflow Example

# 1. Start interrogation
/mc:interrogate
# Answer all questions about your feature
# → Creates .micro-claude/my-feature/plan.md

# 2. Explode into tasks
/mc:explode
# → Creates .micro-claude/my-feature/prd.json

# 3. Implement (choose one)
./ralph.sh my-feature     # Autonomous (recommended for 20+ tasks)
/mc:implement             # Interactive (good for small task sets)

# 4. Forgot something? Mutate the plan
/mc:mutate
# → Add/modify/remove requirements interactively
# → Updates plan.md, prd.json, and notes.md

License

MIT