Skip to content
Back to skills

Typescript Strict Types

ASecurity

Coordinates the learning and review path for TypeScript strict typing, narrowing, DTO boundaries, and safe type contracts so agents can choose the right safety primitive for the codebase.

  • 5 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 2, 2026
developmenttypescriptgonode

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add janpereira-dev/ngAutoPilot --skill strict-types --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Typescript Strict Types?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Typescript  Strict Types
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/janpereira-dev-typescript-strict-types/badge)](https://www.skillsdirectory.com/skills/janpereira-dev-typescript-strict-types)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: typescript.strict-types
name: TypeScript Strict Types
description: >
  Coordinates the learning and review path for TypeScript strict typing, narrowing, DTO boundaries, and safe type contracts so agents can choose the right safety primitive for the codebase.
stack:
  - TypeScript
category: strict-types
status: stable
version: 0.11.0
owner: NgAutoPilot
triggers:
  - typescript strict types
  - strict typing
  - type safety
  - typescript safety path
  - unsafe any removal
  - type narrowing
  - dto boundaries
compatibility:
  runtime:
    browser: true
    node: true
---

# TypeScript Strict Types

## Purpose

Use this skill to coordinate the learning and review path for TypeScript strict typing, narrowing, DTO boundaries, and safe type contracts.

This is a mother skill. It does not replace specialized skills for removing `any`, DTO mapping, or module structure. It tells an agent which strictness primitive to use, when to teach it, and when a strict-mode variant is more appropriate.

The core rule is simple:

```txt
Pick the narrowest safe type for the contract and keep unsafe boundaries explicit.
```

## When to Use

Use this skill when:

- a team needs a strict typing path
- unsafe `any` usage is mixed without a policy
- onboarding needs to cover narrowing and DTOs
- a refactor needs to choose the right type-safety primitive

## Do

Use a sequencing policy:

```txt
unknown -> narrowing -> DTOs -> generics -> strict contracts
```

Keep the specialist skills separate:

```txt
avoid-any -> remove unsafe any usage
dto-mappers -> map contracts at boundaries
fundamentals -> learning and adoption path
```

Use strict-mode variants when the repo already enforces or can adopt strict typing.

For finite value sets, choose a literal union for type-only use or derive the union from an `as const` object or array when runtime values are needed. Route membership guards and enum replacement decisions to `typescript.strict-types.avoid-any`; strict typing alone does not validate external data.

## Do Not

Avoid turning the mother skill into implementation guidance.

Avoid conflating strict typing with runtime behavior.

Avoid mixing type safety, module structure, and async handling without a policy.

Avoid using this skill to replace the specialized skills.

## Review Checklist

- [ ] The team has a strictness sequencing policy.
- [ ] Unsafe boundaries are explicit.
- [ ] Specialized skills remain separate.
- [ ] The adoption path matches team maturity.
- [ ] The skill is used as routing and coordination, not implementation detail.

## Expected Output

1. Recommend the right strictness sequence.
2. Route to the specialized skills.
3. Consider strict-mode variants when needed.
4. Keep the scope at architecture and learning-path level.
5. Summarize the TypeScript strict-types adoption plan.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.