polywise: Skill for OpenCode

.opencode/skills/typescript/SKILL.md

typescript is a skill for OpenCode from MatrixAges/polywise. It costs 32 tokens per session (1,008 once invoked), scanned A, original, MIT.

A TypeScript development guide covering naming, type definitions, file placement, and coding practices. TypeScript is JavaScript with extra checks for the shapes and types of values.

In plain words
What is it for?
It is for writing or refactoring TypeScript variables, functions, classes, interfaces, component properties, and shared types.
Why use it?
It reduces inconsistent code style and catches some type-related mistakes before the code runs.

Skill for OpenCode

Written for OpenCode: installed under .opencode/.

This is MatrixAges/polywise's own configuration. It tells OpenCode how to work on polywise itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything polywise configures →

Reuse

Borrowing it

Nothing to install: this file belongs to MatrixAges/polywise. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/MatrixAges/polywise/master/.opencode/skills/typescript/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/MatrixAges/polywise

Made for: OpenCode.

Wrote 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.

agentmods badge for typescript

README.md
[![agentmods](https://agentmods.dev/badge/skills/matrixages/polywise/typescript/github.svg)](https://agentmods.dev/skills/matrixages/polywise/typescript)
Your own site
<a href="https://agentmods.dev/skills/matrixages/polywise/typescript"><img src="https://agentmods.dev/badge/skills/matrixages/polywise/typescript/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.

agentmods 80×15 button for typescript

Your own site · 80×15
<a href="https://agentmods.dev/skills/matrixages/polywise/typescript"><img src="https://agentmods.dev/badge/skills/matrixages/polywise/typescript.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,008 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.01008
Opus 5.5 $0.00013 $0.00403
Sonnet 5.5 $0.00006 $0.00202
Haiku 4.5 $0.00003 $0.00101

Measured 2mo ago against content hash bf0c53d343ea, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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 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.

.opencode/skills/typescript/SKILL.md · 103 lines

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 with I (e.g., IProps, IPropsSidebar).
  • Enum-like Types: Use literal union types instead of enum where possible (e.g., type Theme = 'light' | 'dark' | 'system').

2. Type Definitions

2.1 File Organization

  • Global Types: Place in packages/app/types/ or packages/app/typings/.
  • Local Types: Use types.ts file in the component or module directory.
  • Props: Define an IProps interface for each component, typically in the component file or adjacent types.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, use unknown and perform type casting (cast) when necessary.
  • Type Alias vs. Interface: Use interface for object structures (especially props), use type for 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 type for importing types to maintain clear process boundaries and reduce bundle size.
  • Path Aliases: Use @/ to reference the src directory (e.g., import { Settings } from '@/models').

Read the full file on GitHub · 103 lines

Changes

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.

  1. 2mo ago First seen · 103 lines · 32 tokens per session scan A bf0c53d343ea

Subscribe to this mod's changes

typescript is a skill published in the GitHub repository MatrixAges/polywise (654 stars, last pushed 4mo ago), licensed MIT. It adds 32 tokens to every session and 1,008 once invoked, about $0.0001 per session on Opus 5.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.

Related

typescript compared with skills from other repositories

typescript next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
typescriptMatrixAges/polywiseSkill6544mo agoMITA32OpenCode
typescript-strictBlackBeltTechnology/pi-agent-dashboardSkill3412d agoMITA41Claude Code, Codex
openclawznlgis/opengis-skillsSkill7610d agoMITA50Claude Code, Codex
V3 Core Implementationamangit1314/repo-ragSkill01mo agononeA37Claude Code
agentscope-javaagentscope-ai/agentscope-javaSkill6.3kyesterdayApache-2.0A91Claude Code, Codex
freelance-gig-findertinyfish-io/tinyfish-cookbookSkill2.3k3d agoMITA98Claude Code, Codex
fetchtinyfish-io/tinyfish-cookbookSkill2.3k3d agoMITA121Claude Code