Communitygithub.com

SkillMedev/skills

Entwirft REST-API-Oberflächen – Ressourcennamen, HTTP-Methoden- und Statuscode-Semantik, Fehlerstrukturen, Paginierung und Filterung – und liefert eine Endpunktspezifikation, gegen die ein Konsument ohne Rückfragen entwickeln kann. Verwenden, wenn jemand fragt: „Wie soll ich diesen Endpunkt benennen?“, „Welchen Statuscode soll das zurückgeben?“, „Soll das PUT oder PATCH sein?“, „Wie paginiere ich diese Liste?“ oder eine API vor der Veröffentlichung für externe Konsumenten überprüft.

Was ist skills?

Diese Fähigkeit automatisiert den Entwurf konsistenter REST-API-Oberflächen, indem sie sich auf Ressourcenbenennung, HTTP-Methoden- und Statuscodesemantik, Fehlerverträge, cursor- oder offsetbasierte Paginierung sowie Filterung konzentriert. Sie verhindert teure Inkonsistenzen wie gemischte Namenskonventionen, falsche Statuscodes oder Offset-Paginierung auf wachsenden Tabellen, die von Konsumenten fest einprogrammiert werden und später kaum noch korrigierbar sind. Die Fähigkeit folgt einem schrittweisen Verfahren: Eingaben sammeln (Konsumenten, Domänennomen, Sammlungsgrößen), Ressourcen plural und mit maximal einer Verschachtelungsebene benennen, Methoden und Statuscodes zuweisen (z. B. GET 200, POST 201, DELETE 204), einen einheitlichen Fehlervertrag mit lesbaren Codes festlegen, Cursor-basierte Paginierung (Standard-Seitengröße 25, maximal 100) definieren sowie Latenz- (p95 unter 300 ms bzw. 1 s) und Payload-Budgets (<100 KB typisch, >1 MB paginiert) anwenden. Sie produziert eine vollständige Endpunktspezifikation mit einer Ressourcentabelle, gemeinsamem Fehlerformat, Paginierungsvertrag, Filter-Whitelist und Latenz-/Payload-Budget pro Endpunkt. Die Fähigkeit ist als Claude Code Skill umgesetzt, der die SKILL.md-Direktiven nutzt, um konsistente API-Designs für interne und externe Konsumenten zu liefern, und sollte nicht für Breaking-Change-Rollouts, GraphQL-Schema-Design, Client-SDK-Generierung oder Webhook-Endpunkte verwendet werden – hierfür sind spezialisierte Skills vorgesehen.

Funktioniert mit~Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/SkillMedev/skills/tree/HEAD/skills/api-design

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

REST-API-Design

APIs sind Produkte: Das mentale Modell des Konsumenten, nicht Ihr Datenbankschema, bestimmt die Form. Der teure Fehler, den diese Fähigkeit verhindert, ist die Auslieferung einer inkonsistenten Oberfläche – gemischte Namensgebung, falsche Statuscodes, Offset-Paginierung auf einer wachsenden Tabelle – die jeder Konsument dann fest einprogrammiert und die nach der Integration praktisch nicht mehr korrigierbar ist.

Vorgehensweise

Arbeiten Sie in dieser Reihenfolge. Ressourcen kommen vor Methoden, da die Methodensemantik von der Ressource abhängt; Fehler- und Paginierungsverträge kommen vor der Spezifikation, da nachträgliche Änderungen Konsumenten brechen.

Schritt 1: Eingaben sammeln

Sammeln Sie vor dem Entwurf. Kennzeichnen Sie jede Annahme als Schätzung.

  1. Die Konsumenten: interne Dienste, Erstanbieter-Clients oder externe Entwickler. Externe Konsumenten erhöhen die Messlatte für Konsistenz – gehen Sie standardmäßig von extern aus, wenn unbekannt.
  2. Die Kernnomen der Domäne und welche wem gehören (bestimmt die Verschachtelung).
  3. Erwartete Sammlungsgrößen und Wachstum. Eine Liste, die ~10.000 Zeilen überschreiten kann, schließt Offset-Paginierung aus.
  4. Lese-/Schreibverhältnis und Latenzerwartungen pro Endpunkt.
  5. Authentifizierungsmodell (beeinflusst die Korrektheit von 401 vs. 403).

