/attune-ai:bug-predict <path or directory to scan>from attune-ai
Scans code for bug-prone patterns like eval(), bare excepts, and TODOs. Predicts bug hotspots from complexity and change frequency.
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="bug-predict", 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:
Bug Predict — Predicts where bugs are most likely based on code patterns, complexity, and change frequency.
Before running, ask:
src/ if not specified.Call the bug_predict MCP tool with the scoped path:
bug_predict(path="<user-specified path>")
Or via CLI:
uv run attune workflow run bug-predict --path <target>
When the generic command-workspace tools are available, open adapter
bug-predict with the validated target path and all/high severity filter.
The user's command invocation already authorizes this read-only scan: the
workspace enters running state immediately and has no confirmation action.
Run the existing bug_predict tool, publish optional progress, then publish
one scan_result carrying the real success flag, risk score, findings,
suggestions, or error. Present the terminal widget or its returned Markdown.
A failed run must render did not complete, never a false zero-findings
receipt. Fall back to the existing rich panel/Markdown behavior below when the
shared tools are unavailable.
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.
Present results as a markdown table grouped by severity (HIGH first):
| File | Line | Pattern | Severity |
|---|
Include clickable file links and note any false
positives (see scanner-patterns for known false
positives like subprocess_exec matching
dangerous_eval).
| Pattern | Severity | Description |
|---|---|---|
dangerous_eval | HIGH | Use of eval() or exec() |
broad_exception | MEDIUM | Bare except: or except Exception: |
incomplete_code | LOW | TODO/FIXME comments |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
bug-prediction, code-analysis, risk-scoring, static-analysis
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./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.Other plugins' skills for the same job