tsq-typescript

tsq-typescript is a skill for Claude Code from sonature-lab/timsquad. It costs 62 tokens per session (512 once invoked), scanned A, original, MIT.

A set of TypeScript coding rules for making data and program states explicit. TypeScript is JavaScript with checks that can catch many mistakes before the code runs, while Zod checks outside data such as API requests at runtime.

In plain words
What is it for?
Use it when writing TypeScript or TSX files, configuring TypeScript, removing any types, handling type-safety problems, or validating API and user input.
Why use it?
It reduces unsafe values and unclear states by requiring strict type checks, checked external input, and clearer distinctions between similar values.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it when writing TypeScript or TSX files, configuring TypeScript, removing any types, handling type-safety problems, or validating API and user input.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sonature-lab/timsquad/tsq-typescript
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add sonature-lab/timsquad --skill tsq-typescript
Clone the repo
git clone --depth 1 https://github.com/sonature-lab/timsquad

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tsq-typescript

README.md
[![agentmods](https://agentmods.dev/badge/skills/sonature-lab/timsquad/tsq-typescript.svg)](https://agentmods.dev/skills/sonature-lab/timsquad/tsq-typescript)
Your own site
<a href="https://agentmods.dev/skills/sonature-lab/timsquad/tsq-typescript"><img src="https://agentmods.dev/badge/skills/sonature-lab/timsquad/tsq-typescript.svg" alt="Measured on agentmods" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 512 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00062 $0.00512
Opus 5 $0.00031 $0.00256
Sonnet 5 $0.00012 $0.00102
Haiku 4.5 $0.00006 $0.00051

Measured 7d ago against content hash e92d9a9412f4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

tsq-typescript scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

templates/base/skills/tsq-typescript/SKILL.md · 62 lines

What it actually says

TypeScript Guidelines

철학

  • 타입은 문서다 — 코드만 봐도 의도 파악
  • 컴파일 타임에 버그를 잡는다
  • any는 타입 시스템 포기 선언

필수 설정 (tsconfig.json)

{
  "compilerOptions": {
    "strict": true,
    "noImplicitAny": true,
    "strictNullChecks": true,
    "noImplicitReturns": true,
    "noFallthroughCasesInSwitch": true,
    "noUncheckedIndexedAccess": true,
    "exactOptionalPropertyTypes": true
  }
}

핵심 패턴 (상세: rules/type-patterns.md)

패턴 용도
Discriminated Union 상태 표현 (불가능한 상태를 불가능하게)
Type Narrowing typeof, in, type guard로 안전한 접근
Branded Types 같은 원시 타입이지만 의미 구분 (UserId vs OrderId)
Template Literal Types 문자열 패턴 타입 강제
Infer 조건부 타입에서 타입 추출
Zod 외부 입력 런타임 검증 + 타입 추출

Rules

필수

  • strict 모드 사용
  • 함수 반환 타입 명시
  • 외부 입력(API, 사용자)은 Zod로 런타임 검증
  • Discriminated Union으로 상태 표현
  • Branded Types로 ID 타입 구분

금지

  • any 사용 → unknown + type guard
  • 타입 단언 남용 (as Type)
  • @ts-ignore, @ts-expect-error 남용
  • ! non-null assertion 남용

참조

  • rules/type-patterns.md — 각 패턴의 코드 예시
  • rules/utility-types.md — DTO 조합, DeepPartial, 타입 안전 API 클라이언트
Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 62 lines · 62 tokens per session scan A e92d9a9412f4

Subscribe to this mod's changes

tsq-typescript is a skill published in the GitHub repository sonature-lab/timsquad (11 stars, last pushed 7d ago), licensed MIT. It adds 62 tokens to every session and 512 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

typescript-expert

Expert-level TypeScript development with modern tooling, advanced types, and best practices. Use this skill for TypeScript projects requiring type-safe code, modern bundling, and comprehensive testing.

personamanagmentlayer/pcl · 40 tokens

TypeScript Patterns

Use this skill when working in a strict TypeScript codebase and you want reliable patterns for modeling data, narrowing, generics, and configuration—without papering over errors with as casts.

AmariahAK/atlarix-skills · 3 tokens

typescript-docs

Comprehensive TypeScript reference covering all language features, type system, generics, narrowing, classes, modules, utility types, TSConfig, and advanced patterns. Use whenever the user mentions TypeScript, types, interfaces, generics, type inference, TSConfig, type guards, decorators, or needs help with any…

pledgeandgrow/pledge-skills · 79 tokens

typescript-patterns

Modern TypeScript best practices — strict types, utility types, generics, discriminated unions, and build tooling for production codebases.

chandrudp29/skillhub · 30 tokens

effective-typescript

Review existing TypeScript code and write new TypeScript following the 62 items from "Effective TypeScript" by Dan Vanderkam. Use when writing TypeScript, reviewing TypeScript code, working with type design, avoiding any, managing type declarations, or migrating JavaScript to TypeScript. Trigger on: "TypeScript best…

booklib-ai/booklib · 101 tokens

javascript-typescript

Modern JavaScript and TypeScript development patterns.

miles990/claude-software-skills · 12 tokens