alexei-led/cc-thingz/writing-typescript

Claude Code and agent skill by alexei-led/cc-thingz

Trust tier 3
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Idiomatic TypeScript development. Use when writing TypeScript code, Node.js

Install

npx vskill@latest install alexei-led/cc-thingz/writing-typescript

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as alexei-led/cc-thingz/writing-typescript.

TypeScript Development

Follow the repository's TypeScript version, tsconfig, package manager, framework, and test runner. In a monorepo, work from the nearest package.json and tsconfig.json and name the package you chose.

Defaults

  • Never weaken compiler options to pass a check. New configs enable strict, noUncheckedIndexedAccess, exactOptionalPropertyTypes, useUnknownInCatchVariables, noImplicitOverride, and noFallthroughCasesInSwitch.
  • Treat HTTP responses, JSON, env, storage, form data, and SDK output as unknown. Narrow at the boundary with the project's schema library or a small type guard; never cast await res.json() to a domain type.
  • Avoid any, as casts, non-null !, and broad index signatures unless a runtime check or an external type gap justifies them.
  • Discriminated unions for variants and async state, with an exhaustive never check. Literal unions or as const arrays instead of new enums. satisfies for config maps.
  • Result unions for recoverable failures callers must branch on; throw Error instances otherwise.
  • Pass dependencies as parameters; no singletons or hidden module state. Thread AbortSignal through work that can outlive its caller.
  • Ask before adding a schema, form, query, or state library the project does not already use.

React

  • Plain function components, not React.FC. Type children as ReactNode.
  • Derive state during render. Fix stale closures instead of suppressing exhaustive-deps.
  • Add memo, useMemo, or useCallback only for measured cost or a real identity need.
  • Validate fetched data in the fetcher, not in render. Custom hooks throw when their provider is missing.

Tooling

Typecheck with the project script or tsc --noEmit. Use one formatter and one linter per file; the selection order is in linting.md.

References

  • testing.md: read when adding or changing tests, including React component tests.
  • linting.md: read when choosing a formatter or linter, changing lint config, or diagnosing slow lint.

Done when the relevant build/test/lint checks pass on what you changed, or you name each check that did not run and why.

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.

Extension points

  • hookPre/post lifecycle hooks

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/alexei-led/cc-thingz/writing-typescript/badge)](https://verified-skill.com/skills/alexei-led/cc-thingz/writing-typescript)

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