agentleFS
florian101010florian101010/awesome-agentic-AI-coding-template/.claude/skills/qa-audit/SKILL.md

qa-audit

Skill4 starsChanged 12 days agoMITView on GitHub

Use when performing a quality audit, security review, or robustness check. Covers XSS/innerHTML scanning, rule compliance verification, race condition analysis, config schema validation, and documentation drift detection. Produces a severity-classified report (Critical/High/Medium/Low).

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Ask user for scope before starting:

    line 19
  2. Distinctive:

    Read ALL source lines — no skipping

    line 28
  3. Distinctive:

    Check ALL rule files listed below

    line 29
  4. Very specific:

    Update docs/QA-CHECKLIST.md if new check categories are discovered.

    line 108

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

QA-Audit

<!-- SETUP: Fill in [FILL: ...] placeholders to match your project. -->

Systematic full-scope quality audit for [FILL: main-source-file] and its config ecosystem.

Overview

This skill performs a comprehensive code quality audit covering security, robustness, rule compliance, and documentation drift. It produces a structured report with findings classified by severity.

Scope Options

Ask user for scope before starting:

ScopeCoverage
Source-onlyMain source file
Config-includedSource + all config files
Full Scope ParanoidSource + Config + Agent Rules + Docs (recommended, default)

Key requirements:

  1. Read ALL source lines — no skipping
  2. Check ALL rule files listed below
  3. Report findings with exact line numbers and the specific rule violated
  4. Save report as docs/QA-AUDIT-{YYYY-MM-DD}.md
  5. No fixes until user approves — audit is read-only first

When to Use

  • Periodic audits — after major features or before releases
  • Security review — when checking for XSS, injection, or unsafe data flows
  • Post-refactor verification — when code changed significantly
  • Rule compliance check — when verifying code follows all project conventions
  • Documentation drift detection — when code values may have changed without updating docs
  • Pre-release quality gate — as part of the release-readiness workflow

The 9-Phase Process

PhaseFocusOutput
0Baseline — Run npm test and config/asset verificationGreen baseline confirmed
1Source Full Read — Every line of the main source fileZone-by-zone understanding
2Rule Compliance — Compare code against ALL rule filesRule violation findings
3Config Verification — Schema conformity, cross-referencesSchema/data integrity findings
4Security Scan — innerHTML/XSS, forbidden APIsSecurity findings
5Edge-Case & Robustness — Race conditions, error propagation, guardsRobustness findings
6Documentation Drift — Code IST vs. documented SOLL valuesDrift findings
7Classification & Report — Severity assignment, structured audit documentQA-AUDIT-{date}.md
8Fix Planning — Risk per finding, fix order, verification planFix roadmap

Severity Definitions

SeverityCriteriaExamples
CRITICALSecurity vulnerability or data loss riskXSS via innerHTML, credential exposure
HIGHFunctional bug affecting usersUI freeze, broken navigation, lost state
MEDIUMRule violation, robustness gap, doku driftMissing guard, wrong value in docs
LOWCode hygiene, dead code, inconsistencyUnused variable, redundant style

Key Checks (Quick Reference)

Security

  • All innerHTML with config-/runtime-derived text uses a safe escaping function
  • No eval(), Function(), document.write(), postMessage, localStorage
  • [FILL: Project-specific security check]

Rule Compliance

  • [FILL: Rule 1 — e.g. "touch-action: manipulation on every interactive element"]
  • [FILL: Rule 2 — e.g. ":hover only inside @media (hover: hover) and (pointer: fine)"]
  • [FILL: Rule 3 — e.g. "All config uses IIFE + Object.freeze"]
  • Relative paths only — no leading / or ./ (if applicable)

Robustness

  • [FILL: Race condition check 1]
  • [FILL: Error propagation check]
  • Compatibility guard covers all required APIs

Documentation Drift

  • [FILL: Key value that must match across all rule files]
  • Immutable contract IDs are unchanged

Rule Files to Check (ALL of these)

FileKey sections
AGENTS.mdCoding Rules, Immutable Contract
CLAUDE.mdCritical Constraints, Do NOT
.github/copilot-instructions.mdAlways Do, Never Do
.agent/rules/coding-standards.mdRules, conventions
[FILL: additional rule files][FILL: scope]

Report Output

Save to: docs/QA-AUDIT-{YYYY-MM-DD}.md

Update docs/QA-CHECKLIST.md if new check categories are discovered.

Full Procedure

→ See .agent/workflows/qa-audit.md for the complete step-by-step guide.

→ For Claude Code users: use the /qa-audit slash command.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.