Schritt 2: Ressourcen benennen

  • Plural-Nomen: /users, /orders, /products.
  • Eine Ebene verschachteln für Besitzverhältnisse: /users/{id}/orders. Nicht tiefer als zwei Ebenen verschachteln – mit Filtern abflachen (/orders?user_id=... ist besser als /users/{id}/orders/{oid}/items/{iid}).
  • Keine Verben in Pfaden; die HTTP-Methode ist das Verb. Für echte Aktionen, die zu keinem CRUD-Verb passen (z. B. Rechnung versenden), als Subressourcen-POST modellieren: POST /invoices/{id}/send-attempts.
  • Einheitliche Schreibweise: kebab-case für mehrteilige Pfadsegmente, snake_case für JSON-Felder – einmal wählen, überall anwenden.

Schritt 3: Methoden und Statuscodes zuweisen

  • GET: lesen, idempotent, kein Request-Body. 200 mit Body.
  • POST: erstellen. 201 plus Location-Header, der auf die neue Ressource zeigt. Die erstellte Repräsentation im Body zurückgeben, damit der Client einen nachfolgenden GET-Aufruf spart.
  • PUT: vollständiger Ersatz, idempotent. Fehlende Felder bedeuten „löschen“, nicht „behalten“.
  • PATCH: partielle Aktualisierung (JSON Merge Patch oder JSON Patch – in der Spezifikation angeben).
  • DELETE: entfernen, idempotent, gibt 204 zurück. Das Löschen einer bereits gelöschten Ressource gibt 204 oder 404 zurück – eines auswählen und dokumentieren.
  • Fehler: 400 bei fehlerhafter Eingabe, 401 bei fehlenden/ungültigen Anmeldedaten, 403 bei gültigen Anmeldedaten ohne Berechtigung, 404 bei nicht vorhandenen Ressourcen (auch 404 statt 403 verwenden, wenn die Offenlegung der Existenz ein Leck darstellt), 409 bei Zustandskonflikten, 422 bei wohlgeformter, aber semantisch ungültiger Eingabe, 429 bei Ratenbegrenzungen (mit Retry-After), 500 bei Serverfehlern – niemals Stacktraces oder interne Identifikatoren preisgeben.

Schritt 4: Fehlervertrag festlegen

Eine Form für jeden Fehler, maschinenlesbarer Code zuerst:

{
  "error": "validation_error",
  "message": "Email is required",
  "field": "email",
  "request_id": "req_abc123"
}

Die request_id muss serverseitig protokolliert werden, damit der Support korrelieren kann. Die menschliche Nachricht ist für Entwickler beim Lesen von Logs, nicht für die Endbenutzeranzeige.

Schritt 5: Paginierung und Filterung festlegen

  • Cursor-basierte Paginierung für jede Sammlung, die wächst: einen undurchsichtigen Cursor und ein has_more-Flag zurückgeben. Offset-Paginierung ist nur für kleine, begrenzte, admin-seitige Listen akzeptabel – sie degradiert linear und überspringt/dupliziert Zeilen bei gleichzeitigen Schreibvorgängen.
  • Standard-Seitengröße 25, maximal 100. Seitengrößen über dem Maximum mit 400 ablehnen, nicht stillschweigend begrenzen.
  • Filterung und Sortierung über Query-Parameter: ?status=active&sort=created_at:desc. Dokumentieren, welche Felder filterbar sind; unbekannte Filterparameter mit 400 ablehnen, anstatt sie zu ignorieren (stilles Ignorieren versteckt Client-Fehler).

Schritt 6: Leistungs- und Payload-Budgets anwenden

  • p95-Latenzbudget: 300 ms für interaktive Endpunkte, 1 s für Berichte/Exporte. Wenn ein Vorgang 1 s nicht erreichen kann, asynchron machen: 202 Accepted plus eine Statusressource zum Abfragen.
  • Antwort-Payload-Budget: Typische Antworten unter 100 KB halten; alles, was routinemäßig über 1 MB liegt, benötigt Paginierung, Feldauswahl (?fields=) oder einen dedizierten Export-Flow.
  • Breaking Changes in den URL-Pfad versionieren (/v1/). Additive Änderungen (neue optionale Felder) erfordern keine Versionserhöhung. Die Deprecation-Timeline selbst an api-versioning-strategist übergeben.

