Skip to content

marcusrbrown/systematic

Repository files navigation


Overview

Systematic is an OpenCode plugin that transforms your AI assistant into a disciplined engineering collaborator. It provides battle-tested workflows adapted from the Compound Engineering Plugin (CEP) for Claude Code.

Why Systematic?

Most AI coding assistants respond to requests without structure or methodology. This leads to inconsistent outputs, missed requirements, and wasted iterations.

Systematic solves this with structured workflows. Installation is the first step to equipping your AI with high-leverage engineering habits. Once installed, the plugin injects proven processes directly into the system prompt, enabling it to:

  • Brainstorm systematically before jumping to implementation
  • Plan with rigor using multi-phase workflows
  • Review code architecturally with specialized agents
  • Follow consistent patterns across your entire team

Key Features

  • Structured Skills — Pre-built workflows for brainstorming, planning, code review, and more
  • Specialized Agents — Purpose-built subagents for architecture, security, performance, and research
  • Zero Configuration — Works immediately after installation via config hooks
  • Extensible — Add project-specific skills and agents alongside bundled ones
  • Batteries Included — 48 skills and 29 agents ship with the npm package
  • CLI Tooling — Inspect, list, and convert assets from the command line

Quick Start

Prerequisites

  • OpenCode installed and configured
  • Node.js 18+ or Bun runtime

Installation

Install the plugin by adding it to your OpenCode configuration (~/.config/opencode/opencode.json):

{
  "plugins": ["@fro.bot/systematic@latest"]
}

Restart OpenCode to activate the plugin. All bundled skills and agents will be available immediately.

Note

Systematic uses OpenCode's config hook to automatically register all bundled content. No manual file copying required.

Alternative: Install via OCX

OCX provides component-level installation:

# Add the Systematic registry
ocx registry add https://fro.bot/systematic --name systematic

# Install individual components
ocx add systematic/brainstorming
ocx add systematic/agent-architecture-strategist

# Or install bundles
ocx add systematic/skills     # All 48 skills
ocx add systematic/agents     # All 29 agents

# Or use a profile (requires --global registry)
ocx registry add https://fro.bot/systematic --name systematic --global
ocx profile add sys --from systematic/standalone

See the OCX Registry Guide for details.

Verify Installation

In any OpenCode conversation, type:

/systematic:using-systematic

If the skill loads and displays usage instructions, the plugin is working correctly.

Next Steps

Once verified, explore these guides to master the Systematic workflow:

  • Philosophy — Understand the Compound Engineering mindset and why it works
  • Main Loop — Learn the Plan → Work → Review → Compound cycle
  • Agent Install Guide — Step-by-step install guide for AI agents

Skills

Skills are structured workflows that guide the AI through systematic engineering processes. They're loaded via the systematic_skill tool and invocable as slash commands (e.g., /ce:brainstorm).

Core Workflows

The Compound Engineering loop — the heart of Systematic:

Skill Description
ce:brainstorm Explore requirements through collaborative dialogue before planning
ce:plan Transform feature descriptions into structured implementation plans
ce:review Perform exhaustive code reviews using multi-agent analysis
ce:work Execute work plans efficiently while maintaining quality
ce:compound Document recently solved problems to compound team knowledge
ce:ideate Generate and critically evaluate grounded improvement ideas
ce:compound-refresh Refresh stale learnings and pattern docs against current codebase

Development Tools

Skill Description
using-systematic Bootstrap skill — teaches the AI how to discover and use other skills
agent-browser Browser automation using Vercel's agent-browser CLI
agent-native-architecture Design systems where AI agents are first-class citizens
create-agent-skill Expert guidance for writing and refining OpenCode skills
compound-docs Capture solved problems as categorized documentation
document-review Refine requirements or plan documents before proceeding
deepen-plan Enhance a plan with parallel research for each section
file-todos File-based todo tracking with status and dependency management
frontend-design Create distinctive, production-grade frontend interfaces
git-worktree Manage git worktrees for isolated parallel development
orchestrating-swarms Coordinate multi-agent swarms and pipeline workflows
lfg Full autonomous engineering workflow — plan, then execute

Specialized Skills

Skill Description
dhh-rails-style Write Ruby and Rails code in DHH's distinctive 37signals style
andrew-kane-gem-writer Write Ruby gems following Andrew Kane's proven patterns
dspy-ruby Build type-safe LLM applications with DSPy.rb
every-style-editor Review and edit copy for style guide compliance
gemini-imagegen Generate and edit images using the Gemini API
proof Create, edit, and share markdown documents via Proof
rclone Upload, sync, and manage files across cloud storage providers

