typescript-best-practices
An agent skill by cursor, from cursor/plugins. Tags: code-quality, development, review, typescript, validation.
What it does
TypeScript best practices. Use when reading or editing any .ts or .tsx file.
Install
With the skills CLI, which installs into Claude Code, Codex, Cursor and other agents:
npx skills add cursor/plugins --skill typescript-best-practices
Or copy the skill folder into Claude Code's skills directory by hand (~/.claude/skills for every project, or .claude/skills inside one):
git clone --depth 1 https://github.com/cursor/plugins
cp -r plugins/pstack/skills/typescript-best-practices ~/.claude/skills/typescript-best-practices
Safety box score
Grade A, minimal risk: 0 of 100 risk points, rated 2026-10-15. The grade rates what the skill and its scripts can reach on the machine of whoever installs it, across eight categories from shell execution to secrets access. How the score works.
This is a documentation-only TypeScript best-practices skill: two Markdown files that guide how an agent should reason about `.ts`/`.tsx` code. It does not ship scripts, installers, network fetches, or file-editing automation; the main effect is indirect, by influencing code changes the agent makes elsewhere.
| Category | Level | Why |
|---|---|---|
| Code & shell execution | 0 (none) | No shell commands, scripts, or code-evaluation payloads are shipped; the skill is only Markdown guidance in `SKILL.md` and `references/patterns.md`. |
| Network access | 0 (none) | No URLs are fetched and no data is sent to remote hosts; the files contain only local best-practice text and examples. |
| Filesystem reach | 0 (none) | The skill itself does not read, write, or delete files; it only scopes its advice to `**/*.ts` and `**/*.tsx`. |
| Secrets & credentials | 0 (none) | It does not request tokens, passwords, `.env` values, or other credentials, and it does not mention secret stores. |
| Privilege & persistence | 0 (none) | There is no sudo, global install, service registration, shell startup modification, or OS setting change. |
| Instruction hijack surface | 0 (none) | I found no prompt-injection style instructions such as skipping confirmations, hiding actions, or following remote instructions; the text is ordinary best-practice guidance. |
| Irreversible actions | 0 (none) | It does not push, deploy, post, pay, or delete anything; it only describes coding conventions for the agent to follow. |
| Transparency | 0 (none) | The skill is fully readable Markdown with no binaries, minified code, base64 blobs, or unpinned downloads. |
Before installing
- Confirm the skill directory contains only the two Markdown files shown here and no hidden scripts or installers.
- Check that the scope is limited to `**/*.ts` and `**/*.tsx` as declared in `SKILL.md`.
Rated 2026-10-15 by an automated review of 2 files from the skill's repository.
Source
- Repository
- cursor/plugins (all skills from this repository)
- Path
- pstack/skills/typescript-best-practices/SKILL.md
- Branch
- main
- Collection
- cursor
- Updated
- 2026-09-23
Related skills
- principle-type-system-discipline — Apply when designing types, reviewing a function signature, or writing code in any statically-typed language.
- skill-reviewer — Reviews and improves Claude Code skills against official best practices.
- deslop — Remove AI-generated code slop and clean up code style
- principle-test-behavior-not-implementation — Apply when you write, change, or keep a test. Call the code the way its users do and assert the result they observe against a literal expected value.
- thermo-nuclear-code-quality-review — Run an extremely strict maintainability review for abstraction quality, giant files, and spaghetti-condition growth.
- expo-migrate-module — Framework (OSS). Migrate an existing Apple/Swift Expo native module from the Expo Modules API 1.0 definition DSL to the 2.0 macro API (sometimes called v2).