AGENT SKILL

ow-typescript

TypeScript boundaries and checks before an edit. Use when the repo is TypeScript and the job is not only a React waterfall. Not a visual redesign.

License 许可
MIT
最近更新
2026-11-13
Stars
★ 1
Forks
0

01 前言 Front Matter

name
ow-typescript
description
TypeScript boundaries and checks before an edit. Use when the repo is TypeScript and the job is not only a React waterfall. Not a visual redesign.

03 SKILL.md 正文

TypeScript

Source method: Matt Pocock's public engineering notes. The mattpocock/skills pack is not installed. react-best-practices still owns React and Next waterfalls.

Before the edit

  1. State the assumption the types are hiding. If the assumption is wrong, stop and say so.
  2. Parse input at the boundary. A Zod-shaped schema, or the project's existing parser, beats a cast.
  3. Do not widen a type to any to finish the task. Narrow it or change the caller.
  4. Do not introduce a second validation library when the repo already has one.

Done

tsc or the repo's typecheck command is clean for the files you touched, or you report the error you left and why.

Preconditions

  • The repo is TypeScript, and the task is a type boundary rather than a visual redesign.

Procedure

  1. The task's paths and acceptance line win.
  2. State the assumption the types are hiding. Parse input at the boundary with the parser the repo already uses.
  3. Do not widen a type to any. Run the repo's typecheck.

Output

The type change and the typecheck output.

Verify

The typecheck command was run. An error that remains is quoted.

Skip

Skip for a React waterfall, which is react-best-practices, and for a visual redesign.

04 同仓库更多 Skills

mahik504
mahik504/orchestra-workflow

writing-skills

Use when creating new skills, editing existing skills, or verifying skills work before deployment

★ 1
mahik504
mahik504/orchestra-workflow

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

★ 1
mahik504
mahik504/orchestra-workflow

web-design-guidelines

Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices". Do not load on Plan-only or backend-only jobs.

★ 1
mahik504
mahik504/orchestra-workflow

verification-before-completion

Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always

★ 1
mahik504
mahik504/orchestra-workflow

using-git-worktrees

Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback

★ 1
mahik504
mahik504/orchestra-workflow

unslop

Turns vibecoded, AI-looking UI into a designed interface with its own character. Finds a direction from the product itself, then fixes spacing, color, icons, copy, type, layout, details, visuals and motion in that order, and can generate a real hero visual with an image tool when one is available. Use when the user asks to unslop, polish, clean up or redesign a screen so it stops looking AI-generated, or when a UI shows the usual tells like purple gradients, glows, gradient text, emoji labels, "New ✨" badges, glossy blobs, uppercase tracked labels, pulsing elements or uneven spacing. Works on React, Tailwind, HTML and CSS, for dashboards, apps and landing pages.

★ 1