View all 48 skills →

How Skills Work

Skills are Markdown files with YAML frontmatter. When loaded, their content is injected into the conversation, guiding the AI's behavior:

---
name: brainstorming
description: This skill should be used before implementing features...
---

# Brainstorming

This skill provides detailed process knowledge for effective brainstorming...

The AI is instructed to invoke skills before taking action — even with a 1% chance a skill might apply.

Agents

Agents are specialized subagents with pre-configured prompts and expertise. They're registered automatically via the config hook.

Design Agents

Agent Purpose
design-implementation-reviewer Visually compare live UI against Figma designs and report discrepancies
design-iterator Iteratively refine UI design through screenshot-analyze-improve cycles
figma-design-sync Detect and fix visual differences between web implementation and Figma

Docs Agents

Agent Purpose
ankane-readme-writer Create or update README files following Ankane-style template for Ruby gems

Research Agents

Agent Purpose
best-practices-researcher Research external best practices, documentation, and examples for any technology
framework-docs-researcher Gather framework documentation and best practices
git-history-analyzer Archaeological analysis of git history to trace code evolution and patterns
issue-intelligence-analyst Analyze GitHub issues to surface recurring themes, pain patterns, and severity trends
learnings-researcher Search past solutions in docs/solutions/ to surface institutional knowledge
repo-research-analyst Research repository structure, documentation, conventions, and implementation patterns

Review Agents

Agent Purpose
agent-native-reviewer Ensure agent-native parity — any user action should also be available to agents
architecture-strategist Analyze code changes from an architectural perspective
code-simplicity-reviewer Final review pass for simplicity and YAGNI principles
data-integrity-guardian Review database migrations, data models, and persistent data code for safety
data-migration-expert Validate data migrations, backfills, and production data transformations
deployment-verification-agent Produce Go/No-Go deployment checklists with verification queries and rollback procedures
dhh-rails-reviewer Brutally honest Rails code review from DHH's perspective
julik-frontend-races-reviewer Review JavaScript and Stimulus code for race conditions and timing issues
kieran-python-reviewer High quality bar Python review for Pythonic patterns, type safety, and maintainability
kieran-rails-reviewer High quality bar Rails review for conventions, clarity, and maintainability
kieran-typescript-reviewer High quality bar TypeScript review for type safety, modern patterns, and maintainability
pattern-recognition-specialist Detect design patterns, anti-patterns, and code smells
performance-oracle Performance analysis, bottleneck identification, scalability
schema-drift-detector Detect unrelated schema.rb changes by cross-referencing against included migrations
security-sentinel Security audits, vulnerability assessment, OWASP compliance

Workflow Agents

Agent Purpose
bug-reproduction-validator Systematically verify and reproduce reported bugs
lint Run linting and code quality checks on Ruby and ERB files
pr-comment-resolver Address PR review comments by implementing requested changes
spec-flow-analyzer Analyze specifications for user flow gaps and missing requirements

Using Agents

Agents are invoked via OpenCode's @mention syntax or task:

@architecture-strategist Review the authentication refactoring in this PR

Or programmatically in skills:

task(subagent_type="architecture-strategist", prompt="Review...")

CLI

Systematic includes a CLI for inspecting and converting assets outside of OpenCode.

systematic <command> [options]

Commands

Command Description
list [type] List available skills, agents, or commands
convert <type> <file> Convert a CEP file and output the result to stdout
config show Show current configuration and file contents
config path Print config file locations

Examples

# List all bundled skills
systematic list skills

# List all bundled agents
systematic list agents

# Convert a Claude Code agent to OpenCode format
systematic convert agent ./agents/my-agent.md

# Convert with a specific agent mode
systematic convert agent ./agents/my-agent.md --mode=primary

# Show configuration
systematic config show

Configuration

Systematic works out of the box, but you can customize it via configuration files.

Plugin Configuration

Configuration is loaded from multiple locations and merged (later sources override earlier ones):

  1. User config: ~/.config/opencode/systematic.json
  2. Project config: .opencode/systematic.json
  3. Custom config: $OPENCODE_CONFIG_DIR/systematic.json (if OPENCODE_CONFIG_DIR is set)
{
  "disabled_skills": ["git-worktree"],
  "disabled_agents": [],
  "bootstrap": {
    "enabled": true
  }
}
Option Type Default Description
disabled_skills string[] [] Skills to exclude from registration
disabled_agents string[] [] Agents to exclude from registration
bootstrap.enabled boolean true Inject the using-systematic guide into system prompts
bootstrap.file string Custom bootstrap file path (overrides default)

