Skip to content

Claude Code Plugins is an open-source add-on suite that turns Claude Code into a programmable workspace. It gives you composable workflows, automatic project memory, skill packs, lifecycle hooks, sub-agents, and typed commands—all wired with minimal config.

License

Notifications You must be signed in to change notification settings

MacroMan5/claude-code-workflow-plugins

LAZY_DEV Framework

Version: 2.2.2 | License: MIT | Status: Production-Ready | Platforms: Linux, macOS, Windows

CI CodeQL License: MIT Version Python 3.11+ Code style: black Claude Code Cross-Platform


Quick Start

3-minute setup to first working feature:

# 1. Copy LAZY_DEV to your project
cp -r LAZY_DEV/.claude/ .claude/

# 2. Set required environment variable
export ENRICHMENT_MODEL=claude-3-5-haiku

# 3. Plan your first feature
/lazy plan "Add user authentication"

# 4. Execute first task
/lazy code TASK-1

# 5. Review and create PR
/lazy review US-3.4

What just happened? PM agent created user stories, Coder agent implemented with TDD, quality pipeline validated code, PR was auto-created.


What & Why

The Problem

Modern AI-assisted development suffers from:

  • Inconsistent quality (no format/lint/type/test enforcement)
  • Lost context between sessions
  • Manual repetitive tasks (stories, commits, reviews)
  • Fragmented tools scattered across projects
  • Constant re-prompting of the same context

The Solution

LAZY_DEV provides a turnkey framework with:

  • Automatic quality pipeline: format → lint → type → test (fail-fast)
  • Persistent knowledge: MCP Memory graph across sessions (project-isolated)
  • End-to-end automation: voice → feature → tasks → code → PR
  • Protective hooks: prevent dangerous operations (rm -rf, force-push to main)
  • Specialized agents: intelligent delegation based on context

Philosophy

"Be lazy, but consistently excellent"

Automate the mundane (formatting, commits, PRs) while enforcing discipline (quality gates, TDD, security checks).


Core Features

8 Commands

  • /lazy plan <brief> - Generate US-story + tasks
  • /lazy code <input> - Implement from story/task/brief/issue
  • /lazy review <id> - Review feature, create PR or generate debug report
  • /lazy fix <report> - Apply review fixes from debug report
  • /lazy docs <file> - Generate/update docs
  • /lazy clean <path> - Remove dead code
  • /lazy memory-graph <statement> - Persist to MCP
  • /lazy memory-check - Verify MCP connectivity

9 Specialized Agents (automatic delegation)

  • project-manager, coder, reviewer, reviewer-story, tester
  • research, documentation, refactor, cleanup

17 Skills (reusable patterns)

  • Planning: story-traceability, task-slicer, ac-expander
  • Development: test-driven-development, diff-scope-minimizer
  • Quality: code-review-checklist, security-scanner
  • Documentation: readme-template, api-doc-generator
  • Integration: gh-issue-sync, mcp-memory-router

4 Hook Types (10 implementations)

  • UserPromptSubmit: context enrichment, memory detection, style selection
  • PreToolUse: safety checks, audit logging, validation
  • PostToolUse: auto-formatting, memory suggestions, cleanup
  • Stop: quality gate logging, TDD enforcement, metrics

Installation

Cross-Platform Support ✅

LAZY_DEV works seamlessly on Linux, macOS, and Windows. All hooks, scripts, and tools are cross-platform by design.

Platform-specific guides:

Prerequisites

  • Python 3.11+
  • Claude Code CLI (latest)
  • uv package manager (pip install uv)
  • git
  • gh CLI (for PR creation)
  • Node.js (for MCP Memory, optional)
  • Windows only: Git Bash or WSL (for bash scripts)

Step 1: Install Framework

# Copy LAZY_DEV to your project
cp -r LAZY_DEV/.claude/ .claude/

Or via plugin marketplace:

# Add marketplace
/plugin marketplace add MacroMan5/claude-code-workflow-plugins

# Install plugin
/plugin install lazy-dev@MacroMan5

# Restart Claude Code

Step 2: Set Environment Variables

# Required for pre-prompt enrichment
export ENRICHMENT_MODEL=claude-3-5-haiku

# Optional: Enable strict mode
export LAZYDEV_ENFORCE_TDD=1
export LAZYDEV_MIN_TESTS=3

# Optional: Disable features
export LAZYDEV_DISABLE_MEMORY_SKILL=1  # Disable auto-memory
export LAZYDEV_DISABLE_STYLE=1         # Disable output style

Windows (PowerShell):

$env:ENRICHMENT_MODEL = "claude-3-5-haiku"

Step 3: Enable MCP Memory (Recommended)

# Copy config to workspace root
cp LAZY_DEV/.claude/.mcp.json .mcp.json

# Test MCP server
npx -y @modelcontextprotocol/server-memory

