/test
Run tests for a cli-anything-web CLI and update TEST.md with results.
$ 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
/test
Context preview
What this command does when you run it.
Run tests for a cli-anything-web CLI and update TEST.md with results.
Command definition
test.mdname: 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
CLI-Anything-Web: Test Runner
> **Skills used:** `testing` (Phase 3)
Read the methodology overview: @${CLAUDE_PLUGIN_ROOT}/HARNESS.md
Target: $ARGUMENTS
Process
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:
- Ensure playwright-cli is available (`npx @playwright/cli@latest --version`)
- Fix auth before running any tests
- Do NOT proceed with "auth not configured" — that is a broken test
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:
- Check output for `[_resolve_cli] Using installed command:` — this confirms
the installed package is being tested, not the source fallback
- If this line is absent, the installed CLI was not found in PATH
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.md Format
# 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>
Failure Handling
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
Read more
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
CLI-Anything-Web: Test Runner
> **Skills used:** `testing` (Phase 3)
Read the methodology overview: @${CLAUDE_PLUGIN_ROOT}/HARNESS.md
Target: $ARGUMENTS
Process
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:
- Ensure playwright-cli is available (`npx @playwright/cli@latest --version`)
- Fix auth before running any tests
- Do NOT proceed with "auth not configured" — that is a broken test
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:
- Check output for `[_resolve_cli] Using installed command:` — this confirms
the installed package is being tested, not the source fallback
- If this line is absent, the installed CLI was not found in PATH
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.md Format
# 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>
Failure Handling
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
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 - /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.
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

