typescript
Skill0 starsChanged 5 months agoMITView on GitHub
Applies TypeScript/JavaScript rules for types, async behavior, APIs, tooling, tests, and architecture.
33 other projects use a version of this.
Adopted by
Most recently taken up by
- Quad4-Software/skillstheir own version, first seen Oct 3, 2026
- lobehub/lobehubtheir own version, first seen Oct 1, 2026
- jscraik/Agent-Skillstheir own version, first seen Sep 27, 2026
- wolzey/agent-factorytheir own version, first seen Sep 23, 2026
- microsoft/scopetheir own version, first seen Sep 23, 2026
- AvilaCarlosDev/openclaw-skillstheir own version, first seen Sep 19, 2026
Used with
Projects with it also use react.
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.
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 6 projects that use this
Other versions33 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 33
- lobehub/lobehub★ 83ksame name
- microsoft/fast★ 9.7ksame name
- alinaqi/maggy★ 707same name
- Mindrally/skills★ 266same name
- martinholovsky/claude-skills-generator★ 47same name
- nimadorostkar/Claude-Skills-collection★ 28same name
- siviter-xyz/dot-agent★ 22same name
- sordi-ai/skill-everything★ 20same name
- alexander-danilenko/cortex-ai-skills★ 16same name
- caidanw/skills★ 9same name
23 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.
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.
The file
Show its rules and text
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 27 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 27 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.
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.

