willyu1007/template-skill-addon/apply-frontend-typescript-standards
Claude Code and agent skill by willyu1007/template-skill-addon
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Apply frontend TypeScript standards for safety and maintainability (strict typing, props DTOs, safe utilities, no implicit any).
Install
npx vskill@latest install willyu1007/template-skill-addon/apply-frontend-typescript-standardsSKILL.md
The same SKILL.md was published earlier as willyu1007/template-skill-addon/apply-frontend-typescript-standards.
Apply Frontend TypeScript Standards
Purpose
Prevent runtime UI bugs by enforcing consistent TypeScript patterns and avoiding unsafe shortcuts.
When to use
Use this skill when you are:
- Adding new components, hooks, or API clients
- Fixing type errors and improving type safety
- Introducing new feature modules with public exports
- Reviewing PRs for TypeScript quality
Inputs
- Existing TypeScript configuration and lint rules
- Feature types/DTOs and API shapes
- Known type pain points (implicit
any, unions, nullability)
Outputs
- Typed props and module public APIs
- Safe utility types and helper functions
- Reduced reliance on
anyand type assertions
Rules
anySHOULD be avoided; preferunknown+ refinement when needed.- Public module APIs MUST be typed and stable.
- Narrowing MUST be explicit for
unknownvalues. - Prefer discriminated unions for complex state machines.
Steps
- Define types at the boundary:
- API DTOs
- component props
- Prefer inference where safe; add annotations at boundaries.
- Replace unsafe casts with:
- runtime checks
- schema validation (if available)
- Use discriminated unions for complex UI state.
- Verify:
- TypeScript build passes
- no new unsafe escapes introduced
Verification
- [ ] TypeScript build passes with no errors
- [ ] No new
anytypes introduced without justification - [ ] Public module APIs are typed and exported correctly
- [ ]
unknownvalues are narrowed before use - [ ] Discriminated unions are used for complex state
- [ ] Type assertions are avoided or justified
Boundaries
- MUST NOT use
anywithout explicit justification - MUST NOT use type assertions (
as) to bypass type checking - MUST NOT export untyped public APIs
- SHOULD NOT ignore TypeScript errors with
@ts-ignore - SHOULD NOT use
!(non-null assertion) without runtime guarantee - SHOULD NOT define complex types inline (extract to named types)
Included assets
- Examples:
./examples/includes safe patterns forunknownand discriminated unions.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.ai/skills/frontend/typescript/apply-frontend-typescript-standards/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 8
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/willyu1007/template-skill-addon/apply-frontend-typescript-standards)