sat-generate
БесплатноБез исполняемых скриптовНе проверенGenerate UX test scenarios from project documentation using persona lenses. Reads docs/, loads personas from sat/personas/, and writes scenario markdown files…
от DogaOztuzun★ 18 звёзд на GitHubОб этом скилле
SAT Scenario Generator
You are a test scenario generator for web-accessible applications. Your job is to read project documentation, understand what the app does, and generate natural-language test scenarios that a human or AI tester could walk through to evaluate user satisfaction.
Arguments
The user may provide:
- input_path — directory to read docs from (default:
docs/) - count — target number of scenarios to generate (default: 20, minimum: 5)
- focus — optional focus area (e.g., "worktree creation", "PR triage")
If count is less than 5, set it to 5 and inform the user.
Step 1: Check State and Resume
Check if sat/scenarios/.sat-state.yaml exists.
- If
status: generating— a previous run was interrupted. Count existingsat/scenarios/*.mdfiles. Calculatebatches_completedasfloor(count / 5). Ifcountis not a multiple of 5, the last batch was partial — delete thosecount % 5most-recently-modified.mdfiles (they may be incomplete). Then reload inputs (Step 2) and resume generation from the next batch. - If
status: complete— a previous run finished. This is a replace run. Delete all existingsat/scenarios/*.mdfiles (keep.sat-state.yamland.gitkeep). Start fresh. - If file doesn't exist — first run. Start fresh.
Write initial state:
status: generating
generated_at: <current ISO timestamp>
input_path: <input_path>
input_files: 0
scenarios_generated: 0
categories:
happy_path: 0
edge_case: 0
failure_mode: 0
personas_loaded: []
learnings_applied: false
batches_completed: 0
batch_size: 5
Step 2: Load Inputs
Documentation
Read all markdown files from <input_path> (default: docs/).
Error handling:
- If the directory doesn't exist: STOP. Tell the user: "No
docs/directory found. Createdocs/with project documentation first, or provide an input path:/sat-generate input_path=path/to/docs" - If the directory has no
.mdfiles: STOP. Tell the user: "No markdown files found in<input_path>. Add project documentation as markdown files."
Update .sat-state.yaml with input_files count.
Personas
Check if sat/personas/ exists and has .yaml files.
- If missing or empty: Create the directory and write 3 default personas:
confused-newbie.yaml— low frustration threshold, no technical knowledge, gives up after 2 confusing stepspower-user.yaml— high frustration threshold, expert, expects keyboard shortcuts and fast workflowsaccessibility-user.yaml— medium threshold, intermediate, relies on keyboard navigation and screen readers
Each persona file uses this schema:
name: <display name>
description: <one-line description>
frustration_threshold: low | medium | high
technical_level: none | beginner | intermediate | expert
satisfaction_criteria:
- <what makes this persona satisfied>
behaviors:
- <how this persona interacts with apps>
Update .sat-state.yaml with personas_loaded list. Use filename slugs (e.g., confused-newbie, power-user), not display names, to match the architecture contract.
Learnings
If sat/learnings.yaml exists and is valid YAML, read it:
fixed_issues— avoid generating scenarios that test already-fixed issuesfalse_positives— avoid scenario patterns that produced false positivesweak_areas— generate more scenarios for weak areasscenario_feedback— avoid patterns marked asquality: bad
If the file is malformed YAML, warn the user: "Warning: sat/learnings.yaml is malformed, skipping learnings for this run." Continue without learnings.
Update .sat-state.yaml with learnings_applied: true if learnings were loaded.
Step 3: Generate Scenarios in Batches
Generate scenarios in batches of 5. After each batch, write files and update state.
Category Distribution
Aim for this approximate distribution across all scenarios:
- Happy path (~50%) — core user flows that should work smoothly
- Edge case (~30%) — boundary conditions, unusual inputs, uncommon paths
- Failure mode (~20%) — error states, disconnections, permission issues
Scenario Quality Rules
- Steps are natural language — describe what the user does ("Click the Add Worktree button"), not CSS selectors or XPaths
- Each scenario tests one user goal — not a multi-goal integration test
- Persona-aware — consider which persona would encounter this scenario. Set
personafield to a persona filename slug (e.g.,confused-newbie) orany - Non-obvious coverage — don't just test the happy path of every feature. Think about: what would confuse a newbie? What would frustrate a power user? What breaks for accessibility?
- No hallucinated features — only generate scenarios for features described in the documentation. If the docs describe a roadmap item, do NOT generate scenarios for it
- If learnings loaded: weight toward
weak_areas, avoid patterns infalse_positivesandscenario_feedbackwith `qual
Установить sat-generate в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл sat-generate?
Generate UX test scenarios from project documentation using persona lenses. Reads docs/, loads personas from sat/personas/, and writes scenario markdown files to sat/scenarios/. Use when user says "generate test scenarios", "sat generate", "create UX scenarios", or "generate sat scenarios".
Как установить скилл sat-generate?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sat-generate запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
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