coach: Skill for Gemini CLI

.gemini/skills/ts-library/SKILL.md

ts-library is a skill for Gemini CLI from watt-mind/coach. It costs 51 tokens per session (524 once invoked), scanned A, original, Apache-2.0.

A guide for building TypeScript libraries: reusable code packages that other projects can install. It covers setup, package exports, builds, API design, types, tests, releases, and continuous integration.

In plain words
What is it for?
Use it when starting or maintaining a TypeScript library, including one organized as a monorepo (a repository containing several related packages). It also helps with type-safe APIs, Vitest tests, build tools, releases, and CI workflows.
Why use it?
It helps avoid piecing together library configuration and publishing practices from scattered sources. It also explains how to make a package work with both CommonJS and modern ES modules.

Skill for Gemini CLI

Written for Gemini CLI: installed under .gemini/.

This is watt-mind/coach's own configuration. It tells Gemini CLI how to work on coach itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything coach configures →

Reuse

Borrowing it

Nothing to install: this file belongs to watt-mind/coach. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/watt-mind/coach/master/.gemini/skills/ts-library/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/watt-mind/coach

Made for: Gemini CLI.

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 ts-library

README.md
[![agentmods](https://agentmods.dev/badge/skills/watt-mind/coach/ts-library/github.svg)](https://agentmods.dev/skills/watt-mind/coach/ts-library)
Your own site
<a href="https://agentmods.dev/skills/watt-mind/coach/ts-library"><img src="https://agentmods.dev/badge/skills/watt-mind/coach/ts-library/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ts-library

Your own site · 80×15
<a href="https://agentmods.dev/skills/watt-mind/coach/ts-library"><img src="https://agentmods.dev/badge/skills/watt-mind/coach/ts-library.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 524 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.00051 $0.00524
Opus 5.5 $0.00020 $0.00210
Sonnet 5.5 $0.00010 $0.00105
Haiku 4.5 $0.00005 $0.00052

Measured 2mo ago against content hash c37d392efd51, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ts-library 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 2mo 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.

.gemini/skills/ts-library/SKILL.md · 48 lines

How it starts

The opening of the file, as written. The whole thing — 48 lines — stays where its author put it; the contents beside it link to each section on GitHub.

TypeScript Library Development

Patterns for authoring high-quality TypeScript libraries, extracted from studying unocss, shiki, unplugin, vite, vitest, vueuse, zod, trpc, drizzle-orm, and more.

When to Use

  • Starting a new TypeScript library (single or monorepo)
  • Setting up package.json exports for dual CJS/ESM
  • Configuring tsconfig for library development
  • Choosing build tools (tsdown, unbuild)
  • Designing type-safe APIs (builder, factory, plugin patterns)
  • Writing advanced TypeScript types
  • Setting up vitest for library testing
  • Configuring release workflow and CI

For Nuxt module development: use nuxt-modules skill

Quick Reference

Working on... Load file
New project setup references/project-setup.md
Package exports references/package-exports.md
tsconfig options references/typescript-config.md
Build configuration references/build-tooling.md
API design patterns references/api-design.md
Type inference tricks references/type-patterns.md
Testing setup references/testing.md
Release workflow references/release.md
CI/CD setup references/ci-workflows.md

Key Principles

  • ESM-first: "type": "module" with .mjs outputs
  • Dual format: always support both CJS and ESM consumers
  • moduleResolution: "Bundler" for modern TypeScript
  • tsdown for most builds, unbuild for complex cases
  • Smart defaults: detect environment, don't force config
  • Tree-shakeable: lazy getters, proper sideEffects: false

Read the full file on GitHub · 48 lines

Files

What ships with it

9 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. 2mo ago First seen · 48 lines · 51 tokens per session scan A c37d392efd51

Subscribe to this mod's changes

ts-library is a skill published in the GitHub repository watt-mind/coach (107 stars, last pushed 15d ago), licensed Apache-2.0. It adds 51 tokens to every session and 524 once invoked, about $0.0002 per session on Opus 5.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-31.

Related

ts-library compared with skills from other repositories

ts-library next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ts-librarywatt-mind/coachSkill10715d agoApache-2.0A51Gemini CLI
openclawznlgis/opengis-skillsSkill7811d agoMITA50Claude Code, Codex
womldali-benothmen/womlSkill1743d agononeA66Claude Code, Codex
no-bare-castsprisma/ormSkill48kyesterdayApache-2.0A52Claude Code, Codex
aws-sst-developmentsickn33/agentic-awesome-skillsSkill49kyesterdayMITA26Claude Code
league-akari-shard-developmentLeagueAkari/LeagueAkariSkill4.7k6d agoMITA58Claude Code, Codex
dd-code-generationDataDog/pupSkill1.0kyesterdayApache-2.0A16Claude Code