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

@su-record/vibe

v0.3.0

Published

Vibe - Claude Code exclusive SPEC-driven AI coding framework

Downloads

802

Readme

Vibe

SPEC-driven AI coding framework with integrated MCP tooling

Transform natural language requirements into production-ready code through structured specification, planning, and task decomposition.

npm version License: MIT Smithery Badge MCP Tools


Features

  • Claude Code Optimized: Built specifically for Claude Code with native slash commands and MCP integration
  • SPEC-driven Development: Structured Q&A process using EARS (Easy Approach to Requirements Syntax)
  • BDD + Contract Testing: AI-optimized testing with Gherkin features and API contract validation (🚧 v0.2.0)
  • Automated Planning: Generate technical implementation plans with architecture, cost analysis, and timeline
  • Task Decomposition: Break down features into phase-based, dependency-aware tasks
  • Powered by @su-record/hi-ai: 36 MCP tools combining skills and hi-ai for code analysis, quality validation, and insights
  • Multi-language Support: English and Korean interface
  • AI Agent System: 7 specialized agents for different tech stacks

Installation

npm install -g @su-record/vibe

This installs:

  • Vibe CLI (for initialization only)
  • @su-record/hi-ai MCP server (36 development tools)
  • Agents, Skills, Templates for Claude Code

⚠️ Important: Vibe is a Claude Code-exclusive framework. Terminal commands are limited to init only. All development commands are available as slash commands within Claude Code.


Quick Start

1. Initialize Project (Terminal)

# Option 1: Initialize in existing project
vibe init

# Option 2: Create new project
vibe init my-new-project
cd my-new-project

This will:

  • Register MCP server for the project directory
  • Create .vibe/ folder structure
  • Install agents, skills, and templates

2. Use Slash Commands (Claude Code)

Open Claude Code in your project directory and use slash commands:

/vibe.spec "push notification settings"
/vibe.plan "push notification settings"
/vibe.tasks "push notification settings"
/vibe.run "Task 1-1"
/vibe.verify "push notification settings"

Command Reference

Terminal Commands (Initialization Only)

| Command | Description | Example | |---------|-------------|---------| | vibe init | Initialize Vibe in current project | vibe init | | vibe init <name> | Create new project with Vibe | vibe init my-app | | vibe help | Show help message | vibe help |

Claude Code Slash Commands (Development)

Core Workflow

| Command | Description | Example | |---------|-------------|---------| | /vibe.spec <name> | Create SPEC through natural conversation (auto-detects project type, suggests tech stack & design) | /vibe.spec "user authentication" | | /vibe.plan <name> | Generate technical implementation plan | /vibe.plan "user authentication" | | /vibe.tasks <name> | Break down into executable tasks | /vibe.tasks "user authentication" | | /vibe.run <task> | Execute specific task with auto-generated guide | /vibe.run "Task 1-1" | | /vibe.verify <name> | Verify implementation against SPEC | /vibe.verify "user authentication" |

Analysis & Tools

| Command | Description | Example | |---------|-------------|---------| | /vibe.analyze | Comprehensive project analysis | /vibe.analyze | | /vibe.reason 🆕 | Apply 9-step reasoning framework to complex problems | /vibe.reason "debug issue" | | /vibe.ui <description> | Generate ASCII UI mockup | /vibe.ui "login form" | | /vibe.diagram --er | Generate diagrams (architecture, ERD, flow) | /vibe.diagram --er |


MCP Integration

Vibe includes 36 MCP tools across multiple categories (2 new tools added in v1.4.0):

Code Analysis

  • analyze_complexity - Cyclomatic and cognitive complexity metrics
  • validate_code_quality - Code quality scoring and recommendations
  • check_coupling_cohesion - Module coupling and cohesion analysis

Project Intelligence

  • find_symbol - Locate function/class definitions
  • find_references - Find all usages of symbols

Thinking & Planning

  • create_thinking_chain - Generate step-by-step reasoning
  • step_by_step_analysis - Detailed problem breakdown
  • analyze_problem - Structured problem analysis
  • apply_reasoning_framework 🆕 - 9-step reasoning framework for complex problems

Quality & Standards

  • apply_quality_rules - Apply coding standards
  • suggest_improvements - Code improvement recommendations
  • enhance_prompt_gemini 🆕 - Enhance prompts using Gemini API strategies (Few-Shot, Output Format, etc.)

UI & Design

  • preview_ui_ascii - Generate ASCII UI mockups

Memory & Context

  • save_memory - Store project context
  • recall_memory - Retrieve stored information
  • auto_save_context - Automatic context checkpointing

MCP Server Registration:

The MCP server is automatically registered when you run vibe init in your project. This registers the server locally for your project only, not globally.

Verify MCP server:

