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.
npx agentmods add skills/samplexbro/agentsmesh/ts-librarynpx skills add sampleXbro/agentsmesh --skill ts-librarygit clone --depth 1 https://github.com/sampleXbro/agentsmeshWrote 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.
[](https://agentmods.dev/skills/samplexbro/agentsmesh/ts-library)<a href="https://agentmods.dev/skills/samplexbro/agentsmesh/ts-library"><img src="https://agentmods.dev/badge/skills/samplexbro/agentsmesh/ts-library.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00065 | $0.01203 |
| Opus 5 | $0.00032 | $0.00602 |
| Sonnet 5 | $0.00013 | $0.00241 |
| Haiku 4.5 | $0.00006 | $0.00120 |
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 2d 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.
This is a copy
95% identical to ts-library — 61 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 106 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Purpose
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 |
| ESLint config | ./references/eslint-config.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 |
Loading Files
Consider loading these reference files based on your task:
What ships with it
18 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.
- patterns/api.md 4.3 KB
- patterns/types.md 4.1 KB
- references/api-design.md 4.3 KB
- references/build-tooling.md 3.2 KB
- references/ci-workflows.md 5.9 KB
- references/eslint-config.md 3.2 KB
- references/package-exports.md 2.9 KB
- references/project-setup.md 2.9 KB
- references/release.md 2.7 KB
- references/testing.md 3.5 KB
- references/type-patterns.md 4.1 KB
- references/typescript-config.md 3.3 KB
- setup/exports.md 2.9 KB
- setup/project.md 2.9 KB
- setup/tsconfig.md 3.3 KB
- workflows/ci.md 5.9 KB
- workflows/release.md 2.7 KB
- workflows/testing.md 3.5 KB
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.
- 2d ago First seen · 106 lines · 65 tokens per session scan A 5637a8ee27db
ts-library is a skill published in the GitHub repository sampleXbro/agentsmesh (24 stars, last pushed yesterday), licensed MIT. It adds 65 tokens to every session and 1,203 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 95% identical to ts-library, differing in 61 lines, and is treated as a copy.
Other skills, from other repositories
microsoft-typescript
TypeScript is a language for application scale JavaScript development. ALWAYS use when editing or working with .ts, .tsx, .mts, .cts files or code importing "typescript". Consult for debugging, best practices, or modifying typescript, TypeScript.
bombshell-dev-clack
ALWAYS use when writing code importing "@clack/prompts". Consult for debugging, best practices, or modifying @clack/prompts, clack/prompts, clack prompts, clack.
ultracite
Ultracite is a zero-config linting and formatting preset for JavaScript/TypeScript projects. Use when: (1) Setting up or initializing Ultracite in a project (ultracite init), (2) Running linting or formatting commands (check, fix, doctor), (3) Writing or reviewing JS/TS code in a project that uses Ultracite — to…
dd-code-generation
Use pup CLI for immediate Datadog operations or generate code for integration into applications.
agent-inspect
Local evidence debugger and trajectory-test toolkit for TypeScript AI agents. Use when capturing framework-faithful traces, asserting TraceContract/TraceFacts, packaging Evidence v2, or inspecting local runs over read-only MCP (gettracefacts).
widen-return-type
When delegating a task affected by this skill, include.