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 growthxai/output --skill output-dev-agent-classgit clone --depth 1 https://github.com/growthxai/outputWrote 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/growthxai/output/output-dev-agent-class)<a href="https://agentmods.dev/skills/growthxai/output/output-dev-agent-class"><img src="https://agentmods.dev/badge/skills/growthxai/output/output-dev-agent-class/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/growthxai/output/output-dev-agent-class"><img src="https://agentmods.dev/badge/skills/growthxai/output/output-dev-agent-class.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to high
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- high System Prompt Leakage · line 11 Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.Fix: Remove any instructions that reveal, print, or output system prompts or internal rules. System instructions should never be exposed to end users.
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.00045 | $0.02540 |
| Opus 5.5 | $0.00018 | $0.01016 |
| Sonnet 5.5 | $0.00009 | $0.00508 |
| Haiku 4.5 | $0.00005 | $0.00254 |
Grade B, and why
output-dev-agent-class scanned grade B with 1 finding 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 1mo 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.
Asks the agent to reveal its instructionsmediumSystem prompt leakage
Directions to print, repeat or translate the system prompt extract configuration the operator did not intend to expose.
The `Agent` class uses an internal AI SDK `ToolLoopAgent` through composition with Output prompt files and the skills system. It does not inherit from `ToolLoopAgent`. Use it when you need multi-step tool execution, conv How it starts
The opening of the file, as written. The whole thing — 273 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Using the Agent Class
Overview
The Agent class uses an internal AI SDK ToolLoopAgent through composition with Output prompt files and the skills system. It does not inherit from ToolLoopAgent. Use it when you need multi-step tool execution, conversation history, or a reusable agent instance. For single-shot LLM calls without tools, generateText is simpler.
When to Use This Skill
- Building multi-step agents that call tools in a loop
- Using skills (lazy-loaded instructions) with an agent
- Creating agents with structured output via
aiSdk.Output.object() - Implementing stateful conversations with
messageStore - Streaming Agent progress with
onChunk - Deciding between
AgentandgenerateText
Import Pattern
import { Agent, aiSdk } from '@outputai/core/llm';
import type { MessageStore } from '@outputai/core/llm';
import { z } from '@outputai/core';
Agent comes from @outputai/core/llm. Use aiSdk.Output for structured output. Import z from @outputai/core (never from zod directly). MessageStore is the type for a pluggable getMessages / addMessages store; implement it yourself.
Construction
The prompt file is loaded and rendered at construction time. Variables and tools are fixed at construction. Skills and maxSteps come from the prompt file. The agent is ready to call generate(), generateWithStreaming(), or stream() immediately.
const agent = new Agent( {
prompt: 'writing_assistant@v1',
variables: {
content_type: input.contentType,
focus: input.focus,
content: input.content
},
output: aiSdk.Output.object( { schema: reviewSchema } )
} );
Constructor Options
| Option | Type | Default | Description |
|---|---|---|---|
prompt |
string |
(required) | Prompt file name (e.g. 'writing_assistant@v1') |
promptDir |
string |
- | Override the stack-resolved prompt directory |
variables |
PromptVariables |
- | Template variables rendered at construction |
tools |
AI SDK tools | - | Caller tools; merged with prompt YAML tools (load_skill last) |
stopWhen |
function or function[] | - | Custom stop condition (overrides prompt maxSteps when tools exist) |
output |
aiSdk.Output |
- | Structured output spec (e.g. aiSdk.Output.object({ schema })) |
messageStore |
MessageStore |
- | Pluggable store for multi-turn history |
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.
- 1mo ago Changed 8b3ea8336053
- 2mo ago Changed f42fa1170756
- 3mo ago First seen · 273 lines · 45 tokens per session scan B 89373f9cbc86
output-dev-agent-class is a skill published in the GitHub repository growthxai/output (445 stars, last pushed today), licensed Apache-2.0. It adds 45 tokens to every session and 2,540 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks the agent to reveal its instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
output-dev-agent-class compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| output-dev-agent-classgrowthxai/output | Skill | 445 | today | Apache-2.0 | B | 45 | Claude Code |
| ax-aiax-llm/ax | Skill | 3.0k | today | Apache-2.0 | A | 105 | Claude Code, Codex |
| ax-agent-rlmax-llm/ax | Skill | 3.0k | today | Apache-2.0 | A | 88 | Claude Code, Codex |
| ax-cpp-aiax-llm/ax | Skill | 3.0k | today | Apache-2.0 | A | 47 | Claude Code, Codex |
| ax-cpp-genax-llm/ax | Skill | 3.0k | today | Apache-2.0 | A | 48 | Claude Code, Codex |
| ax-java-genax-llm/ax | Skill | 3.0k | today | Apache-2.0 | A | 49 | Claude Code, Codex |
| ax-flowax-llm/ax | Skill | 3.0k | today | Apache-2.0 | A | 59 | Claude Code, Codex |