/lstack-extras:user-testfrom lstack-extras
Launches an app, API, or CLI and tests it like a real user: walks through every feature, logs bugs, perf, and UX issues, auto-fixes simple ones, and produces a validated report.
Ships in lstack-extras. 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; scripts run unread.
Use the app the way its users would. Launch it, walk every in-scope journey through its real
interface, prove each problem with evidence, fix the simple and medium problems and verify each
fix the same way, then hand back one report with a plan for the rest. The run is done when
report exits 0.
Terms used throughout:
.user-test/<UTC stamp>/ in the project root. init creates it and excludes .user-test/ from git.example.com addresses are not side effects.fix: off, and always off on the Remote branch.UT means python3 <skill-dir>/scripts/user_test.py. Each subcommand prints JSON. Exit 1 means a
check failed, 2 bad input or a missing tool, 3 a conflict that needs the user; read the error:
and fix: lines on stderr. Workers load references/testing.md and references/fixing.md; the
main agent opens only testing.md §12–§13, because a long run's context budget is the scarce resource.
Use when the user wants an app, API or CLI tried the way a real user would: "test my app end to end", "QA or dogfood this before release", "click through every feature", "check checkout like a customer". Not for writing unit tests (test-coverage), writing Playwright or Cypress suites, reviewing code without running it (code-review), design-only audits (design-optimizer), confirming that one recent change works (just run the app), load testing, or penetration testing.
python3 and a shell. The script requires only the standard library.curl for an API, the shell (plus tmux for a full-screen TUI) for a CLI.Check the rows in order; the first match wins.
| Condition | Branch |
|---|---|
| The request gives a URL, or calls the app deployed, staging or production | Remote: no launch; fix mode off; report and plan only |
| The user says the app already runs locally | Local-reuse: skip the launch; fix mode as requested |
| Source code is in the named or current directory | Local: launch from source; fix mode as requested |
| Neither source nor URL can be found | Ask for one. Do nothing else |
Scope is all features unless the request names some; then it is focus: the named features are tested, and the journeys needed to reach them (sign-in, cart) are only preconditions. Print the branch, scope and fix mode in one line, then continue without waiting. Remote against production: ask once before creating any account or record.
Applies when fix mode is on and the project is a git repo. Run it right after UT init, before
UT detect, in the project root (<root>):
branch="$(git -C <root> rev-parse --abbrev-ref HEAD)"
git -C <root> fetch origin && git -C <root> pull --rebase origin "$branch"
If the tree is dirty: git -C <root> stash push -u -m "pre-user-test", sync, then stash pop. If
origin is missing or the branch has no upstream, ask once whether to continue without a sync,
unless the request says the repo is local-only. If branch is HEAD (detached), skip the sync and
note it. If the rebase or the pop conflicts, stop and ask the user.
Steps 3–5 delegate to subagents. Without the Agent tool, read the named reference yourself, run
the step inline one area at a time, and run UT update --run-dir <run_dir> --note "ran inline: fixes verified by the same agent".
UT init --root <root> --branch <local|local-reuse|remote> --scope <all|"a,b"> --fix <on|off> [--url <url>]. Record run_dir. Then run the Repo Sync.UT doctor and UT detect --root <root>. Prefer a command the README documents over a detected one.curl for an API; the shell or tmux for a CLI or TUI. Record it: UT update --run-dir <run_dir> --json '{"driver": "<driver>"}'.Bar: run.json names the branch, scope, fix mode and driver.
detect reports deps_missing, only with its lockfile command, and never on Local-reuse or Remote.detect lists services or the README needs a database, run its check command first. Start only the missing services with docker compose up -d <service>, never through app start, and record them: UT update --run-dir <run_dir> --json '{"services": ["db"]}'. Run documented setup (migrations) only against a local dev database; never a reset or a seed that drops data..env is missing, .env.example exists, and .env is git-ignored, copy it and record {"created_env": true}. A feature that needs a real secret is blocked, not faked.UT app start --run-dir <run_dir> --cmd "<start>" [--port <port>], then UT app wait --run-dir <run_dir>. Local-reuse and Remote: only UT app wait --run-dir <run_dir> --url <url>. CLI or TUI: run <cli> --help; the bar is exit 0.evidence/_run/launch.txt and record a critical finding:
UT update --run-dir <run_dir> --add-finding --json '{"id": "run-1", "title": "App does not start", "kind": "defect", "category": "crash", "severity": "critical", "impact": "...", "complexity": "simple", "complexity_reason": "...", "journey": null, "where": "startup", "steps": ["Run <start>"], "expected": "...", "actual": "...", "evidence": ["evidence/_run/launch.txt"]}'.
A missing service or secret is an environment problem: block instead and ask the user. With fix mode on and a cause that fits one file and 20 lines, record the Step 5.1 baseline, fix it through Step 5.3, and start again, at most twice. Otherwise go to Step 6. Recorded before Step 3, this crash finding marks the app not ready, so collect runs without features.json.evidence/_run/smoke.png. If it fails, drop to the next driver and add a note. A browser failing with error while loading shared libraries needs npx playwright install-deps chromium, which uses sudo: ask first.Bar: the app answered and the driver loaded it once, or the launch finding is recorded.
Spawn one read-only explorer subagent with input references/testing.md (§1–§2), the root or URL,
the scope, the env notes and the run dir. It writes <run_dir>/features.json and returns the
counts. Run UT check-features --run-dir <run_dir>; send its errors back to the explorer once. If
the map holds more than 60 in-scope journeys, show the areas with counts and ask whether to test all
or a subset.
Bar: check-features exits 0 (it also fails when a focus name matches no area).
For each in-scope area, in order, spawn a fresh tester subagent and wait for it before the next; parallel testers would share one app, one database and often one browser.
references/testing.md, the run dir, the area id and its journeys, the app URL or command, the driver, test credentials, env notes, and the side effects the user approved (usually none).<run_dir>/areas/<area>.json, evidence under <run_dir>/evidence/<area>/, and one summary line.Between areas, run UT app status --run-dir <run_dir>. If the app died, record a crash finding as in
Step 2.5, start it again, and continue. After the last area, run UT collect --run-dir <run_dir> and
send each error to a new tester for that area with its existing area file, to fix in place. If
journeys are blocked with needs approval, ask the user once; a new tester re-tests only the
approved rows of that area file.
Bar: collect exits 0: every in-scope journey has one coverage row and every finding cites existing evidence.
UT build-check --run-dir <run_dir> --label baseline --build "<build>" --test "<test>". Read the exits from the JSON; exit 1 only means a command failed. If the baseline build fails, turn fix mode off and add a note. If the tests share the app's database, ask before running them.security category, ordered by severity, then simple before medium. A fix the user asked for that falls under fixing.md §2 stays in the plan; say so in the final response.references/fixing.md, the run dir, the finding, the baseline commands, the attempt number, env notes. It returns built, complex or failed. A fix that would touch a file of an earlier fix in this pass waits for the next pass.UT app stop, UT app start, UT app wait, each with --run-dir <run_dir>).built findings. Input: references/testing.md (§3, §7, §8, §11), the run dir, and per finding its id, area, journey, steps and expected result; plus the app URL, the driver, credentials and env notes. It never sees a diff, and returns one verdict per finding.pass: UT update --run-dir <run_dir> --finding <id> --json '{"status": "fixed-verified"}'.fail or fixer failed: one more fixer attempt with the verifier's observation, verified in the next pass.complex after an edit, a fixer that stopped mid-edit) with a manifest in checkpoints/<id>/: run UT checkpoint restore --run-dir <run_dir> --fix <id>, restart the app, and set {"status": "fix-failed", "fix": {"restored": true}} if an edit was made, else leave it open.UT build-check --run-dir <run_dir> --label final with the baseline commands. On a new failure, restore fixed findings newest first, re-running final after each, until it passes; mark each restored one fix-failed and re-verify any fixed finding that shares a file with it.Bar: every candidate is fixed-verified, fix-failed and restored, or open; checks.final exists with build exit 0 and no new test failures.
UT update --run-dir <run_dir> --finding <id> --json '{"plan": {"approach": "...", "effort": "S|M|L", "risk": "low|medium|high"}}'.UT collect --run-dir <run_dir> (it also merges a launch finding), then UT report --run-dir <run_dir>. Fix every error report lists and run it again until it exits 0.
report.md is the record to read or paste into a PR; report.html adds filters and inline screenshots for runs with many findings. Both come from the same findings.json.report.html with the driver. Apply one filter, then Reset. If you cannot, note the check as untested.UT app stop --run-dir <run_dir>; it stops only processes this run started. Stop the recorded services with docker compose stop <service>, never down. Delete .env if this run created it.Bar: report exited 0, both report files exist, UT app status --run-dir <run_dir> lists nothing running, and the final response's first line starts with Result:.
git reset, git checkout -- . or git clean. A failed fix rolls back only through its checkpoint.UT update --run-dir <run_dir> --json '{"commits": [...]}', re-run report, and list the rest for the user to commit. Push only when asked.Use this template. The first line of the message is the Result: line: no greeting or summary before it.
Result: <COMPLETE | PARTIAL | BLOCKED> · <the headline `report` printed>
Evidence: <report.md and report.html paths; journey counts; each fixed finding with its files
and verifier evidence; baseline and final check exits>
Uncertainty: <journeys not tested and why; dev-build performance numbers; checks you could not
run; requested fixes left in the plan; suspicions kept as notes>
Decision: <the decision lines from `report`, e.g. "review and commit the verified fixes",
or "No approval needed.">
After each step, print:
◆ Step 4: Test areas (step 4 of 6)
··································································
Areas tested: √ 5/5
Coverage rows: √ 23/23 journeys (18 pass, 3 fail, 2 blocked)
collect: √ exit 0
____________________________
Result: PARTIAL (2 journeys need approval)
Name the checks after the step's bar. Never print PASS while a bar is unmet.
UT report exits 0; report.md and report.html exist in the run dir.checks.final exists.git status --porcelain shows no project file changed since the run started.Sign-in without a test account, a monorepo, failing baseline tests, flaky failures, a native app without a driver, and Windows: references/testing.md → 12. Edge cases (main agent).
A worked focus-scope run with fix mode on: references/testing.md → 13. Example run (main agent).
Expected output: the two report files and a final response in the order above.
Optional and propose-only. After the run's result is delivered, run this check:
references/ (the directory holding this SKILL.md). Bump the patch number of metadata.version. If the skill is an installed copy or tracked in git, say so. Commit nothing unless the user asks.Off — the user opted out.What SKILL.md sets; muted values are Claude Code's defaults
highThree short reads, in order
end-to-end-testing, qa, user-testing, bug-reporting, automated-fixing
npx claudepluginhub luongnv89/skills --plugin lstack-extras32 skills in this plugin
/agent-profileRun a task with a saved agent profile (harness, model, thinking level) built only from what this machine has installed. User-invoked: /agent-profile. Don't use for free opencode runs, Herdr or Rex fleets, or mcc account setup./ai-job-scoutFind open AI engineering jobs that fit a candidate, verify location and apply links, and assess each employer's product. Use for one-off shortlists or a job alert's research step. Don't use for résumé writing, job applications, or company news./appstore-assetsGenerate App Store screenshots, header/search images and looping videos for iPhone, iPad, Mac from code or a landing page, or re-render a set. Use when preparing a submission. Don't use for App Previews, ASO, review audits, icons, Google Play./appstore-review-checkerAudit iOS/macOS apps against App Store Review Guidelines before submission, with evidence-backed verdicts and fixes. Don't use for Google Play, general code review, or rejection appeals./aso-marketingOptimize App Store and Google Play listings via a 7-phase, plan-approval-gated ASO workflow: keywords and rank tracking, metadata, screenshot captions, localization. Don't use for web SEO, Search Ads/paid UA, or pre-submission compliance audits./brand-name-checkerCheck product and brand names for conflicts across trademarks, domains, social handles, and package registries. Returns a risk level and Proceed/Modify/Abandon verdict. Don't use for name brainstorming, logo design, or trademark filings.Other plugins' skills for the same job