Skip to content
Back to skills

Exec Typescript

ASecurity

TypeScript/JavaScript execution idioms to embed into Codex prompts when the target project is TS/JS — type safety, async correctness, and Node/web conventions.

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 20, 2026
ai-agentsjavascripttypescriptjavareactnode

Security analysis

A100/100

Scanned November 20, 2026

npx -y skills add anhnguyen0905/codex-mcp --skill exec-typescript --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Exec Typescript?

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

Security grade badge for Exec Typescript
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anhnguyen0905-exec-typescript/badge)](https://www.skillsdirectory.com/skills/anhnguyen0905-exec-typescript)

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: exec-typescript
description: TypeScript/JavaScript execution idioms to embed into Codex prompts when the target project is TS/JS — type safety, async correctness, and Node/web conventions.
---

# TypeScript / JavaScript Idioms (embed when project is TS/JS)

```
TypeScript standards:
- Explicit param/return types on exported functions; let locals infer. No `any` — use `unknown`
  and narrow, or generics.
- `interface` for extendable object shapes; `type` for unions/intersections; string-literal
  unions over enums.
- Async: always await or return promises — no floating promises; wrap awaits in try/catch where
  the error is handled; never mix .then chains with async/await.
- Narrow caught errors: `catch (error: unknown)` then `instanceof Error` before touching .message.
- Immutable updates via spread/map/filter — no in-place mutation of props, state, or params.
- Prefer const; no var. Strict null handling — no non-null assertions (!) to silence the checker.
- Validate external data with a schema library already in the project (e.g. zod) and infer types
  from the schema.
- ESM/CJS: match the project's module system exactly, including file extensions in imports if the
  project uses them.
- React (if present): typed props, hooks rules (no conditional hooks), keys on lists, effects with
  correct dependency arrays.
```

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 ai-agents →

Comments

Loading comments…

Newsletter

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