agentleFS
EzraAppleEzraApple/skills-init/skills/interface-review/SKILL.md

interface-review

Skill2 starsChanged 4 months agoMITView on GitHub

Use when reviewing a diff, pull request, or changed files for caller-facing interface quality across APIs, exported functions, service methods, hooks, component props, schemas, commands, events, or extension points. Focus on boundary shape rather than general correctness.

8 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 3 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use adversarial-review for broad correctness, security, operational, or high-scrutiny review.

    line 14
  2. Very specific:

    Use simplify for internal complexity that does not affect callers.

    line 16
  3. Very specific:

    Use plan-changes when no implementation exists yet.

    line 17
  4. Distinctive:

    Use the smallest fix that improves the caller's mental model:

    line 64
  5. Distinctive:

    Do not create an abstraction merely to make the implementation look tidy.

    line 75
  6. Distinctive:

    If no interface finding survives, say so and name the important boundaries and caller patterns checked.

    line 101

“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Interface Review

Review public and shared boundaries from the caller's perspective. Determine whether the common call path is obvious, whether the boundary owns one coherent job, and whether callers can use it without learning implementation details.

Route Nearby Work

  • Use adversarial-review for broad correctness, security, operational, or high-scrutiny review.
  • Use simplify for internal complexity that does not affect callers.
  • Use plan-changes when no implementation exists yet.

Select the Boundaries

Inspect changed:

  • APIs, commands, events, schemas, and serialized messages;
  • exported functions, classes, service methods, and libraries;
  • hooks, shared components, callbacks, and extension points;
  • configuration surfaces and feature switches;
  • errors, return values, async behavior, and side effects visible to callers.

Trace actual callers and nearby existing boundaries. Do not evaluate an interface in isolation from how it is used.

Ask the Caller Questions

For each boundary:

  1. What job is the caller trying to do?
  2. Does the name describe that job and its side effects?
  3. Are required inputs, defaults, modes, return values, errors, and lifecycle behavior explicit?
  4. Does the caller need to know this provider, transport, storage, or framework detail?
  5. Does an existing boundary already partly solve the same job?
  6. Would a new caller know which of the overlapping entrypoints to choose?
  7. Can the interface evolve without forcing unrelated callers to change?

High-Signal Problems

Prioritize:

  • near-duplicate entrypoints for the same caller job;
  • optional input whose omission silently selects a different workflow;
  • boolean flags or mode strings that combine unrelated behavior;
  • several primitives that travel together but represent one domain concept;
  • a large options object that only relocates confusion;
  • query-like names that hide writes, notifications, or network effects;
  • provider, storage, transport, or framework leakage;
  • nullable or ambiguous return values without a caller-visible reason;
  • extensibility machinery with one implementation and no demonstrated second consumer;
  • breaking changes without a deliberate migration or version boundary.

Prefer Caller Improvements

Use the smallest fix that improves the caller's mental model:

  • rename by intent;
  • make modes explicit and mutually exclusive;
  • group inputs only when they form a nameable domain concept;
  • separate queries from commands and pure logic from side effects;
  • replace implementation-specific inputs with stable domain language;
  • extend or reshape an existing boundary instead of adding a parallel one;
  • merge or delete near-duplicates;
  • preserve a compatibility adapter when it protects a real external contract.

Do not create an abstraction merely to make the implementation look tidy. Internal elegance is not an interface benefit unless callers gain clarity, safety, or stability.

Validate Findings

Before reporting:

  • cite the exact boundary and representative callers;
  • confirm that the proposed replacement handles every distinct caller job;
  • identify compatibility and migration cost;
  • distinguish a harmful public shape from a local style preference;
  • drop findings whose benefit does not exceed the churn.

Report Only the Leverage

Return few, concrete findings:

1. `<boundary>`
   Caller problem: <confusion, duplication, leakage, or hidden behavior>
   Evidence: <representative callers and competing boundary>
   Better shape: <proposed interface>
   Migration: <callers, compatibility, and risk>

If no interface finding survives, say so and name the important boundaries and caller patterns checked.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.