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 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/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.
<a href="https://agentmods.dev/skills/samplexbro/agentsmesh/ts-library"><img src="https://agentmods.dev/badge/skills/samplexbro/agentsmesh/ts-library.svg" alt="Reviewed on agentmods" width="80" 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.5 | $0.00026 | $0.00481 |
| Sonnet 5.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 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.
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.
- 2mo ago First seen · 106 lines · 65 tokens per session scan A 5637a8ee27db
ts-library is a skill published in the GitHub repository sampleXbro/agentsmesh (31 stars, last pushed 2d ago), licensed MIT. It adds 65 tokens to every session and 1,203 once invoked, about $0.0003 per session on Opus 5.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.
ts-library compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ts-librarysampleXbro/agentsmesh | Skill | 31 | 2d ago | MIT | A | 65 | Claude Code, Codex |
| ultracitehaydenbleasel/ultracite | Skill | 3.4k | today | MIT | A | 179 | Claude Code, Codex |
| dd-code-generationDataDog/pup | Skill | 1.0k | today | Apache-2.0 | A | 16 | Claude Code |
| type-safetyidavidov13/agentic-playwright | Skill | 312 | 12d ago | MIT | A | 80 | Claude Code, Codex |
| refactor-valuesidavidov13/agentic-playwright | Skill | 312 | 12d ago | MIT | A | 55 | Claude Code, Codex |
| wallet-cliBofAI/skills | Skill | 168 | 4d ago | MIT | A | 92 | Codex |
| create-custom-widgetmendixlabs/mxcli | Skill | 145 | yesterday | Apache-2.0 | A | 50 | Claude Code |