skmtc-model

skmtc-model is a skill for Claude Code from skmtc/skmtc. It costs 127 tokens per session (2,584 once invoked), scanned A, original, Apache-2.0.

A framework for building SKMTC generators that turn component schemas into code definitions. A schema describes the shape and rules of data, including references, optional fields, arrays, and unions.

In plain words
What is it for?
Use it when creating a model generator for a target library, including support for references, recursion, nullable fields, maps, enums, arrays, objects, and unions.
Why use it?
Writing each generator from scratch makes common edge cases easy to miss. The provided structure and tests give generators a consistent starting point.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the skmtc plugin — 12 skills shipped together

Good fit Use it when creating a model generator for a target library, including support for references, recursion, nullable fields, maps, enums, arrays, objects, and unions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/skmtc/skmtc/skmtc-model
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 skmtc/skmtc --skill skmtc-model
Clone the repo
git clone --depth 1 https://github.com/skmtc/skmtc

Made for: Claude Code.

Or install skmtc, the plugin that ships this one along with the rest of its 12 skills.

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 skmtc-model

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/skmtc/skmtc/skmtc-model"><img src="https://agentmods.dev/badge/skills/skmtc/skmtc/skmtc-model.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 127 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,584 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.00127 $0.02584
Opus 5.5 $0.00051 $0.01034
Sonnet 5.5 $0.00025 $0.00517
Haiku 4.5 $0.00013 $0.00258

Measured 6d ago against content hash 54669972ba4c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

skmtc-model 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 6d ago.

The scan reads SKILL.md. This mod also ships 15 executable files (skeleton/mod.test.ts, skeleton/mod.ts, skeleton/src/base.ts, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

deno/docs/skills/skmtc-model/SKILL.md · 181 lines

How it starts

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

Model generators: fill the skeleton

A model generator turns each component schema (refName) into one definition in one file: entry → projection → schema-type router → one snippet class per schema type. That structure is invariant across target libraries — only naming policy and per-type syntax vary. So do not write the structure: copy it.

1. The method

The skeleton/ directory next to this file is a complete, compiling, engine-tested model generator that renders a placeholder syntax (m.object({...})). Author by transplant, not from scratch:

  1. Copy skeleton/ to your package location; run deno test --allow-env --allow-sys --allow-read — 6 green tests prove the machinery before you touch anything.
  2. Rename: name in deno.json; MyLib → YourLib in class names and filenames; myLibEntry → yourLibEntry; then src/lib.ts — LIB_MODULE (emitted module specifier) and LIB (imported symbol).
  3. Fill the slots (§2), smallest first: scalars → string/enum → array/object → union → lazy/recursion annotation.
  4. Re-pin the test: update the pinned strings in mod.test.ts to your target syntax. The structural assertions (files exist, shared refs dedup to ONE definition, import headers stitched, recursion annotated) must pass UNCHANGED — if one breaks, you broke machinery, not syntax.

Every slot is a // SLOT(name): comment. Everything outside a SLOT is engine machinery — modifying it is almost always a mistake.

2. The slots

Slot File Decision
library src/lib.ts emitted module + symbol, single point
naming, identifier-kind, export-path src/base.ts identity policy (from refName ONLY)
string, string-constraints src/MyLibString.ts string / enum / literal syntax; formats, min/maxLength
number, integer, boolean, unknown, void src/MyLibScalars.ts scalar syntax; numeric constraints
array src/MyLibArray.ts list syntax
object-properties, object-intersection, object-empty, visibility src/MyLibObject.ts object syntax; properties+record composition; readOnly/writeOnly policy
record src/MyLibObject.ts additionalProperties map syntax
union src/MyLibUnion.ts oneOf/anyOf; discriminated form
lazy src/MyLibRef.ts deferred-reference form for cycles
recursion-annotation src/MyLibProjection.ts type annotation breaking circular inference
modifiers src/modifiers.ts optional/nullable syntax and wrap order
enrichments src/enrichments.ts config seam (default: opt-out)

Read the full file on GitHub · 181 lines

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. 6d ago Changed 54669972ba4c
  2. 27d ago Changed d6919de75df3
  3. 1mo ago Changed · +2 lines 43e11a153642
  4. 1mo ago First seen · 179 lines · 127 tokens per session scan A 5f17653fe2b9

Subscribe to this mod's changes

skmtc-model is a skill published in the GitHub repository skmtc/skmtc (19 stars, last pushed yesterday), licensed Apache-2.0. It adds 127 tokens to every session and 2,584 once invoked, about $0.0005 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.

Related

Other skills, from other repositories

system-prompts

Write system prompts, tool docs, and agent definitions. Project tag conventions + RFC 2119 keywords + dense compression. Use when authoring or editing any prompt the model reads.

can1357/oh-my-pi · 40 tokens

config

How to author a kubb.config.ts and pick the right @kubb/plugin- packages when generating TypeScript from an OpenAPI/Swagger spec. Use whenever setting up Kubb, adding a generator, or debugging codegen output.

kubb-labs/kubb · 49 tokens

output

Import and use Kubb's generated code (types, clients, hooks, schemas, mocks). Use when writing app or test code that consumes a Kubb build.

kubb-labs/kubb · 35 tokens

webiny-api-cms-content-models

Creating Headless CMS content models via code using the ModelFactory pattern. Use this skill when the developer wants to create, modify, or understand content model definitions, define fields and validators, set up reference fields between models, configure field layouts (including nested layouts inside object or…

webiny/webiny-js · 313 tokens

webiny-form-model

Building forms with the FormModel system — field types, renderers, layout, validation, conditional rules, computed fields, and dynamic zones. Use this skill when the developer needs to define form fields with the builder API, choose renderers, build layouts with tabs/rows/separators, add validation (Zod or…

webiny/webiny-js · 93 tokens

ocli-api

Turn any OpenAPI, Swagger, or OpenRPC API into CLI commands and call them. Search endpoints with BM25, check parameters, execute — no MCP server needed.

EvilFreelancer/openapi-to-cli · 38 tokens