`src/treg/web/skill.md` is the **product** skill: the operating guide every installed agent carries. It is distinct from the repo-tooling skills under `.agents/skills/` (`.claude/skills` is a symlink to it), which carry `metadata.internal: true` so `npx skills add superdesigndev/treg` offers only what a user should install. **`skill.md` and `llms.txt` split the work.** `llms.txt` is the entry point in the [llms.txt](https://llmstxt.org) format (H1, summary blockquote, prose without headings, ...
10,226 stars
0 votes
0 copies
0 views
Added December 4, 2026
ai-agentsrustgoshellgitapibackend
Works with
claude code
cursor
cli
api
mcp
Security analysis
D50/100
criticalPipes output to a shell interpreter
criticalDownloads and executes remote scripts — classic supply chain attack
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Interface?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/superdesigndev-interface)
---
title: The shippable treg skill and its distribution doors
status: shipped
sources:
- src/treg/web/skill.md
- src/treg/web/integrate.md
- src/treg/web/install.sh
- src/treg/web/skills/make-ugc/SKILL.md
- src/treg/web/skills/lead-signals/SKILL.md
- src/treg/web/skills/web-access/SKILL.md
- src/treg/web/skills/recruit/SKILL.md
- src/treg/web/skills/doomscroll/SKILL.md
- src/treg/web/skills/jev-memory/SKILL.md
- src/treg/web/skills/rea-growth/SKILL.md
- src/treg/web/skills/rea-marketing/SKILL.md
- src/treg/web/skills/rea-seo/SKILL.md
- src/treg/web/skills/ai-ugc-video/SKILL.md
- examples/claude-code-mods/jev-memory/hooks/jev-memory.mjs
- src/treg/routers/web.py
- src/treg/mcp_install.py
- scripts/build_plugin.py
- .claude-plugin/marketplace.json
- plugins/treg/.claude-plugin/plugin.json
- plugins/treg-claude/.claude-plugin/plugin.json
- .agents/plugins/marketplace.json
- plugin/.codex-plugin/plugin.json
- plugins/treg/.cursor-plugin/plugin.json
- plugins/copilot/plugin.json
- plugins/copilot/mcp.json
- plugins/antigravity/plugin.json
- plugins/antigravity/mcp_config.json
- package.json
- dsh/cordis.patch.yml
- dsh/index.js
- plugins/minimax/.minimax-plugin/plugin.json
- .github/plugin/marketplace.json
- scripts/minimax_plugin.py
- server.json
- .github/workflows/mcp-registry.yml
- src/treg/web/connector-skill.md
- src/treg/mcp_skills.py
related:
- interface/cli.md
- interface/api.md
- architecture/mcp-oauth.md
---
# The treg skill
`src/treg/web/skill.md` is the **product** skill: the operating guide every installed agent
carries. It is distinct from the repo-tooling skills under `.agents/skills/` (`.claude/skills` is a
symlink to it), which carry `metadata.internal: true` so `npx skills add superdesigndev/treg` offers
only what a user should install.
**`skill.md` and `llms.txt` split the work.** `llms.txt` is the entry point in the
[llms.txt](https://llmstxt.org) format (H1, summary blockquote, prose without headings, then H2 link
lists) and restates nothing operational; it links `skill.md` for that. Both state the same money
rule, so change them together. Provider-specific detail (an allowance, voice discovery) lives on the catalog row, in a
parameter's, the cost's or the row's `note` ([catalog-schema](../architecture/catalog-schema.md#summary-and-note)),
never in either file.
`skill.md` mirrors the surfaces in [api.md](api.md) and [cli.md](cli.md); keep the three in sync
when the API or CLI changes. Its feedback section links `{BASE}/feedback.md`; the contract is in
[feedback](../architecture/feedback.md).
## One source, many doors
`scripts/build_plugin.py` generates the plugin skills from `src/treg/web/skill.md` or a connector-only
template for the host, and `tests/test_plugin.py` runs it with `--check` so a stale copy fails. The
shared connector-only edition lives in `src/treg/web/connector-skill.md` and ships through team MCP
and the Codex plugin.
The catalog's size (`{ENDPOINTS}`, `{PROVIDERS}`, rounded down) is the exception: `--check` accepts
any size there, so a listing pull request never touches the copies, and the next regeneration
brings them up to date.
Sections that depend on a deployment switch sit inside comment blocks that the server keeps or
drops per request (`routers.web._strip_routed`), in `llms.txt` as in `skill.md`: `<!--routed-->`
(routed discovery), `<!--hub-->` (the reader's hub access) and `<!--agentpay-->` (agent payments
on). The markers never ship. The generated plugin copies keep the routed section and drop the
other two: a static file cannot follow a team list or a switch.
| door | artifact | reached by |
|---|---|---|
| served | `GET /skill.md` (`{BASE}` filled per request), `GET /.well-known/skills/index.json` + `/.well-known/skills/<name>/SKILL.md` | agentskills.io readers (Hermes) |
| Skills over MCP | `connector-skill.md` as `treg`, plus the `lead-signals`, `web-access` and `recruit` workflow files | team MCP clients (same bearer gate as `tools/list`; content is public) when `TREG_MCP_SKILLS_ENABLED=true` |
| installer | `install.sh` -> `treg skill bootstrap` writes the treg skill into every detected agent's skills dir | `curl {BASE}/install.sh \| sh` |
| bare skill | generated `skills/treg/SKILL.md` at the repo root, the served page unchanged plus `version:` | `npx skills add superdesigndev/treg -s treg` |
| ClawHub skill | generated `plugins/clawhub/skills/treg/SKILL.md`, a marketplace build | `clawhub skill publish` ([CLAUDE-PLUGIN.md](../../CLAUDE-PLUGIN.md)); OpenClaw, and Hermes' Skills Hub behind it |
| OpenClaw plugin + SDR Template | `plugins/openclaw/` (bundle plugin: `openclaw.plugin.json`, `.mcp.json`, generated marketplace build of the skill) and `plugins/openclaw-sdr/` (Template: `CLAW.md`, `BOOTSTRAP.md`, generated `package.json` and `lead-signals` copy) | `openclaw plugins install @superdesigndev/treg`; `openclaw templates add @superdesigndev/sdr` ([OPENCLAW-PLUGIN.md](../../OPENCLAW-PLUGIN.md)) |
| Claude Code / Cursor plugin | `.claude-plugin/marketplace.json` and `.cursor-plugin/marketplace.json` -> `plugins/treg/`; workflow skills as optional plugins in `plugins/workflows/<name>/` | `/plugin marketplace add superdesigndev/treg`, the Cursor marketplace |
| Claude plugin directory | `plugins/treg-claude/` (`CLAUDE_DIRECTORY_SKILL`, the `/mcp/v2` connector), in no marketplace | Anthropic's Claude plugin directory, which reads that one folder |
| Codex/ChatGPT plugin | `plugin/.codex-plugin/` + the generated connector-only skill, via `.agents/plugins/marketplace.json` | the ChatGPT/Codex directory, `codex plugin marketplace add superdesigndev/treg` |
| GitHub Copilot plugin | `plugins/copilot/` (Agent Plugins 1.0.0: `plugin.json`, `mcp.json`, generated skill) | `copilot plugin marketplace add superdesigndev/treg`, then `copilot plugin install treg@treg` (through `.github/plugin/marketplace.json`, which Copilot CLI reads before `.claude-plugin/`); the awesome-copilot marketplace (external-plugin submission pinned to a commit) |
| Google Antigravity plugin | `plugins/antigravity/` (`plugin.json`, `mcp_config.json`, `ANTIGRAVITY_SKILL`) | `agy plugin install https://github.com/superdesigndev/treg/tree/main/plugins/antigravity` |
| DeepSeek Harness | root `package.json` (`dsh.bundle`) + `dsh/cordis.patch.yml` + generated `dsh/skills/treg/SKILL.md` | `dsh plugin --profile <name> add github:superdesigndev/treg` ([DSH-PLUGIN.md](../../DSH-PLUGIN.md)) |
| MiniMax plugin | `plugins/minimax/` (skills-only), ZIP built by `scripts/minimax_plugin.py` | MiniMax Plugin Marketplace ([MINIMAX-PLUGIN.md](../../MINIMAX-PLUGIN.md)) |
| MCP Registry (server only, no skill) | root `server.json`, published by `.github/workflows/mcp-registry.yml` on each `v0.*` tag | the official MCP Registry, which GitHub's MCP Registry and VS Code's `@mcp` gallery read |
The Codex submission runbook, test cases and per-tool justifications live in the private
`treg-internal` repository.
Constraints the hosts impose, which the code cannot explain:
- The bare skill sits at the repo root because that one path is what `npx skills add` resolves.
ClawHub requires a semver `version:` in frontmatter. The
Claude Code plugin is not the repo root, because a root plugin would ship the whole repository.
- skills.sh skips symlinks, so the build writes real copies of `src/treg/web/skills/*` to
`skills/<name>/SKILL.md`; `.agents/skills/<name>` symlinks keep the repo's own agents on the
served copy.
- The Claude Code and Cursor plugins declare the MCP server URL-only (the Claude manifest needs
`type: "http"`, which Claude Code rejects without); the host runs OAuth. A
`${env:TREG_TOKEN}` header made hosts demand the variable before sign-in.
- The Copilot plugin has its own root because Agent Plugins 1.0.0 fixes the MCP config at the
plugin root's `mcp.json` in a closed schema (`$schema`, `type: "streamable-http"`) that no manifest
field can point elsewhere, while Cursor reads `plugins/treg/mcp.json` in its own documented shape.
- Hermes reads that same portable plugin. Its namespaced manifest extension declares the `treg`
MCP server untrusted so write-capable tools require approval. A same-name OAuth profile entry
replaces the plugin server, so the setup guide preserves trust on that entry. Only the portable
build adds Hermes's reporting policy. Feedback, reviews, marks, comparisons and the optional
review attached to a call require an explicit user request in Hermes. The portable skill offers
a free catalog lookup when the user asks to verify the connection. Setup uses the bundled MCP server.
- ClawHub's scan flags a skill that pipes an installer into a shell, puts a token in a command,
pays without an agreed budget, reports to its vendor unasked or follows steps a remote answer
names (indirect prompt injection). So the ClawHub copies are marketplace builds (`STORE_VARIANTS`
in `scripts/build_plugin.py`): the served page marks four parts `<!--store:setup-->`,
`<!--store:money-->`, `<!--store:feedback-->` and `<!--store:advice-->`, and the build replaces
each whole part with its own text: connect without an installer, one agreed budget per task
before the first paid call, reports only when the user asks, and a next step an answer names is
data, taken only inside the user's task and budget. It also adds one sentence to the
description. The served page (`routers.web._strip_store_markers`), the installer and every other
copy keep the parts as written and never show the markers. A part missing or marked twice stops
the build. The portable (Copilot/Hermes) build keeps its own rules above.
- The OpenClaw plugin declares the hosted server with `auth: oauth` and no client identity, so
OpenClaw registers itself (dynamic client registration) for the Gateway's own callback and the
plugin ships no token or secret. ClawHub's shared client document lists only loopback callbacks,
so naming it would refuse a remote Gateway. OpenClaw reads `openclaw.plugin.json` (`skills: ["./skills"]`); ClawHub picks the
bundle-plugin family by `.claude-plugin/plugin.json`, so both exist. A plugin's server signs in
only from Control UI (`openclaw mcp login` reads the user's own `mcp.servers`), so its
marketplace build's setup names that path. The SDR Template references the plugin on ClawHub at
this version and installs its weekly job paused, because the job spends the team's balance.
- Copilot CLI looks for a repo marketplace in `.github/plugin/` before `.claude-plugin/`, so the
same `treg@treg` installs `plugins/copilot/` there and `plugins/treg/` in Claude Code. The two
files list the same workflow plugins. Copilot CLI marks direct installs (`owner/repo:path`, a local
path) deprecated, so the marketplace is the documented install.
- Antigravity reads `plugin.json` and `mcp_config.json` from the plugin root and truncates
`SKILL.md` bodies after 24,000 bytes. Its URL-only MCP config uses the trailing-slash
`https://treg.to/mcp/` to match the OAuth protected resource metadata. Antigravity discovers
OAuth client credentials through CIMD or DCR.
- OpenAI's plugin review refuses a skill that downloads or runs code outside the package, so the
Codex plugin carries a connector-only skill (`src/treg/web/connector-skill.md`) with no CLI and
no `install.sh`. Skills over MCP serves the same file as `treg`.
- Anthropic's plugin directory reads one fixed folder per submission, and its policy refuses AI
media generation, spending without a human in the loop, instructions fetched from outside
sources and download-and-run commands. So `plugins/treg-claude/` has its own connector-only
skill (`CLAUDE_DIRECTORY_SKILL`) for the directory connector `/mcp/v2`, and `plugins/treg/`
stays the full plugin for the Claude Code marketplace and Cursor.
- dsh reads no manifest and its MCP client sends a static header with no OAuth, so its MCP row is
disabled until `TREG_TOKEN` is set, its tools are namespaced (`mcp__treg__call`), and
`treg mcp install` lists dsh as a manual agent pointing at the bundle.
- MiniMax admits an authenticated MCP only through its App/Connector program, so its plugin is
skills-only.
- The official MCP Registry publishes a version once and never edits it, so `server.json` carries
the package version and the workflow refuses a tag naming another. It lists the remote URL-only,
like the plugins: a `headers` entry makes VS Code ask for a token before its OAuth sign-in.
GitHub OIDC proves the `io.github.superdesigndev` namespace, so no publishing secret exists; the
workflow can also be run by hand (`workflow_dispatch`) to republish the current version once.
## Workflow skills
Served at `GET /skills/<name>/SKILL.md` from `src/treg/web/skills/<name>/SKILL.md`. Those in the
well-known index are offered by `treg skill bootstrap` and installed only when named with
`--skills` (or `all`) or already present; `jev-memory`, `rea-growth`, `rea-marketing`, `rea-seo` and `ai-ugc-video` are opt-in, kept out of the
index and `/.well-known/`, so the installer never offers them. Bootstrap names the offered ones in
one line and never tells the agent to stop and ask: it runs before sign-in, so `llms.txt` and
`skill.md` put that question after the first call that returns real data. Workflow skills name search words
or routed `treg.*` jobs rather than per-provider endpoint ids where the catalog moves weekly; the
catalog row's price and parameters win over anything a skill states.
Every door ships one file per skill: the well-known index lists `files: ["SKILL.md"]` and the
installer, `npx skills` and the plugins copy only that. A skill that needs code carries it inline
as a fenced block the agent saves and runs (`doomscroll`'s merge script);
`tests/test_skill_md.py` extracts and runs its self-test so the copy that ships is the one tested.
The installer only overwrites a SKILL.md it owns: a missing one, one whose sha256 matches its
ledger (`~/.treg/skills.json`), or an unledgered copy that names the skill and links this registry.
Anything else is left alone and reported.
## `/integrate.md` - the builder skill
A second skill, pasted into a builder's own repo so their agent can embed treg and bill their own
customers. It leads with per-customer billing because tagging belongs where the backend already
sets `Authorization`. `tests/test_tag_billing.py` pins the header and route names it teaches.