smart-testlisted
Install: claude install-skill Smart-AI-Memory/attune-ai
# Smart Test
**IMPORTANT: Start your response with a context preamble.**
Call `help_lookup(topic="smart-test", mode="preamble")` and
display the returned `preamble` text as a blockquote. Then
tell the user they can say "tell me more" for a step-by-step
guide, or answer the scoping questions below to proceed.
If the MCP call fails, fall back to:
> **Smart Test** — Finds untested code and generates pytest tests with edge cases and error paths.
## Scoping
Before running, ask:
1. **Target**: "Which file or module needs tests?"
2. **Approach**: "What kind of testing?"
- Gap analysis — Find untested public functions
- Generate tests — Write pytest tests for a module
- Both — Audit gaps then generate tests for them
## MCP Tools
| Tool | What It Does |
| ---- | ------------ |
| `test_audit` | Coverage audit and gap detection |
| `test_generation` | Generate unit tests with edge cases |
| `test_gen_parallel` | Batch test generation (10-50 modules) |
## Execution
### Shared command workspace (preferred)
Open adapter `smart-test` with the validated target and `gap`, `generate`, or
`both` approach. The bound audit action is read-only. Publish the actual audit
as `audit_result`, including exact proposed test paths before any generator is
called. Present the proposal widget or Markdown; only an explicitly confirmed
`generate_tests` action authorizes those paths.
After `test_generation`, publish `generation_result` with the exact files
reported from disk. The adapter i