tray-visao-geral

tray-visao-geral is a skill for Claude Code from tray-tecnologia/tray-api-ai-plugin. It costs 81 tokens per session (1,974 once invoked), scanned A, original, MIT.

A starting guide for integrating with Tray’s e-commerce API. It covers shared rules such as OAuth login, access tokens, request formats, token expiry, rate limits, and Brazilian data validation.

In plain words
What is it for?
Use it to identify the correct Tray integration guide, authenticate requests, pass tokens correctly, format resource payloads, and check platform limits.
Why use it?
It provides the platform-wide rules before you choose a guide for a specific resource such as products, orders, customers, or shipping.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter.

Part of the tray-api plugin — 36 skills, 3 commands, 5 agents, 1 MCP server shipped together

Good fit Use it to identify the correct Tray integration guide, authenticate requests, pass tokens correctly, format resource payloads, and check platform limits.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tray-tecnologia/tray-api-ai-plugin/visao-geral
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tray-tecnologia/tray-api-ai-plugin --skill visao-geral
Clone the repo
git clone --depth 1 https://github.com/tray-tecnologia/tray-api-ai-plugin

Made for: Claude Code.

Or install tray-api, the plugin that ships this one along with the rest of its 36 skills, 3 commands, 5 agents, 1 MCP server.

Wrote 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.

agentmods badge for tray-visao-geral

README.md
[![agentmods](https://agentmods.dev/badge/skills/tray-tecnologia/tray-api-ai-plugin/visao-geral/github.svg)](https://agentmods.dev/skills/tray-tecnologia/tray-api-ai-plugin/visao-geral)
Your own site
<a href="https://agentmods.dev/skills/tray-tecnologia/tray-api-ai-plugin/visao-geral"><img src="https://agentmods.dev/badge/skills/tray-tecnologia/tray-api-ai-plugin/visao-geral/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.

agentmods 80×15 button for tray-visao-geral

Your own site · 80×15
<a href="https://agentmods.dev/skills/tray-tecnologia/tray-api-ai-plugin/visao-geral"><img src="https://agentmods.dev/badge/skills/tray-tecnologia/tray-api-ai-plugin/visao-geral.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,974 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00081 $0.01974
Opus 5 $0.00041 $0.00987
Sonnet 5 $0.00016 $0.00395
Haiku 4.5 $0.00008 $0.00197

Measured 12d ago against content hash 258e40461da5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

tray-visao-geral 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 12d 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.

skills/visao-geral/SKILL.md · 165 lines

How it starts

The opening of the file, as written. The whole thing — 165 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Antes de responder

Execute estas verificações antes de gerar qualquer payload ou código:

  1. Confirme que o pedido envolve a API Tray (não confunda com outras APIs de e-commerce). Se não for Tray, redirecione.
  2. Identifique o recurso (produto, pedido, cliente, frete, etc.) e carregue a skill específica antes de responder com detalhes.
  3. Verifique que access_token, consumer_key, consumer_secret e refresh_token não aparecem como literais no código gerado.
  4. Confirme que o payload, se houver, está envolvido na chave do recurso ({"Product": {...}}, {"Order": {...}}, {"Customer": {...}}).
  5. Confirme que o access_token é passado como query parameter (?access_token={token}), nunca como header.

Visão Geral — API Tray

Documentação oficial: https://developers.tray.com.br

Regras invariantes da plataforma

Estas regras valem para toda chamada à API Tray e devem ser aplicadas mesmo que a skill do recurso específico não as repita.

1. Autenticação OAuth 2.0

Token Vida útil Como renovar
access_token 3 horas GET /auth?consumer_key=...&refresh_token=...
refresh_token 30 dias Refazer fluxo OAuth completo
  • Sempre passado como query parameter: ?access_token={token}.
  • Nunca como header (Authorization: Bearer ... não funciona na API Tray).
  • Nunca hardcoded no código — sempre via variável de ambiente.

Detalhes do fluxo de 3 etapas em skills/autorizacao/SKILL.md.

2. URL base por loja

https://{api_address}/<recurso>?access_token={token}

api_address varia por loja e é retornado no callback OAuth da Etapa 2. Armazene junto com os tokens.

Atenção — api_address já contém /web_api. O valor retornado no callback é o domínio da loja + /web_api (ex.: urldaloja.com.br/web_api), conforme a doc oficial (api_address = {URL da loja}/web_api). Logo a URL final de qualquer recurso é https://urldaloja.com.br/web_api/<recurso> — o {api_address} dos exemplos das skills já embute o /web_api, por isso os exemplos não o repetem. Armazene o api_address exatamente como veio do callback (com o /web_api); guardar só urldaloja.com.br e montar https://urldaloja.com.br/<recurso> resulta em HTTP 404.

Read the full file on GitHub · 165 lines

Changes

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.

  1. 12d ago First seen · 165 lines · 81 tokens per session scan A 258e40461da5

Subscribe to this mod's changes

tray-visao-geral is a skill published in the GitHub repository tray-tecnologia/tray-api-ai-plugin (15 stars, last pushed 1mo ago), licensed MIT. It adds 81 tokens to every session and 1,974 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.