malloy-define-agent

malloy-define-agent is a skill for Claude Code, Codex from malloydata/publisher. It costs 91 tokens per session (2,568 once invoked), scanned A, original, MIT.

A package definition for a named agent: a saved brief with optional skills, schedules, and a run budget. A package is a distributable collection of agent files and configuration.

In plain words
What is it for?
Use it to add or change a named agent in a package, such as one that produces a weekly report or monitors a system.
Why use it?
It provides a way to describe recurring, unattended, or resumable work without creating an agent for a one-off question. The definition can be adopted and run separately.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to add or change a named agent in a package, such as one that produces a weekly report or monitors a system.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/malloydata/publisher/malloy-define-agent
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 malloydata/publisher --skill malloy-define-agent
Clone the repo
git clone --depth 1 https://github.com/malloydata/publisher

Made for: Claude Code, Codex.

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 malloy-define-agent

README.md
[![agentmods](https://agentmods.dev/badge/skills/malloydata/publisher/malloy-define-agent/github.svg)](https://agentmods.dev/skills/malloydata/publisher/malloy-define-agent)
Your own site
<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.

agentmods 80×15 button for malloy-define-agent

Your own site · 80×15
<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>
Per session 91 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,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.00091 $0.02568
Opus 5.5 $0.00036 $0.01027
Sonnet 5.5 $0.00018 $0.00514
Haiku 4.5 $0.00009 $0.00257

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

Security

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.

skills/malloy-define-agent/SKILL.md · 109 lines

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.

Read the full file on GitHub · 109 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. 25d ago Changed · +22 lines · -5 tokens per session 6e70890cfc0e
  2. 27d ago First seen · 87 lines · 96 tokens per session scan A 3819b451a0c9

Subscribe to this mod's changes

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.

Related

malloy-define-agent compared with skills from other repositories

malloy-define-agent next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
malloy-define-agentmalloydata/publisherSkill136todayMITA91Claude Code, Codex
reimagine-it-extractKayforkind/reimagine-itSkill2182d agoMITA133Claude Code
chart-builderNickCrew/Claude-CortexSkill759d agoMITA76Claude Code, Codex
dashboard-designerNickCrew/Claude-CortexSkill759d agoMITA95Claude Code, Codex
reusable-visualizationlightdash/lightdashSkill6.3ktodaynoneA102Claude Code
developing-in-lightdashlightdash/lightdashSkill6.3ktodaynoneA31Claude Code, Codex
sdk-featureslightdash/lightdashSkill6.3ktodaynoneA67Claude Code