node-typescript
Skill1 starsChanged 3 months agoMITView on GitHub
Configures TypeScript for Node libraries and apps - strict tsconfig, module and moduleResolution choices, verbatimModuleSyntax, isolatedDeclarations, declaration emit. Use when the user asks to set up TypeScript, tighten tsconfig, add a tsc type-check step that fails the build, or fix declaration output. Not for lint rules, bundling, or package exports.
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- add-skillSkill
- publish-repoSkill
- nextjs-qualitySkill
- node-ciSkill
- node-lintSkill
- node-packagingSkill
- node-releaseSkill
- node-supply-chainSkill
- node-testingSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 22
Test runner TS support → node-testing.
- Very specific: line 26
Explicit-config principle first: Never rely on generated or version defaults — TypeScript majors have changed them.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
node-typescript
Produces TypeScript configurations that are explicit, strict, and correct for
how the code is consumed. The failures this skill fixes: models copy tsconfigs
whose implicit defaults changed between TypeScript majors, pick bundler
resolution for unbundled Node packages (broken for consumers), and flip strict
mode on a large codebase in one unreviewable big bang.
When NOT to use
- Lint/format rules →
node-lint. - Bundling and
exportsmaps / consumer type resolution →node-packaging(this skill owns declaration emission; the packaging skill owns how consumers resolve it). - Test runner TS support →
node-testing.
Workflow
- Explicit-config principle first. Never rely on generated or version
defaults — TypeScript majors have changed them. Every option that matters is
written out, per the blocks in
references/tsconfig-playbook.md. - Choose by consumption model, not fashion:
- Published/unbundled Node package →
module/moduleResolutionin thenodenextfamily;verbatimModuleSyntax;declaration+declarationMap;isolatedDeclarationswhere the API surface allows (parallel, tool-agnostic declaration emit). - Bundled app code →
bundlerresolution withnoEmit(the bundler emits).
- Published/unbundled Node package →
- Gate it:
tsc --noEmit(or-bfor project references) as a script and a CI job (wiring →node-ci). - Strictification of an existing codebase is a ratchet, not a flip: measure the error surface first, enable flags incrementally (per-flag or per-directory), and keep CI green with a no-new-errors rule. Playbook has the sequence.
- Verify: clean
tsc --noEmit; for published packages, confirm declarations emit and hand consumer-resolution verification tonode-packaging's gates.
Output spec
An explicit tsconfig with every load-bearing option stated; type-check script + CI gate; for libraries: declarations emitting with maps; a written rationale for module/resolution choices; strictification plan with measurable checkpoints when applicable.
Gotchas
bundlerresolution on a package consumed by Node directly will typecheck locally and break consumers — the consumption model decides, always.verbatimModuleSyntaxmakesimport typemandatory for type-only imports and constrains CJS-emit default exports — enable it with the codemod pass.isolatedDeclarationsdemands explicit return types on exported API — great for libraries, noisy for apps; don't cargo-cult it into app configs.- TypeScript 7 (the native compiler, GA July 2026) is what
typescript@latestinstalls; explicit tsconfigs stay compatible, but 6.0's deprecations (baseUrl,target: es5,moduleResolution: classic) are hard errors on 7 — the playbook lists them and the@typescript/typescript6fallback for API-dependent tooling. - Version-gate: re-verify default/flag behavior against the official TSConfig reference when the TS major changes.
Files
references/tsconfig-playbook.md— explicit config blocks (library/app), nodenext-vs-bundler decision, strictification ratchet, verification commands.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

