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/matrixages/polywise/typescriptnpx skills add MatrixAges/polywise --skill typescriptgit clone --depth 1 https://github.com/MatrixAges/polywiseWrote 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/matrixages/polywise/typescript)<a href="https://agentmods.dev/skills/matrixages/polywise/typescript"><img src="https://agentmods.dev/badge/skills/matrixages/polywise/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 | $0.00032 | $0.01008 |
| Opus 5 | $0.00016 | $0.00504 |
| Sonnet 5 | $0.00006 | $0.00202 |
| Haiku 4.5 | $0.00003 | $0.00101 |
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 today.
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 — 103 lines — stays where its author put it; the contents beside it link to each section on GitHub.
TypeScript Development Guide
This skill provides mandatory specifications for writing TypeScript in this project to ensure consistency, type safety, and code cleanliness.
1. Naming Conventions
1.1 Variables and Functions
- Variables: Use
snake_case(e.g.,theme_value,is_dev). - Functions: Use
camelCase(e.g.,getAntdTheme,setGlobalAnimation). - Internal Props Objects: Use
props_*prefix (e.g.,props_side_bar).
1.2 Classes and Types
- Classes: Use
PascalCase(e.g.,GlobalModel,Settings). - Interfaces/Types: Use
PascalCase. Interfaces preferably start withI(e.g.,IProps,IPropsSidebar). - Enum-like Types: Use literal union types instead of
enumwhere possible (e.g.,type Theme = 'light' | 'dark' | 'system').
2. Type Definitions
2.1 File Organization
- Global Types: Place in
packages/app/types/orpackages/app/typings/. - Local Types: Use
types.tsfile in the component or module directory. - Props: Define an
IPropsinterface for each component, typically in the component file or adjacenttypes.ts.
2.2 Best Practices
- Explicit Types: Prefer providing explicit type annotations for function parameters and complex return value types.
- Utility Types: Leverage TypeScript's utility types (
Pick,Omit,Partial,Exclude) to reuse existing definitions. - Strict Types: Avoid
any. If the type is truly unknown, useunknownand perform type casting (cast) when necessary. - Type Alias vs. Interface: Use
interfacefor object structures (especially props), usetypefor unions, intersections, or base types.
3. Code Style
3.1 Imports and Exports
- Named Exports: Utility functions and models prefer named exports.
- Default Exports: For the main component or main class in a file, use default export.
- Pure Type Imports: Use
import typefor importing types to maintain clear process boundaries and reduce bundle size. - Path Aliases: Use
@/to reference thesrcdirectory (e.g.,import { Settings } from '@/models').
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.
- today First seen · 103 lines · 32 tokens per session scan A bf0c53d343ea
typescript is a skill published in the GitHub repository MatrixAges/polywise (659 stars, last pushed 2mo ago), licensed MIT. It adds 32 tokens to every session and 1,008 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-04.
Other skills, from other repositories
manimgl-best-practices
Trigger when: (1) User mentions "manimgl" or "ManimGL" or "3b1b manim", (2) Code contains from manimlib import , (3) User runs manimgl CLI commands, (4) Working with InteractiveScene, self.frame, self.embed(), ShowCreation(), or ManimGL-specific patterns. Best practices for ManimGL (Grant Sanderson's 3Blue1Brown…
dart-language
Dart 3.x language feature standards: null safety, records, sealed classes, switch pattern matching, extensions, and async/await. Use when using !, ?., ??, late, sealed classes, record types, switch expressions, or async patterns — and before introducing any new Dart 3.x construct to confirm the modern idiomatic…
typescript-language
Apply modern TypeScript standards for type safety and maintainability. Use when working with types, interfaces, generics, enums, unions, or tsconfig settings.
android-navigation-3
Install and migrate to Jetpack Navigation 3. Use when implementing Navigation 3 patterns including NavDisplay, NavKey routes, deep links, multiple backstacks, scenes (dialogs, bottom sheets), or migrating from Navigation 2.
JavaScript Language Patterns
Modern JavaScript (ES2022+) patterns for clean, maintainable code.
dart-best-practices
Dart code quality conventions: naming, const/final/var hierarchy, single quotes, trailing commas, collection idioms, tear-offs, and import organization. Use only for Dart style-focused changes or reviews; never activate for configuration-only lint setup, unrelated feature work, or widget tests.