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.
npx skills add malloydata/publisher --skill malloy-define-agentgit clone --depth 1 https://github.com/malloydata/publisherWrote 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.
[](https://agentmods.dev/skills/malloydata/publisher/malloy-define-agent)<a href="https://agentmods.dev/skills/malloydata/publisher/malloy-define-agent"><img src="https://agentmods.dev/badge/skills/malloydata/publisher/malloy-define-agent/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.
<a href="https://agentmods.dev/skills/malloydata/publisher/malloy-define-agent"><img src="https://agentmods.dev/badge/skills/malloydata/publisher/malloy-define-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00091 | $0.02568 |
| Opus 5.5 | $0.00036 | $0.01027 |
| Sonnet 5.5 | $0.00018 | $0.00514 |
| Haiku 4.5 | $0.00009 | $0.00257 |
Grade A, and why
malloy-define-agent 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 25d 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.
How it starts
The opening of the file, as written. The whole thing — 109 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Define a package agent
Tool names are written bare here -
get_agent,reload_package. The exact prefixed name depends on the host surface; match each against the tools you actually have.
A package agent is a named brief an author ships inside a package: instructions, optional skills of its own, optional scheduled tasks and an optional run budget. Publisher parses and serves the definition; a caller adopts it with get_agent (see malloy-run-agent). The files are ordinary package files, so you write them like any other model change. A package does not need models to carry agents: one that holds only publisher.json and its agent files is valid.
When to create one
Create an agent only when the user asks for one, or asks for work that has to run without them watching: a recurring report, a monitor, a long job that should resume where it stopped. Do not create one to answer a question or make a model change; do that directly. An agent is a standing definition other people and runs will rely on, so one that nobody asked for is clutter.
The layout
Agents live under the agents object of the package's publisher.json, keyed by name:
{
"name": "storefront",
"agents": {
"weekly-revenue": {
"description": "Writes the Monday revenue summary for the storefront package",
"model": "inherit",
"instructions": "agents/weekly-revenue/instructions.md",
"skills": ["agents/weekly-revenue/skills"],
"schedules": [
{
"cron": "0 13 * * MON",
"task": "agents/weekly-revenue/tasks/weekly-report.md"
}
],
"budget": { "turns": 30, "wall_clock_minutes": 60 }
}
}
}
| Key | Rule |
|---|---|
| name (the key) | ^[a-z0-9]+(-[a-z0-9]+)*$, at most 64 characters. |
description |
Required. One line saying what the agent is for. |
instructions |
Required. Package-relative path of a .md file with no frontmatter. At most 16 KB. |
model |
Optional. A model name, or inherit (the default) for the caller's own. |
skills |
Optional. Package-relative directories, each holding <skill>/SKILL.md (and optionally reference/ and assets/). Frontmatter name must match the directory name. All of the agent's Markdown (SKILL.md and reference/*.md) together is at most 256 KB; over that, the agent is dropped, not truncated. assets/ has its own budget (below). |
schedules |
Optional. A list of { "cron", "task" }: a 5-field cron expression in UTC, and the package-relative path of a .md task file of at most 16 KB. |
budget |
Optional. An object whose optional fields are turns, wall_clock_minutes, llm_tokens and job_minutes, each a positive integer. Set only the ones the work needs; an unset field keeps the platform's default. |
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.
- 25d ago Changed · +22 lines · -5 tokens per session 6e70890cfc0e
- 27d ago First seen · 87 lines · 96 tokens per session scan A 3819b451a0c9
malloy-define-agent is a skill published in the GitHub repository malloydata/publisher (136 stars, last pushed today), licensed MIT. It adds 91 tokens to every session and 2,568 once invoked, about $0.0004 per session on Opus 5.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-11-03.
malloy-define-agent compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| malloy-define-agentmalloydata/publisher | Skill | 136 | today | MIT | A | 91 | Claude Code, Codex |
| reimagine-it-extractKayforkind/reimagine-it | Skill | 218 | 2d ago | MIT | A | 133 | Claude Code |
| chart-builderNickCrew/Claude-Cortex | Skill | 75 | 9d ago | MIT | A | 76 | Claude Code, Codex |
| dashboard-designerNickCrew/Claude-Cortex | Skill | 75 | 9d ago | MIT | A | 95 | Claude Code, Codex |
| reusable-visualizationlightdash/lightdash | Skill | 6.3k | today | none | A | 102 | Claude Code |
| developing-in-lightdashlightdash/lightdash | Skill | 6.3k | today | none | A | 31 | Claude Code, Codex |
| sdk-featureslightdash/lightdash | Skill | 6.3k | today | none | A | 67 | Claude Code |