generate-interface

generate-interface is a skill for Claude Code, Codex from Kevin-Liu-01/Agent-Machines. It costs 75 tokens per session (2,481 once invoked), scanned A, original, MIT.

A guide for designing small, clearly documented boundaries between parts of a software system. It treats an interface as a written agreement about what a part does, who owns it, and how other parts use it.

In plain words
What is it for?
It is for designing or refactoring APIs, clarifying module boundaries, assigning ownership of data and operations, and writing subsystem documentation and docstrings.
Why use it?
It helps replace scattered helper functions and unclear responsibilities with a few stable contracts that are easier to understand and change safely.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is for designing or refactoring APIs, clarifying module boundaries, assigning ownership of data and operations, and writing subsystem documentation and docstrings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kevin-liu-01/agent-machines/generate-interface
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 Kevin-Liu-01/Agent-Machines --skill generate-interface
Clone the repo
git clone --depth 1 https://github.com/Kevin-Liu-01/Agent-Machines

Made for: Claude Code, 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 generate-interface

README.md
[![agentmods](https://agentmods.dev/badge/skills/kevin-liu-01/agent-machines/generate-interface/github.svg)](https://agentmods.dev/skills/kevin-liu-01/agent-machines/generate-interface)
Your own site
<a href="https://agentmods.dev/skills/kevin-liu-01/agent-machines/generate-interface"><img src="https://agentmods.dev/badge/skills/kevin-liu-01/agent-machines/generate-interface/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 generate-interface

Your own site · 80×15
<a href="https://agentmods.dev/skills/kevin-liu-01/agent-machines/generate-interface"><img src="https://agentmods.dev/badge/skills/kevin-liu-01/agent-machines/generate-interface.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,481 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.00075 $0.02481
Opus 5.5 $0.00030 $0.00992
Sonnet 5.5 $0.00015 $0.00496
Haiku 4.5 $0.00007 $0.00248

Measured 2mo ago against content hash 3fa54ad744cd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

generate-interface 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 2mo 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.

knowledge/skills/generate-interface/SKILL.md · 427 lines

How it starts

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

Generate Interface

Design interfaces the way durable systems do:

  • one contract per real responsibility
  • one authority per state field or operation
  • explicit transports, not accidental ones
  • README-first subsystem manuals
  • docstrings that explain what part of the interface a module implements
  • code that follows the contract instead of inventing side channels

The target is an interface that feels old in the best way:

  • obvious
  • narrow
  • composable
  • boring
  • hard to misunderstand

Think Unix and Linux, not app-framework churn.

This skill is for interface hardening, not generic architecture prose.

Core rule

Reduce a subsystem until a reader can answer these questions quickly:

  1. What are the primary interfaces?
  2. Who calls each one?
  3. Who owns each write path?
  4. What is authoritative?
  5. What is compatibility-only or debug-only?
  6. What is explicitly out of scope?

If the answer requires reading five modules and guessing, the interface is not done.

If the behavior of the subsystem is mostly encoded in ad hoc helper functions and not in a small set of named interfaces, the design is not done.

Output shape

Prefer this hierarchy:

  1. subsystem README.md
  2. local module docstrings
  3. code

Do not create a new top-level taxonomy document unless the user explicitly wants one.

The default move is to consolidate interface definitions into the correct subsystem README.md files.

The user should be able to understand the subsystem by reading:

  1. README.md
  2. module docstrings
  3. code

and nothing else.

When to use

Use this skill when the user asks for things like:

  • “make the interfaces solid”
  • “reduce this architecture to a few APIs”
  • “clean up the controlplane/runtime boundary”
  • “document the subsystem so it reads cleanly”
  • “collapse ad hoc functions into real interfaces”
  • “make the README and docstrings the source of truth”
  • “make this feel like a real subsystem manual”
  • “make the API surface obvious”

Typical triggers:

Read the full file on GitHub · 427 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. 2mo ago First seen · 427 lines · 75 tokens per session scan A 3fa54ad744cd

Subscribe to this mod's changes

generate-interface is a skill published in the GitHub repository Kevin-Liu-01/Agent-Machines (30 stars, last pushed 9d ago), licensed MIT. It adds 75 tokens to every session and 2,481 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.

Related

Other skills, from other repositories

api-services

API reference for built-in service providers (LLM, Speech, Graph). Use when looking up service interfaces, provider capabilities, or integration patterns.

cyanheads/obsidian-mcp-server · 32 tokens

hunt-websocket

Hunt WebSocket vulnerabilities — Cross-Site WebSocket Hijacking (CSWSH), missing/weak Origin validation on the WS handshake, no per-message authentication, message tampering, socket.io namespace/room authorization bypass, and handshake-layer Upgrade smuggling. Use when target has WebSocket endpoints (ws:// or wss://)…

uphiago/recon-skills · 95 tokens

401-403-bypass-techniques

Use when protected HTTP routes return 401 or 403.

uphiago/recon-skills · 20 tokens

hunt-nodejs

Hunt Node.js specific vulnerabilities — Prototype Pollution → RCE chains (lodash/merge/assign), Express trust proxy misconfiguration, childprocess/eval injection, template engine SSTI (EJS/Pug/Handlebars), path traversal in file servers, require() injection, environment variable exfil via /proc/self/environ. Use when…

uphiago/recon-skills · 87 tokens

hunt-deserialization

Hunt Insecure Deserialization — Java gadget chains (ysoserial), PHP object injection (phpggc), Python pickle RCE, .NET BinaryFormatter, Ruby Marshal.load, JNDI/Log4Shell. RCE via deserialization is almost always Critical. Use when target runs Java, PHP serialization, Python pickle, .NET, or Ruby on Rails.

uphiago/recon-skills · 79 tokens

hunt-nestjs

Hunt NestJS-specific vulnerabilities: guard bypass, decorator gaps, and microservice auth drift.

uphiago/recon-skills · 24 tokens