# agent-interface-design

Adopt this skill: https://proskills.md/skills/other/neeeophytee-finding-unknowns-skills-skills-agent-interface-design

Page: https://proskills.md/skills/other/neeeophytee-finding-unknowns-skills-skills-agent-interface-design
This document is the public skill bundle for that page. It contains SKILL.md and every helper file the catalog carries. No login is required.

## File: skills/agent-interface-design/SKILL.md
size: 2597
sha: 26f77d55a2bfb5609508a37ae2476dc7430e17eb
upstream: https://github.com/neeeophytee/finding-unknowns-skills/blob/main/skills/agent-interface-design/SKILL.md

```text
---
name: agent-interface-design
description: Design tools, scripts, and CLIs that an agent will call, so the interface teaches its own use instead of a wall of prose and examples. Use when building an MCP server or tool definition, writing an agent-facing script, or when an agent keeps misusing a tool it already has.
---

# Agent interface design

Examples teach one path and quietly fence off the others: shown three ways to call a tool, a model tends to produce those three. A well-designed interface teaches the whole space at once. The parameters say what is possible, the description says what is expected, and there is very little left to write.

## Steps

1. Find out how the tool is actually being misused before redesigning it. Read transcripts, logs, or the user's complaint. Misuse is an interface symptom first and a documentation symptom second, and the fix is usually a rename or a type, not a paragraph.
2. Push meaning into the parameters:
   - Enumerate instead of accepting free text. A status of `pending | in_progress | completed` teaches the whole state machine without a sentence of prose.
   - Name for intent rather than implementation, so the right call is the one that reads correctly.
   - Make invalid states unrepresentable wherever the type system allows it. A parameter that cannot express a mistake needs no warning about that mistake.
3. Put behavioral instruction in the tool's own description, at the point of use, and only there. The same guidance restated in a global preamble is how a codebase grows contradictions.
4. Treat the urge to add a usage example as a diagnostic: it usually means a parameter is underspecified. Fix the interface first. Keep an example only for a format that genuinely cannot be guessed, such as a bespoke query syntax.
5. Decide what is resident and what is discoverable. Tools needed on most turns belong in context; tools needed rarely should be findable on demand so they cost nothing until they're wanted.
6. Finish by naming the mistake the design still permits, and say whether it is cheap enough to live with or needs an explicit guardrail.

## Guardrails

- A description that has to explain what a parameter means is a parameter that needs a better name.
- Irreversible and high-stakes operations are the exception to all of the above: there, explicit constraint and confirmation beat elegance.
- Never redesign a signature without first finding every existing caller.
- Terseness is not the goal; expressiveness is. Cutting a description that carried real behavior is a worse outcome than a description that ran long.
```

## File: README.md
upstream: https://github.com/neeeophytee/finding-unknowns-skills/blob/main/README.md

````text
# Finding-Unknowns Skills

