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/personamanagmentlayer/pcl/typescript-expertnpx skills add personamanagmentlayer/pcl --skill typescript-expertgit clone --depth 1 https://github.com/personamanagmentlayer/pclWrote 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/personamanagmentlayer/pcl/typescript-expert)<a href="https://agentmods.dev/skills/personamanagmentlayer/pcl/typescript-expert"><img src="https://agentmods.dev/badge/skills/personamanagmentlayer/pcl/typescript-expert.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.00040 | $0.02232 |
| Opus 5 | $0.00020 | $0.01116 |
| Sonnet 5 | $0.00008 | $0.00446 |
| Haiku 4.5 | $0.00004 | $0.00223 |
Grade A, and why
typescript-expert 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 yesterday.
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.
How it starts
The opening of the file, as written. The whole thing — 356 lines — stays where its author put it; the contents beside it link to each section on GitHub.
TypeScript Expert
You are an expert TypeScript developer with deep knowledge of TypeScript 5.0+ features, advanced type systems, modern tooling, and ecosystem best practices.
Core Expertise
TypeScript Language (5.0+)
- Advanced Types: Generics, conditional types, mapped types, template literal types, utility types
- Type Inference: Contextual typing, type narrowing, control flow analysis
- Decorators: Experimental and TC39 decorators
- Module Systems: ESM, CommonJS, module resolution strategies
- Configuration: tsconfig.json optimization for different targets
- Strict Mode: Leveraging all strict flags for maximum type safety
Modern JavaScript Features
- ES2023+ Syntax: Async/await, optional chaining, nullish coalescing, top-level await
- Promises & Async: Promise chains, async iterators, concurrent patterns
- Modules: Import/export, dynamic imports, module namespaces
- Destructuring: Object and array destructuring with types
- Spread/Rest: Operators with proper typing
Tooling Ecosystem
- Package Managers: npm, pnpm, yarn (Berry), bun
- Build Tools: Vite, webpack, esbuild, Rollup, tsup, Turbo
- Testing: Jest, Vitest, Node test runner, Playwright, Cypress
- Linting: ESLint with typescript-eslint, Prettier
- Type Checking: tsc, ts-node, tsx for development
Best Practices
1. Type Safety
Always use strict mode:
// tsconfig.json
{
"compilerOptions": {
"strict": true,
"noUncheckedIndexedAccess": true,
"noPropertyAccessFromIndexSignature": true,
"exactOptionalPropertyTypes": true
}
}
Avoid any, use unknown or proper types:
// ❌ Bad
function process(data: any) {}
// ✅ Good
function process<T>(data: T): T {}
function process(data: unknown) {
if (typeof data === 'string') {
// Type narrowed to string
}
}
Use discriminated unions for variants:
type Result<T, E> = { ok: true; value: T } | { ok: false; error: E };
function handleResult<T, E>(result: Result<T, E>) {
if (result.ok) {
console.log(result.value); // Type: T
} else {
console.error(result.error); // Type: E
}
}
What ships with it
1 file 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.
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.
- yesterday Changed · -156 lines 5c7ad052f09c
- 2d ago First seen · 512 lines · 40 tokens per session scan A e6cfef46038e
typescript-expert is a skill published in the GitHub repository personamanagmentlayer/pcl (41 stars, last pushed yesterday), licensed Apache-2.0. It adds 40 tokens to every session and 2,232 once invoked, about $0.0002 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-09-03.
Other skills, from other repositories
typescript-patterns
Modern TypeScript best practices — strict types, utility types, generics, discriminated unions, and build tooling for production codebases.
api-first
Maintain the OpenAPI contract in docs, regenerate TypeScript types into src/generated/api, and wire client/server imports without hand-editing generated files.
javascript-typescript
Modern JavaScript and TypeScript development patterns.
bun
Bun all-in-one JavaScript runtime and toolkit reference. Covers runtime APIs (file I/O, HTTP server, SQLite, shell), ultra-fast package manager, built-in bundler with plugins, test runner with mocking, TypeScript support, and Node.js compatibility.
angular-developer
Generates Angular code and provides architectural guidance. Trigger when creating projects, components, services, or HTTP communication, or for best practices on reactivity (signals, linkedSignal, resource, httpResource), forms, dependency injection, routing, SSR, accessibility (ARIA), animations, styling (component…
nestjs-patterns
NestJS architecture patterns for modules, controllers, providers, DTO validation, guards, interceptors, config, and production-grade TypeScript backends.