Agent skill · Audited from source
Typescript Best Practices
skill · cursor/pluginsLicence not declaredAudited 12 Oct 2026 · source 890eaf6b2ddd
Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit 890eaf6b2ddd and found no filesystem, network or shell access and no hard-coded secrets. What it does: TypeScript best practices. Use when reading or editing any .ts or .tsx file.
Cite
Cite this page
ModelsAtlas. “Typescript Best Practices (cursor/plugins)”. Retrieved 12 Oct 2026. https://modelsatlas.com/skills/cursor/typescript-best-practices
2 skills are called “Typescript Best Practices”. You are viewing cursor/plugins.
- cursor/plugins★ 11k✓SAFE
- HoangNguyen0403/agent-skills-standard★ 575✓SAFE
Trust audit
Audit 0.4.1 · source read 12 Oct 2026
SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 17,406 of 18,389 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkNone observedNo outbound calls in the source
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS | 0 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | NA | 0 |
L2 Instructions | Prompt injection, authority framing, hidden directives | PASS | 0 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (0)
No findings at any severity. We re-audit when the source changes.
Audit 0.4.1 · source sha 890eaf6b2ddd · 12 Oct 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- Publishercursor GitHub organizationOwner of the repository this skill is read from
- Source foldercursor/plugins/pstack/skills/typescript-best-practicesThe exact folder we audited
- LicenceNot declaredAs the repository states it
- Commit pinned for this verdict890eaf6b2dddA new audit runs when the source changes
- Repository statusNot archivedPushed today
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its description: TypeScript best practices. Use when reading or editing any .ts or .tsx file.
---
name: typescript-best-practices
description: TypeScript best practices. Use when reading or editing any .ts or .tsx file.
paths: ["**/*.ts", "**/*.tsx"]
disable-model-invocation: true
---
# TypeScript best practices
Apply the **type-system-discipline** principle skill first.
| Rule | Summary |
|------|---------|
| Discriminated unions | Model variants with a `kind` literal discriminant so impossible states can't be represented. No optional-field bags. |
| Branded types | Brand primitives with `& { readonly __brand: "X" }` so they can't be mixed up. Validate once at the boundary. |
| Constructive modeling | Build the shape so the illegal value can't be constructed. `[T, ...T[]]` for non-empty, `[T, T][]` for even length, `start` plus `duration` for a range. Not a runtime guard, not a wish for refinement types. |
| Simplest total type | Keep `T[]` while every operation on it stays total. Strengthen to `NonEmpty<T>` only where the loose type forces `!`, a cast, or a "should never happen" throw. |
| `unknown` over `any` | External data is `unknown`. |
| Schemas before guards | Before hand-writing a property-by-property type guard, use the repository's runtime schema library and infer the type from the schema, such as `z.infer`. |
| No `as` casts | Every `as` is a runtime crash waiting. Cast only after validation. |
| Narrowing hierarchy | Discriminant switch > `in` operator > `typeof`/`instanceof` > user-defined type guard > `as`. |
| Type guards | Must verify the claim. A lying guard is worse than `as` because the bug hides behind a name that says it's safe. Name them `isX` or `hasX`. |
| Exhaustiveness | Inline `const _exhaustive: never = x;` in default arms so the compiler errors when a new variant is added. |
| `satisfies` over `as` | Validates the value without widening literal types. |
| Boundary validation | Parse where data crosses in, into a named domain type. `Record<string, unknown>` (however spelled) stops at that parse. Trust types inside. See the **boundary-discipline** principle skill. |
| Schema-derived types | Reach for `Pick`/`Omit`/`Parameters`/`ReturnType`/`Awaited`/`typeof` before declaring a new interface. |
| Object args | Pass objects, not positional, so argument order is self-documenting. Skip on hot paths (per-frame render, tokenizers, parsers). |
| Real tests | Don't mock what you can run. Prefer the framework's real test primitives with leak/disposable checks, and verify UI in a running build. Mock only what you can't run locally. |
| Structured telemetry | Prefer structured logger diagnostics with enough context to debug from an id. No `console.log` in shipped code. |
Examples: `references/patterns.md`.Excerpt, first 2,683 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit 890eaf6
git clone https://github.com/cursor/plugins git -C plugins checkout 890eaf6b2ddd
The author documents no install command, so this uses the repository directly. Our verdict covers commit 890eaf6b2ddd only.
Works in
The author has not said which agents this skill supports, and we have not tested it in any.
Audit history
Every audit, every source change
- ✓SAFE B 89 / 100
first audit · source
890eaf6b2ddd
README badge
For maintainers · shows the latest audit
[](https://modelsatlas.com/skills/cursor/typescript-best-practices/)
The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.
Similar skills
All coding & review skills →mattpocock/skills
Implement a piece of work based on a spec or set of tickets.
mattpocock/skills
Compact the current conversation into a handoff document for another agent to pick up.
mattpocock/skills
Pursue a long-running goal in a single session by co-ordinating subagents.
Add this badge to your README
[](https://modelsatlas.com/skills/cursor/typescript-best-practices/)
<a href="https://modelsatlas.com/skills/cursor/typescript-best-practices/"><img src="https://modelsatlas.com/skills/cursor/typescript-best-practices/badge.svg" alt="ModelsAtlas: SAFE B"></a>
Questions about Typescript Best Practices
What does the Typescript Best Practices skill do?
Is Typescript Best Practices safe to install?
What can Typescript Best Practices access on my machine?
How current is this page?
Sources
- github.com/cursor/plugins/tree/main/pstack/skills/typescript-bes — the audited source at commit 890eaf6b2ddd and every finding aboveObserved · 12 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the Typescript Best Practices skill do?
- Is Typescript Best Practices safe to install?
- What can Typescript Best Practices access on my machine?