qa
Exercise the running app through the probe layer - happy-path flows first, then adversarial inputs (garbage, oversized, regex-special, out-of-range) and auth-gate probing, reported with a PASS/FAIL verdict and exact repro commands. The http probe is implemented; browser mode declines honestly until it lands. Use when the user asks to QA, smoke-test, or probe the running app, an endpoint, or a flow.
- License 许可
- MIT
- 最近更新
- 2026-09-28
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- qa
- description
- Exercise the running app through the probe layer - happy-path flows first, then adversarial inputs (garbage, oversized, regex-special, out-of-range) and auth-gate probing, reported with a PASS/FAIL verdict and exact repro commands. The http probe is implemented; browser mode declines honestly until it lands. Use when the user asks to QA, smoke-test, or probe the running app, an endpoint, or a flow.
- argument-hint
- [flow | url | notes]
02 资源文件 2
- 参考文档references/adversarial-inputs.md2.9 KB
- 参考文档references/probe-layer.md2.6 KB
03 SKILL.md 正文
/qa — exercise the running system
Static review reads the code; /qa hits the thing that actually runs. Flows first — a broken happy path makes every adversarial result noise — then the inputs real users and hostile users will eventually send.
Adjacent skills: /secure (hunts vulnerabilities; /qa exercises
functionality — a /qa auth finding is handed to /secure) · /audit code
(reads the code; /qa probes the running system) · /design-audit (how it
looks; /qa is how it behaves).
<!-- acstack:runtime --> Run before the skill's steps — per invocation, not per session (4.36); failures degrade to markdown:
link="$(readlink "$HOME/.claude/skills/health" 2>/dev/null || true)" # empty = not symlinked
pack="$(dirname "$(dirname "$link")")" # NEVER trust this unless $link was non-empty
if [ "${link#/}" != "$link" ] && [ -x "$pack/bin/acstack-config" ] && ! "$pack/bin/acstack-config" runtime | grep -q '=off'; then
"$pack/bin/acstack-config" || true # resolved keys, with sources
"$pack/bin/acstack-update-check" || true # ≤1 fetch/day; silent ONLY if already checked today
"$pack/bin/acstack-recall" || true # LEARNINGS.md + bug-class names, capped 3KB
else
echo "runtime off — proceeding without recall/update-check"
fi
<!-- /acstack:runtime -->
<!-- acstack:principles -->
Operating principles
- Be direct. Push back in writing when the plan or the user is wrong. No sycophancy.
- Never delete a decision. Supersede it:
~~old~~ → **Verdict (YYYY-MM-DD):** new call — reason. - Never fix, tune, or delete a test or eval case to raise a score. Log the miss honestly and leave the case unchanged.
- Name exact things: regex patterns, function signatures, model names, before → after numbers. Never "fixed bugs".
- Attribution: follow the project's
attributionsetting (defaultnone) — no AI-tool mentions in generated docs, no attribution trailers in commits or PRs. Commit with explicit-m/-Fmessages only. - Config: read
.claude/acstack.mdat the project root (fall back to~/.claude/acstack.md) before acting.## Settingskeys override pack defaults; a## <skill-name>section overrides both. Unknown keys and sections are ignored. - Docs: BRIEF.md (frozen seed) / PLAN.md (living plan) / JOURNAL.md (rolling journal). If the repo uses legacy names (PLANNING_PROMPT.md / PLANNING.md / STATUS.md), use those instead — never create both.
- Recall: if
LEARNINGS.mdexists at the project root, read it before starting. - Conduct: follow the
acstack-conductblock in this repo's AGENTS.md — the word is the mode; the user sets the pace. - Hackathon lane: if the project's AGENTS.md carries the
acstack:hackathon-laneblock, only/dochanges the repository during the event. Any other skill that would write a tracked file, commit or push says what it would have done and stops; a change that is not a task goes through the lane's operator route. <!-- /acstack:principles -->
The probe layer
A probe is the only thing that touches the target; this skill's method
and report never name a transport. Every probe provides three verbs —
reach (is the target up), act (deliver one input or step),
observe (status, body, error) — per the contract in
references/probe-layer.md.
probe: http— implemented. curl conventions in the reference file.probe: browser— not yet implemented. Asked for it, say exactly: "browser probe deferred until first real need (decision 2026-07-27); http mode is available" — and offer http. Never fake a browser result.
The report skeleton below is identical whichever probe runs. That is the seam: when the browser probe lands, only the reference file grows.
Safety rule (binding)
Mutating probes — anything non-GET, form submits, state-changing steps —
run only against targets that are clearly local or dev (localhost,
127.0.0.1, a URL the user names as dev). Target not clearly local →
name the risk and get explicit confirmation BEFORE the first mutating
probe. Adversarial probing of a production URL never starts uninvited.
Method
First: does this target need the pass at all? If the change under test touches no runtime behaviour — docs, comments, a version bump, a pure rename — say so in one line and stop. Probing an app that could not have changed produces a PASS that means nothing, and a green report nobody earned is worse than no report.
- Resolve the target. Argument URL beats config
base-url(from a## qasection). Neither → say exactly what's missing and stop:BLOCKED — no target: pass a URL or set base-url in .claude/acstack.md. Never infer a target from source. Anapp.listen(3000)in the code says a port the app would use if it were running, not an address that is serving now — probing a guessed URL either fails confusingly or, if something unrelated answers, produces results attributed to the wrong process. A target is supplied, never deduced. Same rule, same reason as the credential rule in step 6: the tempting value sitting in the repo is not the one you are entitled to use. - Reach first. One reach probe. Target down →
BLOCKED, report ends; nothing else is meaningful. - Enumerate flows from BRIEF/PLAN (or run only the flow named in the argument). A flow is a named sequence of steps with an expected outcome — "search returns results", "unauthenticated save is rejected". No discoverable flows → probe the endpoints the user names, and say the flow map was thin.
- Happy path per flow. Expected outcome observed, or a finding.
- Adversarial pass per input surface, drawing from
references/adversarial-inputs.md: garbage tokens, oversized input, regex-special characters, out-of-range numerics, empty and whitespace-only, wrong-type values. Expected: a controlled rejection (4xx, a validation message). A 5xx or a stack trace is a finding even when the input was absurd — absurd input is exactly what arrives in week one. - Auth-gate probing. Every gated endpoint, hit unauthenticated,
must fail closed: 401/403. A 200 is a security finding — recorded
here, handed to /secure. A 5xx is an error-hygiene finding.
Credentials come from the user, never from the repo. Probing a
gated flow as an authenticated user needs a token or session the user
supplies for this run. Do NOT read one out of
.env, a fixture, or a config file: a credential committed to the tree is a /secure finding, and using it here would launder a defect into a passing test. None supplied → probe the unauthenticated half (which is the security- relevant half anyway), and report the authenticated flows asnot probed — no credentials supplied.
Report shape
First line is the verdict: PASS / FAIL — <n> findings /
BLOCKED — <precondition>. Then:
- Per-flow table: step | input class | expected | observed | verdict.
- Findings, each with the exact repro command (the literal curl line) and observed output — a finding that can't be re-run isn't one.
- Scope: target probed, probe mode used, flows and surfaces NOT exercised. /qa reports; fixes are the user's call.
04 同仓库更多 Skills
why
Decision archaeology - answers why the code, config, or plan is the way it is by searching the record in a fixed order: BRIEF constraints, dated PLAN decisions, JOURNAL entries, then git history. Stops at the first real answer, cites it with a date, and says no recorded rationale rather than inventing one. Use when someone asks why something is this way, why a choice was made, or where a decision is written down.
verify
Audit a completion claim made by someone else - another session, agent, or teammate - against the running system rather than the diff. Re-derives what the claim's acceptance demands, runs it, and returns CONFIRMED, OVERSTATED, FALSE or UNVERIFIABLE with the command and its output. Never fixes, never edits the claim or the acceptance. Use when handed a "done", "all green", "merged" or "it works" you did not produce yourself.
triage
Backlog hygiene sweep - stale items, duplicate pairs, missing acceptance criteria, unblocked-but-unassigned work, and milestone burn, delivered as a report first with only user-approved actions applied. Works on GitHub Issues in tickets mode and on PLAN.md checkboxes in document mode. Use when the user asks to triage, groom, or clean up the backlog or the plan's open tasks.
ticket
Capture a brain-dump as a well-formed work item - verb-first title, acceptance criteria, file paths when known, an out-of-scope line. Files a GitHub issue in tickets mode or appends a numbered PLAN.md task in document mode; unknowns are marked TBD, never invented. Use when the user brain-dumps an idea, bug, or task to capture for later, or asks to ticket, file, or note something as work.
ship
Branch-level release with five gates before the act - clean-state, tests, eval-vs-target, docs drift, and attribution sweep; any failing gate stops the release with its output. Then push, and under push: branch-pr open a report-shaped PR wiring the issue-closing reference in tickets mode or PLAN task IDs in document mode. Use when the user asks to ship, release, cut, or open the PR for a feature or branch.
secure
Security review with a confidence gate - a finding exists only with a concrete exploit scenario and a high/medium/low confidence rating; everything else goes to a worth-hardening list, never inflated. Sweeps five surfaces: auth gates, secrets hygiene, injection and unsafe sinks, unsafe deserialization/crypto/transport, and LLM tool-use trust boundaries. Reports only, never fixes. Use when the user asks for a security review or to check vulnerabilities, secrets, or auth.