e2e-guide-analysis
Run E2E CLI against a JSON guide to analyze edge cases and behavior. Use when the user wants to test a guide with the e2e CLI for learning purposes, study e2e…
от grafana★ 24 звезды на GitHub
Установить e2e-guide-analysis в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
E2E Guide Analysis
This skill runs the E2E CLI against a provided JSON guide with maximum diagnostic output, then analyzes results to identify edge cases and learnings. The goal is exploratory testing to inform e2e CLI design and guide specification improvements.
Prerequisites
Before running, ensure:
- Grafana is running locally:
npm run server(or verify at http://localhost:3000) - Plugin is built:
npm run devornpm run build - The JSON guide file exists at the provided path
Workflow
Step 1: Run E2E CLI with maximum diagnostics
npx pathfinder-cli e2e <GUIDE_PATH> \
--verbose \
--always-screenshot \
--trace \
--artifacts ./cursor/local/e2e/artifacts/<guide-name> \
--output ./cursor/local/e2e/artifacts/<guide-name>/report.json
Replace <GUIDE_PATH> with the user-provided path. Extract <guide-name> from the filename (or the title inside of the JSON if the guide-name is just 'content') and don't include .json in the name.
Step 2: Gather artifacts
After the CLI completes (pass or fail), collect:
- Console output: The full terminal output from Step 1
- JSON report: Read
report.jsonfrom the artifacts directory - Screenshots: List and read all
.pngfiles in the artifacts directory - Trace file: Note location of
trace.zipif tracing was enabled (intest-results/) - DOM snapshots: Read any
*-dom.htmlfiles for selector debugging
Step 3: Analyze results
For each step in the guide, examine:
| Aspect | What to look for |
|---|---|
| Status | passed, failed, skipped, not_reached |
| Skip reason | pre_completed, no_do_it_button, requirements_unmet |
| Requirements | Were requirements met? Did fix buttons work? |
| Timing | How long did each step take? Timeouts? |
| Screenshots | Visual anomalies, unexpected UI state |
Step 4: Identify learnings
Categorize findings into:
- Guide spec issues: Problems with the JSON guide itself (missing fields, bad selectors, unclear requirements)
- E2E CLI issues: Bugs or limitations in the test runner (detection logic, timing, edge cases)
- Grafana/UI issues: Product behavior that affects guide execution
- Infrastructure issues: Timeouts, network errors, auth problems
Step 5: Write learning document
Create or update: tests/e2e-runner/learning/<guide-name>.md
Use this template:
# E2E Analysis: <Guide Title>
**Guide**: `<path-to-guide>`
**Date**: <ISO date>
**CLI version**: (from package.json)
## Summary
<1-2 sentence overview of what was tested and overall outcome>
## Test Results
| Metric | Value |
| ----------- | ----- |
| Total steps | N |
| Passed | N |
| Failed | N |
| Skipped | N |
| Not reached | N |
| Duration | Xms |
## Observations
### [Issue Category]
**Finding**: <description>
**Evidence**: <screenshot reference, log excerpt, or JSON snippet>
**Impact**: <how this affects guide execution>
**Recommendation**: <suggested fix or investigation>
(repeat for each significant finding)
## Edge Cases Discovered
- <edge case 1>
- <edge case 2>
## Recommendations
### For guide authors
- <actionable guidance>
### For E2E CLI development
- <suggested improvements>
## Artifacts
- Screenshots: `artifacts/<guide-name>/`
- JSON report: `artifacts/<guide-name>/report.json`
- Trace: `test-results/.../trace.zip` (if enabled)
Reference documentation
For deeper context, read these files:
docs/developer/E2E_TESTING.md- CLI architecture, options, outcomes, and troubleshootingdocs/developer/E2E_TESTING_CONTRACT.md- DOM selector contract used by the runner
Exit codes reference
| Code | Meaning |
|---|---|
| 0 | All steps passed |
| 1 | One or more steps failed |
| 2 | Configuration/setup error |
| 3 | Grafana unreachable |
| 4 | Auth failure |
Common edge cases to watch for
- Steps without "Do it" buttons: Some steps have
doIt: falseor arenooptype - Pre-completed steps: Objectives may complete before clicking
- Sequential dependencies: Steps may wait for previous step completion
- Fix button failures: Requirements fix buttons can fail repeatedly
- Multistep timeouts: Complex multisteps need dynamic timeout calculation
- Session expiry: Long-running tests may hit auth expiration
Notes
- This skill is for exploratory learning, not pass/fail testing
- Focus on understanding behavior, not just reporting failures
- Multiple runs may reveal flaky behavior patterns
- Compare results across different guide types to find patterns
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл e2e-guide-analysis?
Run E2E CLI against a JSON guide to analyze edge cases and behavior. Use when the user wants to test a guide with the e2e CLI for learning purposes, study e2e failures, analyze screenshots, or investigate edge cases in the guide runner.
Как установить скилл e2e-guide-analysis?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл e2e-guide-analysis запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…