typescript-quality-enforcer

typescript-quality-enforcer is a skill for Codex from cmdr-chara/codex-toolkit. It costs 40 tokens per session (787 once invoked), scanned A, original, MIT.

A review and enforcement workflow for improving type safety and lint rules in TypeScript and JavaScript projects.

In plain words
What is it for?
Auditing type usage, reducing unsafe any or unknown patterns, strengthening compiler and Oxlint checks, and applying approved fixes.
Why use it?
It helps find weak type boundaries, unsafe escape hatches, and repeated quality problems before turning fixes into permanent rules.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Auditing type usage, reducing unsafe any or unknown patterns, strengthening compiler and Oxlint checks, and applying approved fixes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cmdr-chara/codex-toolkit/typescript-quality-enforcer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add cmdr-chara/codex-toolkit --skill typescript-quality-enforcer
Clone the repo
git clone --depth 1 https://github.com/cmdr-chara/codex-toolkit

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for typescript-quality-enforcer

README.md
[![agentmods](https://agentmods.dev/badge/skills/cmdr-chara/codex-toolkit/typescript-quality-enforcer/github.svg)](https://agentmods.dev/skills/cmdr-chara/codex-toolkit/typescript-quality-enforcer)
Your own site
<a href="https://agentmods.dev/skills/cmdr-chara/codex-toolkit/typescript-quality-enforcer"><img src="https://agentmods.dev/badge/skills/cmdr-chara/codex-toolkit/typescript-quality-enforcer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for typescript-quality-enforcer

Your own site · 80×15
<a href="https://agentmods.dev/skills/cmdr-chara/codex-toolkit/typescript-quality-enforcer"><img src="https://agentmods.dev/badge/skills/cmdr-chara/codex-toolkit/typescript-quality-enforcer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 787 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00040 $0.00787
Opus 5.5 $0.00016 $0.00315
Sonnet 5.5 $0.00008 $0.00157
Haiku 4.5 $0.00004 $0.00079

Measured 24d ago against content hash bd2b43d67575, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

typescript-quality-enforcer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 24d ago.

The scan reads SKILL.md. This mod also ships 21 executable files (assets/anti-slop/index.ts, assets/anti-slop/rules/no-chained-type-assertions.ts, assets/anti-slop/rules/no-conditional-empty-object-spread.ts, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/typescript-quality-enforcer/SKILL.md · 61 lines

How it starts

The opening of the file, as written. The whole thing — 61 lines — stays where its author put it; the contents beside it link to each section on GitHub.

TypeScript Quality Enforcer

Strengthen type evidence and lint policy without hiding diagnostics or turning a quality audit into an uncontrolled rewrite.

Trigger boundary

Use this skill for:

  • TypeScript/JavaScript type-safety audits and staged strictness work;
  • anti-slop Oxlint adoption;
  • systematic cleanup of unsafe assertions, broad any/unknown contracts, suppressions, module mocking, or weak boundary parsing.

Do not trigger for a concrete runtime bug, measured performance bottleneck, ordinary bounded refactor, toolchain migration, non-TypeScript platform audit, or final release decision.

Required inputs

Resolve scope, working-tree state, manifests/lockfiles, tsconfig/lint configuration, existing checks/CI enforcement, generated/vendor boundaries, and approval state.

For a breadth-first inventory, run:

python skills/typescript-quality-enforcer/scripts/typescript_quality_inventory.py . --format markdown

Treat heuristic matches as leads that require parser/manual confirmation.

Safety baseline

  • Preserve uncommitted user work.
  • Audit first. Do not install the vendored runtime, change policy, or remediate broad source sets without an approved stage.
  • Never make lint pass through laundering: replacing one unsafe cast with another, widening any, blanket suppressions, broader ignores, or weakened compiler options.
  • Keep third-party provenance and assets/anti-slop/LICENSE intact.

Workflow

  1. Establish the baseline. Measure existing typecheck/lint state and enforcement. Separate pre-existing failures from target findings.
  2. Build the evidence ledger. Confirm representative findings and classify them by invariant, boundary, and remediation cost.
  3. Choose a staged policy. Read references/adoption-strategy.md. Prefer the smallest rule/strictness stage that creates durable signal without flooding the repository.
  4. Handle strictness deliberately. For strict, noUncheckedIndexedAccess, exactOptionalPropertyTypes, and related migration work, read references/strictness-migration.md instead of flipping every flag at once.
  5. Stop for approval. Report the proposed stage and mark it AWAITING_APPROVAL before installation, policy changes, or broad remediation.
  6. Install only when approved. Use scripts/install.mjs; never overwrite an existing anti-slop/plugin directory.
  7. Remediate by invariant. Use references/violation-remediation.md. Prefer narrowing, explicit boundaries, and contract repair over silencing.
  8. Verify recurrence prevention. Re-run targeted typecheck/lint/tests and confirm CI or repository policy will catch the same class again.
  9. Refresh volatile claims. Use current primary sources before version-, runtime-, or ecosystem-sensitive recommendations. Upstream details live in references/upstream-provenance.md.

Read the full file on GitHub · 61 lines

Files

What ships with it

28 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 24d ago Changed · -225 lines · -89 tokens per session bd2b43d67575
  2. 1mo ago First seen · 286 lines · 129 tokens per session scan A 7bf8759c79c3

Subscribe to this mod's changes

typescript-quality-enforcer is a skill published in the GitHub repository cmdr-chara/codex-toolkit (2 stars, last pushed 11d ago), licensed MIT. It adds 40 tokens to every session and 787 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

TypeScript Null Safety Guardrails

Enforce null/undefined safety for changed TypeScript code and suggest safer patterns.

s977043/river-review · 23 tokens

TypeScript Strictness Guard

Enforce TypeScript strictness by reducing any/unsafe assertions and ensuring null handling.

s977043/river-review · 23 tokens

code-quality-analysis

Analyze Angular / Cumulocity Web SDK code for anti-patterns, bugs, and quality issues. Use when reviewing components, services, or modules for code quality, maintainability, performance, and correctness. Covers TypeScript best practices, Angular idioms, C8Y SDK usage patterns, and project-specific conventions.…

Cumulocity-IoT/cumulocity-skills · 90 tokens

pr-review

Review Cool Workflow pull requests or branch diffs. Use when Codex must inspect code changes for bugs, regressions, FreeBSD/POLA violations, missing tests, generated artifact drift, release-contract risk, or CI implications, and return findings first with file/line citations.

coo1white/cool-workflow · 58 tokens

ck-signatures

Extract all method/property signatures from C#, TypeScript, Kotlin, and Python files using live AST parsing. Use after ck find-files has identified the relevant folder, when evaluating multiple candidate files to avoid reading full file content.

Fredrik-C/ContextKing · 48 tokens

ruff

Use when the user lints or formats Python code from the command line. ruff is a 2-in-1 tool - ruff check runs the linter (rules / fixes / import sort / security), and ruff format runs the formatter (Black-compatible style rewrites). They are distinct subcommands...

moabualruz/fulcrum · 65 tokens