[![GitHub stars](https://img.shields.io/github/stars/Neeeophytee/finding-unknowns-skills?style=flat)](https://github.com/Neeeophytee/finding-unknowns-skills/stargazers)
[![skills.sh installs](https://skills.sh/b/neeeophytee/finding-unknowns-skills)](https://skills.sh/neeeophytee/finding-unknowns-skills)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
[![Validate skills](https://github.com/Neeeophytee/finding-unknowns-skills/actions/workflows/validate.yml/badge.svg)](https://github.com/Neeeophytee/finding-unknowns-skills/actions/workflows/validate.yml)
[![Subscribe — Web After AI](https://img.shields.io/badge/Subscribe-Web%20After%20AI-FF6719?style=flat&logo=substack&logoColor=white)](https://webafterai.substack.com/)

**14 installable skills that help your coding agent find what you don't know — before it gets expensive to fix.**

The map is not the territory. Your prompt is a map; the codebase and the real world are the territory. The gap between them is your *unknowns*, and with strong models the quality of the work is bottlenecked by how well you clarify them. The original eight task-level skills turn that idea, from [Thariq Shihipar's](https://thariqs.github.io/html-effectiveness/unknowns/) essay *A Field Guide to Fable: Finding Your Unknowns*, into commands you can run in Claude Code, OpenAI Codex, Kimi Code CLI (Kimi K3), or any agent that reads the [agentskills.io](https://agentskills.io) SKILL.md format.

Another three come from his follow-up, [*The new rules of context engineering for Claude 5 generation models*](https://claude.com/blog/the-new-rules-of-context-engineering-for-claude-5-generation-models), which works one layer up: not the unknowns in a single prompt, but the ones baked into the context every prompt inherits.

> Community project. Twelve skills distilled, with attribution, from public essays by Thariq Shihipar (Anthropic, Claude Code team), plus two maintainer-designed extensions. **Not an official Anthropic repository.**

The contribution here is the reusable instruction design: focused triggers, concrete deliverables, scope boundaries, portable packaging, and documented checks. The new extensions take the workflow from identifying unknowns to testing them. [Examples](EXAMPLES.md) · [Compatibility](COMPATIBILITY.md) · [Contributing](CONTRIBUTING.md) · [Roadmap](ROADMAP.md)

## The idea in one table

|  | **Known** | **Unknown** |
|---|---|---|
| **Known** | What's in your prompt | What you know you haven't figured out |
| **Unknown** | So obvious you'd never write it down, but you'd recognize it on sight | What you haven't considered at all |

Every skill below is a cheap way to move something out of the bottom row before implementation makes it expensive.

## The skills

| Skill | Phase | One line |
|---|---|---|
| [`blindspot-pass`](skills/blindspot-pass/SKILL.md) | Before | Surface your unknown unknowns in an unfamiliar area, then help you prompt better |
| [`brainstorm-prototypes`](skills/brainstorm-prototypes/SKILL.md) | Before | Throwaway variations you can react to, for taste you can't verbalize |
| [`interview-me`](skills/interview-me/SKILL.md) | Before | One question at a time, architecture-changing questions first |
| [`reference-hunt`](skills/reference-hunt/SKILL.md) | Before | Use working source code as the spec, even across languages |
| [`implementation-plan`](skills/implementation-plan/SKILL.md) | Before | A plan that leads with the decisions you're most likely to change |
| [`implementation-notes`](skills/implementation-notes/SKILL.md) | During | Log every deviation from the plan so the next attempt learns from this one |
| [`pitch-packager`](skills/pitch-packager/SKILL.md) | After | Bundle spec + prototype + notes into a buy-in doc for reviewers |
| [`change-quiz`](skills/change-quiz/SKILL.md) | After | A comprehension quiz you must pass before you merge |

### And three for the context itself

The eight above work on one task at a time. These three work on the instructions your agent carries into *every* task — the layer where Anthropic deleted 80% of Claude Code's system prompt with no measurable loss.

| Skill | One line |
|---|---|
| [`context-audit`](skills/context-audit/SKILL.md) | Find the contradictions, duplicates, and dead rules in your CLAUDE.md and skills, and cut them |
| [`agent-interface-design`](skills/agent-interface-design/SKILL.md) | Design tools an agent can't misuse, so you don't have to document them |
| [`progressive-disclosure`](skills/progressive-disclosure/SKILL.md) | Split an oversized skill or spec into an entry file plus files loaded only when needed |

`progressive-disclosure` ships with `disable-model-invocation: true`. **In Claude Code** that makes it user-invoked only — it stays out of the model's reach and costs nothing in your context window until you type its name. **Codex ignores the flag** (verified on v0.143: the skill and its description still load into the model-visible prompt), so treat it as a normal model-invoked skill there.

### Two extensions for evidence

These are maintainer-designed additions, informed by established testing practices. The original eleven skill files are unchanged in the published [v1.4.0 release](https://github.com/Neeeophytee/finding-unknowns-skills/releases/tag/v1.4.0).

| Skill | Phase | One line |
|---|---|---|
| [`assumption-test`](skills/assumption-test/SKILL.md) | Before | Turn a consequential technical assumption into a bounded, falsifiable experiment |
| [`test-blindspots`](skills/test-blindspots/SKILL.md) | During / after | Investigate what passing tests do not establish, with focused probes and reproducible evidence |

The additions have packaging and discovery checks. [Evaluation protocol and fixtures](evals/README.md).

### One for proving a bug fix

| Skill | Phase | One line |
|---|---|---|
| [`regression-proof`](skills/regression-proof/SKILL.md) | During / after | Show that the same regression test fails before a fix and passes after it |

Source: [Spending your effort](https://claude.dev/blog/spending-your-effort/).

Use `regression-proof` for a reported bug; use `test-blindspots` to investigate what a passing suite misses. For feature work: clarify with `interview-me`, implement and iterate, then verify relevant behavior. Skills guide the workflow; they do not change your agent's effort setting.

## Install

**One command, any agent (recommended):** Vercel's `skills` CLI auto-detects your coding agent (Claude Code, Cursor, Codex, Copilot, Gemini, and more) and installs the skills into the right place for each:

```
npx skills add Neeeophytee/finding-unknowns-skills
```

Add `--list` to preview the 14 skills first, or `--skill blindspot-pass` to install just one. (Discoverable on [skills.sh](https://skills.sh).)

**As a Claude Code plugin (all 14 skills):**

```
/plugin marketplace add Neeeophytee/finding-unknowns-skills
/plugin install finding-unknowns@finding-unknowns-skills
```

**Manually (pick the skills you want):** copy any `skills/<name>/` folder into your project's `.claude/skills/` directory (or `~/.claude/skills/` for all projects).

**The one-file version:** if you'd rather have the whole approach as passive guidance instead of commands, copy [`guidance/finding-unknowns.md`](guidance/finding-unknowns.md) into your project root as `CLAUDE.md` (Claude Code) or `AGENTS.md` (Codex and other AGENTS.md-reading agents), or append it to your existing one.

> Moved in v1.2.0: this file used to be the repo's own `CLAUDE.md`. Root `CLAUDE.md`/`AGENTS.md` now hold gotchas for maintaining *this* repo, which is what those files are for — general methodology in a file meant for repo-specific context is exactly the pattern `context-audit` flags.

### Use in Cursor

The `npx skills add Neeeophytee/finding-unknowns-skills` command above detects Cursor and installs the skills into `~/.cursor/skills/` for you — no manual step. (Historical receipt: at v1.2.0, `skills@1.5.20 -
````
