api-patterns SKILL.md skillA

api-patterns from vibeeval/vibecosystem is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add vibeeval/vibecosystem/api-patterns@git:20260324.717b2c1

Pins git:20260324.717b2c1 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
vibeeval/vibecosystem
Path
skills/api-patterns/SKILL.md
Versions recorded
2
Latest version
git:20260324.717b2c1, committed Mar 24, 2026
First version recorded
Mar 14, 2026
Size
15,557 bytes
Repository stars
552
License
MIT

API design, versioning, testing, schema validation, and contract testing patterns for REST and GraphQL APIs.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# API Patterns

REST and GraphQL API design patterns for consistent, versioned, and well-tested interfaces.

## API Versioning

### URL-Based Versioning

```typescript
// routes/v1/markets.ts
// routes/v2/markets.ts
// URL: /api/v1/markets, /api/v2/markets

// Express router setup
import { Router } from 'express'

const v1Router = Router()
const v2Router = Router()

app.use('/api/v1', v1Router)
app.use('/api/v2', v2Router)

// Deprecation header middleware
function deprecationWarning(version: string, sunsetDate: string) {
  return (_req: Request, res: Response, next: NextFunction) => {
    res.setHeader('Deprecation', 'true')
    res.setHeader('Sunset', sunsetDate)
    res.setHeader('Link', `</api/v${parseInt(version) + 1}>; rel="successor-version"`)
    next()
  }
}

v1Router.use(deprecationWarning('1', 'Sat, 01 Jan 2027 00:00:00 GMT'))
```

### Header-Based Versioning

```typescript
// Accept: application/vnd.api+json;version=2
function versionMiddleware(req: Request, res: Response, next: NextFunction) {
  const accept = req.headers['accept'] || ''
  const match = accept.match(/version=(\d+)/)
  req.apiVersion = match ? parseInt(match[1]) : 1
  next()
}
```
…

Read the whole file at its exact version.

How to install

No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_q5shaslbpd5qv763/8969074226ccd8d4ee63e9437ff720dab7934c74d3d03240dbf1f1020892c007.json

Then /plugin install api-patterns@markdownregistry-q5shaslbpd5qv763 in Claude Code. It installs git:20260324.717b2c1, the one graded A here, pinned to the commit it was graded at, and leaves it there.

The exact contents, by fingerprint
mdr add vibeeval/vibecosystem/api-patterns@sha256:8969074226ccd8d4

