Build CLI Plugin
Skill Verified ActiveBuild 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.
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
- Define the contract (base class)
- Choose installation strategy
- Implement detection logic
- Implement install with idempotency
- Implement uninstall with cleanup
- Implement listing and audit
- Register the plugin
- 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-almanacQuality Score
VerifiedTrust Signals
Similar Extensions
V3 Ddd Architecture
100Domain-Driven Design architecture for claude-flow v3. Implements modular, bounded context architecture with clean separation of concerns and microkernel pattern.
Pathfinder
100Map 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.
Understand
100Analyze a codebase to produce an interactive knowledge graph for understanding architecture, components, and relationships
Cloud Architect
100Designs 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.
API Design Patterns
100Comprehensive API design patterns covering REST, GraphQL, gRPC, versioning, authentication, and modern API best practices
Angular Developer
100Generates 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.