tray-dev

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

A local search tool for the official Tray developer documentation. It finds current API endpoints, parameters, data formats, examples and error codes from Tray's documentation.

In plain words
What is it for?
Use it to look up how to call a Tray API endpoint, which fields to send, what response to expect or how to interpret an API error.
Why use it?
It avoids relying on documentation copies that may be out of date when the Tray API changes.

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 look up how to call a Tray API endpoint, which fields to send, what response to expect or how to interpret an API error.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tray-tecnologia/tray-api-ai-plugin/tray-dev
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 tray-dev
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-dev

README.md
[![agentmods](https://agentmods.dev/badge/skills/tray-tecnologia/tray-api-ai-plugin/tray-dev.svg)](https://agentmods.dev/skills/tray-tecnologia/tray-api-ai-plugin/tray-dev)
Your own site
<a href="https://agentmods.dev/skills/tray-tecnologia/tray-api-ai-plugin/tray-dev"><img src="https://agentmods.dev/badge/skills/tray-tecnologia/tray-api-ai-plugin/tray-dev.svg" alt="Measured on agentmods" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,668 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.00054 $0.01668
Opus 5 $0.00027 $0.00834
Sonnet 5 $0.00011 $0.00334
Haiku 4.5 $0.00005 $0.00167

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

Security

Grade A, and why

tray-dev 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 8d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/search_docs.mjs), 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/tray-dev/SKILL.md · 148 lines

How it starts

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

Antes de responder

  1. Identifique o termo de busca a partir da pergunta do usuário

  2. Rode:

    node skills/tray-dev/scripts/search_docs.mjs "<termo>"
    
  3. Use os resultados como fonte primária. Cite o link âncora retornado.

  4. Se a busca retornar 0 resultados, avise o usuário e use seu conhecimento como fallback explicitamente sinalizado.

  5. Se precisar restringir a um recurso, use --topic=<slug> (ver lista de tópicos).

  6. Se precisar de output programático, use --json.

Visão geral

tray-dev indexa localmente https://developers.tray.com.br (fetch + cache 24h) e oferece busca lexical (BM25) sobre todos os endpoints, campos, exemplos e códigos de erro da API Tray, em < 100 ms p95 com cache quente. Substitui a documentação estática que envelhece entre releases.

A primeira execução faz fetch da página pública (~1,6 MB de HTML), converte para Markdown (~660 KB), parseia em ~820 seções (H1/H2/H3) e indexa em ~/.cache/tray-plugin/dev-docs/. Execuções subsequentes (24h) usam cache.

CLI

Sintaxe

node skills/tray-dev/scripts/search_docs.mjs "<query>"
node skills/tray-dev/scripts/search_docs.mjs --topic=<slug> "<query>"
node skills/tray-dev/scripts/search_docs.mjs --json "<query>"
node skills/tray-dev/scripts/search_docs.mjs --limit=<n> "<query>"
node skills/tray-dev/scripts/search_docs.mjs --no-cache "<query>"
node skills/tray-dev/scripts/search_docs.mjs --refresh
node skills/tray-dev/scripts/search_docs.mjs --list-topics
node skills/tray-dev/scripts/search_docs.mjs --help

Flags

Flag Default Descrição
--topic=<slug> (todos) Filtra por recurso (ex.: produtos, pedidos)
--json false Output JSON estruturado
--limit=<n> 5 Máximo de resultados
--no-cache false Força refetch da SPA
--refresh false Re-indexa sem fazer query
--list-topics false Lista tópicos disponíveis
--help false Ajuda

Exit codes

  • 0 query OK (mesmo se 0 resultados)
  • 1 erro de execução (rede falha + sem cache; falha de parse)
  • 2 erro de uso (flag desconhecida, query vazia, topic inexistente)

Read the full file on GitHub · 148 lines

Files

What ships with it

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

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. 8d ago First seen · 148 lines · 54 tokens per session scan A f5f4ace62ab3

Subscribe to this mod's changes

tray-dev is a skill published in the GitHub repository tray-tecnologia/tray-api-ai-plugin (15 stars, last pushed 26d ago), licensed MIT. It adds 54 tokens to every session and 1,668 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-competitors

Search the Etsy marketplace for competing listings and analyze their SEO strategies. Identifies keyword gaps, pricing patterns, and title strategies. Use when the user says "find competitors", "competitor analysis", "what are others doing", "keyword gaps", or "how do I compare to competitors".

abutun/etsy-seo-optimizer · 63 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