Langsung ke konten
Skillpedia
Gambar & ikon33k Β· #8699

patentfig

Fungsinya

Skill ini memungkinkan agent AI Anda menggunakan layanan PatentFig untuk membuat gambar garis paten dan mengubahnya menjadi format yang siap diajukan. Skill ini ditujukan untuk penemu dan pengaju paten yang memerlukan gambar.

Kapan dipakai

  • βœ“Saat Anda memerlukan gambar paten yang dibuat dari deskripsi tertulis tentang penemuan Anda.
  • βœ“Saat Anda ingin sketsa kasar diubah menjadi seni vektor yang bersih untuk penggunaan CAD.
  • βœ“Saat Anda perlu mengubah gambar menjadi TIFF atau PDF untuk pengajuan paten.

Link skill

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/creative-design/patentfig/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/creative-design/patentfig/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBuatkan gambar paten yang menunjukkan tampak depan dan tampak samping kursi lipat saya.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent mengirim deskripsi Anda ke layanan PatentFig melalui API-nya. Setiap gambar dibuat dengan satu permintaan, dan layanan mengembalikan tautan ke file jadi.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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: true adds 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.url is the figure; with output: "svg" the full SVG source is also in data.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 429 back 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 β€” suggest POST /figures with the photo as referenceImageUrls instead).
  • Before a batch of billable calls, check GET /credits and confirm the balance covers it.
Pertanyaan umum

Apa yang saya perlukan untuk memulai?

Anda memerlukan API key PatentFig yang tersimpan di lingkungan Anda. Agent dapat memberi tahu Anda di mana cara membuatnya.

Berapa kredit yang digunakan untuk satu gambar?

Skill menyebut satu pembuatan gambar menggunakan 10 kredit, dan Anda dapat memeriksa saldo dengan panggilan gratis.

Apakah gambarnya siap diajukan?

Layanan berupaya mengikuti aturan kantor paten, tetapi Anda tetap harus memeriksa gambar terhadap aturan kantor paten tujuan Anda.

Detail

Deskripsi asli dari pembuat

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.

repo: davila7/claude-code-templates

Popularitas

Bintang GitHub
33k
Peringkat
#8699
Lisensi
MIT
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa