{"slug":"quality-gates-javascript","title":"quality-gates-javascript","summary":"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. ","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-11-29T00:42:33.501661Z","repo":{"url":"https://github.com/SebastienDegodez/skraft-plugin","stars":17,"forks":3,"license":"GPL-3.0","updatedAt":"2026-11-29T00:18:21Z"},"bodyHtml":"<hr>\n<h2>name: quality-gates-javascript\ndescription: \"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.\"</h2>\n<h1>JavaScript quality gates</h1>\n<p>Load quality bar (<code>skraft-quality-bar</code>) and\nevidence contract (<code>quality-gates-evidence-contract</code>).\nMissing tooling, unsupported scope, failed gates or absent evidence block delivery.</p>\n<h2>Resolve ordinary commands first</h2>\n<ul>\n<li>Read checked-in package scripts in the explicitly selected package. Use its\n<code>test</code>, <code>build</code>, <code>typecheck</code>, <code>lint</code> or dedicated acceptance scripts\nonly when present and applicable; preserve their working-directory semantics.</li>\n<li>Invoke <code>npm --prefix &lt;package&gt; run &lt;script&gt;</code> for a verified script. Never use\n<code>npx</code>, install packages, or treat an absent script as a successful gate.</li>\n<li>Native Node test suites may use <code>node --test &lt;explicit test paths&gt;</code> from repo\nroot. For this adapter's authoring bootstrap, use\n<code>node --test tests/skraft-framework/quality-gates/quality-gates-javascript-*.test.mjs</code>.</li>\n<li>Plain no-emit JavaScript has no compilation step: <code>node --check &lt;source&gt;</code> checks\nsyntax only. Do not label it TypeScript compilation or architecture validation.</li>\n<li>Run each gate command at execution time through the bundled\n<code>node \"&lt;skill&gt;/scripts/capture.mjs\" --log &lt;dir&gt;/qg-{story}.json --gate test.acceptance,test.unit -- npm --prefix &lt;package&gt; run test</code>:\nit runs without a shell, prints the last 40 lines and records the gate(s) in the log from the\nexit code (<code>pass</code> on 0, <code>fail</code> otherwise). No <code>.stdout</code>, <code>.exit</code> or hash file is written.\n<code>&lt;skill&gt;</code> is this skill's folder, the one holding this SKILL.md. <code>&lt;dir&gt;</code> is the story's\nGit-ignored evidence directory (the script refuses one Git tracks); nothing in it is committed.</li>\n<li>A gate that genuinely does not apply is recorded with\n<code>node \"&lt;skill&gt;/scripts/gate-log.mjs\" --log &lt;dir&gt;/qg-{story}.json --not-applicable &lt;gate&gt; --rationale \"&lt;why&gt;\"</code>,\nscreenshots with <code>--screenshot &lt;png&gt;</code>. Never edit the log by hand.</li>\n<li><code>commit.convention</code> and <code>test.integrity</code> are not recorded: <code>qg-verify</code> reads the commits and\nthe RED acceptance tests from Git.</li>\n</ul>\n<h2>Not run by this adapter</h2>\n<p>Architecture, coverage and mutation are not pipeline gates: the project's CI runs coverage and\nmutation, the developer runs <code>/skraft-mutation</code> by hand. Never record <code>G5</code>, <code>G6</code>, <code>G11</code> nor any\n<code>arch.*</code> / <code>ci.*</code> id in a log.</p>\n<h2>Evidence</h2>\n<ul>\n<li>Verify the evidence log with <code>node \"&lt;skill&gt;/scripts/qg-verify/cli/qg-verify.mjs\" --log &lt;qg-{story}.json&gt;</code>.</li>\n<li>Use the v7 ids of <code>quality-gates-evidence-contract</code> (<code>test.acceptance</code>, <code>test.unit</code>,\n<code>build.compile</code>, <code>build.lint</code>, <code>test.no-mocks-core</code>, <code>evidence.screenshots</code>). Never invent new gate IDs or claim all quality gates passed. Git revision alone does not\nattest a dirty tree.</li>\n<li>No TypeScript transpilation, test installation, coverage gate or automatic commit/push.\nA frontend story's screenshots come from <code>playwright-evidence</code>.</li>\n</ul>\n","files":[{"path":"scripts/capture.mjs","sizeBytes":3633,"isText":false},{"path":"scripts/gate-log.mjs","sizeBytes":8330,"isText":false},{"path":"scripts/qg-verify/adapters/infrastructure/active-slug-store.mjs","sizeBytes":902,"isText":false},{"path":"scripts/qg-verify/adapters/infrastructure/git-repository.mjs","sizeBytes":1853,"isText":false},{"path":"scripts/qg-verify/adapters/infrastructure/tracking-root-resolver.mjs","sizeBytes":1626,"isText":false},{"path":"scripts/qg-verify/application/evidence-verification-service.mjs","sizeBytes":4756,"isText":false},{"path":"scripts/qg-verify/cli/qg-verify.mjs","sizeBytes":2576,"isText":false},{"path":"scripts/qg-verify/domain/commit-convention.mjs","sizeBytes":744,"isText":false},{"path":"scripts/qg-verify/domain/config-schema.mjs","sizeBytes":1669,"isText":false},{"path":"scripts/qg-verify/domain/evidence-verification-policy.mjs","sizeBytes":22578,"isText":false},{"path":"scripts/qg-verify/domain/result.mjs","sizeBytes":325,"isText":false},{"path":"scripts/qg-verify/domain/tracking-layout-policy.mjs","sizeBytes":957,"isText":false},{"path":"scripts/qg-verify/domain/value-objects.mjs","sizeBytes":1636,"isText":false},{"path":"scripts/qg-verify/GENERATED.md","sizeBytes":684,"isText":true},{"path":"SKILL.md","sizeBytes":3309,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"clean","suspicious":0,"notes":0,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-11-29T00:44:23.658802Z","sha256":"375C3C886BABBB515516C947A995C4C7FC736DC7F2F7E641C8432A13B6FED162","sizeBytes":23635},"review":null,"source":{"repositoryUrl":"https://github.com/SebastienDegodez/skraft-plugin","path":"plugins/skraft-framework/skills/quality-gates-javascript","license":"GPL-3.0","commit":"c6117c6236a25490bf1916b131866069740c9b22","subtreeSha":"7C016AA83E7918ACF6819AD4CEE35F6DA9AFBF71B219328BD296FC4DFB77AD16","lastSyncedAt":"2026-11-29T00:42:27.348488Z"},"reviewedAt":"2026-11-29T00:48:16.612668Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/SebastienDegodez/skraft-plugin/tree/main/plugins/skraft-framework/skills/quality-gates-javascript"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install sebastiendegodez-skraft-plugin@llmmart"},{"target":"git","command":"git clone https://github.com/SebastienDegodez/skraft-plugin.git"}]}