Ausgearbeiteter Kontrast

Schlecht:

POST /getUserOrders?userId=42&page=3
→ 200 { "data": [...], "error": null }

Verb im Pfad, GET-Semantik auf einem POST, Offset-Paginierung, 200 mit einem Fehlerfeld, sodass Clients den Body parsen müssen, um zu wissen, ob der Aufruf fehlgeschlagen ist.

Gut:

GET /users/42/orders?status=shipped&limit=25&cursor=eyJpZCI6OTh9
→ 200 { "orders": [...], "next_cursor": "eyJpZCI6MTIzfQ", "has_more": true }
→ 404 { "error": "not_found", "message": "User 42 does not exist", "request_id": "req_9f2" }

Nomen-Pfad, Besitzverschachtelung, Cursor-Paginierung, Statuscodes tragen das Ergebnis.

Liefergegenstand

Erstellen Sie eine Endpunktspezifikation, die Folgendes enthält: die Ressourcentabelle (Pfad, Methoden, Statuscodes pro Methode), die gemeinsame Fehlerstruktur, den Paginierungsvertrag (Cursorformat, Standardwerte, Maximum), die Filter-Whitelist und das Latenz-/Payload-Budget pro Endpunkt.

NICHT

  • Spiegeln Sie nicht das Datenbankschema in der API wider – Konsumenten werden an interne Details gekoppelt, die Sie später ändern möchten.
  • Geben Sie bei Fehlern nicht 200 mit einem Fehlerbody zurück; Clients und Überwachung stützen sich auf Statuscodes.
  • Verwenden Sie keine Offset-Paginierung für unbegrenzte Sammlungen – sie dupliziert und überspringt Zeilen bei Schreibvorgängen und degradiert linear.
  • Verschachteln Sie Pfade nicht tiefer als zwei Ebenen; tiefe Verschachtelung kodiert einen einzigen Zugriffspfad und verbietet alle anderen.
  • Ignorieren Sie unbekannte Query-Parameter nicht stillschweigend – ein vertippter Filter, der ungefilterte Daten zurückgibt, ist ein Datenleck-Fehler.

Qualitätsmaßstab

  • Ein Konsument könnte einen Client aus der Spezifikation implementieren, ohne eine einzige Frage zu stellen.
  • Jeder Endpunkt gibt seine Statuscodes an, einschließlich Fehlerfälle.
  • Alle Sammlungsendpunkte teilen einen Paginierungsvertrag; alle Fehler teilen eine Form.
  • Identische Konzepte haben identische Namen über alle Pfade und Payloads hinweg.
  • Jeder Endpunkt hat ein explizites Latenzbudget, und diejenigen >1 s sind asynchron.

Individual skills in this repo

This repo contains 19 individual skills — each has its own dedicated page.

SkillMedev/skills

Produce an accurate, properly timed caption track (SRT or WebVTT) from a video's audio - transcribing or aligning to the voiceover script, timing cues to speech, and enforcing line-length and reading-speed rules so captions are readable and in sync. Use when someone says "generate captions", "make subtitles from the audio", "transcribe and caption this", "export an SRT or VTT", "the captions are out of sync", or "the subtitles flash by too fast to read". Do NOT use to burn-in, style, reframe, or position an existing caption track for a platform (9:16, brand styling, safe areas) - that is social-video-formatter; do NOT use to animate text word-by-word as a motion graphic - that is kinetic-typography; do NOT use to write the spoken script in the first place - that is narration-script.

SkillMedev/skills

Turns data and charts into a decision-driving narrative structured as headline finding, trend, implication, and recommended action - with finding-led chart titles, context for every number, annotation guidance, and honest flags on any conclusion the data cannot support. Use when someone says "turn these numbers into a story", "what's the takeaway from this data", "help me present these results to leadership", or has charts but no narrative. Do NOT use for compressing a long document into a one-pager - use executive-summary instead - or for running the analysis that produces the findings - use eda-playbook instead.

SkillMedev/skills

