ClaudeCodeMod

All shelves / Marketplaces

ivankristianto/k2-dev

ivankristianto/k2-dev · 2 stars · 1 plugin

Marketplace Multiagent orchestration plugin for enterprise code development with specialized agents, beads integration, and quality gates enforcement

Install

In Claude Code
/plugin marketplace add ivankristianto/k2-dev

Run inside Claude Code, then install plugins from it. Check the repo's README before you run it.

Open the repo

Plugins 1

After adding the marketplace, install one with /plugin install <name>@k2-dev-marketplace.

  1. 1k2-devMultiagent orchestration plugin for enterprise code development with specialized agents, beads integration, and quality gates enforcement/plugin install k2-dev@k2-dev-marketplacev0.13.4

Files

README.md

k2-dev - Multiagent Development Orchestration

Enterprise-grade multiagent orchestration plugin for Claude Code that manages end-to-end software development workflows with specialized AI agents.

Overview

k2-dev simulates a complete development team with specialized agents and skills:

Agents:

  • Technical Lead: Orchestrates workflows, manages worktrees
  • Engineer: Implements features following plans
  • PR Writer: Creates well-structured pull requests
  • Reviewer: Performs code reviews and quality validation

Skills (main conversation context):

  • Planning: Analyzes requirements, creates actionable plans
  • Test Planning: Creates test plans and validates implementations

Features

  • 🎯 Task-Driven Development: Integrated with beads task management
  • 🌲 Git Worktree Workflow: Isolated workspaces for each task
  • ✅ Quality Gates: Enforces standards from AGENTS.md
  • 🔄 Structured Workflows: Planning → Implementation → PR Creation → Review → Merge
  • 📋 Automated Reporting: Track progress and generate status reports
  • 🧪 Test Planning: Automated test strategy and coverage planning

Prerequisites

  • beads - Task management system
  • beads_viewer - Interactive task viewer for beads (bv command)
  • GitHub CLI - Command-line tool for GitHub operations (gh command)
  • Git with worktree support
  • Project configuration files (optional but recommended):
    • AGENTS.md - Agent behavior guidelines
    • constitution.md - Project principles and constraints

Installation

Install via Claude Marketplace:

claude plugin install k2-dev@ivankristianto/k2-dev

Commands

/k2:start

Start implementation workflow for one or more tickets.

Usage:

/k2:start beads-123 [--skip-worktree]
/k2:start beads-123,beads-234,beads-345 [--skip-worktree]
/k2:start [--skip-worktree] # No ticket - launches beads_viewer (bv) for interactive selection

Options:

  • --skip-worktree: Create branch in main repository instead of creating an isolated worktree

Interactive Mode:

When called without a ticket ID, /k2:start will launch the bv (beads_viewer) command for interactive task selection. This provides a visual interface to browse and select tasks from your beads project.

Workflow:

  1. Technical Lead validates tickets exist
  2. Creates git worktree (branch: feature/beads-{id}) or creates branch in main repo if --skip-worktree is used
  3. Reads task description and comments
  4. Hands off to Engineer for implementation
  5. Engineer implements with self-review
  6. Creates GitHub PR automatically
  7. Reviewer validates against quality gates
  8. Iterates up to 2 times if needed
  9. Creates follow-up tickets for remaining issues
  10. Technical Lead merges and cleans up
/k2:planner

Start planning workflow for new features using the Planning skill.

Usage:

/k2:planner

Workflow:

  1. Planning skill analyzes requirement with full codebase access
  2. Asks clarifying questions directly in main conversation
  3. Creates initial plan
  4. Invokes Technical Lead agent for architectural review
  5. Planning skill incorporates feedback and refines plan
  6. Converts to beads tasks with dependencies

Benefits:

  • Faster execution (no agent spawning overhead)
  • Easier debugging (everything in main conversation context)
  • Direct user interaction (questions asked directly)
/k2:report

Generate status report for a ticket.

Usage:

