write-provider-skill
하는 일
이 스킬은 한 플랫폼 API를 위한 스킬을 쓰는 방법을 설명합니다. 중요한 엔드포인트와 잘못된 결과를 낳는 함정을 목록으로 정리합니다. 프록시를 통해 에이전트가 플랫폼 API를 잘 쓰기를 원하는 사람들을 위한 스킬입니다.
사용하는 경우
- ✓광고나 분석 서비스 같은 플랫폼 API로 에이전트가 실제 작업을 하게 하고 싶을 때.
- ✓기존 제공자 스킬을 점검하거나 새 엔드포인트를 추가해야 할 때.
- ✓에이전트가 한 플랫폼에서 ID나 호스트 오류를 계속 겪어 명확한 안내가 필요할 때.
스킬 링크
https://github.com/superdesigndev/treg/blob/main/.agents/skills/write-provider-skill/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“에이전트가 LinkedIn API를 잘 쓸 수 있도록, 에이전트가 자주 하는 실수까지 포함해 스킬을 써 주시겠어요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 흔한 작업에 중요한 엔드포인트를 정리한 뒤 함정을 기록합니다. 함정에는 오류 없이 틀린 답을 내는 경우, 오해를 부르는 오류, 추측하기 어려운 식별자, 기능의 한계가 포함됩니다. 가장 큰 비용이 드는 실수가 먼저 오도록 순위를 매깁니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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:
- Get an explicit designated target from the human (throwaway account, sandbox ad account)
- Get explicit per-provider go-ahead
- 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_urlbinds one host; the other is unreachable via/call/. Expect this on Google Ads (googleads vs googleadsapi surfaces) and Meta (graph vs business). - **Resource i
자주 묻는 질문
무엇을 포함할지 정하는 기본 원칙은 무엇인가요?
스킬은 오류 없이 잘못된 답을 내는 경우를 문서화하라고 합니다. 이런 문제는 발견하기 가장 어렵기 때문입니다.
MCP 서버인가요?
스킬은 제공자 스킬을 문서로 이루어진, MCP와 비슷한 서버라고 설명합니다.
예시로 든 플랫폼은 무엇인가요?
Google Ads, LinkedIn, Meta Ads, TikTok, X, Instagram, Search Console 등이 예로 나옵니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 7.0k
- 순위
- #13702
- 라이선스
- —
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
code-quality
7.0k에이전트가 도구로 규칙을 강제하고 주석은 줄이며, 실패할 수 있는 테스트와 짧은 문서를 쓰도록 돕습니다.
google-ads
7.0k에이전트가 API 버전과 예산 실수를 피하며 Google Ads 보고서를 만들고 캠페인을 안전하게 바꾸도록 돕습니다.
google-analytics
7.0k에이전트가 GA4에서 부분 집계일과 잘못된 0을 피하고 정확한 트래픽, 전환, 매출 수치를 가져오도록 돕습니다.
google-search-console
7.0k에이전트가 Search Console 데이터를 보고하며, 최근의 불완전한 날짜를 하락으로 오해하지 않도록 돕습니다.
비슷한 스킬
writing-skills
311k에이전트를 위한 새 스킬을 작성하고, 각 스킬이 실제로 에이전트의 행동을 바꾸는지 사용하기 전에 테스트하도록 가르칩니다.
writing-for-agents
310k스킬, AGENTS.md, CLAUDE.md 등 AI 에이전트가 읽는 문서를 명확하게 쓰는 방법을 알려 주어 에이전트가 예측 가능하게 행동하도록 돕습니다.
bengali-nlp
280k에이전트가 벵골어 텍스트를 처리하도록 돕습니다. 언어를 이해하고 다루며, 텍스트를 정규화하고 고유한 특징을 처리합니다.