/konductor:sop-k-light-ui-testingfrom Konductor
Discovers a deployed web page via Playwright browser automation, writes structured markdown test prompts for user-described features, then executes them live and reports pass/fail per prompt.
Ships in Konductor. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Discovers a deployed web page using browser automation and DOM inspection, writes structured markdown test prompts for the features described by the user, then executes those prompts live using the browser and reports pass/fail per prompt.
Use this SOP during development when pages are not yet ready for full functional test generation — it provides immediate feedback on what's working without requiring a test framework or scaffold.
Do NOT use for: full Cypress/Playwright spec generation, CI pipeline wiring, or apps requiring non-browser authentication (e.g. mTLS).
Browser note: The browser agent uses Playwright's bundled Chromium (not system Chrome). This avoids the "Browser is already in use" error when Chrome is open on Mac. If the target page requires authentication, provide
username/passwordor acredentials_file— see Parameters below.
| Parameter | Required | Description |
|---|---|---|
url | Required unless credentials_file supplies it via test_url | URL of the page to test |
features | Required | Description of the features/flows to test (free text) |
username | Optional | Login username if the app requires authentication |
password | Optional — MUST NOT be logged or displayed anywhere | Login password |
credentials_file | Optional | Path to a .properties file with keys: test_url, user_name, password (note: user_name maps to username) |
output_dir | Optional, default tests/page/ | Directory to write prompt files (relative to current working directory) |
scope_confirmed | Optional, default false | Set true when the caller has already authorized generating and running prompts for whatever discovery finds. Steps 3 and 5 then report and proceed instead of prompting. A parallel or unattended caller MUST set it. |
Parameter acquisition rules:
credentials_file covers url), proceed immediatelyk-browser — discovers the page, runs DOM inspection, executes test promptsk-quality-assurance — writes structured test prompt files from discovery reportDispatch model:
k-light-ui-testingmay be registered on more than one orchestrator'sagentSopNames— verify via each orchestrator's own agent spec rather than assumingkonductoris the only one. Todaykonductor,konductor-mux-orchestrator, andkonductor-cmux-orchestratorall register it, and all three carry the Steps 1/3/5/7 shared-shell-state carve-out this SOP depends on. Whichever orchestrator is driving this SOP dispatches Step 2 and Step 6 to its own browser-persona subagent (k-browserinkonductor's case), and Step 4 to its own test-writing subagent (k-quality-assuranceinkonductor's case), as three independent peer delegations — the test-writing subagent runs Step 4's work inline once dispatched, with no further delegation hop.
Normalize credentials into a single credentials_file path.
If credentials_file is provided:
test_url → url, user_name → username, password → passwordurl is still unset after reading, surface the error and stopusername/password is set after merging (but not both), surface an error and stopIf credentials_file is NOT provided but username and password are provided:
Generate a unique path: credentials_file=$(mktemp /tmp/test-credentials-XXXXXXXXXX)
Run install -m 0600 /dev/null "$credentials_file" then use the write tool to write:
test_url={url}
user_name={username}
password={password}
Set agent_created_credentials_file=true
If credentials_file is NOT provided and exactly one of username/password is provided (but not both):
username and password are required together; only one was provided." Stop.If neither provided: set credentials_file= (empty string — public app).
Constraints:
agent_created_credentials_file=true, run rm -f "$credentials_file" && unset agent_created_credentials_fileDelegate to k-browser.
REQUIRED SKILLS: app-discovery, dom-inspection REQUIRED TOOLS: browser automation tools
MUST DO:
app-discovery skill with the following overrides: authenticate if needed, detect UI framework, capture all interactive elements, run dom-inspection on every form{url} and any pages directly reachable from it (depth ≤ 2) — this is a targeted page test, not a full app crawlcredentials_file is non-empty, sign out of the application before closing (navigate to the app's sign-out/log-off URL or click the sign-out control) — do this before closing the browserMUST NOT DO:
ON FAILURE: k-browser runs rm -f "{credentials_file}" if {agent_created_credentials_file} is true, then surfaces the error and stops. (This step runs in a separate agent from Step 1, which set credentials_file/agent_created_credentials_file — reference the literal values, not shell variables.)
CONTEXT: url={url}, credentials_file={credentials_file}, agent_created_credentials_file={agent_created_credentials_file}, features={features}.
Present a summary to the user:
Unless scope_confirmed=true, ask: "Proceed with test prompt generation for these features? [y/n]"
Constraints:
scope_confirmed=true, MUST report the discovery summary and proceed without asking — the caller already authorized generation for whatever features discovery found. A parallel or unattended caller MUST set it, since the prompt has no one to answerrm -f "$credentials_file" && unset agent_created_credentials_file if agent_created_credentials_file=true, then stopDelegate to k-quality-assurance. Pass {credentials_file} and {agent_created_credentials_file} into this delegated step as literals — Step 4 runs in a separate agent from Step 1, which set them, so the delegate has no shell state to inherit.
REQUIRED TOOLS: read, write
MUST DO:
{features} to {output_dir}dom-inspectiondom-inspection output to make assertions precise: test exact error messages, exact field constraints, exact conditional visibility triggers{feature-slug}.test-prompt.mdON FAILURE: k-quality-assurance runs rm -f "{credentials_file}" if {agent_created_credentials_file} is true, then surfaces the error and stops. (Reference the literal values, not shell variables — this step runs in a separate agent from Step 1.)
Present the list of written prompt files to the user.
Unless scope_confirmed=true, ask: "Review the prompts above. Run them now? [y/n/select]"
y — run all promptsn — if agent_created_credentials_file=true, run rm -f "$credentials_file" && unset agent_created_credentials_file; stop, leave prompts for manual reviewselect — ask which prompts to runConstraints:
scope_confirmed=true, MUST report the prompt list and run all of them without asking — the same authorization covers generating and running. Otherwise MUST NOT proceed to execution without explicit user confirmationDelegate to k-browser. Pass {credentials_file} and {agent_created_credentials_file} into this delegated step as literals — Step 6 runs in a separate agent from Step 1, which set them, so the delegate has no shell state to inherit.
REQUIRED TOOLS: browser automation tools
MUST DO:
playwright-mcp (the public @playwright/mcp package, used by k-browser) IS configured with --output-dir (see that agent's mcpRegistry entry) — browser_take_screenshot persists to that directory (default filename page-{timestamp}.{png|jpeg|webp} when no filename argument is given, per that tool's own documentation). Record the actual saved path — as reported back by the tool call, or {configured-output-dir}/{filename-used} if the tool call did not echo one — as Evidence, not a text description.playwright-mcp's spawn-time flags at all, since that proxy is a long-running deployed service, not a process this SOP spawns. For this path, browser_take_screenshot still returns the image inline with no persisted, referenceable path — do not invent one. Record the screenshot's on-screen content as a short text description (what was visible, e.g. "success banner: 'Item saved'") instead of a path, exactly as before.playwright-mcp (per the first bullet above), or a short text description of the screenshot's content plus actual vs expected when it is using the internal proxy MCP server (per the second bullet above)credentials_file is non-empty, authenticate before executing prompts (reuse session across all prompts)credentials_file is non-empty, sign out of the application before closing (navigate to the app's sign-out/log-off URL or click the sign-out control)MUST NOT DO:
ON FAILURE of a prompt: record as FAIL with the failure reason and the Evidence captured per Step 6 above (a screenshot path or a text description, depending on the MCP server in use), continue to the next prompt — do not abort the entire run.
ON FAILURE of the browser session: k-browser runs rm -f "{credentials_file}" if {agent_created_credentials_file} is true, then surfaces the error and stops. (Reference the literal values, not shell variables — this step runs in a separate agent from Step 1.)
Print a summary:
| Prompt File | Feature | Result | Evidence |
|---|---|---|---|
{filename} | {feature} | ✅ Pass / ❌ Fail | {screenshot path or description} |
--output-dir when the dispatched agent used playwright-mcp, or a short text description of each screenshot's on-screen content when it used the internal proxy MCP server — that server has no persisted, referenceable output location (verified against its actual implementation; see Step 6)agent_created_credentials_file=true, delete the temp file: rm -f "$credentials_file" && unset agent_created_credentials_fileCRITICAL (block proceeding):
rm -f "$credentials_file" && unset agent_created_credentials_file (Step 1, 3, 5, 7, which share Step 1's shell state) or the equivalent rm -f "{credentials_file}" against the literal value (Steps 2, 4, 6, which run in separate delegated agents) on every exit pathscope_confirmed=truedom-inspection not run on forms (assertions will be inaccurate)IMPORTANT (note but do not block):
app-discovery — page crawl and element capturedom-inspection — form validation rule extractione2e-test-strategy — for escalating to full functional test generationk-e2e-test-generation — full Cypress/Playwright spec generation from the same discovery workflow$ARGUMENTS
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ui-testing, browser-automation, playwright, test-prompt, dom-inspection
npx claudepluginhub aws-solutions/konductor --plugin konductor101 skills in this plugin
/about-konductorGets a new user from nothing to a working Konductor session — install the CLI, start the orchestrator, and describe real work in plain language. Covers the real `konductor` CLI command surface, example orchestrator prompts, and the agent/skill/SOP model. Use when a user asks "what is Konductor", "how do I install this", "what can I ask it", or "what's the difference between an agent, a skill, and a SOP"./adr-generatorProduces a complete inline ADR (Context, Decision, Status, Alternatives, Consequences). Use when a significant design decision is identified during design doc creation, when an engineer asks to document a decision as an ADR, or when an existing ADR is incomplete (missing alternatives, consequences, or status). Trigger phrases — "generate an ADR for this decision", "document this as an architecture decision record", "create an ADR for choosing X over Y"./adversarial-code-reviewTargets the three gap categories standard review misses: information disclosure, data integrity, and schema validation. Use for a second-pass review after standard code review, as the checker in a maker-checker cycle, or before submitting a change that touches auth, data writes, or external API boundaries./adversarial-code-review-pass-integrityReviews a diff through the lens of data integrity — multi-item mutations, atomicity, ordering, idempotency. One pass of the parallelized adversarial review; the coordinator spawns this alongside security and schema passes./adversarial-code-review-pass-schemaReviews a diff through the lens of schema and contract — API/schema/type changes, backward compatibility, validation completeness. One pass of the parallelized adversarial review; the coordinator spawns this alongside security and integrity passes./adversarial-code-review-pass-securityReviews a diff through the lens of security concerns — information disclosure, authorization, injection, secrets. One pass of the parallelized adversarial review; the coordinator spawns this alongside integrity and schema passes.Other plugins' skills for the same job