Skip to main content

Build CLI Plugin

Skill Verified Active

Build a plugin or adapter for a CLI tool using the abstract base class pattern. Covers defining the contract (static fields, required methods), choosing an installation strategy (symlink, copy, append-to-file), implementing detection, install/uninstall with idempotency, listing, auditing, and registering the plugin. Use when adding support for a new framework to a CLI installer, building a plugin system for any multi-target tool, or extending an existing adapter architecture.

Purpose

To provide a structured pattern and detailed instructions for developers looking to extend command-line tools with new framework support or plugin systems.

Features

  • Abstract base class pattern for CLI plugins
  • Defining plugin contracts (static fields, required methods)
  • Installation strategies (symlink, copy, append-to-file)
  • Idempotent install/uninstall implementation
  • Plugin detection, listing, and auditing

Use Cases

  • Adding support for new frameworks to CLI installers
  • Building plugin systems for multi-target command-line tools
  • Extending existing adapter architectures with new variants
  • Porting content delivery to frameworks with different file layouts

Non-Goals

  • Developing the CLI tool itself
  • Writing framework-specific code outside the plugin adapter
  • Handling runtime environment setup for the CLI tool

Workflow

  1. Define the contract (base class)
  2. Choose installation strategy
  3. Implement detection logic
  4. Implement install with idempotency
  5. Implement uninstall with cleanup
  6. Implement listing and audit
  7. Register the plugin
  8. Write tests

Practices

  • Plugin Development
  • CLI Tooling
  • Software Architecture

Prerequisites

  • TypeScript/JavaScript development environment
  • Understanding of CLI tool architectures
  • Familiarity with Node.js file system operations

Installation

/plugin install agent-almanac@pjt222-agent-almanac

Quality Score

Verified
98 /100
Analyzed about 22 hours ago

Trust Signals

Last commit1 day ago
Stars14
LicenseMIT
Status
View Source

Similar Extensions

V3 Ddd Architecture

100

Domain-Driven Design architecture for claude-flow v3. Implements modular, bounded context architecture with clean separation of concerns and microkernel pattern.

Skill
ruvnet

Pathfinder

100

Map a codebase into feature-grouped flowcharts, identify duplicated concerns across features, and propose a unified architecture. Use when asked to "find the ideal path," unify duplicated systems, or audit architecture before a refactor. Emits a proposed unified flowchart plus per-system /make-plan prompts.

Skill
thedotmack

Understand

100

Analyze a codebase to produce an interactive knowledge graph for understanding architecture, components, and relationships

Skill
Lum1104

Cloud Architect

100

Designs cloud architectures, creates migration plans, generates cost optimization recommendations, and produces disaster recovery strategies across AWS, Azure, and GCP. Use when designing cloud architectures, planning migrations, or optimizing multi-cloud deployments. Invoke for Well-Architected Framework, cost optimization, disaster recovery, landing zones, security architecture, serverless design.

Skill
jeffallan

API Design Patterns

100

Comprehensive API design patterns covering REST, GraphQL, gRPC, versioning, authentication, and modern API best practices

Skill
bobmatnyc

Angular Developer

100

Generates Angular code and provides architectural guidance. Trigger when creating projects, components, or services, or for best practices on reactivity (signals, linkedSignal, resource), forms, dependency injection, routing, SSR, accessibility (ARIA), animations, styling (component styles, Tailwind CSS), testing, or CLI tooling.

Skill
angular

© 2025 SkillRepo · Find the right skill, skip the noise.