/k2:report beads-123

Output: Structured markdown report with:

  • Task summary
  • Current status
  • Assignee
  • Comments and history
  • Related tickets
/k2:test

Create test plan for a ticket using the Test Planning skill.

Usage:

/k2:test beads-123

Workflow:

  1. Test Planning skill analyzes implementation
  2. Creates comprehensive test plan
  3. Defines test cases and coverage strategy
  4. Adds test plan to beads comments
  5. Coordinates with Engineer for implementation
/k2:doctor

Check system prerequisites and project configuration.

Usage:

/k2:doctor

What it checks:

  • System Prerequisites: Verifies bd (beads), bv (beads_viewer), gh (GitHub CLI), and git with worktree support are installed
  • Project Configuration: Checks for AGENTS.md and constitution.md files
  • Beads Setup: Validates .beads/ directory and beads operational status
  • Beads Task Statistics: Analyzes task health (open/closed/tombstone counts) and suggests maintenance with bd compact if needed

Output: Diagnostic report showing which requirements are met, missing, or need attention, plus actionable recommendations for beads maintenance.

Agents

Technical Lead
  • Role: Workflow orchestrator and system architect
  • Responsibilities:
    • Validate ticket status
    • Create and manage git worktrees
    • Coordinate agent handoffs (hub model)
    • Make architectural decisions
    • Merge PRs and cleanup
  • Tools: All tools, full codebase access
Engineer
  • Role: Implementation specialist
  • Responsibilities:
    • Execute implementation following plans
    • Perform self-review against quality gates
    • Push changes to feature branch
    • Respond to review feedback
    • Create follow-up tickets
  • Tools: Read, Write, Edit, Bash, Grep, Glob
PR Writer
  • Role: Pull request creator
  • Responsibilities:
    • Analyze changes and commit history
    • Generate comprehensive PR descriptions
    • Create GitHub PRs using gh CLI
    • Follow project PR templates and standards
  • Tools: Read, Bash, Grep, Glob (no code modification)
Reviewer
  • Role: Code quality validator
  • Responsibilities:
    • Review code changes for quality and security
    • Validate against AGENTS.md standards
    • Provide feedback on GitHub PRs
    • No code changes (review only)
  • Tools: Read, Grep, Glob, Bash (read-only operations)

Skills

The plugin provides specialized skills that execute in the main conversation context:

Active Workflow Skills:

  1. Planning (/k2:planner): Requirements analysis, task creation, beads task management
  2. Test Planning (/k2:test): Test strategy, test case definition, coverage planning (replaces legacy Tester agent)

Knowledge Domain Skills:

  1. beads-integration: Working with beads task management
  2. git-worktree-workflow: Managing git worktrees for isolation
  3. quality-gates: Reading and enforcing project standards
  4. pr-creation: Creating well-structured pull requests (used by PR Writer)
  5. test-planning: Test strategy and planning reference documentation
  6. code-review-standards: Code review best practices

Configuration

Optional Settings

Create .claude/k2-dev.local.md to customize behavior:

---
defaultBranch: main
prTemplateCustomization: true
qualityGateThresholds:
  codeComplexity: medium
  testCoverage: 80
---

# K2-Dev Configuration

Custom configuration for this project...
Project Configuration Files
AGENTS.md (Project Root)

Define agent behavior, quality gates, and file validation patterns:

# Agent Guidelines

## Quality Gates

- All TypeScript files must pass type checking
- Test coverage minimum: 80%
- No console.log in production code

## File Validation Patterns

Validate these file types before changes:

- src/\*_/_.ts
- src/\*_/_.tsx
- lib/\*_/_.js

## Code Review Standards

...
AGENTS.md (Project Root)

Project standards and patterns, including quality gates, coding standards, and agent guidelines.

constitution.md (Project Root)

Project principles and constraints all agents must follow.

Workflow Details

Implementation Workflow
User: /k2:start beads-123
    ↓
