Skip to content
Back to skills

Api And Interface Design

ASecurity

Use when designing or changing a PUBLIC interface - an API, data schema, CLI, plugin contract, or a widely-imported signature - not an internal one-off helper.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 23, 2026
ai-agentsrefactoringapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 23, 2026

npx -y skills add Kushagrabainsla/north --skill api-and-interface-design --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Api And Interface Design?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Api And Interface Design
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/kushagrabainsla-api-and-interface-design/badge)](https://www.skillsdirectory.com/skills/kushagrabainsla-api-and-interface-design)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: api-and-interface-design
description: "Use when designing or changing a PUBLIC interface - an API, data schema, CLI, plugin contract, or a widely-imported signature - not an internal one-off helper."
---
# API and interface design

> **Write the call sites before you finalize the signature.**

## Use this when
- You are shaping something other code will depend on: a public function/class, endpoint, schema, CLI, or plugin contract.

## Do NOT use for
- Private helpers or an internal refactor (use `safe-refactoring`).

## Procedure
1. Write at least two realistic call-site examples first; let the caller's clarity drive the design.
2. Choose names and parameters for the reader; prefer few arguments and no boolean flag args.
3. Make illegal states unrepresentable; define the error and edge behaviour.
4. Check backward compatibility against existing callers. If it breaks them, plan a migration (see `deprecation-and-migration`).
5. Keep it minimal - the smallest surface that serves the call sites.

## Done when
- The interface reads cleanly at the call sites, its failure modes are defined, and existing callers still work or have a migration.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.