patentfig
Was er macht
Dieser Skill lässt deine KI den Dienst PatentFig nutzen, um Patent-Strichzeichnungen zu erstellen und sie in anmeldefertige Formate umzuwandeln. Er ist für Erfinder und Patentanmelder gedacht, die Abbildungen brauchen.
Wann du ihn nutzt
- ✓Wenn du eine Patentzeichnung aus einer schriftlichen Beschreibung deiner Erfindung brauchst.
- ✓Wenn du eine grobe Skizze in saubere Vektorgrafik für CAD-Nutzung umwandeln willst.
- ✓Wenn du eine Abbildung für eine Patentanmeldung in TIFF oder PDF umwandeln musst.
Link zum Skill
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/creative-design/patentfig/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Erstelle eine Patentabbildung, die eine Vorderansicht und eine Seitenansicht meines Klappstuhls zeigt.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Agent schickt deine Beschreibung über die API an den Dienst PatentFig. Jede Abbildung entsteht mit einer Anfrage, und der Dienst liefert einen Link zur fertigen Datei zurück.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
PatentFig AI API
Generate and convert patent figures through the PatentFig AI REST API.
- Base URL:
https://patentfig.ai/api/v1 - Auth:
Authorization: Bearer $PATENTFIG_API_KEY - All endpoints are synchronous and return JSON:
{ "success": true, "data": {...} }on success,{ "success": false, "error": { "code", "message" } }on failure. - Generated files are returned as URLs on
https://cdn.patentfig.ai— pass them to the user or feed them into follow-up calls.
Setup
The key comes from the PATENTFIG_API_KEY environment variable. Never hardcode it, print it, or write it into files or logs.
If the variable is not set, tell the user to create a key at https://patentfig.ai/settings/api-keys (requires a PatentFig AI account; keys start with pfig_) and export it:
export PATENTFIG_API_KEY="pfig_..."
Verify connectivity and credit balance (free call):
curl -s https://patentfig.ai/api/v1/credits \
-H "Authorization: Bearer $PATENTFIG_API_KEY"
# → { "success": true, "data": { "balance": 500 } }
Generate a patent figure (10 credits)
POST /figures — the core endpoint. One prompt → one figure. Views, diagram type, and composition are all controlled through the prompt; for a multi-view set (front/side/top), make one call per view.
curl -s -X POST https://patentfig.ai/api/v1/figures \
-H "Authorization: Bearer $PATENTFIG_API_KEY" \
-H "Content-Type: application/json" \
--max-time 300 \
-d '{
"prompt": "Exploded view of a wireless earbud charging case showing lid, hinge, charging coil, and battery",
"output": "svg",
"labeled": true
}'
output:"png"(raster figure) or"svg"(stroke-based line art, CAD-friendly). Default"png".labeled: trueadds patent-style numeric reference callouts (100, 102, …).referenceImageUrls: up to 4 public image URLs (sketch/photo/prior figure) used as the structural baseline.- Response
data.urlis the figure; withoutput: "svg"the full SVG source is also indata.svg.
Prompting tips: name the parts to draw (names tell the model WHAT to draw, not what to label); for flowcharts/block diagrams, name every node explicitly.
Convert an existing image
All three endpoints accept either JSON with imageUrl (public URL) or multipart/form-data with a file field (PNG/JPEG/WebP/TIFF, ≤10 MB).
Vectorize (20 credits) — raster → SVG / DXF / vector PDF:
curl -s -X POST https://patentfig.ai/api/v1/vectorize \
-H "Authorization: Bearer $PATENTFIG_API_KEY" \
-H "Content-Type: application/json" \
--max-time 300 \
-d '{ "imageUrl": "https://example.com/drawing.png", "format": "dxf", "engine": "lineart" }'
engine: "lineart" (default) redraws as clean single-stroke patent line art — use for CAD/DXF. engine: "trace" reproduces the input pixels faithfully, preserving fills — use when output must match the original.
Enhance (20 credits) — AI super-resolution: POST /enhance with scale (2 or 4, controls pixels) and dpi (300 or 600, metadata stamp only).
Convert (20 credits) — filing-ready raster: POST /convert with format (png/tiff/pdf) and dpi (300 or 600).
Full parameter tables for every endpoint: see references/endpoints.md. Machine-readable spec: https://patentfig.ai/api/openapi.yaml
Operational rules
- Set a client timeout of at least 300 seconds — generation and vectorization take from ~20s up to a few minutes.
- Credits are charged only on success; retrying a failed call never double-bills.
- Rate limit: 60 requests/minute per key. On
429back off (start at 5s) and retry. - On
402 INSUFFICIENT_CREDITS, stop and tell the user to top up at https://patentfig.ai/pricing. - On
500 GENERATION_FAILED, one retry is reasonable; persistent failures usually mean the input doesn't suit the pipeline (e.g., a photo sent for line-art vectorization — suggestPOST /figureswith the photo asreferenceImageUrlsinstead). - Before a batch of billable calls, check
GET /creditsand confirm the balance covers it.
Häufige Fragen
Was brauche ich für den Start?
Du brauchst einen PatentFig-API-Schlüssel in deiner Umgebung. Der Agent kann dir sagen, wo du ihn erstellst.
Wie viele Credits kostet eine Abbildung?
Der Skill nennt zehn Credits pro Abbildung. Deinen Kontostand kannst du mit einem kostenlosen Aufruf prüfen.
Sind die Abbildungen anmeldefertig?
Der Dienst orientiert sich an den Vorgaben des Patentamts. Du solltest die Abbildungen aber trotzdem anhand der Regeln deines Anmeldeamts prüfen.
Details
Originalbeschreibung des Autors
Generate patent-office-compliant figures via the PatentFig AI API — patent line art from text (PNG or SVG), vectorize drawings to SVG/DXF/vector PDF, AI-upscale images, and convert to filing-ready TIFF/PDF/PNG. Use when the user asks for patent drawings, patent figures, invention diagrams, USPTO/EPO-compliant line art, vectorizing a drawing for CAD, or preparing figures for a patent filing. Requires a PATENTFIG_API_KEY environment variable.
Beliebtheit
- GitHub-Sterne
- 33k
- Platz im Ranking
- #8699
- Lizenz
- MIT
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
owasp-security
33kBringt deinem Agenten OWASP-Sicherheitsrichtlinien für Web-Apps, APIs, mobile Apps, Container und KI-Agenten bei, damit er typische Schwachstellen erkennt und Korrekturen vorschlägt.
agent-management
33kLässt deinen Agenten KI-Agenten mit der AI-Maestro-Kommandozeile erstellen, auflisten, pausieren, aufwecken, umbenennen und löschen und so ihren Lebenszyklus verwalten.
agent-messaging
33kLässt deinen Agenten signierte Nachrichten zwischen KI-Agenten senden, empfangen und beantworten, über das Agent Messaging Protocol, überwiegend auf deinem eigenen Rechner.
docs-search
33kLässt deinen Agenten automatisch erzeugte Code-Dokumentation nach Funktionssignaturen, Klassendefinitionen und Kommentaren durchsuchen und so die echte API prüfen, bevor er Code ändert.
Ähnliche Skills
gifgrep
394kLässt deinen Agenten GIF-Bibliotheken durchsuchen, Ergebnisse vorab ansehen, ein GIF herunterladen und ein Einzelbild oder ein Kontaktblatt mit Bildern herausziehen.
meme-maker
394kLässt deinen Agenten eine Vorlage für ein Meme auswählen, eigene Beschriftungen hinzufügen und das Meme als SVG- oder PNG-Bild erstellen.
ios-icon-gen
280kHilft deinem Agenten, Icons für iOS-Apps zu erstellen. Er nutzt Apple-Symbole oder Icons aus anderen Quellen und erzeugt die richtigen Dateien.