cli-helper

Invoke Fractary CLI commands and return structured JSON results.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/fractary/claude-plugins --skill cli-helper
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cli-helper
Source: https://github.com/fractary/claude-plugins/tree/main/plugins/work/skills/cli-helper
Command: npx skills add https://github.com/fractary/claude-plugins --skill cli-helper

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires bash, jq, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Shared utility for invoking the Fractary CLI from work plugin skills with consistent output and error handling.

Core Features & Use Cases

  • Validate CLI availability
  • Invoke CLI with JSON output
  • Normalize and parse CLI responses
  • Provide structured results for higher-level skills

Quick Start

Call the helper to run a CLI command and return a structured JSON payload.

Frequently Asked Questions about cli-helper

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I invoke Fractary CLI commands from other work plugins?

CLI-helper wraps Fractary CLI invocation with consistent error handling and JSON output parsing. Call the helper to execute CLI commands, validate availability, and receive structured results for downstream processing across both global and npx installations.

Can I use bash and jq to parse CLI output programmatically?

Yes. CLI-helper combines bash scripting with jq to normalize and parse CLI JSON responses. It handles exit codes, validates CLI availability, and returns structured output ready for higher-level skill consumption.

What's the best way to standardize error handling across multiple CLI invocations?

CLI-helper centralizes error handling and output normalization for Fractary CLI calls. By delegating execution to this shared utility, you preserve exit codes and ensure consistent JSON formatting across all work plugins.

Does CLI-helper work with both global and npx CLI installations?

Yes. CLI-helper supports both global and npx-based Fractary CLI installations. It validates CLI availability before execution and adapts invocation method automatically for either installation type.

How do I ensure my work plugin receives structured JSON from CLI execution?

CLI-helper validates CLI availability, executes commands with JSON output flags, and returns a structured payload ready for parsing. This eliminates inconsistent output formatting and simplifies downstream data processing in plugins.