Use when a task needs live or historical money data - "convert USD to EUR", "current/past exchange rate", "FX rate on this date / over this range", or "current price of Bitcoin/Ethereum, market cap, 24h change". Frankfurter (ECB reference rates, no key) is the FX default; CoinGecko's free keyless tier covers crypto. Do NOT use for stock quotes or equities - no keyless stock API survives verification, say so instead of guessing; do NOT use for country economic indicators like GDP or inflation series - use government-open-data instead; if the request is a vague "I need live data", route through public-data-api-picker.

SkillMedev/skills

Builds a driver-based FP&A operating model linking business inputs to P&L, balance sheet, and cash flow outputs. Use when building an annual plan, preparing investor materials, running scenario analysis, or stress-testing the business.

SkillMedev/skills

Use when a task needs live geographic lookups - "geocode this address", "what's at these coordinates" (reverse geocoding), "lat/lon for this city", "which country/state is this ZIP or postal code in", or "country facts: capital, currency, population, flag". Nominatim (OpenStreetMap) is the geocoding default; Zippopotam for postal codes; APICountries for country facts. All keyless. Do NOT use for weather at a location - use weather-climate instead; do NOT use for country-level statistics over time (GDP, population trends) - use government-open-data instead; if the request is a vague "I need live data", route through public-data-api-picker.

SkillMedev/skills

Runs the full Getting Things Done loop - capture, clarify, organize, reflect, engage - building a trusted system of context lists, a projects list with defined next actions, and a weekly review habit. Use when someone says "I'm overwhelmed and things are slipping through the cracks", "set up GTD for me", "help me do a brain dump and organize it", or "my to-do list is a mess". Do NOT use for just running the weekly review ritual itself - use weekly-review instead - or for clearing an email backlog - use inbox-zero.

SkillMedev/skills

Processes any email backlog to zero using the 4Ds - Delete, Delegate, Defer, Do - with a mass-archive strategy for the obvious, a touch-each-email-once discipline, and a keep-it-clear system of batched processing windows, ruthless unsubscribing, filters, and a minimal folder setup. Use when someone says "I have 5,000 unread emails", "help me get to inbox zero", "email is eating my whole day", or treats their inbox as a to-do list. Do NOT use for drafting the reply emails themselves or prioritization rules for an ongoing support queue - use email-triage instead - or for protecting focus time around the email windows - use deep-work-planner instead.

SkillMedev/skills

Write landing-page copy section by section - hero, social proof, features-as-benefits, objections, CTA - leading with one promise and proving it down the page. Use when someone asks "write my landing page", "improve my hero headline", "what should the homepage say", "turn these features into benefits", or is shipping a new page for a launch or campaign. Do NOT use for testing and optimizing an existing page's conversion rate - use landing-page-cro instead; for the one-line claim itself use positioning-statement; for the full message ladder use messaging-hierarchy.

SkillMedev/skills

Improves an existing landing page's conversion rate through evidence-first CRO - audit heatmaps and recordings, write structured hypotheses, prioritize with ICE scoring, and run one-variable tests to statistical significance. Use when someone asks "why isn't my landing page converting", "audit this page before we scale spend", "which A/B test should we run first", or after a CVR drop or ahead of a paid-traffic push. Do NOT use for writing a new landing page from scratch - use landing-page-copy instead. Do NOT use for auditing the ad accounts sending the traffic - use paid-acquisition-audit instead. Do NOT use for reading the results of a finished experiment - use ab-test-analyzer instead.

SkillMedev/skills

Runs structured coaching sessions using values clarification and the GROW model, ending every session with one committed action, a deadline, and an if-then plan for the likely obstacle. Use when someone says "I feel stuck in my life", "help me figure out what I want", "hold me accountable to my goals", or "coach me through this decision". Do NOT use for building a stress toolkit - use stress-management instead - or a journaling practice - use journal-framework; for a standing goal-tracking system, use goals-accountability. Coaching, not therapy: signs of clinical distress route to a licensed professional.

SkillMedev/skills

Adapts English content for a target language and region - swapping idioms, setting the right formality register, replacing cultural references, converting dates, units, and currency - and delivers the localized text with a notes column explaining each adaptation and flagging what needs a native reviewer. Use when someone asks "localize this copy for the Japanese market", "adapt our marketing copy for the Mexican market", "make this translation sound native instead of literal", or a literal translation reads foreign, stiff, or risky. Do NOT use for auditing in-product UI text quality - use ux-writing-audit instead.

