/amplihack:qa-teamfrom amplihack
Creates outside-in, behavior-driven tests using YAML scenarios executed by AI agents. Supports local, tmux, SSH, and shadow-mode validation for smoke tests, parity loops, and A/B comparison.
Ships in amplihack. 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.
Read when SKILL.md points to them.
Before running test commands, detect the repository type and use the appropriate tooling:
| Indicator | Repo Type | Test Command | Parity Harness |
|---|---|---|---|
Cargo.toml at root | Rust CLI | cargo test | Native Rust tests with tests/parity/scenarios/*.yaml fixtures |
package.json at root | Node/Electron | gadugi-test run <scenario>.yaml | gadugi-agentic-test framework |
setup.py / pyproject.toml | Python | pytest or gadugi-test run | gadugi-agentic-test framework |
For Rust CLI repos (e.g. amplihack-rs): substitute cargo test for all gadugi-test run invocations below, and use tests/parity/scenarios/*.yaml for cross-cutting CLI parity validation. Do not require the gadugi-agentic-test framework to be installed.
This skill helps you create agentic outside-in tests that verify application behavior from an external user's perspective without any knowledge of internal implementation. Using the gadugi-agentic-test framework (or cargo test for Rust CLI repos), you write declarative YAML scenarios that AI agents execute, observe, and validate.
Key Principle: Tests describe WHAT should happen, not HOW it's implemented. Agents figure out the execution details.
Host load: Never generate CPU, memory or disk load on the host to check a claim. Use a test seam (a fake or injected load reading, or a stand-in that pauses at the point in question), or confine the stress to a cgroup or container with a small CPU limit that you create for that one check. Where a claim cannot be checked that way, say what you did not check.
Traditional Inside-Out Testing:
# Tightly coupled to implementation
def test_calculator_add():
calc = Calculator()
result = calc.add(2, 3)
assert result == 5
assert calc.history == [(2, 3, 5)] # Knows internal state
Agentic Outside-In Testing:
# Implementation-agnostic behavior verification
scenario:
name: "Calculator Addition"
steps:
- action: launch
target: "./calculator"
- action: send_input
value: "add 2 3"
- action: verify_output
contains: "Result: 5"
Benefits:
Gadugi-agentic-test is a Python framework that:
Architecture:
YAML Scenario → Scenario Loader → Agent Dispatcher → Execution Engine
↓
[CLI Agent, TUI Agent, Web Agent, Electron Agent]
↓
Observers → Comprehension Agent
↓
Evidence Report
This skill teaches testing in four levels:
Each example is marked with its level. Start at Level 1 and progress as needed.
Before you do any of the work in this table, read the named file from this skill's folder. Follow Repo-Type Detection in those files, subject to the existing-suite rule in writing-e2e-tests.md.
| File | Read when |
|---|---|
reference.md | You need the full list of actions, advanced patterns or custom agents. |
practice.md | You run scenarios and need where evidence is written, pitfalls or troubleshooting. |
parity-and-shadow.md | You need side-by-side parity, A/B comparison, shadow mode, tmux or SSH. |
writing-e2e-tests.md | You are writing end-to-end tests and need to choose tooling and cover user journeys. |
Prerequisites (for native module compilation):
# macOS
xcode-select --install
# Ubuntu/Debian
sudo apt-get install -y build-essential
# Windows: Install Visual Studio Build Tools with "Desktop development with C++"
Install the framework:
The gadugi-agentic-test framework is not published to npm. Install it from GitHub:
# Clone the repository
git clone https://github.com/rysweet/gadugi-agentic-test.git
cd gadugi-agentic-test
# Install dependencies and build
npm install
npm run build
# Verify the build succeeded
node dist/cli.js --version
Tip: If you want CLI-style access from anywhere, you can add an alias:
alias gadugi-test="node /path/to/gadugi-agentic-test/dist/cli.js"
Create test-hello.yaml:
scenario:
name: "Hello World CLI Test"
description: "Verify CLI prints greeting"
type: cli
prerequisites:
- "./hello-world executable exists"
steps:
- action: launch
target: "./hello-world"
- action: verify_output
contains: "Hello, World!"
- action: verify_exit_code
expected: 0
Run the test:
node dist/cli.js run -s test-hello -d ./
Output:
✓ Scenario: Hello World CLI Test
✓ Step 1: Launched ./hello-world
✓ Step 2: Output contains "Hello, World!"
✓ Step 3: Exit code is 0
PASSED (3/3 steps successful)
Evidence saved to: ./evidence/test-hello-20250116-093045/
Every test scenario has this structure:
scenario:
name: "Descriptive test name"
description: "What this test verifies"
type: cli | tui | web | electron
# Optional metadata
tags: [smoke, critical, auth]
timeout: 30s
# What must be true before test runs
prerequisites:
- "Condition 1"
- "Condition 2"
# The test steps (executed sequentially)
steps:
- action: action_name
parameter1: value1
parameter2: value2
- action: verify_something
expected: value
# Optional cleanup
cleanup:
- action: stop_application
Use Case: Command-line tools, scripts, build tools, package managers
Supported Actions:
launch - Start the CLI programsend_input - Send text or commands via stdinsend_signal - Send OS signals (SIGINT, SIGTERM)wait_for_output - Wait for specific text in stdout/stderrverify_output - Check stdout/stderr contains/matches expected textverify_exit_code - Validate process exit codecapture_output - Save output for later verificationExample (see examples/cli/calculator-basic.yaml):
scenario:
name: "CLI Calculator Basic Operations"
type: cli
steps:
- action: launch
target: "./calculator"
args: ["--mode", "interactive"]
- action: send_input
value: "add 5 3\n"
- action: verify_output
contains: "Result: 8"
timeout: 2s
- action: send_input
value: "multiply 4 7\n"
- action: verify_output
contains: "Result: 28"
- action: send_input
value: "exit\n"
- action: verify_exit_code
expected: 0
Use Case: Terminal user interfaces (htop, vim, tmux, custom dashboard TUIs)
Supported Actions:
launch - Start TUI applicationsend_keypress - Send keyboard input (arrow keys, enter, ctrl+c, etc.)wait_for_screen - Wait for specific text to appear on screenverify_screen - Check screen contents match expectationscapture_screenshot - Save terminal screenshot (ANSI art)navigate_menu - Navigate menu structuresfill_form - Fill TUI form fieldsExample (see examples/tui/file-manager-navigation.yaml):
scenario:
name: "TUI File Manager Navigation"
type: tui
steps:
- action: launch
target: "./file-manager"
- action: wait_for_screen
contains: "File Manager v1.0"
timeout: 3s
- action: send_keypress
value: "down"
times: 3
- action: verify_screen
contains: "> documents/"
description: "Third item should be selected"
- action: send_keypress
value: "enter"
- action: wait_for_screen
contains: "documents/"
timeout: 2s
- action: capture_screenshot
save_as: "documents-view.txt"
Use Case: Web apps, dashboards, SPAs, admin panels
Supported Actions:
navigate - Go to URLclick - Click element by selector or texttype - Type into input fieldswait_for_element - Wait for element to appearverify_element - Check element exists/contains textverify_url - Validate current URLscreenshot - Capture browser screenshotscroll - Scroll page or elementExample (see examples/web/dashboard-smoke-test.yaml):
scenario:
name: "Dashboard Smoke Test"
type: web
steps:
- action: navigate
url: "http://localhost:3000/dashboard"
- action: wait_for_element
selector: "h1.dashboard-title"
timeout: 5s
- action: verify_element
selector: "h1.dashboard-title"
contains: "Analytics Dashboard"
- action: verify_element
selector: ".widget-stats"
count: 4
description: "Should have 4 stat widgets"
- action: click
selector: "button.refresh-data"
- action: wait_for_element
selector: ".loading-spinner"
disappears: true
timeout: 10s
- action: screenshot
save_as: "dashboard-loaded.png"
Use Case: Desktop apps built with Electron (VS Code, Slack, Discord clones)
Supported Actions:
launch - Start Electron appwindow_action - Interact with windows (focus, minimize, close)menu_click - Click application menu itemsdialog_action - Handle native dialogs (open file, save, confirm)ipc_send - Send IPC message to main processverify_window - Check window state/propertiesExample (see examples/electron/single-window-basic.yaml):
scenario:
name: "Electron Single Window Test"
type: electron
steps:
- action: launch
target: "./dist/my-app"
wait_for_window: true
timeout: 10s
- action: verify_window
title: "My Application"
visible: true
- action: menu_click
path: ["File", "New Document"]
- action: wait_for_element
selector: ".document-editor"
- action: type
selector: ".document-editor"
value: "Hello from test"
- action: menu_click
path: ["File", "Save"]
- action: dialog_action
type: save_file
filename: "test-document.txt"
- action: verify_window
title_contains: "test-document.txt"
scenario:
name: "Clear descriptive name"
description: "Detailed explanation of what this test verifies"
type: cli | tui | web | electron
# Optional fields
tags: [smoke, regression, auth, payment]
priority: high | medium | low
timeout: 60s # Overall scenario timeout
retry_on_failure: 2 # Retry count
# Environment requirements
environment:
variables:
API_URL: "http://localhost:8080"
DEBUG: "true"
files:
- "./config.json must exist"
Prerequisites are conditions that must be true before the test runs. The framework validates these before execution.
prerequisites:
- "./application binary exists"
- "Port 8080 is available"
- "Database is running"
- "User account [email protected] exists"
- "File ./test-data.json exists"
If prerequisites fail, the test is skipped (not failed).
Steps execute sequentially. Each step has:
steps:
# Simple action
- action: launch
target: "./app"
# Action with multiple parameters
- action: verify_output
contains: "Success"
timeout: 5s
description: "App should print success message"
# Continue even if this fails
- action: click
selector: ".optional-button"
continue_on_failure: true
Verification actions check expected outcomes. They fail the test if expectations aren't met.
Common Verifications:
# CLI: Check output contains text
- action: verify_output
contains: "Expected text"
# CLI: Check output matches regex
- action: verify_output
matches: "Result: \\d+"
# CLI: Check exit code
- action: verify_exit_code
expected: 0
# Web/TUI: Check element exists
- action: verify_element
selector: ".success-message"
# Web/TUI: Check element contains text
- action: verify_element
selector: "h1"
contains: "Welcome"
# Web: Check URL
- action: verify_url
equals: "http://localhost:3000/dashboard"
# Web: Check element count
- action: verify_element
selector: ".list-item"
count: 5
# Electron: Check window state
- action: verify_window
title: "My App"
visible: true
focused: true
Cleanup runs after all steps complete (success or failure). Use for teardown actions.
cleanup:
- action: stop_application
force: true
- action: delete_file
path: "./temp-test-data.json"
- action: reset_database
connection: "test_db"
This skill includes 15 complete working examples organized by application type and complexity level:
See examples/ directory for full example code with inline documentation.
scenario:
# Required fields
name: "Test Name"
description: "What this test verifies"
type: cli | tui | web | electron
# Optional metadata
tags: [smoke, critical]
timeout: 60s
# What must be true before running
prerequisites:
- "Condition 1"
- "Condition 2"
# Environment setup
environment:
variables:
VAR_NAME: "value"
# Variables for templating
variables:
username: "testuser"
# Test steps (executed in order)
steps:
- action: launch
target: "./app"
- action: send_input
value: "command\n"
- action: verify_output
contains: "Success"
timeout: 5s
# Cleanup (always runs)
cleanup:
- action: stop_application
Claude, use the qa-team skill to create a CLI test for my calculator app.
Claude, use qa-team to generate web tests for the login flow.
Claude, create TUI tests using the qa-team skill for file navigation.
User: "Create a web test for user login with valid credentials"
Claude (using this skill):
scenario:
name: "User Login - Valid Credentials"
description: "Verifies user can successfully log in with valid email and password"
type: web
tags: [smoke, auth, critical]
prerequisites:
- "User [email protected] exists with password 'TestPass123!'"
- "Application is running on http://localhost:3000"
steps:
# Navigate to login page
- action: navigate
url: "http://localhost:3000/login"
description: "Open login page"
# Wait for page to fully load
- action: wait_for_element
selector: "form.login-form"
timeout: 5s
description: "Wait for login form to render"
# Fill in email field
- action: type
selector: "input[name='email']"
value: "[email protected]"
description: "Enter email address"
# Fill in password field
- action: type
selector: "input[name='password']"
value: "TestPass123!"
description: "Enter password"
# Submit form
- action: click
selector: "button[type='submit']"
description: "Click login button"
# Wait for redirect to dashboard
- action: wait_for_url
contains: "/dashboard"
timeout: 10s
description: "Should redirect to dashboard after successful login"
# Verify user is logged in
- action: verify_element
selector: ".user-profile"
contains: "[email protected]"
description: "User email should appear in profile widget"
# Capture evidence
- action: screenshot
save_as: "successful-login.png"
description: "Save screenshot of logged-in state"
# To run this test:
# 1. Save as test-login-valid.yaml
# 2. Run: gadugi-test run test-login-valid.yaml
# 3. Check evidence in ./evidence/user-login-valid-credentials-TIMESTAMP/
Remember: Outside-in tests verify WHAT your application does, not HOW it does it. Focus on user-visible behavior, and your tests will remain stable across refactorings while providing meaningful validation of critical workflows.
Start at Level 1 with simple smoke tests, and progressively add complexity only when needed. The framework's AI agents handle the hard parts - you just describe what should happen.
README.md (opens in a new tab)examples/cli/calculator-basic.yaml (opens in a new tab)examples/cli/cli-error-handling.yaml (opens in a new tab)examples/cli/cli-interactive-session.yaml (opens in a new tab)examples/custom-agents/custom-comprehension-agent.yaml (opens in a new tab)examples/custom-agents/custom-reporter-integration.yaml (opens in a new tab)examples/electron/electron-ipc-testing.yaml (opens in a new tab)examples/electron/electron-menu-testing.yaml (opens in a new tab)examples/electron/multi-window-coordination.yaml (opens in a new tab)examples/electron/single-window-basic.yaml (opens in a new tab)examples/tui/file-manager-navigation.yaml (opens in a new tab)examples/tui/tui-form-validation.yaml (opens in a new tab)examples/tui/tui-performance-monitoring.yaml (opens in a new tab)examples/web/dashboard-smoke-test.yaml (opens in a new tab)examples/web/web-authentication-flow.yaml (opens in a new tab)examples/web/web-visual-regression.yaml (opens in a new tab)parity-and-shadow.md (opens in a new tab)practice.md (opens in a new tab)reference.md (opens in a new tab)writing-e2e-tests.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub rysweet/amplihack-rs --plugin amplihack30 skills in this plugin
/agentic-workflow-firstStart new work as a deterministic workflow of agentic steps, prompts, and tools instead of code. Use when designing a feature, deciding how to build something, choosing code vs recipe, or asking "how should I structure this"./amplihack-expertComprehensive knowledge of amplihack framework architecture, patterns, and usage/code-atlasBuilds comprehensive, living code-atlases as multi-layer architecture documents derived from
code-first truth. Defaults to both Graphviz DOT and Mermaid. User can override to single format.
Language-agnostic (Go, TypeScript, Python, .NET, Rust, Java). Files issues with
'code-atlas-bughunt' label. Treats atlas-building as a multi-agent bug-hunting journey:
graph-form reasoning exposes structural bugs, route/DTO mismatches, orphaned env vars,
dead code paths, and stale documentation that linear review misses. Three-pass bug hunt
with per-journey PASS/FAIL/NEEDS_ATTENTION verdicts.
Use when: creating architecture documentation, investigating unfamiliar codebases,
hunting structural bugs, setting up CI/CD diagram refresh, or publishing to GitHub Pages/mkdocs.
/code-philosophyMulti-pass code philosophy audit skill. Performs three distinct passes
over target code to verify adherence to the project's PHILOSOPHY.md
principles. Produces a structured report with findings and delegates
fixes to dev-orchestrator. This is an advisory audit-only skill — it
does not modify code directly.
/crusty-old-engineerCurmudgeonly engineering advisor that provides grounded skepticism, evidence-linked judgment,
and constructive progress on architectural decisions, legacy refactors, tooling choices, and
broad "how should I start?" questions. Sounds like a senior systems engineer who has reviewed
too many designs to be impressed, but still cares about correctness.
Use when: architectural decisions, legacy replacements, new tooling evaluation, broad planning questions.
/default-workflowDevelopment workflow for features, bugs, refactoring. Normally executed as a
sub-recipe by dev-orchestrator/smart-orchestrator. Supports direct invocation
via recipe runner for standalone use.
Other plugins' skills for the same job