Skip to content
Skills Library
Programming · Review & audit

typescript-quality-gates

/typescript-quality-gates

Use when validating build quality, tsconfig rules, declaration output, linting, package integrity, or CI gates for a TypeScript library.

Repository
agentsmesh ↗
Licence
MIT
Last repository change
24.09.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 24.09.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Use when validating build quality, tsconfig rules, declaration output, linting, package integrity, or CI gates for a TypeScript library.

Original author description

Use when validating build quality, tsconfig rules, declaration output, linting, package integrity, or CI gates for a TypeScript library.

How it works

  1. Purpose
  2. Goals
  3. Required baseline checks
  4. tsconfig expectations
  5. Declaration quality rules
  6. Packaging integrity rules
  7. Anti-patterns to flag
  8. CI recommendations
  9. Output format
Original SKILL.md headings · 107 lines, 437 words
SKILL.md preview
---
name: typescript-quality-gates
description: Use when validating build quality, tsconfig rules, declaration output, linting, package integrity, or CI gates for a TypeScript library.
---

## Purpose

# TypeScript Quality Gates

You are responsible for enforcing high-confidence quality gates for a production TypeScript library.

## Goals

- Catch correctness, typing, packaging, and compatibility issues before release.
- Keep CI fast but meaningful.
- Prevent invalid declaration output and broken package metadata.
- Enforce standards that matter for consumers, not cosmetic noise.

## Required baseline checks

Every substantial change should be evaluated against these gates:

1. Typecheck
   - `tsc --noEmit` or equivalent project validation
   - zero unresolved type errors

2. Build
   - production build succeeds
   - declaration files emit correctly
   - output structure matches `package.json` exports

3. Lint
   - enforce correctness-focused linting
   - avoid excessive stylistic churn unless the repo explicitly wants it

4. Tests
   - unit/integration/type tests pass

5. Package verification
   - inspect the packed artifact using `npm pack --dry-run` or equivalent
   - confirm only intended files ship
   - verify README, LICENSE, declaration files, and dist outputs are present

## tsconfig expectations

Prefer strict settings for libraries.

Recommended expectations:
- `strict: true`
- `noImplicitOverride: true` where applicable
- `noUncheckedIndexedAccess: true` when practical
- `exactOptionalPropertyTypes: true` when the API benefits from tighter semantics
- `declaration: true`
- `declarationMap: true` when useful for debugging
- `sourceMap: true` for distributed debugging if desired
- `skipLibCheck` may be tolerated for CI speed, but do not use it to hide library issues in authored code

## Declaration quality rules

Validate that emitted `.d.ts` files:
- resolve successfully for consumers
- do not reference private/internal paths
- do not leak unstable implementation details unnecessarily
- align with documented public API
- remain readable enough for IDE usage

## Packaging integrity rules

Check:
- `exports` map matches real files
- `types` path exists and is correct
- `bin` targets exist and are executable when applicable
- `files` whitelist is accurate
- `sideEffects` is correct
- `engines` reflects actual compatibility

## Anti-patterns to flag

- shipping source-only packages accidentally
- broken export paths
- mismatched ESM/CJS entrypoints
- hidden reliance on ts-node or test-only runtime behavior
- declaration output that references `src/` internals
- publishing unnecessary fixtures, screenshots, or test artifacts
- broad `any` in public API without explicit justification
- unstable inferred return types in exported functions

## CI recommendations

For PR validation, prefer a pipeline like:
1. install
2. lint
3. typecheck
4. test
5. build
6. package verification

For release validation, additionally verify:
- version/changelog consistency
- smoke-test installation in a fresh temp project
- Node version matrix where relevant

## Output format

When auditing changes, return:
1. Failed gates
2. Risk level
3. Exact fixes
4. Suggested CI commands

Favor hard release confidence over superficial cleanliness.

Versions

The database has no other skills named typescript-quality-gates.

Identical content appears in 2 other GitHub folders. We show one copy with the highest score.

Database snapshot: 13.11.2026 · package version 67ce48a5eec1 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100project-system
    Use when configuring TypeScript projects, tsconfig.json, build tools, bundlers, and compilation pipelines. Covers compiler options, module systems, project references, and declaration files. USE FOR: tsconfig.json configuration, compiler options, build tool selection, bundler…
  • 100typescript
    Expert TypeScript assistance covering advanced type gymnastics, generic constraints, conditional types, mapped types, declaration merging, and tsconfig optimization. Use when building type-safe applications, designing strict library typings, or refactoring JavaScript to TypeScript.
  • 100static-code-analysis-typescript
    Creates, reviews, and modernizes static code analysis setups for Node.js and TypeScript repositories, covering ESLint flat config, typescript-eslint, tsconfig, Prettier, import sorting, Husky, lint-staged, package.json quality scripts, and CI quality gates. Use when setting up…
  • 100typescript-tooling
    Development tools, linting, and build config for TypeScript. Use when configuring ESLint, Prettier, Jest, Vitest, tsconfig, or any TS build tooling.
  • 100typescript
    Sets up and repairs TypeScript projects: picks tsconfig.json settings for a Node.js service, an npm library or a bundled web app, runs type-checking in CI, and replaces `any` and unsafe casts with types the compiler can verify. Use when someone asks to "set up TypeScript", "fix…
  • 100typescript-best-practices
    Use when reading or writing TypeScript or JavaScript files (.ts, .tsx, .js, tsconfig.json).

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.