SkillMedev/skills

Turns a natural-language video brief into a complete, ready-to-preview Remotion composition - extracts duration, scenes, brand colors, aspect ratio, and real copy; plans the frame budget; and writes data-driven React/TypeScript using useCurrentFrame, interpolate, spring, AbsoluteFill, and Sequence, registered in Root.tsx. Use when someone says "build a 20-second product demo video", "animate a feature walkthrough", "write the Remotion code for this marketing clip", or wants a scene-by-scene composition they can scrub in Studio. Do NOT use for rendering, iterating, or batching the finished MP4 - use remotion-render instead - or for installing and scaffolding the project - use remotion-setup instead.

SkillMedev/skills

Scaffolds a new Remotion video project wired for Claude Code Agent Skills - Node check, create-video scaffold, skills install, folder conventions, Google Fonts, and a smoke-test render. Use whenever someone wants to start making videos with Remotion and Claude, even just "make product videos with Claude.

SkillMedev/skills

Classifies incident severity (SEV1-4) using impact, scope, and urgency signals and decides who to page. Use when an alert fires or a report comes in and a severity call must be made quickly.

SkillMedev/skills

Use the Skill Me catalog from inside any conversation - discover, install, and manage Claude skills through the Skill Me MCP, and load installed skills automatically each session.

SkillMedev/skills

Write one platform-native caption from a topic and brand voice, with a front-loaded hook, native length, and a single earned CTA. Use when the user gives a topic (and optionally brand voice or a described image/video) and asks for an Instagram, LinkedIn, X/Twitter, or TikTok caption. Do NOT use when the user wants a dedicated standalone LinkedIn post - use linkedin-post-writer instead; or a multi-post X thread - use tweet-thread-builder instead; or to adapt one existing piece of content into versions for several channels - use cross-platform-reformatter instead.

SkillMedev/skills

Reframe and export a finished video for social platforms - 9:16 ↔ 16:9 cropping, burned-in captions, a platform-native first frame, loop design, and per-platform specs (aspect, length, safe areas) for TikTok, Reels, Shorts, X, and LinkedIn. Use when someone says "make this vertical", "crop to 9:16", "format for TikTok/Reels/Shorts", "add captions/subtitles", "why is my video cut off on mobile", "resize for Instagram", or "export for social". Do NOT use when the question is about the storyboard or shot order before any video exists (use video-storyboard); the animation craft of how elements move (use motion-design-principles); animated word-by-word caption styling (use kinetic-typography); palette, contrast, or lighting (use motion-color-and-light); directing the product-demo content and screen choreography (use product-demo-director); or scoring, beat-syncing, or audio (use sound-and-music-sync) - this is the craft layer that decides WHAT to format for the feed, then hands a concrete spec to remotion-compo...

SkillMedev/skills

Writes and tunes PySpark jobs - join strategy and broadcast size limits, shuffle-partition sizing, skew diagnosis and salting, UDF avoidance, caching, and output file layout - with concrete size and skew thresholds. Use when someone asks "why is my Spark job slow", "should I broadcast this join", "one task takes forever while the rest finish", "my job OOMs during a join", or is writing a new PySpark ETL job. Do NOT use for Kafka topic, consumer-group, or streaming-pipeline design - use kafka-pipelines instead; do NOT use for single-machine dataframe work that fits in memory - use pandas-expert instead.

SkillMedev/skills

Builds clean, performant, accessible SwiftUI views with correct state ownership, scoped invalidation, and smooth list scrolling, and reviews existing SwiftUI code against a concrete frame-time and re-render budget. Use when someone asks "why does my SwiftUI list stutter", "should this be @State or @Observable", "my whole screen re-renders when one row changes", "how do I animate this transition", or wants a SwiftUI view built or refactored. Do NOT use for cross-platform React Native apps - use react-native-pro instead; do NOT use for Flutter widget trees - use flutter-widget-architect instead; do NOT use for Android Compose UIs - use jetpack-compose-builder instead.

Verwandte Skills