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
- State the assumption the types are hiding. If the assumption is wrong, stop and say so.
- Parse input at the boundary. A Zod-shaped schema, or the project's existing parser, beats a cast.
- Do not widen a type to
anyto finish the task. Narrow it or change the caller. - 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
- The task's paths and acceptance line win.
- State the assumption the types are hiding. Parse input at the boundary with the parser the repo already uses.
- 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
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
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.
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.
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
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
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.