Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/tray-tecnologia/tray-api-ai-pluginnpx agentmods add skills/tray-tecnologia/tray-api-ai-plugin/produtosWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/tray-tecnologia/tray-api-ai-plugin/produtos)<a href="https://agentmods.dev/skills/tray-tecnologia/tray-api-ai-plugin/produtos"><img src="https://agentmods.dev/badge/skills/tray-tecnologia/tray-api-ai-plugin/produtos/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/tray-tecnologia/tray-api-ai-plugin/produtos"><img src="https://agentmods.dev/badge/skills/tray-tecnologia/tray-api-ai-plugin/produtos.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00074 | $0.02139 |
| Opus 5 | $0.00037 | $0.01069 |
| Sonnet 5 | $0.00015 | $0.00428 |
| Haiku 4.5 | $0.00007 | $0.00214 |
Grade A, and why
tray-produtos scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 220 lines — stays where its author put it; the contents beside it link to each section on GitHub.
MANDATORY: Tool Calls Required Before Answering
Estas chamadas são OBRIGATÓRIAS, não opcionais. Execute-as antes de gerar qualquer código ou payload. Se você está respondendo sem ter chamado as duas ferramentas abaixo, pare e chame agora.
1. Buscar documentação atualizada (sempre)
node skills/tray-dev/scripts/search_docs.mjs --topic=produtos "<termo da pergunta>"
<TOPIC_SLUG>: ver tabela emskills/tray-dev/SKILL.md.- Use os trechos retornados como fonte primária; este SKILL.md é resumo.
2. Validar payload localmente (antes de retornar código)
node skills/produtos/scripts/validate.mjs --schema=<SCHEMA_NAME> '<payload_json>'
- Schemas disponíveis:
produto.create,produto.update. Use--list-schemaspara confirmar. - Exit codes:
0válido ·1inválido ·2erro de uso. - Para output programático:
--json. - Corrija todos os erros antes de retornar o código (até 3 tentativas).
Antes de responder
Execute estas verificações antes de gerar qualquer payload ou código:
- Confirme o método HTTP e endpoint correto para a operação solicitada.
- Identifique os campos obrigatórios listados neste documento — não omita nenhum.
- Verifique que
access_tokennão aparece como literal string no código gerado. - Confirme que esta é a skill correta para o recurso (leia
when_not_to_useno frontmatter).
API de Produtos — Tray
Documentação oficial: https://developers.tray.com.br/#api-de-produtos
Endpoints
| Método | Endpoint | Descrição |
|---|---|---|
| GET | /products |
Listagem de produtos com paginação, filtros e ordenação |
| GET | /products/:id |
Consultar dados detalhados de um produto |
| POST | /products |
Cadastrar novo produto |
| PUT | /products/:id |
Atualizar dados do produto |
| DELETE | /products/:id |
Excluir produto |
| DELETE | /kits/:id |
Excluir kit de produto |
Autenticação: ?access_token={token} em todas as chamadas.
Campos do Produto
Dados Básicos
What ships with it
15 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- examples/produto-atualizar.curl.sh 919 B runs code
- examples/produto-atualizar.fixture.json 79 B
- examples/produto-atualizar.node.mjs 1.1 KB runs code
- examples/produto-consultar.curl.sh 668 B runs code
- examples/produto-consultar.node.mjs 912 B runs code
- examples/produto-criar.curl.sh 798 B runs code
- examples/produto-criar.fixture.json 205 B
- examples/produto-criar.node.mjs 1.0 KB runs code
- examples/produto-excluir.curl.sh 849 B runs code
- examples/produto-excluir.node.mjs 1.1 KB runs code
- examples/produto-listar.curl.sh 553 B runs code
- examples/produto-listar.node.mjs 843 B runs code
- schemas/produto.create.json 1.8 KB
- schemas/produto.update.json 1007 B
- scripts/validate.mjs 652 B runs code
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 11d ago First seen · 220 lines · 74 tokens per session scan A fe7f5eaf8ba8
tray-produtos is a skill published in the GitHub repository tray-tecnologia/tray-api-ai-plugin (15 stars, last pushed 29d ago), licensed MIT. It adds 74 tokens to every session and 2,139 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
ontopo
Find restaurants and check table availability in Israel. Search across multiple dates and venues at once, view menus, and get a booking link to finish on Ontopo. Covers dining and restaurant discovery in Tel Aviv, Jerusalem, Haifa, Eilat and 23 more cities. Use for "restaurant reservation", "table booking", "book a…
buywhere-product-catalog
Use BuyWhere's MCP and API surfaces to add product search, price comparison, and deal discovery to AI shopping agents.
buywhere-product-catalog
Use BuyWhere's MCP and API surfaces to add product search, price comparison, and deal discovery to AI shopping agents.
etsy-seo
Etsy shop SEO optimization toolkit. This skill should be used when the user asks to "analyze my Etsy shop", "optimize my Etsy listings", "check my Etsy SEO", "audit Etsy tags", "improve my Etsy sales", "compare Etsy competitors", "update Etsy listing", or mentions anything related to Etsy shop optimization, listing…
etsy-update
Update an Etsy listing's title, description, tags, or materials with a two-phase preview/confirm flow. Shows score impact before applying. Use when the user says "update listing", "change title", "fix tags", "improve listing", or wants to apply SEO improvements.
etsy-audit
Full SEO audit of an Etsy shop. Scores every active listing on title, tags, description, and images (0-100). Identifies worst performers and provides prioritized recommendations. Use when the user says "audit my Etsy shop", "check my Etsy SEO scores", "how are my listings performing", or "which listings need work".