write-provider-skill
O que ela faz
Esta skill explica como escrever uma skill para a API de uma plataforma, listando os endpoints que importam e as armadilhas que produzem resultados errados. É para quem quer que seus agentes usem bem a API de uma plataforma por meio de um proxy.
Quando usar
- ✓Quando você quer que um agente faça um trabalho real em uma API de plataforma, como um serviço de anúncios ou de analytics.
- ✓Quando uma skill de provedor existente precisa ser revisada ou estendida com novos endpoints.
- ✓Quando um agente continua recebendo erros de ID ou de host de uma plataforma e precisa de um guia claro.
Link da skill
https://github.com/superdesigndev/treg/blob/main/.agents/skills/write-provider-skill/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Você pode escrever uma skill que ajude meu agente a usar bem a API do LinkedIn, incluindo os erros que ele costuma cometer?”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
O agente mapeia os endpoints que importam para tarefas comuns e depois registra as armadilhas: respostas erradas em silêncio, erros enganosos, identificadores difíceis de adivinhar e limites de capacidade. Ele ordena essas armadilhas para que os erros mais custosos apareçam primeiro.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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
Perguntas frequentes
Qual é a regra principal sobre o que incluir?
A skill diz para documentar o que gera uma resposta errada sem erro, já que esses casos são os mais difíceis de perceber.
É um servidor MCP?
A skill descreve uma skill de provedor como um servidor semelhante a MCP, feito de documentação.
Quais plataformas são citadas como exemplo?
Os exemplos incluem Google Ads, LinkedIn, Meta Ads, TikTok, X, Instagram e Search Console.
Detalhes
Descrição original do autor
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
Popularidade
- Estrelas no GitHub
- 7,0 mil
- Posição no ranking
- #13702
- Licença
- —
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
code-quality
7,0 milEnsina seu agente padrões claros de código: aplicar regras com ferramentas, manter comentários raros, fazer os testes poderem falhar e manter a documentação curta.
google-ads
7,0 milAjuda seu agente a gerar relatórios e fazer alterações no Google Ads com segurança, evitando erros comuns de versão de API e de orçamento que desperdiçam dinheiro.
google-analytics
7,0 milAjuda seu agente a obter números precisos de tráfego, conversões e receita do Google Analytics 4, evitando dias parciais e zeros falsos.
google-search-console
7,0 milAjuda seu agente a relatar cliques, impressões e posições de busca orgânica do Search Console sem confundir dias recentes incompletos com uma queda.
Skills parecidas
writing-skills
311 milEnsina seu agente a escrever novas skills e testar cada uma antes, conferindo se a skill realmente muda o comportamento do agente.
writing-for-agents
310 milExplica como escrever instruções claras para agentes de IA, incluindo skills, arquivos AGENTS.md e CLAUDE.md, para que o agente se comporte de forma previsível.
bengali-nlp
280 milFaz seu agente processar textos em bengali. Ajuda a entender e trabalhar com a língua, normalizando o texto e lidando com suas características únicas.