blackbox-test
Run a blackbox test of the project's CLI or executable. Use this skill whenever the user wants to "blackbox test", "test the CLI blindly", "test as an outsider", "test without reading source", "QA test the tool", "smoke test the CLI", "exploratory testing", or says anything like "pretend you don't know the code and test it". Also triggers when the user mentions "blackbox", "black box", "blind test", or "external test" in the context of testing their project. This skill works with any tech stack — Python, Node, Rust, Go, or anything else that produces a CLI.
What this skill does
# Blackbox Test
Launch an isolated subagent that tests the project's CLI with zero knowledge of the
source code. The agent discovers capabilities solely through the CLI itself, tries to
break it, and produces a structured feedback report.
## Why this matters
Reading source code biases testing — you test what you *know* it does rather than
what a real user would encounter. A blackbox test catches discoverability problems,
misleading help text, confusing error messages, silent failures, and edge cases that
unit tests miss because they reflect the author's assumptions.
## How it works
1. You create a temporary `./blackbox/` directory as an isolation boundary
2. You spawn a subagent inside it with strict instructions: no source code access,
only CLI interaction
3. The subagent explores, documents, and stress-tests the CLI
4. It writes `FEEDBACK.md` inside the blackbox directory
5. You copy the feedback to the repo root with a timestamped slug name
6. You delete the blackbox directory
## Step 1: Determine the command
Figure out how to invoke the project's CLI. Check, in order:
- Ask the user if they specified a command
- Look at `pyproject.toml` for `[project.scripts]` entries
- Look at `package.json` for `bin` or `scripts.start`
- Look at `Cargo.toml` for `[[bin]]`
- Look for a `Makefile` with a run target
- Look for an obvious entry point (`main.go`, `cli.py`, `index.js`)
Determine the full invocation command, including any virtual environment activation
or path prefix needed. For example:
- Python: `/path/to/.venv/Scripts/python -m mypackage` or `.venv/bin/python -m mypackage`
- Node: `npx mypackage` or `node dist/cli.js`
- Rust: `cargo run --` or `./target/release/mybin`
- Go: `go run .` or `./mybin`
## Step 2: Create the isolation directory
```bash
mkdir -p ./blackbox
```
## Step 3: Spawn the subagent
Use the Agent tool with `mode: "bypassPermissions"` so the tester can run commands
freely. The prompt below is a template — fill in `{{COMMAND}}` and `{{WORKING_DIR}}`.
```
You are a QA tester performing a blackbox test of a CLI tool. You have ZERO prior
knowledge about this tool. You cannot read any source code.
The command to run the tool is: {{COMMAND}}
Your working directory is: {{WORKING_DIR}}/blackbox
## Testing protocol
### Phase 1: Discovery
- Run the tool with no arguments
- Run with --help / -h
- Run with --version / -v
- Explore every subcommand's --help
- Note the tool's apparent purpose, all commands, all flags
### Phase 2: Happy path
- For each subcommand, construct a valid invocation using the help text
- Create any needed input files (markdown, JSON, YAML, CSV, etc.) in your
working directory
- Verify outputs match what the help text promises
### Phase 3: Error handling
- Missing required arguments
- Invalid flag values and types
- Non-existent file paths
- Permission-denied scenarios (read-only files)
- Empty files, binary files, files with only whitespace
- Extremely long inputs (generate a large file, 1000+ entries)
- Special characters in file names and content (spaces, unicode, quotes)
- CRLF vs LF line endings
- Deeply nested or recursive structures
### Phase 4: Edge cases
- Flags in unusual positions (before/after subcommands)
- Duplicate flags
- Mutually exclusive options used together
- Pipe input (echo "..." | {{COMMAND}})
- Output to stdout vs file vs non-existent directory
- Concurrent invocations if applicable
- Ctrl+C interruption behavior (if testable)
### Phase 5: Consistency
- Are exit codes consistent and meaningful?
- Are error messages helpful and actionable?
- Is output format consistent across commands?
- Does --help match actual behavior?
## Rules
- Do NOT read source code files (.py, .js, .ts, .rs, .go, .java, etc.)
- Do NOT read build configs (pyproject.toml, package.json, Cargo.toml, etc.)
- Do NOT look at test files
- Only interact via the CLI
- Create all test fixtures inside your working directory
## Deliverable
Create {{WORKING_DIR}}/blackbox/FEEDBACK.md with these sections:
# Blackbox Test Report
## Tool Summary
What does this tool appear to do? Based solely on CLI exploration.
## Bugs Found
Numbered list. Each bug has:
- **Title**: one-line summary
- **Severity**: critical / high / medium / low
- **Reproduction**: exact commands to reproduce
- **Expected**: what should happen
- **Actual**: what actually happens
## UX Issues
Numbered list of confusing, inconsistent, or poorly documented behaviors.
## What Worked Well
Things that impressed you or worked correctly under stress.
## Recommendations
Prioritized suggestions for improvement.
## Test Log
Summary table of every command tried and its outcome category
(pass / fail / unexpected / crash).
```
## Step 4: Collect and archive results
After the subagent finishes:
1. Copy the feedback file to the repo root with a slug name:
```bash
cp ./blackbox/FEEDBACK.md ./FEEDBACK-blackbox-$(date +%Y-%m-%d).md
```
If a file with that name already exists, append a counter:
`FEEDBACK-blackbox-2025-01-15-2.md`
2. Remove the blackbox directory:
```bash
rm -rf ./blackbox
```
3. Summarize the results to the user — total bugs found by severity,
top UX issues, and anything that worked well. Keep it concise.
## Customization
The user can modify the test by saying things like:
- "Focus on the `deploy` subcommand" — narrow Phase 2-4 to that command
- "Test with JSON output" — add `--format json` or equivalent to all commands
- "Include performance testing" — add timing measurements to the protocol
- "Skip edge cases" — drop Phase 4
Adapt the subagent prompt accordingly.
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.