/lstack:verify-setupfrom lstack
Creates a repo-local verify skill that boots and drives a web app, API, or CLI end-to-end against a feature map, then stress-tests it three times for stability.
Ships in lstack. 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.
Running a change end to end catches what tests miss. This skill writes the repo's own verify skill: how to boot the app, drive each user-visible feature and grade the result, kept next to the code in .claude/skills/verify/ (a portable copy in .agents/skills/verify/). Agents run it before they commit. It also writes a feature map (each feature, how to reach it, and the expected result), which is the verify skill's pass/fail rubric. Then it runs the new harness three times and reports every step whose result changed between runs, because the harness is the smoke test and has to be fast and steady.
Every command in the verify skill comes from the repo: a manifest script, a Makefile target, a CI step, a README block. A command with no source is never guessed (Rules).
| The user says | Do |
|---|---|
| "Set up a verify skill for this repo", "codify how to run and check this app" | The full workflow |
| "Write a feature map we can grade the app against" | The full workflow; the feature map is part of it |
| "Our verify skill is flaky, stress-test it" | Steps 0 and 3 (a plan with only the existing verify skill's commands and .verify/.gitignore), then Steps 5 and 7 |
Not for: writing unit or integration tests (test-coverage), testing an app once as a user and fixing what breaks (user-test), pre-commit hooks and CI (devops-pipeline). A library with nothing to boot or run gets no verify skill: say so and stop.
curl for HTTP checks). Missing ones are listed in the plan, never installed silently.UNVERIFIED.path:line. No source: ask the user, or leave the step out and list it as UNVERIFIED. Never invent a port, script name, flag or URL. An error-path row may use a deliberately nonexistent probe value (/verify-unknown-path, verify-unknown): a probe input, not an invented command.wordcount/cli.py:14, argparse subparsers → exit 2 and "invalid choice"). A feature whose expected result has no source gets expected: ask the user, and it is never graded PASS until the user answers.npx playwright install, chromedriver), a simulator or emulator, a test framework, or any global tool is its own plan item, default No. So is installing the project's declared dependencies: its lockfile command, into the repo only (node_modules/, a repo-local .venv/), never global or user site-packages..verify/ at the repo root, which ignores itself (.verify/.gitignore holds *). Every command it runs gets the environment in references/detection.md → Keeping writes in the repo, which points tool caches, logs and TMPDIR there. It never writes to the home directory, /tmp, global config or another repo. A command whose writes outside the repo cannot be redirected that way (an app config path the repo hard-codes) is not run: its rows are UNVERIFIED and the plan says why.The skill writes files into the repository, so after the plan is approved and before the first write, sync the current branch, stashing a dirty tree first:
branch="$(git rev-parse --abbrev-ref HEAD)"
stashed=0
if [ -n "$(git status --porcelain)" ]; then
git stash push -u -m "verify-setup pre-sync" && stashed=1
fi
if git fetch origin && git pull --rebase origin "$branch"; then
[ "$stashed" -eq 1 ] && git stash pop --index
else
echo "sync failed on $branch (stashed=$stashed)" >&2
fi
If origin is missing, HEAD is detached, or the pull, rebase or stash pop fails, stop and ask the user. When the fetch or pull failed, before stopping run git rebase --abort if a rebase is in progress, then git stash pop once if stashed=1. Record sync: skipped (<reason>) when the user skips it.
git rev-parse --show-toplevel); none → BLOCKED.git status --porcelain --untracked-files=all as the pre-sync list. Those paths hold the user's own work: never edit, stage or commit them.git rev-parse HEAD..claude/skills/verify*/SKILL.md, .agents/skills/verify*/SKILL.md. If one exists, this run updates it (the plan shows the diff) instead of adding a second one. For "stress-test our verify skill", go to Step 3 with a plan that lists only its commands and .verify/.gitignore, then Steps 5 and 7.Follow references/detection.md:
verify-<app> (verify when there is one).path:line: install, build, boot, the ready signal (a health URL, a log line, a port that opens, or the process exit for a CLI), and teardown.curl, an installed simulator. List what is missing.scripts/e2e_test.sh or scripts/e2e_test.py), the CLI verify skill runs that script as one step and adds only the features it does not cover.A repo with no runnable app (a library, a docs site with no build) stops here with COMPLETE (no app) and points to test-coverage.
Build the feature map with references/feature-map.md. One row per user-visible feature: ID, Feature, How to reach (URL path and selector or keyboard shortcut, HTTP method and endpoint, or command and arguments), Action, Expected result (an observable fact: status, text, exit code, a file created), and Source.
--help, README usage, existing end-to-end tests..env.example or config), never real values. Without them it is UNVERIFIED.UNVERIFIED. The plan lists mutating rows apart.Print the plan in the format in references/final-report.md → Plan, then ask one question: approve all, approve some (by item ID), change something, or stop. The plan is a dry run and names:
references/verify-skill-template.md), its feature map, the portable copy, and .verify/.gitignore;mkdir, setsid or set -m, curl, kill, lsof/ss, git rev-parse/git status). Running a repo command runs the repo's code, so approval covers exactly these commands and no others;git pull --rebase the current branch), or that it will be skipped and why (no origin).Only the user's reply to this plan approves it. An approval given before the plan was shown, a "do everything" in the request, or another agent's reply does not count. A question or change request is not an approval: answer or revise, then ask again. With no user to answer (a subagent, an unattended run), write and run nothing: print the plan and the drafts, and end PARTIAL.
After approval, run the Repo Sync, then write only the approved files:
.claude/skills/<name>/SKILL.md from references/verify-skill-template.md, with every placeholder filled from Step 1 and every command's source cited..claude/skills/<name>/feature-map.md from Step 2..agents/skills/<name>/. Both copies say that they must stay identical..verify/.gitignore holding *, unless it exists.An existing file is changed only as the approved diff showed; never overwrite a hand-written verify skill wholesale.
Validate the result: frontmatter holds name (equal to its folder) and a quoted description, no <…> placeholder is left (runtime tokens such as $RUN_DIR and the result line's {braces} stay), every command line has a source, and cmp finds both copies identical. Commit nothing unless the user asks: the files stay as uncommitted changes on the current branch.
Follow references/stress-test.md.
Run the verify skill exactly as written, three times, each run from boot to teardown with fresh state. For each step, record status (PASS, FAIL, UNVERIFIED), exit code, the observation compared against the expected result, and duration.
Only when AGENTS.md exists and the user approved this item: add at most one line, next to the existing commands or workflow lines (else at the end), following agent-config's rules. AGENTS.md is read by every agent, so the line is a backticked path to the portable copy: no @import, no /command, no skill name, nothing pasted from the skill. For example:
- Before committing, follow `.agents/skills/verify/SKILL.md`
Skip it when a line already points there. Never create AGENTS.md or CLAUDE.md for this, and never touch any other line.
Summarize the files written, the feature count by status, the flaky steps, and what waits on the user. Do not commit, push or open a pull request unless the user asks. Close with the Final Report.
End every run, stops included, with four lines: Result:, Evidence:, Uncertainty:, Decision:.
COMPLETE: the approved files were written and the three runs agree on every step (a step may agree on FAIL; it is reported). Also COMPLETE (no app).PARTIAL: no user was present to approve, a step was flaky, the user approved only part, or features stayed UNVERIFIED.BLOCKED: nothing was written: not a git repository, the sync stopped, or the request is out of scope.Fill rules and examples: references/final-report.md. Expected output of a full run:
Result: COMPLETE. Wrote .claude/skills/verify/ (SKILL.md, feature-map.md, 9 features) and its copy in .agents/skills/verify/ for the web app; 3 runs agree: 8 PASS, 1 FAIL (F7 export button, all 3 runs).
Evidence: boot `npm run dev` (package.json:7), ready on GET /health (src/server.ts:41); runs 1-3 took 41s, 39s, 40s; logs in .verify/runs/; sync: pulled main, already up to date.
Uncertainty: F7 fails in all 3 runs: a bug or a wrong expected result, not decided here.
Decision: Check F7 (feature-map.md). Remaining action: review and commit the new files.
UNVERIFIED.UNVERIFIED.verify-web, verify-api), each with its own feature map.UNVERIFIED or expected: ask the user.After each step, print a compact status block with √ and × check lines and a Result: PASS | FAIL | PARTIAL line. Format and per-step checks: references/final-report.md → Step reports.
Optional and propose-only. After the result is delivered:
references/.metadata.version. Commit nothing unless asked. If the user opts out, stop proposing.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
end-to-end-testing, smoke-test, feature-map, stress-test, verify-harness
npx claudepluginhub luongnv89/skills --plugin lstack20 skills in this plugin
/agent-configCreate, update, or audit AGENTS.md (default) or CLAUDE.md agent instructions: set up, prune, add a rule, or merge CLAUDE.md or .cursorrules into one file Claude Code, Codex, and Cursor all read. Don't use for READMEs, skills, or subagents./auto-pushGenerate a commit message, stage all changes, and push to remote after scanning for secrets, large files, and protected-branch risks. Skip for opening PRs, code review, or cutting releases/tags./cleanup-projectPrepare a git repo before new work: review uncommitted changes, fix .gitignore, delete merged branches, end on clean main, or inspect one branch before deciding. Don't use for dead code, commit-and-push, releases, LICENSE files, or git how-tos.Other plugins' skills for the same job