The framework automatically creates .claude/memory/ directory for project-specific memory storage.

Step 4: Authenticate GitHub

gh auth login
gh auth status
gh repo set-default

Step 5: Verify

# List commands in Claude Code
/help

# Check MCP connectivity
/lazy memory-check

Usage

Complete Workflow Example

# 1. Plan Feature
/lazy plan "Add payment processing with Stripe"
# → Creates single US-story.md file with inline tasks

# 2. Execute Tasks (iteratively)
/lazy code TASK-1
# → Auto-finds story → Implementation → Quality checks → Review (if complex) → Commit

/lazy code TASK-2
# → Repeat for each task

# Or work from story file directly
/lazy code @US-3.4.md
# → Implements next pending task

# 3. Review Complete Story
/lazy review USER-STORY.md
# → Reviews all tasks together → Creates PR or generates debug report

# 4. Apply Fixes (if needed)
/lazy fix review-report.md
# → Fixes issues and re-reviews

See WORKFLOW.md for detailed workflow documentation.

Review and Debug Reports

The /lazy review command now generates structured debug reports when issues are found:

# Review story
/lazy review US-3.4
# If CHANGES_REQUIRED:
#   Generated: US-3.4-review-report.md

# Read the debug report
cat US-3.4-review-report.md
# Shows:
# - Summary of issues
# - Per-issue details with severity (CRITICAL/WARNING/SUGGESTION)
# - Per-task status (committed)
# - Actionable next steps

# Apply fixes
/lazy fix US-3.4-review-report.md
# Routes to appropriate agents by severity

# Re-review
/lazy review US-3.4
# Should show APPROVED and create PR

Debug Report Contains:

  • Summary of issues by severity
  • Per-task completion status
  • Specific code locations for fixes
  • Machine-readable format for /lazy fix
  • Estimated time for fixes

Quality Pipeline

Every task enforces fail-fast quality checks:

Format → Lint → Type → Test → PASS → Commit

Prerequisites:

  • Scripts: scripts/format.py, scripts/lint.py, scripts/type_check.py, scripts/test_runner.py
  • Tools: black, ruff, mypy, pytest (installed via uv)

See WORKFLOW.md for pipeline details.

Agent Delegation

Agents are automatically invoked based on context (Anthropic pattern):

  • project-manager → Creates stories/tasks
  • coder → Implements with TDD
  • reviewer → Reviews code quality
  • tester → Writes comprehensive tests

See SUB_AGENTS.md for complete agent specifications.

Memory System

Semi-automatic persistence of durable facts (AI-assisted):

# Manual storage
/lazy memory-graph "service:api owned_by:alice"

# Automatic detection + suggestion
# Hooks detect entity mentions → suggest storage → Claude Code invokes MCP tools
# Context grows across sessions without manual re-prompting

How it works: Hooks detect durable facts (service owners, endpoints, repo links) and suggest MCP Memory storage. Claude Code decides when to invoke MCP tools based on context.

Project-Specific Memory:

  • Memory stored in <PROJECT_ROOT>/.claude/memory/memory.jsonl
  • Each project has isolated knowledge graph
  • Memory persists across sessions within same project
  • No global pollution across repositories

See MEMORY.md for complete memory system documentation.


Architecture

Directory Structure

LAZY_DEV/
├── .claude/
│   ├── agents/          # 10 specialized agents
│   ├── commands/        # 8 commands
│   ├── hooks/           # 4 hooks (Python)
│   ├── skills/          # 17 skills
│   ├── status_lines/    # Status bar
│   ├── memory/          # Project-specific memory storage
│   ├── .mcp.json        # MCP config (with MEMORY_FILE_PATH env var)
│   └── settings.json    # Claude settings
├── scripts/             # Quality scripts (format, lint, test)
├── STT_PROMPT_ENHANCER/ # Voice-to-prompt pipeline
└── README.md            # This file

Agent Format (Anthropic Standard)

YAML frontmatter + Markdown system prompt:

---
name: coder
description: Implements features following TDD. Use after code command.
tools: Read, Write, Edit, Grep, Glob, Bash
model: sonnet
---

You are the Coder Agent for LAZY-DEV-FRAMEWORK.

When invoked:
1. Review task description in conversation
2. Extract acceptance criteria
3. Implement following TDD: RED → GREEN → REFACTOR

Key: Context-based delegation (no variable substitution).

High-Level Workflow

Voice/Text Input → Feature Creation → Task Execution → Story Review → PR
                                           ↓
                                    TDD + Quality + Review

See WORKFLOW.md for detailed workflow diagrams and state machines.


Pros and Cons

Pros

Consistent Quality

  • Mandatory pipeline enforces standards
  • Auto-formatting on every save
  • 80% test coverage minimum
  • Security checklists built-in

Automatic Delegation

  • Context-based agent routing (Anthropic pattern)
  • No variable substitution code (simpler)
  • Intelligent agent selection

