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 andresquirogadev/skillsense --skill typescriptgit clone --depth 1 https://github.com/andresquirogadev/skillsenseWrote 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/andresquirogadev/skillsense/typescript)<a href="https://agentmods.dev/skills/andresquirogadev/skillsense/typescript"><img src="https://agentmods.dev/badge/skills/andresquirogadev/skillsense/typescript.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.00000 | $0.00545 |
| Opus 5 | $0.00000 | $0.00272 |
| Sonnet 5 | $0.00000 | $0.00109 |
| Haiku 4.5 | $0.00000 | $0.00055 |
Grade A, and why
typescript 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 7d 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.
How it starts
The opening of the file, as written. The whole thing — 47 lines — stays where its author put it; the contents beside it link to each section on GitHub.
TypeScript Skill
You are working in a TypeScript codebase. Apply strict TypeScript practices.
Compiler Settings
- Enable
"strict": true— this activatesstrictNullChecks,noImplicitAny, and others. - Enable
"noUncheckedIndexedAccess": true— array/object index access returnsT | undefined. - Enable
"exactOptionalPropertyTypes": true— distinguishes{ x?: string }from{ x: string | undefined }. - Use
"moduleResolution": "NodeNext"for Node.js projects with ESM.
Type Definitions
- Prefer
interfacefor objects that can be extended; usetypefor unions, intersections, and aliases. - Use discriminated unions for state machines:
type State = { status: 'loading' } | { status: 'error'; error: Error } | { status: 'success'; data: Data }. - Avoid
any— useunknownwhen the type is genuinely unknown, then narrow with type guards. - Use
satisfiesto validate an expression matches a type without widening it. - Use
as constfor literal types and tuple inference.
Utility Types
Partial<T>— all properties optionalRequired<T>— all properties requiredReadonly<T>— immutablePick<T, K>/Omit<T, K>— select or exclude propertiesReturnType<typeof fn>— infer return type of a functionParameters<typeof fn>— infer parameter tuple typeAwaited<T>— unwrap a Promise type
Narrowing
- Use
typeof x === 'string',Array.isArray(x),x instanceof Datefor runtime narrowing. - Write type predicates:
function isUser(x: unknown): x is User { return … }. - Use
inoperator for discriminated union narrowing on string literal fields.
Common Pitfalls
Object.keys(obj)returnsstring[], not(keyof typeof obj)[]— cast when needed.JSON.parse()returnsany— always validate with Zod or another schema parser.Datecomparisons: use.getTime()or convert to number for reliable comparison.- Optional chaining (
?.) and nullish coalescing (??) are your friends for safe access.
Imports
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.
- 7d ago First seen · 47 lines · 0 tokens per session scan A 2c04b4674cba
typescript is a skill published in the GitHub repository andresquirogadev/skillsense (2 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 545 tokens. 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.
Other skills, from other repositories
codegen
Use for .NET code generation work with Roslyn, Microsoft.OpenApi, Razor templates, DTO/manager/controller generation, REST API generation, C# HttpClient generation, Angular/Axios TypeScript request clients, generated formatting, and deterministic output.
async-await-patterns
Use when writing JavaScript or TypeScript code with asynchronous operations, fixing promise-related bugs, or converting callback/promise patterns to async/await. Triggers: 'promise chain', 'unhandled rejection', 'race condition in JS', 'callback hell', 'Promise.all', 'sequential vs parallel async', 'missing await'.…
fix-typescript-build
How to fix a failing tsc/npm run build (type-check) run in a project, batching fixes into sprints to preserve context.
cli-builder
Guide for building TypeScript CLIs with Bun. Use when creating command-line tools, adding subcommands to existing CLIs, or building developer tooling. Covers argument parsing, subcommand patterns, output formatting, and distribution.
mainframe-typescript-backend
Develop, debug, review, or test server-side TypeScript in Node.js services and established Next.js server layers. Use proactively for backend APIs, business rules, persistence, jobs, realtime behavior, server integrations, and focused backend tests. Do not use for substantial client-only UI, Python services, data or…
effect
Work with Effect v4 / effect-smol TypeScript code in this repo.