Refines existing CLI harness for software at <software-path> by analyzing gaps in coverage and adding new commands/tests, optionally focusing on specific features.
From cli-anythingnpx claudepluginhub hkuds/cli-anything --plugin cli-anything/refineRefines existing cli-anything-web CLI: performs gap analysis, records new traffic with Playwright or DevTools, implements missing endpoints, updates tests and REPL help.
/refineRefines an existing writer skill by analyzing additional writing samples and updating the voice profile. Provide path to skill directory.
/refineAnalyzes existing PRD for gaps using a section checklist, generates markdown gap analysis, and refines via targeted interactive questions.
Refine an existing CLI harness to improve coverage of the software's functions and usage patterns.
Before refining, read ./HARNESS.md. All new commands and tests must follow the same standards as the original build. HARNESS.md is the single source of truth for architecture, patterns, and quality requirements.
/cli-anything:refine <software-path> [focus]
<software-path> - Required. Local path to the software source code (e.g., /home/user/gimp, ./blender). Must be the same source tree used during the original build.
Note: Only local paths are accepted. If you need to work from a GitHub repo, clone it first with /cli-anything, then refine.
[focus] - Optional. A natural-language description of the functionality area to focus on. When provided, the agent skips broad gap analysis and instead targets the specified capability area.
Examples:
/cli-anything:refine /home/user/shotcut "vid-in-vid and picture-in-picture features"/cli-anything:refine /home/user/gimp "all batch processing and scripting filters"/cli-anything:refine /home/user/blender "particle systems and physics simulation"/cli-anything:refine /home/user/inkscape "path boolean operations and clipping"When [focus] is provided:
This command is used after a CLI harness has already been built with /cli-anything. It analyzes gaps between the software's full capabilities and what the current CLI covers, then iteratively expands coverage. If a [focus] is given, the agent narrows its analysis and implementation to that specific functionality area.
<software>_cli.py) and all core modules{ function_name: covered | not_covered }<software-path>--json output supporthandle_errorcore/ or utils/test_core.pytest_full_e2e.pyREADME.md with new commands and usage examplesTEST.md with new test results<SOFTWARE>.md) with new coverage notes# Broad refinement — agent finds gaps across all capabilities
/cli-anything:refine /home/user/gimp
# Focused refinement — agent targets a specific functionality area
/cli-anything:refine /home/user/shotcut "vid-in-vid and picture-in-picture compositing"
/cli-anything:refine /home/user/gimp "batch processing and Script-Fu filters"
/cli-anything:refine /home/user/blender "particle systems and physics simulation"
/cli-anything:refine /home/user/inkscape "path boolean operations and clipping masks"