willyu1007/fun-forumai/apply-frontend-typescript-standards

Claude Code and agent skill by willyu1007/fun-forumai

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/fun-forumai/apply-frontend-typescript-standards

SKILL.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 any and type assertions

Rules

  • any SHOULD be avoided; prefer unknown + refinement when needed.
  • Public module APIs MUST be typed and stable.
  • Narrowing MUST be explicit for unknown values.
  • Prefer discriminated unions for complex state machines.

Steps

  1. Define types at the boundary:
  • API DTOs
  • component props
  1. Prefer inference where safe; add annotations at boundaries.
  2. Replace unsafe casts with:
  • runtime checks
  • schema validation (if available)
  1. Use discriminated unions for complex UI state.
  2. Verify:
  • TypeScript build passes
  • no new unsafe escapes introduced

Verification

  • [ ] TypeScript build passes with no errors
  • [ ] No new any types introduced without justification
  • [ ] Public module APIs are typed and exported correctly
  • [ ] unknown values are narrowed before use
  • [ ] Discriminated unions are used for complex state
  • [ ] Type assertions are avoided or justified

Boundaries

  • MUST NOT use any without 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 for unknown and 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

Popularity

7-day trend score
5

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/willyu1007/fun-forumai/apply-frontend-typescript-standards/badge)](https://verified-skill.com/skills/willyu1007/fun-forumai/apply-frontend-typescript-standards)

Something wrong with this skill or its page? Tell us.