Skip to content
Back to skills

Nasa Typescript Safety

ASecurity

Adapts NASA's "Power of 10" safety rules for high-reliability TypeScript code.

  • 207 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added February 7, 2026
developmenttypescriptrustapi

Works with

  • api

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add NeverSight/skills_feed --skill nasa_typescript_safety --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Nasa Typescript Safety?

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

Security grade badge for Nasa Typescript Safety
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/neversight-nasa-typescript-safety/badge)](https://www.skillsdirectory.com/skills/neversight-nasa-typescript-safety)

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
---
name: nasa_typescript_safety
description: Adapts NASA's "Power of 10" safety rules for high-reliability TypeScript code.
allowed-tools: Read, Edit
---

# NASA TypeScript Safety Protocol

## 1. Simple Control Flow
- **Rule**: Avoid complex recursion. Use simple iteration.
- **Limit**: functions should be perceivable on a single screen (approx 50-60 lines). If longer, Refactor.

## 2. Strict Scope & Initialization
- **Rule**: Variables must be declared in the smallest possible scope (`const` > `let` > `var`).
- **Initialization**: Objects should be fully initialized. Avoid "build-up" patterns where properties are added later (forces consistent Shapes/Hidden Classes).

## 3. The "No Magic" Rule (Type Safety)
- **Strict Ban**: `as unknown as Type`. If you need this, your types are wrong.
- **Strict Ban**: `any`. Use `unknown` with Type Guards if data is truly dynamic.
- **Validation**: Input data (from API/User) MUST be validated (Zod) at the boundary. Never trust external input.

## 4. Robust Error Handling
- **Rule**: Check return values. Promises must be caught.
- **Crash Proof**: Critical flows (Payment, Data Save) must have `try/catch` and recovery logic, not just "log and crash".

## 5. Safety Checklist
- [ ] Is the function small enough?
- [ ] Did I remove all `any` uses?
- [ ] Is there any unhandled Promise rejection?

Files in this skill

  • SKILL.md1.3 KB
  • description_cn.txt85 B
  • description_de.txt99 B
  • description_en.txt79 B
  • description_es.txt103 B
  • description_fr.txt113 B
  • description_ja.txt111 B
  • description_ko.txt104 B
  • description_tw.txt85 B

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.

Comments

Loading comments…

Newsletter

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