Skip to content
Skill

TypeScript strict

Guides an agent to write and review strict TypeScript in Vue, Nuxt and Node code

TypeScript strict is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
20
Last commit
License
MIT
Listing updated

Similar skills

About TypeScript strict

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.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (2 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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):

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

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

Cursor docs on skills

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

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.

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

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

More from pstuart/pstuart

  1. Reports git state, activity and build evidence across every project in a folder

    • Open source
    • 20 GitHub stars
    • Developer tools
  2. Checks web pages against WCAG 2.1 AA contrast, labels, keyboard and ARIA rules

    • Open source
    • 20 GitHub stars
    • Developer tools
  3. Guides an AI agent through building and reviewing Nuxt 4 apps with the app/ layout

    • Open source
    • 20 GitHub stars
    • Developer tools
  4. Walks an agent through a web application security audit checklist and report

    • Open source
    • 20 GitHub stars
    • Security
  5. Guides an agent to style Nuxt and Vue UIs with Tailwind CSS 4 utilities and @theme tokens

    • Open source
    • 20 GitHub stars
    • Developer tools
  6. Guides an agent to write Vue 3 components and composables with the Composition API

    • Open source
    • 20 GitHub stars
    • Developer tools