JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 130
  • Score
    100M100P100Q89362F
  • License MIT

Framework-agnostic CLI for Claude Code project setup

Package Exports

  • mustard-claude
  • mustard-claude/dist/cli.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mustard-claude) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Mustard

Mustard

The perfect sauce for your Claude Code

Version Node License

Claude Code .NET React Python


What is Mustard?

Mustard generates a .claude/ folder with prompts, commands, and rules for Claude Code:

  • 8 specialized prompts for Task(general-purpose) delegation
  • Pipeline commands for features and bugfixes
  • Enforcement hooks (grepai, pipeline confirmation)
  • Stack detection and auto-generated CLAUDE.md

Installation

Global Installation

# Using npm
npm install -g mustard-claude

# Using pnpm
pnpm add -g mustard-claude

Run Without Installing

# Using npx
npx mustard-claude init

# Using pnpx
pnpx mustard-claude init

Quick Start

cd my-project
mustard init

The CLI will:

  1. Detect stacks (React, .NET, Python, etc.)
  2. Analyze code with Ollama (optional)
  3. Generate .claude/ structure

Commands

mustard init

mustard init [options]

Options:
  -f, --force      Overwrite existing .claude/
  -y, --yes        Skip confirmations
  --no-ollama      Skip LLM analysis
  --no-grepai      Skip semantic analysis
  -v, --verbose    Detailed output

mustard update

Updates core files while preserving customizations.

mustard update [options]

Options:
  -f, --force          Skip backup
  --include-claude-md  Also update CLAUDE.md
Updated Preserved
commands/mustard/*.md CLAUDE.md
hooks/*.js prompts/*.md
core/*.md context/*
scripts/*.js docs/*

mustard sync

Syncs prompts and context with current codebase state. Uses markers to preserve user customizations.

mustard sync [options]

Options:
  --prompts      Only sync prompts
  --context      Only sync context files
  --registry     Only sync entity registry
  --no-ollama    Skip LLM analysis
  --no-grepai    Skip semantic analysis
  -f, --force    Skip confirmation
  -v, --verbose  Detailed output
Synced Preserved
prompts/*.md (auto section) User content in prompts
context/*.md CLAUDE.md
entity-registry.json commands/*

Structure

mustard/
├── bin/mustard.js           # CLI entry point
├── src/                     # TypeScript source
│   ├── commands/            # init, update, sync
│   ├── scanners/            # stack, structure, dependencies
│   ├── analyzers/           # semantic, llm
│   ├── generators/          # claude-md, prompts, commands, hooks
│   └── services/            # ollama, grepai
├── dist/                    # Compiled JavaScript
└── templates/               # Templates (copied to .claude/)
    ├── CLAUDE.md
    ├── prompts/             # 8 agent prompts
    ├── commands/mustard/    # Pipeline commands
    ├── core/                # Enforcement, pipeline rules
    ├── hooks/               # enforce-grepai.js, enforce-pipeline.js
    └── scripts/             # statusline.js

Prompts

Claude Code only accepts 4 subagent_type values: Explore, Plan, general-purpose, Bash.

Mustard "agents" are prompts loaded into Task(general-purpose):

Prompt Model Purpose
orchestrator opus Coordinates pipelines
backend opus APIs, services
frontend opus Components, hooks
database opus Schema, migrations
bugfix opus Bug analysis and fix
review opus QA, SOLID validation
report sonnet Commit reports
naming - Naming conventions reference

Pipeline Commands

Command Description
/feature Start feature pipeline
/bugfix Start bugfix pipeline
/approve Approve spec
/complete Finalize
/resume Resume active pipeline

Task Commands (L0 Universal Delegation)

Command Description
/task-analyze Code analysis via Task(Explore)
/task-review Code review via Task(general-purpose)
/task-refactor Refactoring via Task(Plan) -> Task(general-purpose)
/task-docs Documentation via Task(general-purpose)

Other Commands

Command Description
/validate Build + type-check
/status Project status
/commit Simple commit
/commit-push Commit and push
/sync-registry Update entity registry

Enforcement Hooks

Hook Trigger Action
enforce-grepai.js Grep, Glob Blocks (suggests grepai)
enforce-pipeline.js Edit, Write Hybrid mode: Blocks source code, allows configs

L0 Universal Delegation

All code activities MUST be delegated via Task tool (separate context window). The parent context only coordinates and presents results.

Supported Stacks

Language Frameworks
TypeScript/JS React, Next.js, Node, Express
C# .NET, ASP.NET Core
Python FastAPI, Django, Flask
Java Spring Boot
Go Gin, Echo
Rust Actix, Axum
ORMs Drizzle, Prisma, TypeORM

Optional Dependencies

Tool Purpose
Ollama LLM-generated CLAUDE.md
grepai Semantic code search
memory MCP Pipeline persistence

Without these, the CLI uses default templates.

Development

npm install
npm run build
npm test

# Run locally without installing
node bin/mustard.js init

Publishing

npm version patch   # or minor/major
npm publish

License

MIT