all factors
XIIimprovement

Package Patterns

Package once, deploy everywhere.

3 min read

XII. Package Patterns

XII
Package once, deploy everywhere

Domain knowledge is valuable. Package it as plugins.


The Problem

Without Packaging

  • Rebuild the same workflows in every project
  • Rediscover patterns already solved
  • Can't share knowledge across teams
  • Every new project starts from zero

With Packaging

  • Install plugins in seconds
  • Instant productivity in new domains
  • Community contributes improvements
  • Knowledge compounds over time

The Solution: Claude Code Plugins

A plugin bundles everything you need for a domain:

Agents

Specialized AI workflows

Commands

Slash commands (/research, /plan)

Skills

Domain knowledge modules

Docs

CLAUDE.md instructions


Plugin Installation

# Add the marketplace
/plugin marketplace add boshu2/agentops

# Install plugins
/plugin install constitution@agentops
/plugin install core-workflow@agentops
/plugin install session-management@agentops

That's it. Instant access to agents, commands, and skills.


What's in a Plugin?

::: info Plugin Structure

plugins/core-workflow/
  .claude-plugin/
    plugin.json        # Manifest
  agents/
    researcher.md      # Deep exploration
    planner.md         # Implementation specs
    implementer.md     # Code execution
  commands/
    research.md        # /research
    plan.md            # /plan
    implement.md       # /implement
  skills/
    rpi-workflow.md    # Research->Plan->Implement
  README.md

:::


The Marketplace

constitution - Laws and guardrails

core-workflow - Research -> Plan -> Implement

session-management - Multi-day continuity

vibe-coding - 5 core metrics

devops-operations - Kubernetes, GitOps

software-development - TDD, code review

Plugin Dependencies

constitution (foundation)
  core-workflow (required)
    session-management
    vibe-coding
    devops-operations
    software-development

Start with constitution + core-workflow, add domain plugins as needed.


Why This Works

Build From Zero

Project 1: Build workflows (2 months)

Project 2: Build workflows again (2 months)

Project 3: Build workflows again (2 months)

Total: 6 months, same work 3 times

Install & Go

Project 1: Build + package (2 months)

Project 2: /plugin install (2 minutes)

Project 3: /plugin install (2 minutes)

Total: 2 months + 4 minutes


Create Your Own Plugin

// Plugin manifest (plugin.json)
{
  "name": "my-domain",
  "version": "1.0.0",
  "description": "Domain-specific workflows",
  "agents": ["agents/*.md"],
  "commands": ["commands/*.md"],
  "skills": ["skills/*.md"]
}

Package what works. Share with your team. Contribute to the community.


Validation

  • Domain knowledge packaged as plugins
  • Plugins installable in seconds
  • Plugins versioned and released
  • Team shares plugins internally
  • Community plugins published publicly

FactorRelationship
I. Automated TrackingPlugins versioned in git
III. Focused AgentsPlugins contain single-purpose agents
IX. Mine PatternsPlugins package extracted patterns