Complete Automation

  • Atomic commits (one per task)
  • Auto-PR creation
  • GitHub issue sync
  • Voice input support

Debug Reports on Review Failure

  • Structured, machine-readable format
  • Clear per-task status
  • Actionable next steps
  • Automatic routing to /lazy fix

Memory Persistence

  • MCP Memory graph for durable facts
  • Project-isolated (no global pollution)
  • Persists across sessions
  • Auto-triggers on durable knowledge

Cons

Learning Curve

  • 8 commands with various options
  • Complex workflow chain
  • MCP setup requires Node.js
  • Mitigation: Comprehensive docs, examples

Discipline Required

  • Quality gates block progress (by design)
  • No bypass for format/lint/type/test failures
  • Can be frustrating initially
  • Mitigation: Auto-formatting reduces friction

Dependencies

  • Python 3.11+ required
  • Haiku API costs for enrichment (~$0.001-0.005 per prompt)
  • Cross-platform path handling complexity
  • Mitigation: Modern Python widely available, low costs

Alignment with Anthropic Best Practices

✅ Conversation Context (Not Variables)

Agents extract from conversation naturally, no $variable Template substitution. Matches official examples exactly.

✅ Automatic Delegation

Clear agent descriptions with action-oriented triggers. Claude routes intelligently.

✅ Hook-Based Automation

PostToolUse for auto-formatting, PreToolUse for safety, UserPromptSubmit for enrichment, Stop for quality gates.

✅ Standard YAML+Markdown Format

All agents use official pattern:

---
name: agent-name
description: Clear description
tools: Tool1, Tool2
model: sonnet
---
System prompt in markdown...

Troubleshooting

Common Issues

ENRICHMENT_MODEL not set:

export ENRICHMENT_MODEL=claude-3-5-haiku

MCP Memory not connecting:

node --version  # Need v18+
npx -y @modelcontextprotocol/server-memory

Quality pipeline fails:

python scripts/format.py .  # Auto-fix formatting
python scripts/lint.py .    # Check linting

GitHub auth issues:

gh auth login && gh auth status

Detailed Troubleshooting:


Branching Strategy

This repository uses a develop-main branching workflow:

  • main - Production-ready releases only

    • Protected branch with CI checks required
    • Only accepts PRs from develop branch
    • Direct commits not allowed
  • develop - Integration branch for development

    • All feature branches merge here first
    • All PRs should target develop by default
    • Tested and reviewed before merging to main

Workflow

# Feature development
git checkout develop
git pull origin develop
git checkout -b feature/my-feature
# ... make changes ...
git push origin feature/my-feature
# Create PR targeting develop

# Release to production (maintainers only)
# After develop is stable:
# Create PR from develop → main

Contributing

Add New Agent

  1. Create .claude/agents/my-agent.md
  2. Use YAML frontmatter + Markdown prompt
  3. Test with relevant command
  4. Document in docs/plugins/SUB_AGENTS.md

Add New Command

  1. Create .claude/commands/my-command.md
  2. Follow 5-section structure: When/Requirements/Execution/Validation/Examples
  3. Test: /lazy my-command
  4. Document in README

Quality Standards

  • Type hints on all Python code
  • 80% test coverage minimum
  • Cross-OS compatible (Windows/Linux/macOS)
  • Black/Ruff formatted
  • Google-style docstrings

Documentation

Getting Started

  • README.md (this file) - Overview and quick start
  • CLAUDE.md - Guide for Claude Code when working with this framework

Core Documentation

  • WORKFLOW.md - Complete workflow guide (commit-per-task, PR-per-story pattern)
  • MEMORY.md - Automatic memory system with MCP Memory
  • SUB_AGENTS.md - Agent registry and specifications

Reference

Logs & Debugging

  • .claude/data/logs/ - Hook execution logs
  • .claude/data/metrics/ - Quality metrics

Resources

Official Documentation

Credits & Inspiration

  • Anthropic Claude Code (official patterns and best practices)
  • Model Context Protocol (MCP Memory)
  • IndyDevDan/disler (Claude Code hooks mastery, multi-agent observability, big-3-super-agent)
  • vanzan01 (claude-code-sub-agent-collective, TDD patterns)
  • EveryInc (plugin marketplace, compounding engineering)
  • Kolja Beigel/KoljaB (RealtimeSTT library)
  • SYSTRAN (faster-whisper)
  • Community projects (always-on-ai-assistant)

See CREDITS.md for detailed attributions.


License

MIT License - See LICENSE file for details.


LAZY_DEV - Be lazy, but consistently excellent.

About

Claude Code Plugins is an open-source add-on suite that turns Claude Code into a programmable workspace. It gives you composable workflows, automatic project memory, skill packs, lifecycle hooks, sub-agents, and typed commands—all wired with minimal config.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •