Skip to content

a5c-ai/babysitter / library/specializations/cli-mcp-development/skills/oclif-scaffolder

oclif-scaffolder

Verified

Generate oclif CLI framework projects with plugin support, topics, hooks, and TypeScript. Creates enterprise-grade CLI applications with extensibility.

FileKindSize
README.mdmarkdown2.0 KB
SKILL.mdskill md6.5 KB
# oclif Scaffolder Skill

Generate enterprise-grade oclif CLI applications with plugin support, topics, hooks, and TypeScript.

## Overview

This skill automates the creation of CLI applications using oclif, a powerful framework for building extensible CLIs. It generates a complete project structure with plugin architecture, command topics, lifecycle hooks, and testing infrastructure.

## When to Use

- Building enterprise-grade CLI tools
- Need plugin extensibility (like Salesforce CLI, Heroku CLI)
- Want topic-based command organization
- Require lifecycle hooks and middleware

## Quick Start

### Basic Usage

```json
{
  "projectName": "my-cli",
  "description": "An enterprise CLI tool",
  "plugins": true
}
```

### With Topics and Commands

```json
{
  "projectName": "cloud-cli",
  "description": "Cloud management CLI",
  "topics": [
    { "name": "compute", "description": "Compute resources" },
    { "name": "storage", "description": "Storage management" }
  ],
  "commands": [
    {
      "name": "create",
      "topic": "compute",
      "description": "Create compute instance"
    },
    {
      "name": "list",
      "topic": "storage",
      "description": "List storage buckets"
    }
  ]
}
```

## Features

### Plugin Architecture
- Dynamic plugin loading
- Plugin manifest support
- Hook-based extensibility
- Salesforce/Heroku CLI patterns

### Topic Organization
- Hierarchical commands (topic:command)
- Shared base commands
- Flag inheritance
- Auto-generated help

### Enterprise Features
- Lifecycle hooks
- Update notifications
- Autocomplete generation
- Comprehensive testing

## Integration with Processes

| Process | Integration |
|---------|-------------|
| cli-application-bootstrap | Enterprise CLI scaffolding |
| plugin-architecture-implementation | Plugin system setup |
| cli-command-structure-design | Topic organization |

## References

- [oclif Documentation](https://oclif.io/)
- [oclif GitHub](https://github.com/oclif/oclif)
- [Building CLIs with oclif](https://oclif.io/docs/introduction)
receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementationStars: 322kUpdated Claude CodeCodexVerifiedInstall
requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirementsStars: 322kUpdated Claude CodeCodexVerifiedInstall
using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallbackStars: 322kUpdated Claude CodeCodexVerifiedInstall
verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions alwaysStars: 322kUpdated Claude CodeCodexVerifiedInstall