Borrowing it
Nothing to install: this file belongs to larsbaunwall/Unlinked. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/larsbaunwall/Unlinked/main/.agents/skills/typescript-pro/SKILL.mdgit clone --depth 1 https://github.com/larsbaunwall/UnlinkedWrote 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/larsbaunwall/unlinked/typescript-pro)<a href="https://agentmods.dev/skills/larsbaunwall/unlinked/typescript-pro"><img src="https://agentmods.dev/badge/skills/larsbaunwall/unlinked/typescript-pro/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/larsbaunwall/unlinked/typescript-pro"><img src="https://agentmods.dev/badge/skills/larsbaunwall/unlinked/typescript-pro.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.00069 | $0.01284 |
| Opus 5.5 | $0.00028 | $0.00514 |
| Sonnet 5.5 | $0.00014 | $0.00257 |
| Haiku 4.5 | $0.00007 | $0.00128 |
Grade A, and why
typescript-pro 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
92% identical to typescript-pro — 3 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 — 148 lines — stays where its author put it; the contents beside it link to each section on GitHub.
TypeScript Pro
Core Workflow
- Analyze type architecture - Review tsconfig, type coverage, build performance
- Design type-first APIs - Create branded types, generics, utility types
- Implement with type safety - Write type guards, discriminated unions, conditional types; run
tsc --noEmitto catch type errors before proceeding - Optimize build - Configure project references, incremental compilation, tree shaking; re-run
tsc --noEmitto confirm zero errors after changes - Test types - Confirm type coverage with a tool like
type-coverage; validate that all public APIs have explicit return types; iterate on steps 3–4 until all checks pass
Reference Guide
Load detailed guidance based on context:
| Topic | Reference | Load When |
|---|---|---|
| Advanced Types | references/advanced-types.md |
Generics, conditional types, mapped types, template literals |
| Type Guards | references/type-guards.md |
Type narrowing, discriminated unions, assertion functions |
| Utility Types | references/utility-types.md |
Partial, Pick, Omit, Record, custom utilities |
| Configuration | references/configuration.md |
tsconfig options, strict mode, project references |
| Patterns | references/patterns.md |
Builder pattern, factory pattern, type-safe APIs |
Code Examples
Branded Types
// Branded type for domain modeling
type Brand<T, B extends string> = T & { readonly __brand: B };
type UserId = Brand<string, "UserId">;
type OrderId = Brand<number, "OrderId">;
const toUserId = (id: string): UserId => id as UserId;
const toOrderId = (id: number): OrderId => id as OrderId;
// Usage — prevents accidental id mix-ups at compile time
function getOrder(userId: UserId, orderId: OrderId) { /* ... */ }
Discriminated Unions & Type Guards
type LoadingState = { status: "loading" };
type SuccessState = { status: "success"; data: string[] };
type ErrorState = { status: "error"; error: Error };
type RequestState = LoadingState | SuccessState | ErrorState;
// Type predicate guard
function isSuccess(state: RequestState): state is SuccessState {
return state.status === "success";
}
// Exhaustive switch with discriminated union
function renderState(state: RequestState): string {
switch (state.status) {
case "loading": return "Loading…";
case "success": return state.data.join(", ");
case "error": return state.error.message;
default: {
const _exhaustive: never = state;
throw new Error(`Unhandled state: ${_exhaustive}`);
}
}
}
What ships with it
5 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.
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 · 148 lines · 69 tokens per session scan A 5f5bc47c167f
typescript-pro is a skill published in the GitHub repository larsbaunwall/Unlinked (4 stars, last pushed 1mo ago), licensed MIT. It adds 69 tokens to every session and 1,284 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 92% identical to typescript-pro, differing in 3 lines, and is treated as a copy.
typescript-pro compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| typescript-prolarsbaunwall/Unlinked | Skill | 4 | 1mo ago | MIT | A | 69 | Claude Code, Codex |
| api-errorscyanheads/pubmed-mcp-server | Skill | 167 | 3d ago | Apache-2.0 | A | 54 | Claude Code |
| scraperapi-nodejs-sdkscraperapi/scraperapi-skills | Skill | 10 | 3mo ago | MIT | B | 187 | Claude Code |
| api-errorscyanheads/clinicaltrialsgov-mcp-server | Skill | 100 | 2d ago | Apache-2.0 | A | 54 | Claude Code |
| api-errorscyanheads/secedgar-mcp-server | Skill | 11 | 2d ago | Apache-2.0 | A | 54 | Claude Code |
| trpcPlazmodium/odin-workflow | Skill | 0 | 5mo ago | MIT | A | 35 | Claude Code, Codex |
| api-errorscyanheads/shift-mcp-server | Skill | 1 | 20d ago | Apache-2.0 | A | 54 | Claude Code |