agentleFS
faiz-gearfaiz-gear/superpowers-contract-patch/skills/frontend-contract-entry-gate/SKILL.md

frontend-contract-entry-gate

Skill0 starsChanged 8 months agoMITView on GitHub

Use when frontend work will consume an API and the agent must confirm the latest OpenAPI contract before implementation starts

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when:

    line 14
  2. Distinctive:

    stop if generation fails or the contract is stale

    line 25
  3. Very specific:

    Read gates/frontend-entry-gate.md and contracts/source-of-truth.md.

    line 29

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

Frontend Contract Entry Gate

Overview

Frontend API work starts from the latest contract, not from stale memory. This gate makes OpenAPI freshness and client generation mandatory before consumption work begins.

Trigger

Use this skill when:

  • a frontend task depends on API changes
  • TanStack Query or other client methods need regeneration
  • a team is preparing for frontend and backend integration

Blocking Checks

  • compare the current local contract with the latest authoritative OpenAPI
  • confirm the frontend is using the fresh contract revision
  • generate or refresh client methods from that contract
  • stop if generation fails or the contract is stale

Process

  1. Read gates/frontend-entry-gate.md and contracts/source-of-truth.md.
  2. Verify contract freshness.
  3. Regenerate client artifacts.
  4. Record the outcome in a gate report.

Output

Produce one explicit outcome:

  • READY: the frontend may consume the API
  • BLOCKED: fix freshness or generation issues first

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.