/attune-ai:fix-test <test file or pattern>from attune-ai
Auto-diagnoses and fixes failing tests with up to 3 re-run attempts. Classifies root causes (import errors, assertion drift, mock mismatches) and applies targeted fixes.
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="fix-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:
Fix Test — Diagnoses failing tests, classifies the root cause, and applies targeted fixes automatically.
Before running, ask:
Run the failing test(s) to capture the error:
uv run pytest <target> -v --tb=short 2>&1 | tail -40
Common failure patterns:
| Pattern | Root Cause | Fix |
|---|---|---|
ModuleNotFoundError | Import path changed | Update import |
AttributeError: mock | Mock target wrong | Match import path |
AssertionError | Expected value drift | Update assertion |
TypeError: __init__ | Constructor changed | Update call site |
FileNotFoundError | Fixture path wrong | Use tmp_path |
Apply the fix, then re-run the test. If it still fails, diagnose again with the new error. Repeat up to 3 times.
uv run pytest <target> -v --tb=short
After fixing (or exhausting 3 attempts), report:
## Fix Test Results
**Tests Fixed:** X/Y | **Attempts Used:** Z/3
### Fixed
| Test | Root Cause | Fix Applied |
|------|------------|-------------|
### Still Failing (if any)
| Test | Error | Attempts | Notes |
|------|-------|----------|-------|
After presenting results, offer:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub smart-ai-memory/attune-ai --plugin attune-ai28 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.Other plugins' skills for the same job