typescript-quality-enforcer

typescript-quality-enforcer is a skill for Claude Code, Codex from cmdr-chara/codex-toolkit. It costs 129 tokens per session (3,010 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 Claude CodeCodex

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.

agentmods
npx agentmods add skills/cmdr-chara/codex-toolkit/typescript-quality-enforcer
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: Claude Code, 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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 129 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,010 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00129 $0.03010
Opus 5 $0.00064 $0.01505
Sonnet 5 $0.00026 $0.00602
Haiku 4.5 $0.00013 $0.00301

Measured 4d ago against content hash 7bf8759c79c3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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 · 286 lines

How it starts

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

TypeScript Quality Enforcer

Turn recurring TypeScript/JavaScript quality failures into evidence-backed, deterministic enforcement. Diagnose the repository first, stage adoption second, and fix the violated invariant rather than the lint message.

Trigger boundary

Use this skill for:

  • auditing an existing TypeScript/JavaScript repository for type-evidence loss, unsafe assertions, broad contracts, suppressions, weak boundary parsing, and test seams;
  • installing or configuring the bundled anti-slop Oxlint rules after an approved proposal;
  • migrating an existing anti-slop setup without blindly replacing project-specific policy;
  • reducing repeated any, unknown, unsafe dictionary, assertion, reflection, or module-mocking patterns when the goal is stronger permanent enforcement;
  • tightening TypeScript compiler/lint discipline when the repository-specific migration cost is part of the decision.

Do not trigger for:

  • explaining a concrete runtime failure with unknown cause—use debugging-investigator;
  • upgrading TypeScript, Oxlint, a framework, runtime, or public contract as the primary task—use codebase-evolution-controller;
  • a defined behavior-preserving refactor that is already chosen—use review-and-refactor-code;
  • a named measured performance problem—use optimize-codebase-performance;
  • broad web/mobile production readiness where TypeScript quality is only one concern—use the relevant builder;
  • deciding whether the integrated release can ship—use verification-and-release.

Required inputs

Obtain or state:

  1. repository root, working-tree state, and protected user work;
  2. TypeScript/JavaScript source boundaries and excluded generated/vendor code;
  3. package manager, manifests/lockfiles, TypeScript configuration, lint configuration, and existing lint/typecheck commands;
  4. current compiler/lint baseline, known failures, and CI enforcement;
  5. whether anti-slop or equivalent project-local rules already exist;
  6. product/runtime compatibility constraints and public type/API boundaries;
  7. whether the task is audit-only or an exact previously proposed adoption/remediation stage has been approved.

Read the full file on GitHub · 286 lines

Files

What ships with it

27 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. 4d 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 7d ago), licensed MIT. It adds 129 tokens to every session and 3,010 once invoked, about $0.0006 per session on Opus 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.