Skip to content
Back to skills

Admin Qa Gate

ASecurity

Phase 8 of building an admin system - verify and report honestly. Runs the docs consistency validator, typecheck/lint/build/tests, click-through of real workflows in the running app, permission matrix tests against the API (UI hidden AND server 403), states (loading/empty/error/forbidden), responsive/accessibility/security/performance spot checks, public-site regression, then writes qa-report.md and the final report. Use after implementing any admin module or before handing off the admin, or ...

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 26, 2026
developmentgobashnodeapifrontendbackendsecurityperformance

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Pro scans all 10 files and shows the line behind each finding

Scanned November 26, 2026

npx -y skills add kat-minh/enterprise-admin-architect --skill admin-qa-gate --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Admin Qa Gate?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Admin Qa Gate
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/kat-minh-admin-qa-gate/badge)](https://www.skillsdirectory.com/skills/kat-minh-admin-qa-gate)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: admin-qa-gate
description: Phase 8 of building an admin system - verify and report honestly. Runs the docs consistency validator, typecheck/lint/build/tests, click-through of real workflows in the running app, permission matrix tests against the API (UI hidden AND server 403), states (loading/empty/error/forbidden), responsive/accessibility/security/performance spot checks, public-site regression, then writes qa-report.md and the final report. Use after implementing any admin module or before handing off the admin, or when asked to "QA the admin", "kiểm tra admin", verify permissions, audit an existing admin against the enterprise gates, or check what is really done vs only specified (for a UI-only audit without a rebuild see admin-ui-audit).
---

# Admin QA Gate (Phase 8)

Principle: **a module is complete only when its intended business workflow works.** "It renders" and "it compiles" are not completion. Report outcomes faithfully - failures, skipped checks and unverified areas included.

Inputs: `docs/admin/*`, the codebase, a runnable app. Outputs: `docs/admin/qa-report.md` (template in `templates/`), updated `implementation-status.md` + inventory statuses.
Templates also include `templates/ui-audit.mjs`, `templates/perf-frontend.mjs` and `templates/security-headers.mjs` (SEC-19: headers plus a CSP-violation page walk on the production build).
References: `references/quality-gates.md` (checklists, severities, pass criteria; sections I Operations and J Privacy), `references/operations-readiness.md` (what "ready to run in production" means: restore drills, migration safety, readiness, observability, incident kit, maintenance mode), `references/e2e-test-playbook.md` (how to test, with code patterns; includes the large-dataset recipe and the checks for admin-managed public content). Templates: `templates/qa-report.md`, `templates/runbook.md` (gate DOC-5: write it before Gate 3), `templates/ui-audit.mjs` (automated UI audit across roles, widths and themes: run it after every module, gate UX-13; the standalone skill `admin-ui-audit` wraps it for an existing admin), `templates/perf-frontend.mjs` (front-end budget measured on the production build, phone and desktop profiles, layout shift with the elements that moved, gate PERF-8).

## Procedure

### 1. Docs consistency (cheap, always first)
```bash
node <this-skill-dir>/scripts/validate-admin-docs.mjs --root <project> --stage <discovery|architecture|design|build|final>
```
Fix errors (broken cross-references, modules marked done without verification, routes without permissions, missing specs). Warnings need a decision, not silence.

### 2. Static checks
Detect and run the project's scripts: typecheck (`tsc --noEmit`), lint, build, unit/API tests, existing e2e. Record command, result, date in `implementation-status.md`. A failing check is a finding, not something to hide.

### 3. Run the app and exercise it
Start the dev server using the project's own script. Prefer real interaction: browser automation (Playwright, a browser MCP server, or your tool's built-in browser) to click through; read console messages (filter errors) and network requests (`/api/admin`). Use dev/staging data only - never production. Avoid native `alert/confirm` dialogs; they block automation.

For each module under test, follow `references/e2e-test-playbook.md`:
- **Workflow**: golden path + the main negative paths (invalid transition → rejected, validation errors, conflicts).
- **Permissions**: for every role × protected action, the **API** returns 401/403 when forbidden, and the UI hides/disables it. Use the matrix in `permission-matrix.md` as the oracle.
- **States**: loading skeleton, empty (initial and filtered), error + retry, forbidden, not-found.
- **Tables/forms**: server-side pagination/filter/sort visible in the network calls; URL state survives refresh; dirty guard; conflict handling.
- **Audit**: sensitive actions appear in the audit log with actor, before/after, reason.
- **Responsive & a11y**: screenshots at 1440 / 1024 / 768 / 390; keyboard-only pass; focus visible; labels; contrast spot-check.
- **Security spot-check**: `references/quality-gates.md` §D (IDOR, mass assignment, upload/export safety, secrets, headers).
- **Scale**: list endpoints with a large seeded dataset stay fast and paginated (no full-table loads).

### 3b. FE-first prototype review (only when delivery mode = `fe-first`)
Modules on the mock adapter (`prototype`) get a **UI-only** pass: `references/quality-gates.md` §P (prototype checks) + sections B, E, G. Check the mock behaves like a server (server-like pagination, 422/403/409, latency), the "Prototype data" banner is present, the environment guard blocks `production`, and the mock is absent from the production bundle. Evidence is `Verified = partial` at best - never `yes`, never `done`. Permission tests against the real API (§D, §3 above) run only after the backend is connected.

### 4. Regression on the public site
Smoke the public routes and run existing public tests. The admin must not break public pages, auth, API contracts or the design system.

### 5. Classify defects
Blocker (data loss/security/authz bypass/broken core workflow) · Major (feature wrong or unusable in common cases) · Minor (polish). Fix Blockers and Majors in P0 modules, re-verify, then continue. Majors in P1 need an owner and plan; Minors are listed.

### 6. Record and report
- Update `implementation-status.md`: `Verified` = `yes` only with evidence (test name, command output, screenshot path, walkthrough note); otherwise `partial`/`no`.
- Set module `Status` in `module-inventory.md` (`done` only when Verified = yes).
- Fill `docs/admin/qa-report.md`.
- Re-run the validator with `--stage final`.

### 7. Present Gate 3
Final report: completed modules (with evidence) · functional capabilities · API integrations · missing backend requirements · known limitations · remaining work · how to log in per role (dev seed) · what was **not** verified. Keep it factual; no hedging on what is verified, no claims about what is not.

## Rules
- Never mark `done` or `Verified: yes` without evidence.
- Never weaken a test, skip a role, or loosen the matrix to make results pass.
- If you cannot run something (no browser, no DB), say so explicitly in the report and list it under "Not verified".
- Don't fix by hiding: UI-only gating is not a fix for a missing server check.

Files in this skill

  • SKILL.md6.3 KB
  • references/e2e-test-playbook.md32.5 KB
  • references/operations-readiness.md25.9 KB
  • references/quality-gates.md39.4 KB
  • scripts/validate-admin-docs.mjs25.5 KB
  • templates/perf-frontend.mjs10.9 KB
  • templates/qa-report.md1.6 KB
  • templates/runbook.md5.4 KB
  • templates/security-headers.mjs5.6 KB
  • templates/ui-audit.mjs50.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.