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…
Run tests for a cli-anything-web CLI and update TEST.md with results.
> /plugin marketplace add ItamarZand88/CLI-Anything-WEB > /plugin install cli-anything-web@cli-anything-web
How it fires
How this command gets triggered: by you, by Claude, or both.
/testContext preview
What this command does when you run it.
Run tests for a cli-anything-web CLI and update TEST.md with results.
name: cli-anything-web:test description: Run tests for a cli-anything-web CLI and update TEST.md with results. argument-hint: <app-path> allowed-tools: Bash(*), Read, Write, Edit
> **Skills used:** `testing` (Phase 3)
Read the methodology overview: @${CLAUDE_PLUGIN_ROOT}/HARNESS.md
Target: $ARGUMENTS
This command invokes the `testing` skill for Phase 3.
1. **Verify auth is working FIRST** — this is mandatory before any E2E test:
cli-web-<app> auth login # playwright-cli (recommended) cli-web-<app> auth login --cookies-json <file> # manual fallback cli-web-<app> auth status
Auth status MUST show live validation succeeded. If it fails:
2. Locate test directory: `<app>/agent-harness/cli_web/<app>/tests/` 3. Run full test suite:
cd <app>/agent-harness python -m pytest cli_web/<app>/tests/ -v --tb=short 2>&1
4. If installed, also run subprocess tests:
CLI_WEB_FORCE_INSTALLED=1 python -m pytest cli_web/<app>/tests/ -v -s -k subprocess 2>&1
After running, verify the subprocess backend was used:
the installed package is being tested, not the source fallback
5. Parse test output: count passed, failed, skipped, errors 6. **Generate TEST.md** using the automated generator:
python ${CLAUDE_PLUGIN_ROOT}/scripts/generate-test-docs.py full \
<app>/agent-harness/cli_web/<app>/tests --app-name <app>This produces both Part 1 (test plan from AST) and Part 2 (results from pytest). 7. If failures exist, analyze and suggest fixes
See the `testing` skill for detailed testing patterns and the `standards` skill for quality checks.
# Test Results — cli-web-<app> ## Summary - **Total**: X tests - **Passed**: X - **Failed**: X - **Date**: YYYY-MM-DD ## Unit Tests (test_core.py) <list of test results> ## E2E Tests (test_e2e.py) <list of test results> ## CLI Subprocess Tests <list of test results>
If any tests fail: 1. **Show the failures** — print the full pytest output with failure details 2. **Do NOT update TEST.md** — TEST.md should only contain passing results 3. **Analyze and suggest fixes** — provide specific guidance for each failure 4. **Offer to re-run** — ask the user if they want to fix and re-test
Claude Code plugin that generates production-grade Python CLIs for any web app. 20 CLIs and counting.
Repo: ItamarZand88/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…
Record network traffic from a web app without generating a CLI. Useful for initial exploration or adding more coverage data.
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…
Validate a cli-anything-web CLI against the tiered quality checklist (Tier 1 critical / Tier 2 comprehensive). Reports per-category and per-tier results.