cellm/skills/typescript/SKILL.md
TypeScript patterns for type-safe code. Activates on .ts/.tsx files to enforce strict typing, Zod v4 validation, and proper use of generics and utility types. Use when editing TypeScript to ensure type contracts and boundary validation.
npx skillsauth add murillodutt/cellm cellm/skills/typescriptInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Explicit return types on every function. Interfaces for objects. Types for unions/intersections. Zod for runtime validation with z.infer<typeof schema>.
Utility types — Partial<T>, Pick<T, K>, Omit<T, K>, Record<K, V> over manual redefinition.
Type guards — function isUser(v: unknown): v is User with runtime checks, not assertions.
Zod — safeParse for external input, access .data only after .success.
$fetch — $fetch<User>('/api/user/1') or useFetch<User>(...).
any — use unknown + type guards or Zodas) — fix at source, don't cast// @ts-ignore — fix the errordata-ai
Prose override — temporarily disable quantization and respond in readable prose. Use when relational density matters, for safety-critical explanations, onboarding handoffs, or when token economy is not the priority.
development
Govern explicit weekly Super PRs or maintainer-requested PR merges. Evaluates a 10-criterion readiness checklist and performs governed merge only when a user-requested PR is READY. Never creates or keeps permanent PRs. Use when: 'pr-check', 'pr-merge', 'merge this PR safely', 'is PR ready', 'guard merge', or /sk-git delegates pr-merge.
data-ai
Operational surface for the compress-llm Layer-1 token I/O compressor. Enable, disable, switch mode, and inspect status without editing config files. Use when tuning compression pressure for the current session or project.
tools
Generate structured upstream feedback for the CELLM engineering team. Produces evidence-first Markdown at docs/evidence/<date>-cellm-feedback-*.md for bugs, anti-patterns, deprecation gaps, and harness surprises, with optional atom registration via knowledge_ops. Use when: 'feedback for CELLM', 'send to CELLM team', 'register this as atom', 'document this anti-pattern', 'report this bug upstream'. Trigger proactively on MCP schema/runtime mismatches, mechanical edit loops (>=3 sequential edits), short deprecation windows (<6 weeks), or reusable harness surprises. Do NOT trigger for routine feature work or project-local bugs.