Skip to content

feat: sc run <plugin> <action> — one-shot discover+install+execute #335

Description

@javimosch

Problem

Promoting SuperCLI on social media needs a tweetable one-liner. Currently, discovering and running a plugin for the first time requires 3 chained commands:

npx superacli plugins update && npx superacli plugins install claude-session-optimizer && npx superacli claude-session-optimizer self auto

Thats ~240 characters — too long for a tweet, and too verbose for a first-time user to remember.

Desired UX

# one-shot: updates catalog, installs plugin, runs the action
npx superacli run claude-session-optimizer self auto

# even shorter alias
npx scrun claude-session-optimizer self auto

A single run (or go, x, !) command that:

  1. plugins update — syncs the latest plugin catalog from GitHub master (so new plugins are discoverable even on stale npm releases)
  2. plugins install <plugin> — registers the plugin commands if not already installed (idempotent — no-op if already installed)
  3. Executes the requested <resource> <action> with given args

Requirements

  • Idempotent: if plugin is already installed and catalog is current, skip steps 1-2 and just execute
  • Fast path: if local catalog is fresh (e.g., <1h old), skip the update fetch
  • Works with npx: must not require global install — npx superacli run <plugin> <action> should be the entry point
  • Error handling: if plugin not found even after update, show clear error with available plugins

Example

# Tweetable one-liner for claude-session-optimizer
npx superacli run claude-session-optimizer self auto

# Works for any plugin
npx superacli run github-mcp self mcp
npx superacli run a2a-skill project init

Why This Matters

A 240-char shell pipeline wont fit in a tweet, wont get retweeted, and wont convert casual users. A single run command at ~80 chars will.

Real use case: promoting claude-session-optimizer — see https://github.com/javimosch/claude-session-optimizer

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions