typescript
Skill0 starsChanged 4 months agoMITView on GitHub
Applies TypeScript/JavaScript rules for types, async behavior, APIs, tooling, tests, and architecture.
We split this skill into the rules it gives an agent
26 rules. 0 are common, 22 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 51 edited versions we read keep these.
22
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Before changing TypeScript/JavaScript code, inspect relevant files when present:
- Distinctive: line 37
Do not mix package managers.
- Distinctive: line 41
Follow existing module style.
- Distinctive: line 42
Prefer explicit types at boundaries.
- Very specific: line 44
Avoid utils dumping grounds.
- Distinctive: line 45
Avoid mutation-heavy shared state.
- Distinctive: line 46
Avoid hidden singleton state unless project architecture intentionally uses it.
- Distinctive: line 47
Keep framework-specific code at framework boundaries.
- Very specific: line 52
Avoid any unless justified.
- Very specific: line 53
Use unknown instead of any for untrusted data, then narrow.
- Distinctive: line 54
Prefer discriminated unions for state machines and variant data.
- Distinctive: line 55
Prefer explicit return types for exported functions.
- Distinctive: line 56
Do not silence type errors with broad assertions.
- Very specific: line 57
Avoid as casts unless narrowing cannot express the invariant.
- Distinctive: line 62
Do not assume TypeScript types validate runtime data.
- Distinctive: line 67
use existing schema/validation library if present.
- Distinctive: line 68
do not introduce a new validator unless justified.
- Distinctive: line 73
If UI code is present:
- Distinctive: line 78
keep side effects explicit.
- Distinctive: line 79
avoid over-abstraction for tiny components.
- Distinctive: line 84
If backend code is present:
- Distinctive: line 86
keep route handlers thin;
- Distinctive: line 88
avoid leaking internal errors.
- Distinctive: line 90
avoid blocking expensive work in request paths.
- Distinctive: line 91
keep persistence and business rules separated according to project architecture.
- Distinctive: line 95
Use existing test tooling.
“Common” is measured: kept by at least 6 in 10 of the 51 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skill: typescript
Purpose
Apply the shared engineering style to TypeScript and JavaScript projects while respecting existing tooling and architecture.
Inspect First
Before changing TypeScript/JavaScript code, inspect relevant files when present:
package.jsontsconfig.jsoneslint.config.*.eslintrc*prettier.config.*.prettierrc*vite.config.*next.config.*webpack.config.*vitest.config.*jest.config.*- lockfiles
- existing source and tests
Package manager detection:
pnpm-lock.yaml-> usepnpmyarn.lock-> useyarnpackage-lock.json-> usenpmbun.lockb/bun.lock-> usebunonly if project uses it
Do not mix package managers.
Style
- Follow existing module style.
- Prefer explicit types at boundaries.
- Keep modules cohesive.
- Avoid
utilsdumping grounds. - Avoid mutation-heavy shared state.
- Avoid hidden singleton state unless project architecture intentionally uses it.
- Keep framework-specific code at framework boundaries.
TypeScript Rules
- Prefer strict types.
- Avoid
anyunless justified. - Use
unknowninstead ofanyfor untrusted data, then narrow. - Prefer discriminated unions for state machines and variant data.
- Prefer explicit return types for exported functions.
- Do not silence type errors with broad assertions.
- Avoid
ascasts unless narrowing cannot express the invariant; explain non-obvious casts. - Respect existing runtime validation strategy.
Runtime Validation
Do not assume TypeScript types validate runtime data.
For external input:
- validate at boundaries;
- use existing schema/validation library if present;
- do not introduce a new validator unless justified;
- handle invalid data explicitly.
React / UI Code
If UI code is present:
- keep components cohesive;
- avoid god components;
- separate state management, data fetching, and presentation when complexity justifies it;
- keep side effects explicit;
- avoid over-abstraction for tiny components;
- preserve accessibility behavior.
Node / Backend Code
If backend code is present:
- keep route handlers thin;
- validate input;
- avoid leaking internal errors;
- propagate cancellation/timeouts where supported;
- avoid blocking expensive work in request paths;
- keep persistence and business rules separated according to project architecture.
Tests and Validation
Use existing test tooling.
Common commands, only when configured or clearly available:
pnpm test
pnpm lint
pnpm typecheck
npm test
npm run lint
npm run typecheck
yarn test
yarn lint
yarn typecheck
bun testReport exact commands and results.
Shared Cross-Ecosystem Style
Apply the shared engineering style from:
../../engineering/05_design_principles.md../../engineering/06_responsibility_model.md../../engineering/07_complexity_budget.md../../engineering/12_naming_bible.md
Language-specific idioms control syntax and ecosystem details, but they must not weaken the core rules: small cohesive units, explicit boundaries, honest validation, no dumping grounds, and no fake placeholders.
Other versions64 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 64
- lobehub/lobe-chat★ 84ksame name
- lobehub/lobehub★ 84ksame name
- recharts/recharts★ 28ksame name
- ccusage/ccusage★ 19ksame name
- ryoppippi/ccusage★ 19ksame name
- scalar/scalar★ 16ksame name
- prowler-cloud/prowler★ 15ksame name
- microsoft/fast★ 9.7ksame name
- epicenter-md/epicenter★ 4.8ksame name
- EpicenterHQ/epicenter★ 4.8ksame name
54 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Used alongsideProjects with it also use drizzle, development and 8 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
leonaaardobSkilldrizzle
Complete Drizzle ORM documentation in markdown format. Use when working with Drizzle ORM - covers schema definition, queries, migrations, database connections (PostgreSQL, MySQL, SQLite), integrations (Neon, Supabase, PlanetScale, Cloudflare D1, Turso), column types, relations, transactions, and framework usage (Next.js, SvelteKit, Astro).
Also in 3 projects that use this
mfang0126Skilldevelopment
Full-stack development workflow skill. Guides the complete cycle from understanding requirements to shipping code via PR with Preview validation.
Also in 3 projects that use this
VercelSkillreact
React renderer for json-render that turns JSON specs into React components. Use when working with @json-render/react, building React UIs from JSON, creating component catalogs, or rendering AI-generated specs.
Also in 8 projects that use this
OpenAISkillnextjs
Next.js App Router expert guidance. Use when building, debugging, or architecting Next.js applications — routing, Server Components, Server Actions, Cache Components, layouts, middleware/proxy, data fetching, rendering strategies, and deployment on Vercel.
Also in 5 projects that use this
sarukasSkillmarkdown
Convert any document format TO Markdown. Supports 14 formats (PDF, DOCX, XLSX, PPTX, HTML, CSV, EPUB, MSG, and more) via unified CLI. Use when Claude needs to read or extract text from non-Markdown files.
Also in 3 projects that use this
SentrySkillui-design
Also in 6 projects that use this
In this repository62 other files it gives its agents.
- AGENTS.mdAGENTS.md
- accessibility-ui-reviewSkill
- agent-retrospectiveSkill
- agents-md-retrospectiveSkill
- agent-squadSkill
- architecture-mapSkill
- architecture-normalizerSkill
- architecture-principlesSkill
- authz-boundary-reviewSkill
- c-cppSkill
- code-qualitySkill
- code-reviewSkill
- code-to-figmaSkill
- code-wiki-ruSkill
- context-packSkill
- core-engineeringSkill
- debuggingSkill
- dependency-advisory-auditSkill
- deserialization-parser-reviewSkill
- design-system-extractorSkill
- documentationSkill
- engineering-standardsSkill
- esp32Skill
- esphomeSkill
- external-agent-pack-auditSkill
- fastSkill
- figma-to-codeSkill
- fix-security-findingSkill
- goSkill
- homeassistantSkill
- mcp-tool-routerSkill
- migration-plannerSkill
- mobile-qaSkill
- multi-agent-pr-reviewSkill
- performanceSkill
- playwright-visual-qaSkill
- pythonSkill
- quality-gatesSkill
- refactoringSkill
- responsive-breakpoint-checkSkill
- review-routerSkill
- rustSkill
- secrets-and-config-reviewSkill
- security-diff-reviewSkill
- security-routerSkill
- securitySkill
- session-memorySkill
- specialist-dispatchSkill
- subagent-result-mergeSkill
- supply-chain-reviewSkill
- tdd-guardSkill
- testing-tddSkill
- threat-modelSkill
- ui-buildSkill
- ui-business-appsSkill
- ui-concept-firstSkill
- ui-figmaSkill
- ui-qaSkill
- ui-researchSkill
- ui-routerSkill
- The first 60 shown.
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.

