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 alivirgo/Major-AI-Skills --skill inline-type-signaturesgit clone --depth 1 https://github.com/alivirgo/Major-AI-SkillsWrote 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/alivirgo/major-ai-skills/inline-type-signatures)<a href="https://agentmods.dev/skills/alivirgo/major-ai-skills/inline-type-signatures"><img src="https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/inline-type-signatures/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/alivirgo/major-ai-skills/inline-type-signatures"><img src="https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/inline-type-signatures.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00020 | $0.01252 |
| Opus 5 | $0.00010 | $0.00626 |
| Sonnet 5 | $0.00004 | $0.00250 |
| Haiku 4.5 | $0.00002 | $0.00125 |
Grade A, and why
inline-type-signatures 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 yesterday.
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 — 130 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Inline Type Signatures (Zero-JSDoc Redundancy Protocol)
Overview
A pervasive token inefficiency in AI-generated code is Type Duplication: the model writes native TypeScript or Python type annotations, and then immediately repeats the exact same information inside a verbose 10-line JSDoc or Sphinx docstring (@param {string} userId - The ID of the user, @returns {Promise<boolean>} Whether the operation succeeded).
Duplicating type signatures across both syntax and comments burns 50 to 100 redundant tokens per function. In a 500-line service file, type duplication accounts for 2,000+ wasted tokens that clutter the IDE and drift out of sync over time.
The Inline Type Signature Protocol establishes the compiler's type system as the single source of truth - using concise inline type hints and restricting docstrings strictly to non-obvious business rationale.
Duplicate JSDoc Cascades vs. Inline Type Signatures
┌─────────────────────────────────────────────────────────────┐
│ Type Declaration Token Impact │
│ │
│ Duplicate JSDoc Redundancy (110 Tokens per Function): │
│ /** │
│ * Authenticates a user with email and password. │
│ * @param {string} email - The user email address. │
│ * @param {string} password - The raw plain text password.│
│ * @param {boolean} rememberMe - Whether to extend session│
│ * @returns {Promise<AuthSession>} The auth session object.│
│ */ │
│ async function authenticateUser( │
│ email: string, │
│ password: string, │
│ rememberMe: boolean = false │
│ ): Promise<AuthSession> { ... } │
│ │
│ Native Inline Type Signature (24 Tokens - 78.2% Cut): │
│ async function authenticateUser( │
│ email: string, │
│ password: string, │
│ rememberMe: boolean = false │
│ ): Promise<AuthSession> { ... } │
│ ↳ 24 clean tokens, 100% type safety in VS Code/LSP │
└─────────────────────────────────────────────────────────────┘
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.
- yesterday Changed · -26 tokens per session 18e57d29b660
- 7d ago First seen · 130 lines · 46 tokens per session scan A 57e80d2f6101
inline-type-signatures is a skill published in the GitHub repository alivirgo/Major-AI-Skills (1 stars, last pushed today), licensed MIT. It adds 20 tokens to every session and 1,252 once invoked, about $0.0001 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-05.
Other skills, from other repositories
claude-api
Anthropic Claude API patterns for Python and TypeScript. Covers Messages API, streaming, tool use, vision, extended thinking, batches, prompt caching, and Claude Agent SDK. Use when building applications with the Claude API or Anthropic SDKs.
typescript
TypeScript strict mode with eslint and jest.
plankton-code-quality
Write-time code quality enforcement using Plankton — auto-formatting, linting, and Claude-powered fixes on every file edit via hooks.
language-patterns
Provides language-specific patterns for TypeScript, Python, and React including idioms, best practices, and common patterns. Use when implementing features in these languages.
generate-code
Generate TypeScript/Python code scaffolds from VDM-SL specifications. Triggered by "generate code from the spec", "convert to TypeScript", "generate Python code", "create a scaffold", "generate implementation template", "create type definitions from VDM", or "generate agent code". Also responds to Japanese…
azure-cosmos-ts
Data plane SDK for Azure Cosmos DB NoSQL API operations — CRUD on documents, queries, bulk operations.