Technical Lead:
  - Validates tickets exist and are open
  - Creates worktree (feature/beads-123) or branch (--skip-worktree)
  - Reads task descriptions and context
    ↓
Engineer:
  - Implements changes following plan
  - Self-reviews against quality gates
  - Pushes changes to feature branch
    ↓
PR Writer:
  - Analyzes changes and commit history
  - Generates description from templates/context
  - Creates GitHub Pull Request
    ↓
Reviewer:
  - Reviews code changes
  - Validates against AGENTS.md
  - Provides feedback on GitHub PR
    ↓
[Iteration: max 2 times]
    ↓
Technical Lead:
  - Merges approved PR
  - Closes beads tasks & syncs
  - Removes worktree/branch
  - Provides final report

Why PR Creation Uses Internal Subagent:

  • Separates PR creation logic from implementation and review
  • Ensures consistent PR formatting and template usage
  • Reduces context overhead for subsequent agents
Planning Workflow
User: /k2:planner "Add user authentication"
    ↓
Planning Skill (main conversation context):
  - Analyzes requirement
  - Explores codebase
  - Asks clarifying questions directly
  - Creates initial plan
    ↓
Planning Skill invokes Technical Lead agent:
  - Reviews plan
  - Provides architectural feedback
    ↓
Planning Skill:
  - Refines plan
  - Iterates with Tech Lead
  - Converts to beads tasks
  - Sets up dependencies
  - Adds detailed descriptions

Hooks

PreToolUse Hook

Validates file changes against quality gates before Write/Edit operations.

  • Checks file patterns defined in AGENTS.md
  • Enforces project standards from AGENTS.md
  • Blocks non-compliant changes
Stop Hook

Runs cleanup on session end:

  • Always executes bd sync
  • Ensures task state is synchronized
  • Logs session summary

Best Practices

  1. Always define quality gates in AGENTS.md for your project
  2. Keep beads tasks updated with clear descriptions and plans
  3. Use hierarchical tasks for complex features
  4. Set dependencies between tasks to maintain order
  5. Review AGENTS.md regularly and keep it current
  6. Follow PR templates for consistency
  7. Create follow-up tickets rather than extending reviews beyond 2 iterations

Troubleshooting

Ticket Validation Fails
  • Ensure ticket exists: bd show beads-123
  • Check ticket is open: bd list --filter=id:beads-123
  • Verify beads is synced: bd sync
Worktree Creation Fails
  • Check git worktree list: git worktree list
  • Remove stale worktrees: git worktree prune
  • Ensure branch name doesn't conflict
Quality Gate Validation Issues
  • Review AGENTS.md file patterns
  • Check if files match validation patterns
  • Verify standards in AGENTS.md are achievable
Agent Coordination Issues
  • All coordination happens through Technical Lead (hub model)
  • Check Technical Lead has access to required tools
  • Verify agent descriptions are clear

Development

Adding New Agents

Add new agent .md files to agents/ directory following the template.

Adding New Skills

Create skill directories under skills/ with SKILL.md files.

Customizing Workflows

Modify agent system prompts and coordination logic in agent files.

License

MIT

Support

For issues and questions, please refer to your project's support channels.

Facts

Kind
Marketplace
Repo
ivankristianto/k2-dev
Group
Uncategorized
Stars
2
Marketplace name
k2-dev-marketplace
Owner
Ivan K2
Created
2026-01-08
Last push
2026-01-15
Plugins
1

Next on this shelf

  1. 1575jamsajones/claude-squadjamsajones/claude-squad2
  2. 1576jclfocused/claude-agentsjclfocused/claude-agents2
  3. 1577joel611/claude-pluginsjoel611/claude-plugins2
  4. 1578kangminhyuk1111/agentskangminhyuk1111/agents2
  5. 1579kastheco/claude-pluginskastheco/claude-plugins2
  6. 1580kerdofficial/claude-debug-modekerdofficial/claude-debug-mode2