test-analyze
БесплатноЗапускает вложенные скриптыНе проверенAnalyze test results and create a fix plan with subagents. Use when triaging failing tests, analyzing JUnit XML, planning fixes for accessibility/security, or…
от laurigates★ 61 звезда на GitHubОб этом скилле
Test Analysis and Fix Planning
Analyzes test results from any testing framework, uses PAL planner to create a systematic fix strategy, and delegates fixes to appropriate subagents.
When to Use This Skill
| Use this skill when... | Use test-report instead when... |
|---|---|
| Triaging a directory of failing-test results into a fix plan | You only need a quick cached status read |
| Categorizing flaky, performance, accessibility, or security failures | Running the tests in the first place (use test-run) |
| Delegating fixes to specialized subagents | Asking strategic "how should we test X?" questions (use test-consult) |
| Producing a structured plan from JUnit XML or coverage output | Iterating on a single failing spec (use test-focus) |
Usage
/test:analyze <results-path> [--type <test-type>] [--focus <area>]
Parameters
<results-path>: Path to test results directory or file (required)- Examples:
./test-results/,./coverage/,pytest-report.xml
- Examples:
--type <test-type>: Type of tests (optional, auto-detected if omitted)accessibility- Playwright a11y, axe-coreunit- Jest, pytest, cargo testintegration- API tests, database testse2e- Playwright, Cypress, Seleniumsecurity- OWASP ZAP, Snyk, TruffleHogperformance- Lighthouse, k6, JMeter
--focus <area>: Specific area to focus on (optional)- Examples:
authentication,api,ui-components,database
- Examples:
Examples, a flow overview, output shape, and related commands: references/usage.md. The Prompt below is the procedure.
Subagent Routing
This table is the single source of truth for delegation. Every subagent_type this skill dispatches is listed in this table; no other section restates it. The values are plugin-qualified plugin:agent IDs — the form the Task/Agent tool resolves for plugin-provided agents (a bare name only resolves for user- or project-level agents in ~/.claude/agents/ or .claude/agents/).
It is also the contract the workflow harness's category enum and AGENT_FOR map encode — edit them together. scripts/check-subagent-types.sh fails CI if any value here stops resolving to a real agents-plugin/agents/*.md.
| Issue category | Triggers | Dispatch | Focus to pass |
|---|---|---|---|
| Accessibility violations | WCAG, ARIA, colour contrast, keyboard nav | subagent_type: agents-plugin:review |
WCAG 2.1 compliance, semantic HTML, ARIA best practices |
| Security vulnerabilities | XSS, SQLi, CSRF, auth bypass | subagent_type: agents-plugin:security-audit |
OWASP Top 10, input validation, authentication |
| Performance issues | Slow tests/queries, memory leaks, timeouts | subagent_type: agents-plugin:performance |
Profiling, bottleneck identification, optimization |
| Code quality / smells | Duplication, complexity, coupling, maintainability | subagent_type: agents-plugin:refactor |
SOLID principles, DRY, behaviour-preserving restructure |
| Flaky tests / test infrastructure | Race conditions, timing, shared state, isolation | subagent_type: agents-plugin:test |
Test stability, isolation, determinism |
| Integration failures | Failing behaviour needing root-cause diagnosis | subagent_type: agents-plugin:debug |
Root cause, minimal fix, verification |
| Build / CI failures | Pipeline errors, dependency issues | subagent_type: agents-plugin:ci |
GitHub Actions, dependency management, caching |
| Documentation gaps | Missing docs, outdated examples | subagent_type: agents-plugin:docs |
API docs, test documentation, migration guides |
Workflow harness (template)
workflows/test-analyze.workflow.js ships beside this skill. It is a TEMPLATE to adapt,
not a script to run verbatim. Read it, then rewrite it for the work in front of you.
Adapt freely: the agent prompts, the severity vocabulary, the result-file globs and
format hints for your test framework, the --focus weighting, and the verification
command each plan agent is told to emit. The parse stage runs on
agents-plugin:lean-reader (Haiku 5.5, no CLAUDE.md, Read/Grep/Glob only), so its
brief must carry everything it needs. Without agents-plugin, drop its agentType.
Preserve across any adaptation: (a) the fan-out width comes from the AGENT_FOR
table above — one agent per agent type, never a prose "for each failure", which is what
caps the harness at 8 concurrent agents; (b) the category and severity enums in
RoutedFailuresSchema, which force every failure either onto a route or into
unroutable[] with a stated reason instead of the nearest-looking row; (c) the
parallel() barrier before Synthesize — group agents emit depends_on edges pointing at
failures in other groups, so the ordering only exists once every group has returned.
Agent budget: 2 + agent types — parse and synthesize, plus one planning agent
per routed agent type (at most 8, the AGENT_FOR table). The scale guard asks
before every
Установить test-analyze в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
TaskReadGlobGrepTodoWriteВложенные файлы
FAQ
Что делает скилл test-analyze?
Analyze test results and create a fix plan with subagents. Use when triaging failing tests, analyzing JUnit XML, planning fixes for accessibility/security, or categorizing flaky/E2E failures.
Как установить скилл test-analyze?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл test-analyze запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic