code-quality-gate
Skill1 starsChanged 18 days agoMITView on GitHub
Pre-commit and pre-delivery gate that scans newly generated or modified code for AI failure modes including stubbed functions, silent error handling, unvalidated inputs, and hardcoded secrets. Use before final delivery or git commit.
- Reads credentials
3 other projects use a version of this.
Adopted by
Most recently taken up by
- kinhluan/skillstheir own version, first seen Nov 8, 2026
- pesap/skillstheir own version, first seen Oct 13, 2026
- AmitSinghOM/agent-skillstheir own version, first seen Sep 12, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- kinhluan/skills★ 6same name
- pesap/skills★ 1same name
- AmitSinghOM/agent-skills★ 0same 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 repository40 other files it gives its agents.
- AGENTS.mdAGENTS.md
- platform-cliSkill
- platform-desktopSkill
- platform-mobileSkill
- platform-pluginSkill
- platform-webSkill
- agentic-security-guardSkill
- architecture-guardSkill
- artifact-analyzerSkill
- boundary-guardSkill
- cognitive-load-auditorSkill
- context-groundingSkill
- copy-auditSkill
- cost-estimatorSkill
- dast-scannerSkill
- database-architectSkill
- design-auditSkill
- design-system-generatorSkill
- design-system-integratorSkill
- environment-preflightSkill
- evidence-gated-blockingSkill
- human-in-the-loopSkill
- lessons-learnedSkill
- mcp-discoverySkill
- meta-judgeSkill
- ponytail-wrapperSkill
- prd-generatorSkill
- prompt-historySkill
- sast-scannerSkill
- sca-secret-scannerSkill
- security-context-managerSkill
- security-gateSkill
- security-hardeningSkill
- snapshot-rollbackSkill
- stack-advisorSkill
- task-breakdownSkill
- tech-spec-writerSkill
- test-suite-auditorSkill
- ui-interaction-authoritySkill
- viewport-qaSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 4 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Before final delivery (Phase 7/8) or before running git commit.
- Very specific: line 17
Look for throw new Error('Not implemented'), throw new NotImplementedError, TODO / FIXME / XXX placeholders standing in for real behavior, …
- Very specific: line 19
Look for empty catch blocks (catch (e) {}, except: pass, ignored returned errors) or catch handlers that swallow failures without logging, …
- Distinctive: line 21
Check all trust boundaries (HTTP/API handlers, form submissions, CLI arguments, file path operations, dynamic queries) to verify …
- Very specific: line 26
If the AI writes more than 800 lines of code in a single task or PR, it MUST STOP, split the code into smaller logical chunks, or ask the …
- Distinctive: line 28
If any item above is found (or the 800 LOC limit is exceeded):
- Distinctive: line 29
Do NOT proceed to delivery or git commit.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Code Quality Gate
Trigger
Before final delivery (Phase 7/8) or before running git commit.
Process
Scan every newly generated or modified source file in scope for the following AI failure modes:
- Stubbed or unimplemented logic:
- Look for
throw new Error('Not implemented'),throw new NotImplementedError,TODO/FIXME/XXXplaceholders standing in for real behavior, empty function bodies, or hardcoded mock return data left in production paths.
- Look for
- Silent error handling:
- Look for empty catch blocks (
catch (e) {},except: pass, ignored returned errors) or catch handlers that swallow failures without logging, user-facing error states, recovery, or rethrowing.
- Look for empty catch blocks (
- Unvalidated user inputs:
- Check all trust boundaries (HTTP/API handlers, form submissions, CLI arguments, file path operations, dynamic queries) to verify schema/type validation, bounds checking, and safe parameterization.
- Hardcoded secrets or credentials:
- Scan for API keys, tokens, passwords, private keys, or connection strings with embedded credentials. All secrets must come from environment variables or a secret manager and never be committed.
- The 800 LOC Limit (Strict Rule):
- Measure total lines of code written or modified in the current task or PR.
- If the AI writes more than 800 lines of code in a single task or PR, it MUST STOP, split the code into smaller logical chunks, or ask the user to break the task down in
docs/tasks/TASKS.md. Never submit massive, unreviewable PRs.
If any item above is found (or the 800 LOC limit is exceeded):
- Do NOT proceed to delivery or
git commit. - Fix every finding (or split oversized changes into smaller reviewable tasks/chunks), re-scan, and verify all tests pass before continuing.
Output Contract
A pass/fail scan report listing checked categories, verified diff size (<= 800 LOC per task/PR), file:line findings (if any), and confirmation that all findings were resolved before commit or delivery.
Checklist
- Zero stubbed or
Not implementedproduction functions - Zero silent/empty
catchor swallowed error paths - All trust-boundary inputs validated
- Zero hardcoded secrets, tokens, or API keys
- Single task or PR size stays within The 800 LOC Limit (or is split with user confirmation)
- Existing unit and E2E tests pass after fixes
Prohibitions
- Allowing stubbed handlers or empty
catchblocks to ship as "temporary". - Skipping trust-boundary validation for brevity.
- Committing
.envvalues or inline credentials. - Writing > 800 lines of code in one unsplit task or PR.
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.

