/attune-ai:smart-test <path or module to test>from attune-ai
Finds untested code and generates pytest tests with edge cases and error paths. Triggers on requests about test coverage, gaps, or generating tests.
Ships in attune-ai. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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.
Before running, ask:
| 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) |
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 independently hashes those files and rejects
writes outside or different from the approved set. Run the returned test
probe and publish its exact command and exit code as validation_result.
Generator or test failure must say “did not complete” and retain the written
paths for rollback; it may not claim tests were created successfully. Preserve
the same preview/write/validation gates in compact text when the shared tools
are unavailable.
For gap analysis:
test_audit(path="<target>")
For targeted test generation:
test_generation(module="<target module>")
For batch generation across many modules:
test_gen_parallel(top=10)
Prefer the rich panel. If the tool response includes panel_html,
pass it to mcp__visualize__show_widget — the universal report panel
(title, score, findings/category sections; from
attune.workflows.report_panel). It shows an explicit "did not
complete" state on failure, never a false "clean". Fall back to the
markdown below when the widget surface is unavailable.
## Test Gap Analysis
**Coverage:** X% | **Untested Functions:** Y
### Gaps by Priority
| File | Function | Risk | Coverage |
|------|----------|------|----------|
### Generated Tests
| File | Tests Created | Edge Cases |
|------|---------------|------------|
After presenting results, call:
help_lookup(topic="smart-test", mode="workflow_help")
If templates are returned, offer: "I have tips about test generation — want to see them?"
After presenting results, offer:
What SKILL.md sets; muted values are Claude Code's defaults
28 skills in this plugin
/attune-hubDeveloper workflow hub — routes to the right skill based on what you need. Triggers on: attune, what can attune do, what can you do, capabilities, where do I start, get started./author-featureAuthor a single-source feature page — a code-verified master that projects to .help kinds + docs pages, no API credits. Triggers on: author a feature page, single-source doc, new feature master, draft docs without an api./bug-predictPredict likely bug locations from code patterns and complexity. Triggers on: predict bugs, find bugs, risky code, code risk, what might break, likely bugs, bug hotspots./bulkBatch API processing for 50% cost savings on non-urgent bulk analysis. Triggers on: batch, bulk process, batch API, cheap bulk, process many, overnight analysis, 50% savings./catalogEnumerate everything attune offers — every workflow, wizard, and tool, read live from the registries. Triggers on: catalog, list capabilities, browse, show all, what can attune do, list workflows, list wizards, what tools are there./coachProgressive help for any topic. Repeat to go deeper: concept -> procedural -> reference. Triggers on: coach, learn, explain, teach me, tell me more, how does, what is, go deeper.npx claudepluginhub smart-ai-memory/attune-ai --plugin attune-aiOther plugins' skills for the same job