tsq-coding

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

A set of coding rules for naming, structuring, and writing TypeScript code. It covers function design, error handling, type checking, and patterns to avoid.

In plain words
What is it for?
Use it while writing or refactoring TypeScript to check conventions, run type and lint checks, and avoid patterns such as any, magic values, and console.log.
Why use it?
It reduces inconsistent code, hidden errors, and maintenance problems caused by unclear names, oversized functions, or ignored errors.

Skill for Claude CodeCodex

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.

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

Made for: Claude Code, Codex.

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-coding

README.md
[![agentmods](https://agentmods.dev/badge/skills/sonature-lab/timsquad/tsq-coding.svg)](https://agentmods.dev/skills/sonature-lab/timsquad/tsq-coding)
Your own site
<a href="https://agentmods.dev/skills/sonature-lab/timsquad/tsq-coding"><img src="https://agentmods.dev/badge/skills/sonature-lab/timsquad/tsq-coding.svg" alt="Measured on agentmods" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 593 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00067 $0.00593
Opus 5 $0.00034 $0.00296
Sonnet 5 $0.00013 $0.00119
Haiku 4.5 $0.00007 $0.00059

Measured 4d ago against content hash f127abe95059, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

tsq-coding 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 4d 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-coding/SKILL.md · 66 lines

What it actually says

Coding Guidelines

코드 작성 시 일관된 컨벤션과 패턴을 적용한다.

Philosophy

  • 단일 책임: 함수는 한 가지 일만 수행
  • 명확한 이름: 코드만 읽고도 동작을 파악 가능
  • 명시적 에러 처리: 에러를 삼키지 않는다

Contract

  • Trigger: 코드 작성/수정 태스크
  • Input: 구현 요구사항 + 기존 코드 컨텍스트
  • Output: 컨벤션 준수 코드
  • Error: 컨벤션 위반 시 수정 안내
  • Dependencies: 없음

Protocol

  1. 컨벤션 확인: 네이밍, 파일 구조 규칙 확인
  2. 구현: 단일 책임 원칙 준수하며 코드 작성
  3. 린트: tsc --noEmit + 린트 검증
  4. 리뷰: 금지 패턴(any, 매직넘버, console.log) 제거 확인

Verification

Check Command Pass Criteria
타입 검사 tsc --noEmit exit code 0
any 타입 grep -r "any" --include="*.ts" 0건 (신규 코드)
console.log grep -r "console.log" --include="*.ts" 0건 (신규 코드)
함수 크기 수동 검증 20줄 이내 권장

Resources

Priority Type Resource Description
HIGH rule patterns Error Handling, Repository, DTO, Anti-Patterns

Quick Rules

네이밍

대상 규칙 예시
클래스 PascalCase UserService
함수/변수 camelCase getUserById
상수 UPPER_SNAKE MAX_RETRY_COUNT
파일 kebab-case user-service.ts

금지

  • any 타입 사용
  • 매직 넘버/문자열 사용
  • console.log 사용 (logger 사용)
Files

What ships with it

5 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. 4d ago First seen · 66 lines · 67 tokens per session scan A f127abe95059

Subscribe to this mod's changes

tsq-coding is a skill published in the GitHub repository sonature-lab/timsquad (11 stars, last pushed 6d ago), licensed MIT. It adds 67 tokens to every session and 593 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

java-conventions

Java coding conventions for enterprise applications. Covers package naming, class naming suffixes, method ordering, null handling, and immutability patterns.

pan94u/forge · 32 tokens

bun-development

Fast, modern JavaScript/TypeScript development with the Bun runtime, inspired by oven-sh/bun.

sacenox/mini-coder · 35 tokens

integrated-browser

Use this when working on the VS Code integrated browser ("browserView") to understand its architecture and mental model. Covers the embedded Chromium browser, its editor tab, navigation, overlay/layout, sessions, and agent browser tools under src/vs/platform/browserView and src/vs/workbench/contrib/browserView.

microsoft/vscode · 68 tokens

agent-host-e2e-tests

Use when writing, recording, updating, validating, or troubleshooting the agent host end-to-end tests under src/vs/platform/agentHost/test/node/e2e (black-box tests that drive the whole agent host over the AHP protocol, using a CapiReplayProxy record/replay system for Claude/Copilot/Codex). Covers adding a…

microsoft/vscode · 111 tokens

lint-js

Lint JS/TS code only. Use before opening a PR when only JavaScript or TypeScript files were changed (no Rust).

denoland/deno · 29 tokens

schema-exploration

Lists tables, describes columns and data types, identifies foreign key relationships, and maps entity relationships in a database. Use when the user asks about database schema, table structure, column types, what tables exist, ERD, foreign keys, or how entities relate.

langchain-ai/deepagents · 57 tokens