agentleFS
SupabaseKnown publishersupabase/supabase-go/.agents/skills/designing-public-interfaces/SKILL.md

designing-public-interfaces

Skill0 starsChanged 2 months agoMITView on GitHub

Guides design of this SDK's public API surface. Use when adding, renaming, removing or reshaping any exported identifier in any module published as end-user, consumer-facing interface - whether that module be existing or new to the published surface area. Includes functional options, domain client accessors, error model, sentinel errors, error struct types, exported fields, the accessor pattern, constructor signatures and naming policy.

The file

Files
SKILL.md

The following documents will be helpful:

DocumentFor
standard.mdThe canonical definition of "what good looks like" including authoritative guidance on encapsulation, immutability, API stability, third-party dependencies, idiomatic design, goroutines, channels, context, functional options pattern (FOP), background work ownership (close/shutdown requirements), mockability, error hygiene, logging, observability, zero values, documentation and examples.
decisions.mdDeep dive commentaries with both What and Why defined for key architectural decisions that shape the structure of this codebase, including how we design our public APIs such as our error model, doc-comment syntax, the HTTP customization seam (HTTPClient) and shared modules.
DEVELOPMENT.mdIncludes a comprehensive section on Naming.

We must aim for consistency so patterns that already exist in this codebase should be considered for similarity and thus applicability for any new API design.

The interior counterpart of this skill is designing-internal-boundaries, which governs how the types behind the exported surface keep their contracts compiler-enforced.

A new or changed convention should also trigger the recording-decisions skill.

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.