The line at the top of this page pins the label git:20260324.717b2c1, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_q5shaslbpd5qv763.svg)](https://markdownregistry.com/a/art_q5shaslbpd5qv763)

3 badge image fetches in 30 days. What the badge shows.

Ask from your agent
claude mcp add --transport http markdownregistry https://markdownregistry.com/mcp/registry

Then ask it: what changed in vibeeval/vibecosystem/api-patterns since the version I have? It reads every saved version here, no key and no account. Any agent that speaks MCP can add it.

Got a copy of api-patterns from somewhere else? Ask it: where did my api-patterns come from, and what was changed? It names the public original, the version yours is closest to and every changed line. The text is not kept.

Versions

The registry has recorded 2 versions of this file, between Mar 14, 2026 and Mar 24, 2026, about one every 10 days.

Watch this file (sign in, one email per new version)

versioncommittedcommitsizeaudit
git:20260324.717b2c1 latest2026-03-24 717b2c1 15,557 BA view · diff
git:20260314.f0071a02026-03-14 f0071a0 9,715 BA view
Keep it current by itself, install once

Committed this skill to a repository? Install the markdownregistry skill updates app on it, or on all of them. When the registry saves a newer version, a pull request brings your copy to it within minutes, the newest version first, then what changed and any check it newly trips. A copy you edited is never touched, and nothing is deleted.

Install on GitHub

It asks to read and write contents and pull requests, and to read metadata. No workflow file, no Actions setting, nothing runs on your runners. Uninstall it and everything the registry kept about your repository is deleted.

Keep it current by itself

Committed this skill to a repository? Add one workflow file, and when a newer version is saved, a pull request brings your copy to it, the newest version first, then what changed and any check it newly trips. A copy you edited is never touched, and nothing is deleted.

mkdir -p .github/workflows && curl -fsSL https://markdownregistry.com/ci/skill-updates.yml -o .github/workflows/skill-updates.yml

It runs daily on GitHub Actions, no key and no account. Read the workflow before you add it.

Check a whole project

From the root of your project, one line hashes each installed skill's SKILL.md, your AGENTS.md and your CLAUDE.md, and asks the registry once. Only the fingerprints and paths are sent.

sha256sum .claude/skills/*/SKILL.md AGENTS.md CLAUDE.md | curl -s --data-binary @- https://markdownregistry.com/api/v1/check-copies

In CI, add --fail-with-body: the answer is 409 when any file is behind, so the step fails and still prints which files.

sha256sum .claude/skills/*/SKILL.md AGENTS.md CLAUDE.md | curl -s --fail-with-body --data-binary @- https://markdownregistry.com/api/v1/check-copies

No sha256sum on your machine? shasum -a 256 prints the same lines.

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (15557 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

vibeeval/vibecosystem · 552 stars · license MIT · pushed 2026-11-11 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_q5shaslbpd5qv763
GET https://markdownregistry.com/api/v1/resolve?ref=vibeeval/vibecosystem/api-patterns
GET https://markdownregistry.com/api/v1/blob/8969074226ccd8d4ee63e9437ff720dab7934c74d3d03240dbf1f1020892c007

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from vibeeval/vibecosystem

agent-development Cursor rule
vibeeval/vibecosystem · .cursor/rules/agent-development.mdc · Rules for creating and editing vibecosystem agent definitions
git:20260330.cd5da78 · audit A · 552 stars
general Cursor rule
vibeeval/vibecosystem · .cursor/rules/general.mdc · vibecosystem core coding standards and quality rules
git:20260412.a904537 · audit A · 552 stars
hook-development Cursor rule
vibeeval/vibecosystem · .cursor/rules/hook-development.mdc · Rules for developing vibecosystem TypeScript hooks
git:20260330.cd5da78 · audit A · 552 stars
security Cursor rule
vibeeval/vibecosystem · .cursor/rules/security.mdc · Security rules for code review and vulnerability prevention
git:20260330.cd5da78 · audit A · 552 stars
skill-development Cursor rule
vibeeval/vibecosystem · .cursor/rules/skill-development.mdc · Rules for creating and editing vibecosystem skills
git:20260330.cd5da78 · audit A · 552 stars
testing Cursor rule
vibeeval/vibecosystem · .cursor/rules/testing.mdc · TDD workflow and testing standards
git:20260330.cd5da78 · audit A · 552 stars
AGENTS.md AGENTS.md file
vibeeval/vibecosystem · AGENTS.md
git:20260808.3b763b1 · audit A · 552 stars
accessibility-patterns SKILL.md skill
vibeeval/vibecosystem · skills/accessibility-patterns/SKILL.md · WCAG 2.2 AA compliance, ARIA patterns, keyboard navigation, screen reader optimization
git:20260412.a904537 · audit A · 552 stars
accessibility-testing SKILL.md skill
vibeeval/vibecosystem · skills/accessibility-testing/SKILL.md · axe-core integration, WCAG 2.2 AA checklist, keyboard navigation testing, screen reader testing, and ARIA pattern…
git:20260314.f0071a0 · audit A · 552 stars
achievements SKILL.md skill
vibeeval/vibecosystem · skills/achievements/SKILL.md · Steam-style achievement system with XP, levels, streaks, and skill trees. Gamifies the development workflow. 25…
git:20260408.85b86f4 · audit A · 552 stars
agent-benchmark SKILL.md skill
vibeeval/vibecosystem · skills/agent-benchmark/SKILL.md · Framework for measuring and tracking agent response quality over time. Detects regressions before they reach…
git:20260328.603ff34 · audit A · 552 stars
agent-context-isolation SKILL.md skill
vibeeval/vibecosystem · skills/agent-context-isolation/SKILL.md · Agent Context Isolation
git:20260314.f0071a0 · audit A · 552 stars

Every file in vibeeval/vibecosystem

Other files named api-patterns

api-patterns SKILL.md skill
sickn33/agentic-awesome-skills · plugins/aasb-aas-api-platform-builder/skills/api-patterns/SKILL.md · API design principles and decision-making. REST vs GraphQL vs tRPC selection, response formats, versioning, pagination.
git:20261111.00f9c40 · audit A · 49,786 stars
api-patterns SKILL.md skill
sickn33/agentic-awesome-skills · plugins/agentic-awesome-skills-claude/skills/api-patterns/SKILL.md · API design principles and decision-making. REST vs GraphQL vs tRPC selection, response formats, versioning, pagination.
git:20260905.b0bf123 · audit A · 49,786 stars
api-patterns SKILL.md skill
francostino/opencode-skills-collection · bundled-skills/api-patterns/SKILL.md · API design principles and decision-making. REST vs GraphQL vs tRPC selection, response formats, versioning, pagination.
git:20260906.7d37dc9 · audit A · 92 stars
api-patterns SKILL.md skill
aicodedecode/awesome-muse-skills · skills-imported/api-patterns/SKILL.md · API design principles and decision-making. REST vs GraphQL vs tRPC selection, response formats, versioning, pagination.
git:20260927.806f3e1 · audit A · 62 stars
api-patterns SKILL.md skill
vodailocz/kilo-kit-mcp · skills/engineering/api-patterns/SKILL.md · API design principles and decision-making. REST vs GraphQL vs tRPC selection, response formats, versioning, pagination.
git:20260502.38d5305 · audit A · 28 stars
api-patterns SKILL.md skill
tmolavi/mcp-agent-skills-hub · skills/api-patterns/SKILL.md · API design principles and decision-making. REST vs GraphQL vs tRPC selection, response formats, versioning, pagination.
git:20260722.c217a35 · audit A · 10 stars
api-patterns Cursor rule
brendadeeznuts1111/betting-brain-v3 · .cursor/rules/api-patterns.mdc · API endpoint patterns and request handling conventions
v5.0.0 · audit A · 8 stars
api-patterns SKILL.md skill
hybridlabor-api/bdb-dev-optimized-agent-skills · skills/global_config/api-patterns/SKILL.md · API design principles and decision-making. REST vs GraphQL vs tRPC selection, response formats, versioning, pagination.
git:20260827.e4036aa · audit A · 8 stars

Browse by kind, by grade A, or by owner.