# Run this in your project directory
claude mcp list
# Expected output:
# vibe: node /path/to/@su-record/vibe/node_modules/@su-record/hi-ai/dist/index.js - ✓ Connected

Important: Each project that uses Vibe must run vibe init to register the MCP server for that specific project.


Configuration

.vibe/config.json

{
  "language": "ko",
  "agents": {
    "default": "backend-python-expert"
  },
  "mcp": {
    "enabled": true,
    "servers": ["vibe"]
  }
}

CLAUDE.md (Recommended)

Place this file in your project root to enable automatic tech stack detection:

# CLAUDE.md

## Tech Stack

### Backend
- Framework: FastAPI 0.104+
- Database: PostgreSQL 17
- Cache: Redis 7.2

### Frontend
- Framework: Flutter 3.24+
- State Management: Provider

Specification Format

Vibe uses EARS (Easy Approach to Requirements Syntax):

# SPEC: Feature Name

## Metadata
- Created: 2025-01-17
- Priority: HIGH
- Language: en

## Requirements

### REQ-001: Requirement Title
**WHEN** user performs action X
**THEN** system SHALL perform Y

#### Acceptance Criteria
- [ ] Criterion 1
- [ ] Criterion 2
- [ ] Criterion 3

### REQ-002: Another Requirement
**WHERE** condition A exists
**AND** condition B is true
**THEN** system SHALL perform Z

AI Agents

| Agent | Specialization | Tech Stack | |-------|----------------|------------| | Specification Agent | Requirements gathering (Gemini prompting strategies) | Language-agnostic | | Planning Agent | Technical architecture and cost analysis | Cross-stack | | Task Agent | Phase-based task decomposition | Cross-stack | | Reasoning Agent 🆕 | 9-step reasoning framework for complex problems | Cross-stack | | Backend Python Expert | Python/FastAPI implementation | Python 3.11+, FastAPI, SQLAlchemy | | Frontend Flutter Expert | Flutter/Dart implementation | Flutter 3.24+, Dart 3.5+ | | Frontend React Expert | React/Next.js implementation | React 18+, Next.js 14+ | | Database PostgreSQL Expert | PostgreSQL/PostGIS design | PostgreSQL 17, PostGIS 3.4+ | | Quality Reviewer | Code review and quality validation | Multi-language |


Workflow Example

1. Initialize Project (Terminal)

$ vibe init
🔧 MCP 서버 확인 중...
✅ vibe MCP 서버 등록 완료
✅ vibe 초기화 완료!

생성된 구조:
  .vibe/
  ├── config.json
  ├── constitution.md
  ├── specs/          # SPEC documents (EARS format)
  ├── features/       # BDD Feature files (Gherkin)
  ├── plans/          # Technical plans
  └── tasks/          # Task breakdowns

2. Create Specification (Claude Code)

Note: Examples shown in English. Claude responds in the language set in .vibe/config.json (default: Korean).

User: /vibe.spec "push notification settings"

Claude (Specification Agent):
[Analyzing source code]
- Backend: Python (FastAPI)
- Frontend: Flutter 3.24+
- Database: PostgreSQL 17

Existing project detected! Is this tech stack correct?

User: Yes

Claude:
What types of notifications do you want to manage?

User: Comments, likes, follows, announcements, events, marketing

Claude:
Do you need just ON/OFF toggle for each category, or detailed settings too?

1. ON/OFF only
2. Detailed settings (time, frequency, etc.)
3. Both

Or you can describe directly.

User: 1

Claude:
Which push notification service would you like to use?

1. Firebase Cloud Messaging (FCM) - Free, easy Flutter integration
2. OneSignal - Multi-platform, dashboard
3. Custom implementation

Or you can describe directly.

User: We're already using FCM

Claude:
Great! Which design reference would you like to follow?

1. iOS Settings > Notifications (toggle + grouping)
2. Slack notification settings (category-based)
3. Twitter notification settings (simple list)

Or you can describe directly.

User: 1

...

✅ SPEC document created!
📄 .vibe/specs/push-notification-settings.md
📄 .vibe/features/push-notification-settings.feature (BDD scenarios)

3. Generate Plan (Claude Code)

User: /vibe.plan "push notification settings"

Claude (Planning Agent):
SPEC을 분석하여 기술 계획을 작성하겠습니다.

✅ PLAN 문서 작성 완료!
📄 .vibe/plans/push-notification-settings.md

Summary:
- 3 Phases: Backend → Frontend → FCM Integration
- Timeline: 28 hours (3.5 days)
- Cost: +$0.50/month (Redis + FCM)
- Testing: BDD (pytest-bdd) + Contract Testing (Pact)

4. Decompose Tasks (Claude Code)

User: /vibe.tasks "push notification settings"

Claude (Task Agent):
PLAN을 기반으로 Task를 생성하겠습니다.

✅ TASKS 문서 작성 완료!
📄 .vibe/tasks/push-notification-settings.md