Project-Specific Content

Add your own skills and agents alongside bundled ones:

.opencode/
├── skills/
│   └── my-skill/
│       └── SKILL.md
└── agents/
    └── my-agent.md

Project-level content takes precedence over bundled content with the same name.

Tools

The plugin exposes one tool to OpenCode:

Tool Description
systematic_skill Load Systematic bundled skills by name. Lists available skills in its description and returns formatted skill content when invoked.

For non-Systematic skills (project or user-level), use OpenCode's native skill tool.

How It Works

Systematic uses three OpenCode plugin hooks:

%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#1a1a2e', 'primaryTextColor': '#fff', 'primaryBorderColor': '#4FD1C5', 'lineColor': '#4FD1C5', 'secondaryColor': '#16213e', 'tertiaryColor': '#0f0f23'}}}%%
flowchart TB
    A[Plugin Loaded] --> B[config hook]
    A --> C[tool hook]
    A --> D[system.transform hook]

    B --> E[Merge bundled agents and skills into OpenCode config]
    C --> F[Register systematic_skill tool]
    D --> G[Inject bootstrap prompt into every conversation]

    style A fill:#1a1a2e,stroke:#4FD1C5,color:#fff
    style B fill:#16213e,stroke:#4FD1C5,color:#4FD1C5
    style C fill:#16213e,stroke:#E91E8C,color:#E91E8C
    style D fill:#16213e,stroke:#F5A623,color:#F5A623
    style E fill:#0f0f23,stroke:#4FD1C5,color:#B2F5EA
    style F fill:#0f0f23,stroke:#E91E8C,color:#B2F5EA
    style G fill:#0f0f23,stroke:#F5A623,color:#B2F5EA
Loading
  1. config hook — Discovers and merges bundled skills and agents into your OpenCode configuration. Existing config takes precedence over bundled content. Skills are registered as slash commands with the systematic: prefix.
  2. tool hook — Registers the systematic_skill tool, which lists available skills in its XML description and loads skill content on demand.
  3. system.transform hook — Injects the "Using Systematic" bootstrap guide into system prompts, teaching the AI how to discover and invoke skills.

This architecture ensures skills and agents are available immediately without manual setup.

Development

Prerequisites

  • Bun runtime
  • Node.js 18+ (for compatibility)

Setup

# Clone the repository
git clone https://github.com/marcusrbrown/systematic.git
cd systematic

# Install dependencies
bun install

# Build the plugin
bun run build

# Run type checking
bun run typecheck

# Run linter
bun run lint

# Run unit tests
bun test

Project Structure

systematic/
├── src/
│   ├── index.ts              # Plugin entry point (SystematicPlugin)
│   ├── cli.ts                # CLI entry point
│   └── lib/
│       ├── bootstrap.ts      # System prompt injection
│       ├── config.ts         # JSONC config loading + merging
│       ├── config-handler.ts # OpenCode config hook implementation
│       ├── converter.ts      # CEP-to-OpenCode content conversion
│       ├── skill-tool.ts     # systematic_skill tool factory
│       ├── skill-loader.ts   # Skill content loading + formatting
│       ├── skills.ts         # Skill discovery
│       ├── agents.ts         # Agent discovery
│       ├── commands.ts       # Command discovery (backward compat)
│       ├── frontmatter.ts    # YAML frontmatter parsing
│       ├── manifest.ts       # Upstream sync manifest tracking
│       ├── validation.ts     # Agent config validation + type guards
│       └── walk-dir.ts       # Recursive directory walker
├── skills/                   # 48 bundled skills (SKILL.md files)
├── agents/                   # 29 bundled agents (5 categories)
├── docs/                     # Starlight documentation site
├── registry/                 # OCX registry config + profiles
├── scripts/                  # Build and utility scripts
├── tests/
│   ├── unit/                 # 13 unit test files
│   └── integration/          # 2 integration test files
└── dist/                     # Build output

Testing

# Run all unit tests
bun test tests/unit

# Run a specific test file
bun test tests/unit/skills.test.ts

# Run integration tests
bun test tests/integration

# Run all tests
bun test

Contributing

See AGENTS.md for detailed development guidelines, code style conventions, and architecture overview.

Converting from Claude Code

Migrating skills or agents from CEP or other Claude Code-format sources to Systematic? See the Conversion Guide for field mappings and examples.

References

License

MIT © Marcus R. Brown

About

Structured engineering workflows for OpenCode

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

 
 
 

Contributors