Langsung ke konten
Skillpedia
Prompt & LLM7.0k Β· #13702

write-provider-skill

Fungsinya

Skill ini menjelaskan cara menulis skill untuk API satu platform, dengan mencantumkan endpoint yang penting dan jebakan yang menghasilkan hasil salah. Skill ini ditujukan untuk orang yang ingin agent mereka bekerja dengan baik pada API platform melalui proxy.

Kapan dipakai

  • βœ“Saat Anda ingin agent melakukan pekerjaan nyata pada API platform seperti layanan iklan atau analitik.
  • βœ“Saat skill penyedia yang ada perlu diperiksa atau diperluas dengan endpoint baru.
  • βœ“Saat agent terus mendapat error ID atau host dari sebuah platform dan memerlukan panduan yang jelas.

Link skill

https://github.com/superdesigndev/treg/blob/main/.agents/skills/write-provider-skill/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/superdesigndev/treg/blob/main/.agents/skills/write-provider-skill/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

β€œBisakah Anda menulis skill yang membantu agent saya menggunakan API LinkedIn dengan baik, termasuk kesalahan yang sering dibuatnya?”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent memetakan endpoint yang penting untuk pekerjaan umum, lalu mencatat jebakannya: jawaban salah tanpa error, error yang menyesatkan, ID yang sulit ditebak, dan batas kemampuan. Agent mengurutkannya agar kesalahan yang paling mahal muncul lebih dulu.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

Writing a provider skill

A provider skill is an MCP server made of documentation. An MCP server gives a model a tool list and typed parameters. We can't ship a server per platform, so the skill carries the same payload as prose: which endpoints matter, what the parameters really are, and where the API lies to you.

The third part is the one MCP can't give you, and it's where nearly all the value is.

The rule that decides what goes in

Document what produces a wrong answer without producing an error.

Ranked by value to an agent:

Class Why it matters Example
Silent wrong answers Agent reports confidently false results. Unrecoverable alone. GA4: incompatible dimension+metric returns "0" per row, not an error β€” reads as "no revenue"
Wrong-shaped errors Error doesn't describe the real cause, so retries go sideways GA4: bad path returns a Google HTML 404 page, not JSON β€” a JSON parse throws something unrelated
Unguessable identifiers Agent invents an ID and gets 403/404 forever GA4 needs properties/123456789; GSC needs sc-domain:x.com vs https://x.com/
Host splits Endpoint exists but not on the bound host GA4 Admin API is analyticsadmin, tool is bound to analyticsdata β†’ 404
Capability limits Agent attempts work the scope can't do GA4 connection is read only
Endpoint list Findable in official docs β€”

Anything in the bottom row: link to the docs, don't restate them. A skill that paraphrases the API reference is worse than a URL β€” it goes stale and it's longer.

Verification protocol β€” non-negotiable

Every endpoint and every example body in the skill must have been executed. Not adapted from docs, not plausible β€” run.

scripts/dev-local.sh up
scripts/dev-local.sh cli connections ls          # confirm health + resource_ref
scripts/dev-local.sh cli call <provider> <path>  # always via /call/, never direct

Call through /call/ rather than curl-with-a-token: that exercises binding injection, token refresh, and the audit trail, which is where treg bugs surface.

Mark every endpoint βœ… verified or ⚠️ unverified, and date the skill. An unverified endpoint is allowed β€” an unmarked one is not.

Read the audit log when something 404s. It records the exact upstream URL, which catches client-side path mangling that the terminal output hides:

sqlite3 treg-dev.db "select method,path,status_code from callrecord order by id desc limit 5"

That's how the zsh :r bug below was found: the terminal showed a plausible Google error, the audit log showed the request had gone to ...123456789unRealtimeReport.

Write-side testing

Read endpoints: call freely. Write endpoints publish real things to real accounts and are not reversible. Before any POST/PUT/DELETE that creates content or spends money:

  1. Get an explicit designated target from the human (throwaway account, sandbox ad account)
  2. Get explicit per-provider go-ahead
  3. If neither exists, mark the endpoint ⚠️ unverified and document it from the API reference

Never publish to a production account to satisfy a checkbox.

Skill structure

Follow this order β€” it matches how an agent actually reads under time pressure:

frontmatter: name + description (description = the trigger; list the words a user would say)
# <Platform> via treg
  one line: you call X through treg's proxy, you never hold a credential
  "All examples verified live on <date>"
## Setup (once per team)      β€” connect command, what capability you get
## Which <resource> to use    β€” how to READ the id, never guess it
## The endpoints              β€” table: path | method | purpose | verified?
## Common jobs                β€” 4-6 real tasks, full runnable bodies
## Reading the response       β€” shape gotchas (positional arrays, strings-not-numbers, timezone)
## Pitfalls                   β€” the silent-wrong-answer list. The most valuable section.
## Full documentation         β€” links out

Pitfall classes that recur across providers

Check each one explicitly when building a new skill. Confirmed on GA4; expected but unconfirmed elsewhere until tested.

  • Host split β€” is there an admin/management API on a different hostname than the data API? The tool's base_url binds one host; the other is unreachable via /call/. Expect this on Google Ads (googleads vs googleadsapi surfaces) and Meta (graph vs business).
  • **Resource i
Pertanyaan umum

Apa aturan utama untuk apa yang disertakan?

Skill ini menyebutkan untuk mendokumentasikan apa pun yang memberi jawaban salah tanpa error, karena itu yang paling sulit dideteksi.

Apakah ini server MCP?

Skill ini menggambarkan skill penyedia sebagai server mirip MCP yang terdiri dari dokumentasi.

Platform apa saja yang disebut sebagai contoh?

Contohnya termasuk Google Ads, LinkedIn, Meta Ads, TikTok, X, Instagram, dan Search Console.

Detail

Deskripsi asli dari pembuat

Build a treg provider skill β€” the endpoint map + mistake map that lets an agent do real work on a platform API through treg's proxy. Use when adding a skill for a connected provider (Google Ads, LinkedIn, Meta Ads, TikTok, X, Instagram, Search Console), or when an existing provider skill needs verifying or extending.

repo: superdesigndev/treg

Popularitas

Bintang GitHub
7.0k
Peringkat
#13702
Lisensi
β€”
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa