/refine
Refine an existing cli-anything-web CLI by recording additional traffic and expanding command coverage. Invokes the gap-analyzer skill as its first step, then implements missing endpoints.
$ npx -y skills add ItamarZand88/CLI-Anything-WEB --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/refine
Context preview
What this command does when you run it.
Refine an existing cli-anything-web CLI by recording additional traffic and expanding command coverage. Invokes the gap-analyzer skill as its first step, then implements missing endpoints.
Command definition
refine.mdname: cli-anything-web:refine
description: Refine an existing cli-anything-web CLI by recording additional traffic and expanding command coverage. Invokes the gap-analyzer skill as its first step, then implements missing endpoints.
argument-hint: <app-path> [focus-area]
allowed-tools: Bash(*), Read, Write, Edit, mcp__chrome-devtools__*
CRITICAL: Read HARNESS.md First
**Before refining, read `${CLAUDE_PLUGIN_ROOT}/HARNESS.md`.** All new commands and tests must follow the same standards as the original build. HARNESS.md is the navigational overview; the rules themselves are defined in `${CLAUDE_PLUGIN_ROOT}/skills/shared/CONVENTIONS.md`.
CLI-Anything-Web: Refine Existing Harness
Read the methodology SOP: @${CLAUDE_PLUGIN_ROOT}/HARNESS.md
Target: $1 Focus area: $2
Process
> **Skills used:** `gap-analyzer` (mandatory FIRST step), `methodology` > (pipeline), `capture` (if re-recording)
1. **Gap analysis (FIRST step — always)**: Invoke the `gap-analyzer` skill (`${CLAUDE_PLUGIN_ROOT}/skills/gap-analyzer/SKILL.md`) with `APP_PATH=<app>/agent-harness`. It diffs the captured/documented API surface against the implemented commands and client methods. Every reported gap must cite its evidence: the endpoint entry in `<APP>.md` and/or `traffic-capture/traffic-analysis.json` (with `raw-traffic.json` hit counts for priority). If a focus area is specified, filter the report to that domain. 2. **Present gap report**: Show the user the gap analysis results and confirm which gaps to address before proceeding with any recording or implementation 3. **Record new traffic**: Use playwright-cli (see HARNESS.md Phase 1) or chrome-devtools-mcp fallback 4. **Analyze new endpoints**: Add to API map in `<APP>.md` 5. **Implement new commands**: Add to existing command groups or create new ones 6. **Update REPL help**: Edit `_print_repl_help()` in `<app>_cli.py` to reflect every new command and option added (CONVENTIONS.md §REPL Rules help-sync rule). Users typing `help` in the REPL must see all available filters and options. 7. **Update tests**: Add unit + E2E tests for new commands 8. **Run full test suite**: Ensure no regressions 9. **Update TEST.md**: Document new coverage
Rules
- NEVER break existing commands
- NEVER change existing command signatures
- ADD new commands and options only
- Run full test suite after changes
- Update `<APP>.md` with new endpoints
- **Always update `_print_repl_help()` to match the actual command surface**
Success Criteria
- All identified gaps have been addressed or explicitly deferred
- No existing commands are broken or have changed signatures
- New commands follow CONVENTIONS.md (exceptions, --json envelope, REPL rules)
- Full test suite passes (including new tests)
- TEST.md updated with new test coverage
- `<APP>.md` updated with new endpoints
- **REPL `help` output reflects all new commands and key options**
Notes
- Refine is **incremental** — it only adds, never removes commands
- Always **present the gap report** before implementing changes
- Run the full test suite after changes to ensure no regressions
Read more
name: cli-anything-web:refine description: Refine an existing cli-anything-web CLI by recording additional traffic and expanding command coverage. Invokes the gap-analyzer skill as its first step, then implements missing endpoints. argument-hint: <app-path> [focus-area] allowed-tools: Bash(*), Read, Write, Edit, mcp__chrome-devtools__*
CRITICAL: Read HARNESS.md First
**Before refining, read `${CLAUDE_PLUGIN_ROOT}/HARNESS.md`.** All new commands and tests must follow the same standards as the original build. HARNESS.md is the navigational overview; the rules themselves are defined in `${CLAUDE_PLUGIN_ROOT}/skills/shared/CONVENTIONS.md`.
CLI-Anything-Web: Refine Existing Harness
Read the methodology SOP: @${CLAUDE_PLUGIN_ROOT}/HARNESS.md
Target: $1 Focus area: $2
Process
> **Skills used:** `gap-analyzer` (mandatory FIRST step), `methodology` > (pipeline), `capture` (if re-recording)
1. **Gap analysis (FIRST step — always)**: Invoke the `gap-analyzer` skill (`${CLAUDE_PLUGIN_ROOT}/skills/gap-analyzer/SKILL.md`) with `APP_PATH=<app>/agent-harness`. It diffs the captured/documented API surface against the implemented commands and client methods. Every reported gap must cite its evidence: the endpoint entry in `<APP>.md` and/or `traffic-capture/traffic-analysis.json` (with `raw-traffic.json` hit counts for priority). If a focus area is specified, filter the report to that domain. 2. **Present gap report**: Show the user the gap analysis results and confirm which gaps to address before proceeding with any recording or implementation 3. **Record new traffic**: Use playwright-cli (see HARNESS.md Phase 1) or chrome-devtools-mcp fallback 4. **Analyze new endpoints**: Add to API map in `<APP>.md` 5. **Implement new commands**: Add to existing command groups or create new ones 6. **Update REPL help**: Edit `_print_repl_help()` in `<app>_cli.py` to reflect every new command and option added (CONVENTIONS.md §REPL Rules help-sync rule). Users typing `help` in the REPL must see all available filters and options. 7. **Update tests**: Add unit + E2E tests for new commands 8. **Run full test suite**: Ensure no regressions 9. **Update TEST.md**: Document new coverage
Rules
- NEVER break existing commands
- NEVER change existing command signatures
- ADD new commands and options only
- Run full test suite after changes
- Update `<APP>.md` with new endpoints
- **Always update `_print_repl_help()` to match the actual command surface**
Success Criteria
- All identified gaps have been addressed or explicitly deferred
- No existing commands are broken or have changed signatures
- New commands follow CONVENTIONS.md (exceptions, --json envelope, REPL rules)
- Full test suite passes (including new tests)
- TEST.md updated with new test coverage
- `<APP>.md` updated with new endpoints
- **REPL `help` output reflects all new commands and key options**
Notes
- Refine is **incremental** — it only adds, never removes commands
- Always **present the gap report** before implementing changes
- Run the full test suite after changes to ensure no regressions
Claude Code plugin that generates production-grade Python CLIs for any web app. 20 CLIs and counting.
Repo: ItamarZand88/CLI-Anything-WEB
Other commands on cli-anything-web.
- /cli-anything-web
Generate a complete agent-native CLI for any web app by recording and analyzing network traffic via playwright-cli. Runs the full pipeline with site assessment, capture, implementation, testing, and verification.
Open command - /list
List all available CLI-Anything-Web CLIs (installed and generated).
Open command - /record
Record network traffic from a web app without generating a CLI. Useful for initial exploration or adding more coverage data.
Open command - /test
Run tests for a cli-anything-web CLI and update TEST.md with results.
Open command - /validate
Validate a cli-anything-web CLI against the tiered quality checklist (Tier 1 critical / Tier 2 comprehensive). Reports per-category and per-tier results.
Open command

