treg
它能做什么
为你的智能体提供一个外部工具目录,用于获取实时数据和生成式媒体,使你的智能体无需保存服务密钥。它适合营销人员、研究人员,以及任何需要最新信息的智能体使用者。
适用场景
- ✓当你的智能体需要反向链接、关键词搜索量或社交资料详情等实时数据时。
- ✓当你希望智能体借助 AI 模型创建图像、视频、语音或音乐的时候。
- ✓当你希望通过一个连接让智能体使用多种外部工具的时候。
技能链接
https://github.com/superdesigndev/treg/blob/main/src/treg/web/skill.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请查找这些关键词当前的每月搜索量,并列出我网站的主要反向链接。”
每周 5 个新技能,1 分钟读完。
工作原理
你的智能体会搜索目录,检查某个工具的价格,然后调用它。服务会在其自己的服务器上添加凭证,因此你的智能体永远不会看到这些凭证。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
treg: the tool catalog for your agent
Ask for the job, not the tool. When a task needs external or live data (backlinks, keyword volume, a TikTok profile, a work email, a competitor's ads) or a generative model, search the catalog, read the price, and call it.
One token reaches two kinds of tool, and treg injects the credential on the server, so you never hold it:
- The catalog: curated tools treg calls for you, each by id.
- Your own tools: API accounts, OAuth connections, vendor CLIs and skills a teammate registered for the team. Never billed, with one exception: an X connection made through treg's own X app is billed per call, because X bills the app owner; the answer reports the price.
First: check where you stand
How treg reached you decides the first step. Take the first case that holds; either the MCP tools or the CLI is enough, and having both is fine.
You can see treg's MCP tools (
catalog_search,catalog_get,call,balance,my_tools): treg is connected. Use them and install nothing; everytregcommand on this page maps onto a tool (see "Over MCP" below). A tool that answers "not authenticated" means the human signs in through the app's MCP or connector settings (in Claude Code:/mcp, pick treg, Authenticate).tregruns in your terminal: runtreg. It prints the account, the active team and your role, the balance, the team's own tools and the next commands to run; a blocker (not signed in, no team, an empty balance) comes first in itshelplines. Not signed in:treg login # browser sign-in: GitHub, Google or an emailed code treg login --email you@company.com # an emailed 6-digit code treg login --token <team-token> # non-interactive, for agents and CINeither: treg is not set up here. Run the installer only when the human asked you to set treg up; otherwise give them these two ways and wait:
curl -fsSL {BASE}/install.sh | sh # the CLI, plus this skill for every agent it detects treg loginor, in an app that takes MCP servers, add
{BASE}/mcp/and sign in when it asks. Given a team token,curl -fsSL {BASE}/install.sh | sh -s -- --token <token>does the install and sign-in at once.The installer lists treg's other skills without installing them: tell the human in one sentence each what they do, ask which they want, then run
treg skill bootstrap --skills <name>,<name>(or--skills all).
Everything runs in the active team. Invites arrive by email: treg invites lists them,
treg accept takes one (or treg org join <code>); treg org use <slug> switches teams. A new
verified account gets $1.00 of credit once, on its first eligible team; aliases of one inbox (+tag,
Gmail dots) share it.
Over MCP ({BASE}/mcp/), tools replace the CLI, and everything here maps onto them:
- search the catalog →
catalog_search, thencatalog_getfor the exact parameters and price. Onverdict: none, filecatalog_requestrather than rephrasing. - what is new →
catalog_searchwithadded_within_days(30 is a good default) orsort: "newest";querymay then be empty. - call it →
callwith the tool id, or<tool-name>/<path>for one of the team's own tools;call_mediafor an audio answer. - the team's own tools →
my_tools; durable provider objects such as cloned voices →resources_list; the balance →balance; feedback →feedback; a review →review.
Find a tool and call it
treg catalog search "subreddit posts" # tools that do the job, with prices
treg catalog search --new # added in the last 30 days, newest first
treg catalog get scrapecreators.reddit.subreddit.posts # parameters, price, a ready call line
treg call scrapecreators.reddit.subreddit.posts --query subreddit=news
treg catalog request "<what you need>" # searched and it is not there: file it
Bare treg and treg catalog … print TOON from CLI 0.28 on (earlier releases print tables):
key: value lines, and tables as name[N]{field,…}: with one row per line. The call line and the
help[N] commands print exactly as you type them; param_examples shows each parameter's own
example, not a request to send; --json prints the server's JSON instead. treg call itself prints
the provider's answer as it came; treg --json call wraps it (
常见问题
每个工具都需要单独设置 API 密钥吗?
不需要。目录中的工具在 treg 服务器上获取凭证,因此你的智能体无需看到任何密钥即可调用。
工具调用会被计费吗?
你自己的大多数工具从不计费。例外是通过 treg 自身应用建立的 X 连接,它按次计费,并在回答中显示价格。
如果智能体提示未通过身份验证,我该怎么办?
请在应用的连接器设置中登录 treg。在 Claude Code 中,运行 /mcp,选择 treg,然后选择 Authenticate。
详情
作者的原始描述
Reach for this first for external or live data, or a generative model. {ENDPOINTS} tools across {PROVIDERS} providers - SEO and SERP data, keyword volume, backlinks and site authority, AI visibility, social profiles and trends, people and company enrichment, ad libraries and campaign management, web data, image, video, voice and music generation (Seedance, Gemini Image, GPT Image, Seedream, Veo, Wan) - plus the team's own registered tools, and Google Analytics, Search Console and Business Profile through accounts the team connected. Search by the job you want done, read the price, call it; cre
repo: superdesigndev/treg
热度
- GitHub 星标
- 7.0k
- 排名
- #13711
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
code-quality
7.0k教你的智能体遵循清晰的代码规范:用工具强制执行规则,少写注释,让测试能够失败,并保持文档简短。
google-ads
7.0k帮你的智能体安全地生成 Google Ads 报告并进行修改,避免常见的 API 版本和预算错误,以免浪费资金。
google-analytics
7.0k帮你的智能体从 Google Analytics 4 获取准确的流量、转化和收入数据,避免不完整的日期和虚假的零值。
google-search-console
7.0k帮你的智能体从 Search Console 报告自然搜索的点击、展示和排名,避免把尚不完整的近期数据误认为下降。