tray-pedidos

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

Uma integração com a API de pedidos da Tray, uma plataforma de comércio eletrónico. Permite acompanhar e alterar pedidos e os produtos incluídos neles.

In plain words
What is it for?
Serve para listar e consultar pedidos, criar, atualizar e cancelar pedidos, e gerir os produtos de cada pedido.
Why use it?
Evita implementar manualmente cada operação do ciclo de um pedido e reduz dúvidas sobre filtros, estados e campos disponíveis.

Skill for Claude Code

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node skills/tray-dev/scripts/search_docs.mjs --topic=pedidos "<termo da pergunta>".

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

Good fit Serve para listar e consultar pedidos, criar, atualizar e cancelar pedidos, e gerir os produtos de cada pedido.

Compare 6 skills from other repositories ↓
Install

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.

Clone the repo
git clone --depth 1 https://github.com/tray-tecnologia/tray-api-ai-plugin
agentmods
npx agentmods add skills/tray-tecnologia/tray-api-ai-plugin/pedidos

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-pedidos

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/tray-tecnologia/tray-api-ai-plugin/pedidos"><img src="https://agentmods.dev/badge/skills/tray-tecnologia/tray-api-ai-plugin/pedidos.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,568 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.00066 $0.01568
Opus 5 $0.00033 $0.00784
Sonnet 5 $0.00013 $0.00314
Haiku 4.5 $0.00007 $0.00157

Measured 10d ago against content hash 6fe1e3e95533, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

tray-pedidos 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 10d ago.

The scan reads SKILL.md. This mod also ships 11 executable files (examples/pedido-atualizar.curl.sh, examples/pedido-atualizar.node.mjs, examples/pedido-cancelar.curl.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/pedidos/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.

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=pedidos "<termo da pergunta>"
  • <TOPIC_SLUG>: ver tabela em skills/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/pedidos/scripts/validate.mjs --schema=<SCHEMA_NAME> '<payload_json>'
  • Schemas disponíveis: pedido.create, pedido.update. Use --list-schemas para confirmar.
  • Exit codes: 0 válido · 1 inválido · 2 erro 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:

  1. Confirme o método HTTP e endpoint correto para a operação solicitada.
  2. Identifique os campos obrigatórios listados neste documento — não omita nenhum.
  3. Verifique que access_token não aparece como literal string no código gerado.
  4. Confirme que esta é a skill correta para o recurso (leia when_not_to_use no frontmatter).

API de Pedidos — Tray

Documentação oficial: https://developers.tray.com.br/#apis-de-pedidos

Endpoints

Método Endpoint Descrição
GET /orders Listagem de pedidos com paginação e filtros
GET /orders/:id Dados do pedido por ID
GET /orders/:id/full Dados completos (produtos, cliente, pagamento, frete)
POST /orders Cadastrar novo pedido
PUT /orders/:id Atualizar dados do pedido
PUT /orders/:id/cancel Cancelar pedido
POST /orders/:id/products Incluir produtos no pedido
DELETE /orders/:id/products/:product_id Excluir produto do pedido

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. 10d ago First seen · 165 lines · 66 tokens per session scan A 6fe1e3e95533

Subscribe to this mod's changes

tray-pedidos is a skill published in the GitHub repository tray-tecnologia/tray-api-ai-plugin (15 stars, last pushed 28d ago), licensed MIT. It adds 66 tokens to every session and 1,568 once invoked, about $0.0003 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.

Related

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…

alexpolonsky/agent-skill-ontopo · 124 tokens

buywhere-product-catalog

Use BuyWhere's MCP and API surfaces to add product search, price comparison, and deal discovery to AI shopping agents.

aboalrejal-ai/skills · 30 tokens

buywhere-product-catalog

Use BuyWhere's MCP and API surfaces to add product search, price comparison, and deal discovery to AI shopping agents.

sinhoneyy/master-skills · 30 tokens

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…

abutun/etsy-seo-optimizer · 110 tokens

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.

abutun/etsy-seo-optimizer · 60 tokens

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

abutun/etsy-seo-optimizer · 71 tokens