use-is-kit

use-is-kit is a skill for Codex from nyaomaru/is-kit. It costs 85 tokens per session (858 once invoked), scanned A, original, MIT.

Instructions for using is-kit, a TypeScript library for checking whether unknown data has a particular shape at runtime. They cover reusable type guards for values, collections, objects, and API responses.

In plain words
What is it for?
Use them when validating JSON or API responses, replacing handwritten type checks, or creating reusable TypeScript guards.
Why use it?
They help keep runtime validation consistent while allowing TypeScript to narrow values safely in the rest of the code.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use them when validating JSON or API responses, replacing handwritten type checks, or creating reusable TypeScript guards.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nyaomaru/is-kit/use-is-kit
Install

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.

Any agent
npx skills add nyaomaru/is-kit --skill use-is-kit
Clone the repo
git clone --depth 1 https://github.com/nyaomaru/is-kit

Made for: Codex.

Wrote 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.

agentmods badge for use-is-kit

README.md
[![agentmods](https://agentmods.dev/badge/skills/nyaomaru/is-kit/use-is-kit/github.svg)](https://agentmods.dev/skills/nyaomaru/is-kit/use-is-kit)
Your own site
<a href="https://agentmods.dev/skills/nyaomaru/is-kit/use-is-kit"><img src="https://agentmods.dev/badge/skills/nyaomaru/is-kit/use-is-kit/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.

agentmods 80×15 button for use-is-kit

Your own site · 80×15
<a href="https://agentmods.dev/skills/nyaomaru/is-kit/use-is-kit"><img src="https://agentmods.dev/badge/skills/nyaomaru/is-kit/use-is-kit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 858 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00085 $0.00858
Opus 5 $0.00043 $0.00429
Sonnet 5 $0.00017 $0.00172
Haiku 4.5 $0.00009 $0.00086

Measured 7d ago against content hash 9dc0597732ce, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

use-is-kit 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 7d 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.

plugins/is-kit/skills/use-is-kit/SKILL.md · 92 lines

How it starts

The opening of the file, as written. The whole thing — 92 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Use is-kit

Build runtime checks that preserve TypeScript control-flow narrowing without inventing project architecture or duplicating guards that already exist.

1. Inspect before editing

  1. Read the repository instructions and relevant package scripts.
  2. Confirm the installed is-kit version from the package manifest and lockfile.
  3. Inspect the installed declarations, package exports, or monorepo source before relying on an API name. Prefer the installed version over online examples.
  4. Search for an equivalent local guard, wrapper, barrel export, schema, or established import boundary.
  5. Reuse an existing guard when it already expresses the required semantics.

Do not add a wrapper layer merely because this skill mentions one. If the project already has an is-kit boundary, respect it; otherwise import from is-kit directly.

2. Choose the smallest correct guard

Read guard-selection.md when choosing between built-ins, logical combinators, custom predicates, equality guards, and collection combinators.

For object or API response validation, always read object-validation.md before choosing struct, typedStruct, optionalKey, or safeParse.

For replacement or cleanup work, read migration-checklist.md before changing manual checks.

Prefer composition over a handwritten type-predicate signature. Keep guards total, deterministic, and side-effect free.

3. Place the guard by responsibility

  • Put broadly reusable, domain-free guards in the project's existing shared guard location, if one exists.
  • Keep a schema beside the boundary that consumes the validated value when the schema exists for one API, file, parser, or integration.
  • Keep business decisions and domain state predicates in their owning feature or domain module.
  • Add or update barrel exports only when the project already uses them.
  • Follow the repository's naming, documentation, and test-collocation rules.

Read the full file on GitHub · 92 lines

Files

What ships with it

4 files 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.

Changes

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.

  1. 7d ago First seen · 92 lines · 85 tokens per session scan A 9dc0597732ce

Subscribe to this mod's changes

use-is-kit is a skill published in the GitHub repository nyaomaru/is-kit (74 stars, last pushed 2d ago), licensed MIT. It adds 85 tokens to every session and 858 once invoked, about $0.0004 per session on Opus 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-09-01.