/cli-anything-web:gap-analyzerfrom cli-anything-web
Compares a CLI's implemented commands against its documented API map and traffic analysis to find missing endpoints, incomplete CRUD, dead client methods, and priority gaps. Useful as a pre-review scan or first step in refinement.
Ships in cli-anything-web. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Produce a structured gap report comparing a CLI's documented API surface against its implemented commands.
Where this skill runs:
/cli-anything-web:refine — mandatory first step. The refine command
invokes this skill before reading or changing anything else; the gap report
drives which endpoints get implemented.standards skill — optional pre-review scan (endpoint coverage there is
otherwise handled by the traffic-fidelity-reviewer agent).Evidence rule: the captured-vs-implemented diff must cite its sources —
each reported gap references the endpoint entry in <APP>.md (the documented
surface) and, when available, traffic-capture/traffic-analysis.json (the
analyzer's detected endpoint inventory), plus raw-traffic.json hit counts
for priority. A gap with no citation in either file is a guess, not a finding.
You need the path to an existing CLI's agent-harness directory:
{APP_PATH}/agent-harness/ — the CLI root{app} — the app name (e.g., reddit, hackernews)Evidence files (read all that exist):
{APP_PATH}/agent-harness/{APP_UPPER}.md — documented API map (required){APP_PATH}/traffic-capture/traffic-analysis.json — detected endpoints/protocol{APP_PATH}/traffic-capture/raw-traffic.json — hit counts for priority scoringRun the mechanical layer diff first — it AST-parses the client and command modules and cross-references traffic-analysis.json, so you only spend judgment on what it can't decide:
cli-web-devkit gaps {app} # or: PYTHONPATH=devkit python -m cli_web_devkit gaps {app}
The JSON report gives unimplemented_endpoints (captured but absent from
client.py) and unexposed_methods (client methods no command calls). Treat
these as candidate gaps to verify in Steps 1–3, not as final answers — the
string-level endpoint matching is intentionally conservative.
Read all source files to build the set of implemented functionality:
Read all files in {APP_PATH}/agent-harness/cli_web/{app}/commands/:
@click.command() and @<group>.command() decorators[(group, subcommand, [args], [options])]Read {APP_PATH}/agent-harness/cli_web/{app}/core/client.py:
_)[(method_name, http_verb, url_pattern)]For each Click command, trace which client method it calls:
client.method_name() calls{command: client_method}Read {APP_PATH}/agent-harness/{APP_UPPER}.md (the API map):
[(resource, http_verb, url, params, description)]Cross-check against {APP_PATH}/traffic-capture/traffic-analysis.json (if it
exists): endpoints the analyzer detected but <APP>.md never documented are
themselves a gap (stale API map) — report them with the traffic-analysis.json
entry as the citation.
Compare implemented vs documented:
Endpoints in <APP>.md that have no corresponding Click command:
For each documented endpoint:
Find matching client method (by URL pattern or method name)
Find matching Click command (that calls this client method)
If no command found → MISSING
Click commands that call client methods not documented in <APP>.md:
For each Click command:
Find the client method it calls
Find the endpoint in <APP>.md for this method
If no endpoint found → UNDOCUMENTED (possible hallucination)
Client methods that no Click command calls:
For each public client method:
Search all commands/*.py for calls to this method
If no command calls it → DEAD
For each resource group, check CRUD coverage:
For each resource in <APP>.md:
Check which CRUD ops the API supports (list, get, create, update, delete)
Check which are implemented as commands
If any supported op is missing → INCOMPLETE
If {APP_PATH}/traffic-capture/raw-traffic.json exists:
If raw-traffic.json doesn't exist, skip priority scoring and list all gaps alphabetically.
Present the gap report in this format:
Gap Report: cli-web-{app}
━━━━━━━━━━━━━━━━━━━━━━━━━
Coverage: X/Y endpoints (Z%)
Missing (HIGH priority):
{HTTP_METHOD} {url} — {description} ({N} hits in traffic)
...
Missing (MED priority):
{HTTP_METHOD} {url} — {description} ({N} hits)
...
Missing (LOW priority):
{HTTP_METHOD} {url} — {description} ({N} hits)
...
Incomplete CRUD:
{resource}: has {ops} ✓, missing {ops} ✗
...
Dead client methods:
client.{method_name}() — not called by any command
...
Undocumented commands:
{group} {subcommand} — calls client.{method}() but endpoint not in <APP>.md
...
If all endpoints are covered:
Gap Report: cli-web-{app}
━━━━━━━━━━━━━━━━━━━━━━━━━
Coverage: Y/Y endpoints (100%)
No gaps found. All documented endpoints are implemented.
What SKILL.md sets; muted values are Claude Code's defaults
Trigger phrases: "gap analysis", "what's missing", "coverage report", "what endpoints are not implemented". For "refine" alone, use the /cli-anything-web:refine command (which invokes this skill first).
npx claudepluginhub itamarzand88/cli-anything-web --plugin cli-anything-web6 skills in this plugin
/boilerplateDocuments the template inventory and variable contract behind scaffold-cli.py — which Jinja2 template renders with which variables for each site profile. Use during Phase 2 scaffolding when choosing scaffold flags or understanding what the generated boilerplate contains. The scaffold-cli.py script is the primary path.
/captureCaptures HTTP traffic from a web app using playwright-cli — site fingerprinting (framework, protections, auth, API discovery) plus full traffic recording into raw-traffic.json. Use as Phase 1 of CLI generation whenever a target URL needs its API surface recorded or assessed.
/methodologyOther plugins' skills for the same job