Skip to content
Back to skills

Quality Gates Javascript

ASecurity

Use in a JavaScript/Node.js project when running its existing package tests or build scripts, or when judging whether a recorded JavaScript test result is enough to call delivery verified. Owns command resolution from checked-in package scripts and recording each gate's verdict. Architecture, coverage and mutation never run in a delivery: the project's CI runs them. Not for explaining test code, TypeScript or Vitest packages (quality-gates-typescript), or coverage enforcement.

  • 16 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 26, 2026
ai-agentsjavascripttypescriptjavashellnodegitfrontend

Works with

  • cli

Security analysis

A100/100

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

Scanned November 26, 2026

npx -y skills add SebastienDegodez/skraft-plugin --skill quality-gates-javascript --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Quality Gates Javascript?

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

Security grade badge for Quality Gates Javascript
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sebastiendegodez-quality-gates-javascript/badge)](https://www.skillsdirectory.com/skills/sebastiendegodez-quality-gates-javascript)

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: quality-gates-javascript
description: "Use in a JavaScript/Node.js project when running its existing package tests or build scripts, or when judging whether a recorded JavaScript test result is enough to call delivery verified. Owns command resolution from checked-in package scripts and recording each gate's verdict. Architecture, coverage and mutation never run in a delivery: the project's CI runs them. Not for explaining test code, TypeScript or Vitest packages (quality-gates-typescript), or coverage enforcement."
---

# JavaScript quality gates

Load quality bar (`skraft-quality-bar`) and
evidence contract (`quality-gates-evidence-contract`).
Missing tooling, unsupported scope, failed gates or absent evidence block delivery.

## Resolve ordinary commands first

- Read checked-in package scripts in the explicitly selected package. Use its
  `test`, `build`, `typecheck`, `lint` or dedicated acceptance scripts
  only when present and applicable; preserve their working-directory semantics.
- Invoke `npm --prefix <package> run <script>` for a verified script. Never use
  `npx`, install packages, or treat an absent script as a successful gate.
- Native Node test suites may use `node --test <explicit test paths>` from repo
  root. For this adapter's authoring bootstrap, use
  `node --test tests/skraft-framework/quality-gates/quality-gates-javascript-*.test.mjs`.
- Plain no-emit JavaScript has no compilation step: `node --check <source>` checks
  syntax only. Do not label it TypeScript compilation or architecture validation.
- Run each gate command at execution time through the bundled
  `node "<skill>/scripts/capture.mjs" --log <dir>/qg-{story}.json --gate test.acceptance,test.unit -- npm --prefix <package> run test`:
  it runs without a shell, prints the last 40 lines and records the gate(s) in the log from the
  exit code (`pass` on 0, `fail` otherwise). No `.stdout`, `.exit` or hash file is written.
  `<skill>` is this skill's folder, the one holding this SKILL.md. `<dir>` is the story's
  Git-ignored evidence directory (the script refuses one Git tracks); nothing in it is committed.
- A gate that genuinely does not apply is recorded with
  `node "<skill>/scripts/gate-log.mjs" --log <dir>/qg-{story}.json --not-applicable <gate> --rationale "<why>"`,
  screenshots with `--screenshot <png>`. Never edit the log by hand.
- `commit.convention` and `test.integrity` are not recorded: `qg-verify` reads the commits and
  the RED acceptance tests from Git.

## Not run by this adapter

Architecture, coverage and mutation are not pipeline gates: the project's CI runs coverage and
mutation, the developer runs `/skraft-mutation` by hand. Never record `G5`, `G6`, `G11` nor any
`arch.*` / `ci.*` id in a log.

## Evidence

- Verify the evidence log with `node "<skill>/scripts/qg-verify/cli/qg-verify.mjs" --log <qg-{story}.json>`.
- Use the v7 ids of `quality-gates-evidence-contract` (`test.acceptance`, `test.unit`,
  `build.compile`, `build.lint`, `test.no-mocks-core`, `evidence.screenshots`). Never invent new gate IDs or claim all quality gates passed. Git revision alone does not
  attest a dirty tree.
- No TypeScript transpilation, test installation, coverage gate or automatic commit/push.
  A frontend story's screenshots come from `playwright-evidence`.

Files in this skill

  • SKILL.md6.4 KB
  • scripts/gate-policy.mjs8.5 KB
  • scripts/run-gates.mjs11.4 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 ai-agents →

Comments

Loading comments…

Newsletter

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