Task Breakdown:
- Total: 23 tasks
- Phase 1 (Backend): 9 tasks (includes Contract Provider)
- Phase 2 (Frontend): 9 tasks (includes Contract Consumer)
- Phase 3 (Integration): 5 tasks (includes BDD Steps + Contract Verification)

5. Execute Tasks (Claude Code)

User: /vibe.run "Task 1-1"

Claude:
Task 1-1 - Database Migration을 실행하겠습니다.

1. 구현 가이드 생성 (.vibe/guides/task-1-1.md)
2. Migration 파일 생성
3. Acceptance Criteria 검증
4. Task 상태 업데이트

✅ Task 1-1 completed

6. Code Analysis (Claude Code)

User: /vibe.analyze

Claude:
프로젝트 전체를 분석하겠습니다.

📊 Code Quality Report

Overall Score: 85/100 (B+)

Findings:
- High complexity: src/service.py (CC: 15)
- Low cohesion: src/utils.py (0.3)
- Strong coupling: Controller ↔ Service (0.8)

Recommendations:
1. Refactor src/service.py into 3 modules
2. Apply Dependency Injection pattern
3. Extract unrelated utilities from src/utils.py

7. UI Mockup (Claude Code)

User: /vibe.ui "login form"

Claude:
┌─────────────────────────────────────────┐
│            Welcome Back                  │
├─────────────────────────────────────────┤
│                                          │
│         ┌─────────────────────┐          │
│  Email: │                     │          │
│         └─────────────────────┘          │
│                                          │
│         ┌─────────────────────┐          │
│  Pass:  │ ••••••••••••        │          │
│         └─────────────────────┘          │
│                                          │
│         ┌─────────────────────┐          │
│         │      Sign In        │          │
│         └─────────────────────┘          │
│                                          │
└─────────────────────────────────────────┘

Required Components:
- EmailInput.tsx, PasswordInput.tsx, Button.tsx

BDD & Contract Testing Workflow

Vibe integrates BDD (Behavior-Driven Development) and Contract Testing throughout the development lifecycle:

Workflow Overview

/vibe.spec "feature"
  ↓ Generates SPEC (EARS) + Feature file (Gherkin)

/vibe.plan "feature"
  ↓ Analyzes Feature file, selects BDD tools (pytest-bdd, Pact, etc.)

/vibe.tasks "feature"
  ↓ Creates Contract Testing tasks (Provider, Consumer, Verification)

/vibe.run "Task X-Y"
  ↓ Implements test-first (Contract → Step Definitions → Code)

/vibe.verify "feature"
  ↓ Validates BDD Scenarios + Contract Tests

Generated Files

  • .vibe/features/{feature}.feature - Gherkin scenarios (Given-When-Then)
  • tests/steps/ - BDD step definitions
  • pacts/ or contracts/ - Contract test files (Provider/Consumer)

Testing Tools by Language

| Language | BDD Tool | Contract Testing | |----------|----------|------------------| | Python | pytest-bdd, behave | Pact Python | | JavaScript/TS | cucumber, jest-cucumber | Pact JS | | Java/Kotlin | Cucumber JVM | Pact JVM, Spring Cloud Contract | | Dart/Flutter | gherkin, flutter_gherkin | Pact Dart |

Example Feature File

Feature: Push Notification Settings

  Scenario: User enables comment notifications
    Given the user is logged in
    And the notification settings page is displayed
    When the user toggles "Comments" notification to ON
    Then the setting should be saved successfully
    And the API should return status 200
    And the response time should be less than 500ms

Best Practices

1. Document Your Tech Stack

Create CLAUDE.md in your project root to enable automatic tech stack detection and prevent technology drift.

2. Execute Phase by Phase

Execute and verify each phase independently in Claude Code:

/vibe.run --phase 1  # Backend development
# Verify, test, commit

/vibe.run --phase 2  # Frontend development
# Verify, test, commit

/vibe.run --phase 3  # Integration
# Verify, test, commit

3. Validate Acceptance Criteria

Each task includes acceptance criteria. Ensure all criteria pass before marking tasks complete.

4. Leverage MCP Tools

Use analysis commands in Claude Code before refactoring:

/vibe.analyze --code      # Identify complexity hotspots
/vibe.analyze --deps      # Check for outdated/vulnerable packages
/vibe.analyze --arch      # Detect circular dependencies

Requirements

  • Node.js: 18.0.0 or higher
  • npm: 7.0.0 or higher
  • Claude Code: Required for slash commands

Contributing

Contributions are welcome! Please read our contributing guidelines before submitting pull requests.


License

MIT License - see LICENSE file for details


Links


Support

For questions and support:

  • Open an issue on GitHub
  • Check the documentation wiki
  • Review existing discussions

Built with ❤️ by Su & Claude