Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add idavidov13/agentic-playwright --skill type-safetygit clone --depth 1 https://github.com/idavidov13/agentic-playwrightWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/idavidov13/agentic-playwright/type-safety)<a href="https://agentmods.dev/skills/idavidov13/agentic-playwright/type-safety"><img src="https://agentmods.dev/badge/skills/idavidov13/agentic-playwright/type-safety/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/idavidov13/agentic-playwright/type-safety"><img src="https://agentmods.dev/badge/skills/idavidov13/agentic-playwright/type-safety.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00080 | $0.00798 |
| Opus 5.5 | $0.00032 | $0.00319 |
| Sonnet 5.5 | $0.00016 | $0.00160 |
| Haiku 4.5 | $0.00008 | $0.00080 |
Grade A, and why
type-safety scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 47 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Type Safety
Critical
-
NEVER use
any,@ts-ignoreor@ts-expect-error:unknownat a boundary (network, file, user input), thenSchema.parse(...); a Zod-inferred type everywhere else. -
Never
as Toras unknown as Tto cross a type boundary; parse instead.// CORRECT const raw: unknown = await response.json(); const user = UserResponseSchema.parse(raw); // WRONG const user = (await response.json()) as UserResponse; -
Every API schema is
z.strictObject();z.object()strips unknown keys and hides contract drift.// CORRECT export const UserSchema = z.strictObject({ id: z.uuid() }); // WRONG export const UserSchema = z.object({ id: z.uuid() }); -
Import from
zod/v4; top-level validators (z.uuid(),z.email(),z.url(),z.int(),z.enum(E)), not the chainedz.string().uuid()forms; types viazOutput<typeof Schema>, notz.infer. -
A schema mirrors the documented contract field by field, envelope included, one per endpoint response, never a factory that builds envelopes. A shared per-domain
_envelope.tsonly once the same envelope appears in 3+ schemas (canonical threshold; other skills point here). -
Export the type next to the schema:
export type User = zOutput<typeof UserSchema>;.zInputonly where a.default()or.transform()makes the pre-parse shape differ. -
Explicit parameter and return types on every exported or public function (
Promise<void>,Locator,string);npm run lintfails without them. -
Resolve
process.env.Xwhere it is read:process.env.X!whenenv/.env.exampledeclares it as required,process.env.X ?? fallbackwhen a default is safe. Never export or pass on astring | undefined.
Procedure
ls fixtures/api/schemas/resolves{area}; the file isfixtures/api/schemas/{area}/<name>Schema.ts; shared error bodies stay infixtures/api/schemas/util/errorResponseSchema.ts.- Write the schema from the contract that
api-testingstep 1 sourced, one validator per field fromreferences/zod-usage.md, the contract source in a comment at the top. - Export the type;
references/zod-usage.mddecideszInputversuszOutputand when to extract an envelope. - Hand it to the consumer: a spec asserts
expect(SchemaName.parse(body)).toBeTruthy();(api-testing); a factory returnsSchema.parse(merged)(data-strategy); fixture code bindsconst x = Schema.parse(body);. - Run
npx tsc --noEmitandnpm run lint. AZodErroragainst a documented contract is a bug handled perapi-testing, never by loosening the schema.
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed · -217 lines · -128 tokens per session 2fa73714e0a9
- 2mo ago Changed · +3 lines 92cd086278e2
- 3mo ago First seen · 261 lines · 208 tokens per session scan A b80feb444f5d
type-safety is a skill published in the GitHub repository idavidov13/agentic-playwright (318 stars, last pushed 17d ago), licensed MIT. It adds 80 tokens to every session and 798 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
type-safety compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| type-safetyidavidov13/agentic-playwright | Skill | 318 | 17d ago | MIT | A | 80 | Claude Code, Codex |
| ultracitehaydenbleasel/ultracite | Skill | 3.4k | 3d ago | MIT | A | 179 | Claude Code, Codex |
| freelance-gig-findertinyfish-io/tinyfish-cookbook | Skill | 2.3k | yesterday | MIT | A | 98 | Claude Code, Codex |
| fetchtinyfish-io/tinyfish-cookbook | Skill | 2.3k | yesterday | MIT | A | 121 | Claude Code |
| oss-bounty-findertinyfish-io/tinyfish-cookbook | Skill | 2.3k | yesterday | MIT | B | 242 | Claude Code, Codex |
| typescript-strictBlackBeltTechnology/pi-agent-dashboard | Skill | 357 | today | MIT | A | 41 | Claude Code, Codex |
| create-custom-widgetmendixlabs/mxcli | Skill | 148 | yesterday | Apache-2.0 | A | 50 | Claude Code |