# TypeScript strict

> TypeScript strict is an open-source agent skill for developer tools. Guides an agent to write and review strict TypeScript in Vue, Nuxt and Node code. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/pstuart/pstuart/tree/main/plugins/nuxt-modern-dev/skills/typescript-strict
- **Repository:** https://github.com/pstuart/pstuart
- **GitHub stars:** 20
- **License:** MIT
- **Skill name:** typescript-strict
- **Collection:** https://github.com/pstuart/pstuart
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

This skill tells the agent how to keep TypeScript code under strict mode in Vue, Nuxt, Node and shared utility projects. It sets out a short list of rules: prefer unknown over any, avoid suppression comments, type component props and emits, give composables explicit return types, and type fetched API data. A decision guide covers how to handle values from outside the program, such as JSON or query parameters, and how to treat caught errors.

The skill includes small code examples of a typed composable, a typed useFetch call that surfaces error state instead of substituting mock data, and a before-and-after narrowing example that replaces an any parameter. It also lists common excuses for loose typing and a pre-finish checklist the agent can run through before reporting work as done.

It expects a TypeScript project with strict mode available and suggests confirming the compiler version from the repository lockfile. The typecheck step uses a Bun script or the Nuxt typecheck command, so those tools are assumed to be present.

## When your agent uses it

> Use when writing or reviewing TypeScript in Vue, Nuxt, Node, or shared TS utilities, fixing type errors, or deciding how to type API responses and composables.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/pstuart/pstuart/tree/HEAD/plugins/nuxt-modern-dev/skills/typescript-strict)
- [License: MIT](https://github.com/pstuart/pstuart/tree/HEAD/plugins/nuxt-modern-dev/skills/typescript-strict)

## Features

- **Strict mode baseline:** Sets the expectation that tsconfig uses strict mode and that the compiler version matches the lockfile.
- **Boundary typing rules:** Guides typing of external data with unknown and narrowing, or a schema library if the project already uses one.
- **Vue and Nuxt typing:** Covers typed component props, emits, composable return objects and typed useFetch responses.
- **No mock fallbacks:** Directs the agent to show an error state when an API call fails rather than inventing data.
- **Error handling types:** Explains treating caught errors as unknown and narrowing them before use.
- **Pre-finish type checklist:** Gives a short checklist covering any usage, suppression comments and running the typecheck command.

## Good for

- Type the props and emits of a Vue component
- Fix TypeScript errors reported by the compiler in a Nuxt app
- Type an API response fetched with useFetch
- Review a shared TypeScript utility for loose any types
- Write a composable with an explicit return type

## Install

### Claude Code

This skill ships in the `nuxt-modern-dev` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add pstuart/pstuart
/plugin install nuxt-modern-dev@pstuart
```

Or copy only this skill to `~/.claude/skills/typescript-strict`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/pstuart/pstuart.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/typescript-strict &&
cp -R "$tmp/plugins/nuxt-modern-dev/skills/typescript-strict" ~/.claude/skills/typescript-strict &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/typescript-strict` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/typescript-strict` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/pstuart/pstuart.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/typescript-strict &&
cp -R "$tmp/plugins/nuxt-modern-dev/skills/typescript-strict" ~/.agents/skills/typescript-strict &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/typescript-strict` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/typescript-strict` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/pstuart/pstuart.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/typescript-strict &&
cp -R "$tmp/plugins/nuxt-modern-dev/skills/typescript-strict" ~/.cursor/skills/typescript-strict &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/typescript-strict` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/pstuart/pstuart.git --path plugins/nuxt-modern-dev/skills/typescript-strict
```

Or copy the folder to `~/.gemini/skills/typescript-strict` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/typescript-strict`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/pstuart/pstuart.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/typescript-strict &&
cp -R "$tmp/plugins/nuxt-modern-dev/skills/typescript-strict" ~/.copilot/skills/typescript-strict &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/typescript-strict` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/pstuart/pstuart.git
```

Then copy `pstuart/plugins/nuxt-modern-dev/skills/typescript-strict` into your agent's skills folder as `typescript-strict`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does TypeScript strict need to run?

It expects a TypeScript project with strict mode, and it suggests checking the compiler version in the repository lockfile. Its example commands use bun run typecheck or nuxi typecheck.

### When does the agent use TypeScript strict?

It loads when the task involves writing or reviewing TypeScript in Vue, Nuxt, Node or shared TS utilities, fixing type errors, or choosing how to type API responses and composables.

### Does TypeScript strict change any files or run scripts?

The skill is a single SKILL.md with instructions and no bundled scripts. It only guides how the agent writes and checks code.

### How do I install TypeScript strict in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/typescript-strict to use it in all your projects, or to .claude/skills/typescript-strict in one project. Or install the nuxt-modern-dev plugin, which includes it: /plugin marketplace add pstuart/pstuart, then /plugin install nuxt-modern-dev@pstuart.

### Does TypeScript strict run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use TypeScript strict?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to TypeScript strict?

The closest alternatives to TypeScript strict are TypeScript best practices, TypeScript, Nuxt4 frontend, Web quality and Vue review.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [TypeScript best practices](https://ai-powered.com/skills/typescript-best-practices): TypeScript best practices is an open-source agent skill for developer tools.
- [TypeScript](https://ai-powered.com/skills/typescript): TypeScript is an open-source agent skill for developer tools.
- [Nuxt4 frontend](https://ai-powered.com/skills/nuxt4-frontend): Nuxt4 frontend is an open-source agent skill for developer tools.
- [Web quality](https://ai-powered.com/skills/web-quality): Web quality is an open-source agent skill for developer tools.
- [Vue review](https://ai-powered.com/skills/vue-review): Vue review is an open-source agent skill for developer tools.
- [Marco code style](https://ai-powered.com/skills/marco-code-style): Marco code style is an open-source agent skill for developer tools.
- [Antfu](https://ai-powered.com/skills/antfu): Antfu is an open-source agent skill for developer tools.
- [Coding standards](https://ai-powered.com/skills/coding-standards-abdullayevtemurmalik): Coding standards is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/typescript-strict
