qa-check
Skill2 starsChanged 7 months agoMITView on GitHub
Auto-detects the project's tech stack, then audits for Accessibility, Performance, and Code Quality. Works across WordPress/PHP, Python, Node/JS, and static web projects.
- Reads credentials
2 other projects use a version of this.
Adopted by
Most recently taken up by
- prateekjain/ChiefOfStafftheir own version, first seen Mar 16, 2026
- Joshua-Palamuttam/workbench-templatetheir own version, first seen Mar 7, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- prateekjain/ChiefOfStaff★ 4same name
- Joshua-Palamuttam/workbench-template★ 3same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository16 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- audit-vs-fix-disciplineSkill
- block-journeySkill
- clean-worktreesSkill
- debuggingSkill
- debug-rulesSkill
- debug-wpSkill
- figmaSkill
- handoffSkill
- module-depth-reviewSkill
- playwrightSkill
- review-memorySkill
- swift-concurrency-reviewSkill
- test-planSkill
- tool-usageSkill
- vibe-userSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
25 rules. About 0 are common, 6 are distinctive, and 19 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
19
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Run /qa-check on any web project to audit for Accessibility (WCAG 2.2 AA), Performance, and Code Quality issues.
- Very specific: line 17
Use $ARGUMENTS to scope the audit to a specific directory or file pattern (e.g., /qa-check src/components/).
- Distinctive: line 19
Do NOT fix issues - only report them.
- Distinctive: line 25
Before running any checks, detect the project's tech stack by scanning the working directory for marker files.
- Very specific: line 86
WordPress: Check that wp_nav_menu() outputs use <nav> wrapper.
- Very specific: line 87
React/JSX: Check for <img> without alt prop.
- Very specific: line 88
Vue: Check v-html usage (potential a11y bypass - content may lack proper semantics).
- Very specific: line 111
Check for wp_enqueue_script() / wp_enqueue_style() usage vs raw <script> / <link> tags (should use enqueue system).
- Very specific: line 114
Check if wp_deregister_script('jquery') is used properly (common source of breakage).
- Very specific: line 118
Check for select_related() / prefetch_related() usage in Django views with related model access.
- Very specific: line 120
Check for missing @cache decorators on expensive view functions.
- Very specific: line 124
Check for node_modules files accidentally served to the client.
- Very specific: line 149
All output must use esc_html(), esc_attr(), esc_url(), or wp_kses() as appropriate.
- Very specific: line 158
No bare except: - must catch specific exceptions.
- Very specific: line 159
Check for pickle.loads() on untrusted data.
- Very specific: line 160
Check for DEBUG = True in production config.
- Very specific: line 161
Check for SECRET_KEY hardcoded in settings.
- Very specific: line 165
Check for helmet or manual security headers in Express apps.
- Very specific: line 166
Check for cors configuration (not origin: '*' in production).
- Very specific: line 167
Check for --unhandled-rejections=none or missing error handlers.
- Very specific: line 168
Check package.json for "engines" field (Node version pinning).
- Distinctive: line 260
Do NOT skip checks: Run every applicable check for every detected stack.
- Distinctive: line 262
Avoid false positives: If you're uncertain whether something is an issue, mark it WARN with an explanation, not FAIL.
- Distinctive: line 263
Respect project conventions: If a CLAUDE.md or equivalent project config exists, use its rules for formatting/naming checks instead of …
- Distinctive: line 264
Stack-specific checks are additive: Always run the generic checks.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skill: qa-check (Global)
When to Use
Run /qa-check on any web project to audit for Accessibility (WCAG 2.2 AA), Performance, and Code Quality issues. This skill auto-detects the tech stack and adapts its checks accordingly.
Use $ARGUMENTS to scope the audit to a specific directory or file pattern (e.g., /qa-check src/components/). If empty, audit the entire project.
Do NOT fix issues - only report them. Present findings as structured Markdown tables.
Method
Phase 0: Stack Detection
Before running any checks, detect the project's tech stack by scanning the working directory for marker files. Report what was detected before proceeding.
Detection Rules
Scan in this order. A project can match multiple stacks (e.g., WordPress with Node build tools).
| Stack | Marker Files |
| WordPress / PHP | wp-config.php, composer.json with "wordpress", style.css containing Theme Name:, functions.php, wp-content/ or content/ directory |
| Python | requirements.txt, pyproject.toml, setup.py, setup.cfg, Pipfile, manage.py (Django), app.py or wsgi.py (Flask) |
| Node / JS | package.json - then inspect for framework indicators: next (Next.js), express (Express), nuxt (Nuxt), @angular/core (Angular), react (React), vue (Vue), svelte (Svelte) |
| Static Web | *.html files in root or src/, *.css files, no backend markers detected |
Detection Output
Print a summary before running checks:
## Stack Detection
| Stack | Detected | Markers Found |
|---|---|---|
| WordPress/PHP | Yes/No | wp-config.php, style.css (Theme Name: ...) |
| Python | Yes/No | requirements.txt, manage.py |
| Node/JS | Yes/No | package.json (express, react) |
| Static Web | Yes/No | index.html, styles.css |Then determine which template/view files to scan:
- WordPress:
*.phpin theme directory,template-parts/,templates/,inc/ - Python (Flask):
templates/**/*.html,app/templates/**/*.html - Python (Django):
**/templates/**/*.html,**/templatetags/*.py - Node (Next.js):
pages/**/*.{js,jsx,tsx},app/**/*.{js,jsx,tsx},components/**/*.{js,jsx,tsx} - Node (Express):
views/**/*.{ejs,pug,hbs,html},public/**/*.html - Node (React/Vue/Svelte):
src/**/*.{jsx,tsx,vue,svelte} - Static Web:
*.html,src/**/*.html
Also scan: all *.css files, all *.js or *.ts files in source directories, config files (.env*, *.config.*).
Pillar 1: Accessibility (WCAG 2.2 AA)
Goal: Confirm output pages meet WCAG 2.2 AA requirements. These checks apply to all stacks - scan every file that produces HTML output.
| # | Check | What to Look For |
| 1 | Semantic HTML | <header>, <main>, <footer>, <nav> used correctly. Flag pages that use only <div> for major layout sections. |
| 2 | Image alt text | Every <img> must have an alt attribute. Empty alt="" is valid for decorative images. Flag any <img> with no alt at all. In PHP: check <?php echo img tags. In JSX: check <img components. |
| 3 | Form labels | Every <input>, <select>, <textarea> must have an associated <label> (via for/id pairing) or aria-label/aria-labelledby. Flag orphaned inputs. |
| 4 | Link accessible names | Every <a> must have visible text content, aria-label, or aria-labelledby. Flag empty links (icon-only without aria-label). Flag <a> with only an <img> child that lacks alt. |
| 5 | Heading hierarchy | No skipped heading levels (e.g., <h1> directly to <h3> without <h2>). Check across all templates that compose a full page. |
| 6 | Focus styles | Check CSS for :focus-visible or :focus rules. Flag any outline: none or outline: 0 that lacks a replacement visible focus indicator. |
| 7 | ARIA usage | Flag misuse patterns: role="button" on <a> without tabindex and keyboard handler, aria-hidden="true" on focusable elements, invalid ARIA roles, redundant ARIA (e.g., role="button" on <button>). |
| 8 | Colour contrast | Flag hardcoded colour combos that appear low-contrast. Check text colour against background colour where both are set in the same rule or element. This is heuristic - flag suspicious combos for manual review. |
| 9 | Language attribute | <html lang="..."> must be present in the root document. Flag if missing. |
| 10 | Viewport meta | <meta name="viewport"> must be present. Flag if it contains maximum-scale=1, user-scalable=no, or user-scalable=0 (these disable zoom). |
Stack-Specific A11y Checks
- WordPress: Check that
wp_nav_menu()outputs use<nav>wrapper. Checkthe_post_thumbnail()calls for alt text support. Checkget_template_part()partials for orphaned interactive elements. - React/JSX: Check for
<img>withoutaltprop. CheckonClickon non-interactive elements (<div onClick>) withoutrole,tabIndex, andonKeyDown. Check forautoFocususage. - Vue: Check
v-htmlusage (potential a11y bypass - content may lack proper semantics). Check:altbindings on images.
Report: PASS / WARN / FAIL per check.
Pillar 2: Performance
Goal: Identify performance issues. Checks are adapted per detected stack.
| # | Check | What to Look For |
| 1 | Image optimization | <img> tags should have width and height attributes (CLS prevention). Below-fold images should have loading="lazy". Flag large images without modern format alternatives (webp/avif). |
| 2 | Asset loading | Scripts should use defer, async, or type="module". Flag render-blocking <script> tags in <head> without these attributes. Flag render-blocking CSS that could be deferred. |
| 3 | Bundle size | Check for large vendor files in public/static directories. Flag unminified JS/CSS in production paths (files > 50KB without .min in the name). |
| 4 | N+1 queries | Flag loops that contain database queries - this is a heuristic check. Look for query calls (query, execute, cursor, fetchall, $wpdb->, Model.objects, select, find) inside for/foreach/while/map blocks. |
| 5 | Caching | Check for cache-control patterns in server config, middleware, or headers. Flag if no caching strategy is apparent. |
| 6 | External requests | Scan templates for third-party URLs (https:// to external domains) that could block rendering. Flag font services, analytics, and tracking pixels loaded synchronously. |
| 7 | DNS prefetch / preconnect | If external resources are used, check for <link rel="dns-prefetch"> or <link rel="preconnect"> hints. |
Stack-Specific Performance Checks
WordPress:
- Check for
wp_enqueue_script()/wp_enqueue_style()usage vs raw<script>/<link>tags (should use enqueue system). - Flag
query_posts()usage - should useWP_Queryorget_posts()instead. - Flag missing
wp_cache_get()/wp_cache_set()on expensive queries. - Check if
wp_deregister_script('jquery')is used properly (common source of breakage). - Flag
get_posts()/WP_Querycalls without'no_found_rows' => truewhen pagination isn't needed.
Python (Flask/Django):
- Check for
select_related()/prefetch_related()usage in Django views with related model access. - Flag Flask routes that open database connections without connection pooling.
- Check for missing
@cachedecorators on expensive view functions.
Node/JS:
- Flag synchronous file operations (
readFileSync,writeFileSync) in request handlers. - Check for
node_modulesfiles accidentally served to the client. - Flag missing
compressionmiddleware in Express.
Report: PASS / WARN / FAIL per check.
Pillar 3: Code Quality
Goal: Identify security issues, code smells, and quality problems. Checks are adapted per detected stack.
Security (All Stacks)
| # | Check | What to Look For |
| 1 | SQL injection | String concatenation or f-strings in SQL queries. Must use parameterized queries / prepared statements. |
| 2 | XSS (Cross-Site Scripting) | Unescaped user output in templates. Check for raw output: |safe (Jinja2), {!! !!} (Blade), dangerouslySetInnerHTML (React), v-html (Vue), echo $var without esc_html() (WP). |
| 3 | CSRF | State-changing routes (POST/PUT/DELETE) without CSRF token validation. Check for token presence in forms. |
| 4 | Hardcoded secrets | API keys, passwords, tokens, connection strings in source files. Regex scan for patterns: password\s*=\s*['"], api_key\s*=\s*['"], secret\s*=\s*['"], sk_live_, AKIA, ghp_, Bearer\s+[A-Za-z0-9]. |
| 5 | Environment files | Check .gitignore for .env patterns. Flag if .env files are not gitignored. Flag .env files that exist in the repo (committed secrets). |
Stack-Specific Security
WordPress / PHP:
$wpdb->prepare()must be used for all$wpdb->query()/$wpdb->get_results()calls with variables.- All output must use
esc_html(),esc_attr(),esc_url(), orwp_kses()as appropriate. - Forms must include
wp_nonce_field()and handlers must verify withwp_verify_nonce()orcheck_admin_referer(). - User input must use
sanitize_text_field(),absint(),sanitize_email(), etc. - Flag
extract()usage (variable injection risk). - Flag
eval(),assert(),preg_replace()withemodifier.
Python:
- Parameterized queries required for all database calls (no string formatting in SQL).
- No
eval(),exec(), or__import__()with user-controlled input. - No bare
except:- must catch specific exceptions. - Check for
pickle.loads()on untrusted data. - Check for
DEBUG = Truein production config. - Check for
SECRET_KEYhardcoded in settings.
Node / JS:
- No
eval(),Function(), orchild_process.exec()with user input. - Check for
helmetor manual security headers in Express apps. - Check for
corsconfiguration (notorigin: '*'in production). - Check for
--unhandled-rejections=noneor missing error handlers. - Check
package.jsonfor"engines"field (Node version pinning). - Flag
npm auditissues ifpackage-lock.jsonis present.
General Code Quality
| # | Check | What to Look For |
| 6 | Error handling | Empty catch / except blocks that swallow errors silently. Bare try/except in Python. catch (e) {} in JS. catch (Exception $e) {} in PHP without logging. |
| 7 | Dead code | Unused imports (heuristic - check if imported name is used in the file). Unreachable code after return / break / continue / exit. Commented-out code blocks (> 5 consecutive commented lines). |
| 8 | Formatting consistency | Mixed tabs and spaces for indentation within the same file. Inconsistent naming (camelCase mixed with snake_case in the same file, not counting external API names). |
| 9 | Dependencies | Check lockfile age (if package-lock.json or Pipfile.lock or composer.lock is > 6 months old based on git log, warn). Flag deprecated packages if detectable from lockfile metadata. |
| 10 | TODO / FIXME / HACK | Scan for TODO, FIXME, HACK, XXX, TEMP comments. Report count and locations - these indicate known technical debt. |
Report: PASS / WARN / FAIL per check.
Output Format
Present results as Markdown tables. Use this exact structure:
## QA Audit - <date>
### Stack Detection
| Stack | Detected | Markers Found |
|---|---|---|
| WordPress/PHP | Yes/No | ... |
| Python | Yes/No | ... |
| Node/JS | Yes/No | ... |
| Static Web | Yes/No | ... |
**Files scanned:** <count> files across <directories>
---
### Summary
| Pillar | Status | Pass | Warn | Fail |
|---|---|---|---|---|
| Accessibility | PASS/WARN/FAIL | <n> | <n> | <n> |
| Performance | PASS/WARN/FAIL | <n> | <n> | <n> |
| Code Quality | PASS/WARN/FAIL | <n> | <n> | <n> |
Overall pillar status: FAIL if any check is FAIL, WARN if any check is WARN, PASS otherwise.
---
### Findings
#### Pillar 1: Accessibility
| # | Check | Status | Detail |
|---|---|---|---|
| 1 | Semantic HTML | PASS/WARN/FAIL | ... |
| 2 | Image alt text | PASS/WARN/FAIL | ... |
| ... | | | |
#### Pillar 2: Performance
| # | Check | Status | Detail |
|---|---|---|---|
| 1 | Image optimization | PASS/WARN/FAIL | ... |
| 2 | Asset loading | PASS/WARN/FAIL | ... |
| ... | | | |
#### Pillar 3: Code Quality
| # | Check | Status | Detail |
|---|---|---|---|
| 1 | SQL injection | PASS/WARN/FAIL | ... |
| 2 | XSS | PASS/WARN/FAIL | ... |
| ... | | | |
---
### Action Items
Numbered list of issues requiring attention, ordered by severity:
1. **[FAIL]** <description> - `<file>:<line>`
2. **[FAIL]** <description> - `<file>:<line>`
3. **[WARN]** <description> - `<file>:<line>`
...Rules
- Do NOT fix issues. Report only. The user decides what to fix.
- Do NOT skip checks. Run every applicable check for every detected stack. If a check is not applicable to the detected stack, mark it N/A in the table.
- Be specific. Include file paths and line numbers in findings where possible.
- Avoid false positives. If you're uncertain whether something is an issue, mark it WARN with an explanation, not FAIL.
- Respect project conventions. If a
CLAUDE.mdor equivalent project config exists, use its rules for formatting/naming checks instead of generic defaults. - Stack-specific checks are additive. Always run the generic checks. Stack-specific checks are additional - they don't replace the generic ones.
- Scan depth. Scan all source files relevant to the detected stack. Do not scan
node_modules/,vendor/,venv/,.venv/,__pycache__/,dist/,build/,.git/, or other dependency/build/cache directories.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

