agentos-modal: Skill for Claude Code

.agents/skills/improve-agent/SKILL.md

improve-agent is a skill for Claude Code, Codex from agno-agi/agentos-modal. It costs 87 tokens per session (1,811 once invoked), scanned A, a copy of improve-agent, Apache-2.0.

An autonomous workflow for improving an existing coding agent by testing it against its instructions and recorded usage. It evaluates the responses, edits the agent file, and tests it again until the behaviour is more reliable.

In plain words
What is it for?
Use it to harden a code agent through repeated probes, response checks, and instruction edits, while respecting the project’s agent files and component rules.
Why use it?
It finds gaps between what an agent is supposed to do and what it actually does, without requiring you to write test cases first.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is agno-agi/agentos-modal's own configuration. It tells Claude Code and Codex how to work on agentos-modal itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agentos-modal configures →

Reuse

Borrowing it

Nothing to install: this file belongs to agno-agi/agentos-modal. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/agno-agi/agentos-modal/main/.agents/skills/improve-agent/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/agno-agi/agentos-modal

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 improve-agent

README.md
[![agentmods](https://agentmods.dev/badge/skills/agno-agi/agentos-modal/improve-agent.svg)](https://agentmods.dev/skills/agno-agi/agentos-modal/improve-agent)
Your own site
<a href="https://agentmods.dev/skills/agno-agi/agentos-modal/improve-agent"><img src="https://agentmods.dev/badge/skills/agno-agi/agentos-modal/improve-agent.svg" alt="Measured on agentmods" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,811 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod 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.00087 $0.01811
Opus 5 $0.00044 $0.00905
Sonnet 5 $0.00017 $0.00362
Haiku 4.5 $0.00009 $0.00181

Measured 8d ago against content hash 0696dd0b6faf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

improve-agent scanned grade A 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 8d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- `curl -sSf http://localhost:8000/health` returns 200; the container is bound to this checkout (`docker inspect agentos-api --format '{{range .Mounts}}{{.Source}}{{"\n"}}{{end}}' | grep -F "$(pwd)"` prints a line).
Origin

This is a copy

100% identical to improve-agent — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agents/skills/improve-agent/SKILL.md · 90 lines

How it starts

The opening of the file, as written. The whole thing — 90 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Improve an Agent

Coding-agent workflow: run as /improve-agent or by describing the task.

Derive probes from the agent's INSTRUCTIONS and its recorded usage, run them against the live container, judge, edit the file, re-probe. No user-supplied test cases. One pass takes 15–30 minutes; re-run if behavior still drifts. To change an agent instead, use extend-agent.

0. Preconditions

  • curl -sSf http://localhost:8000/health returns 200; the container is bound to this checkout (docker inspect agentos-api --format '{{range .Mounts}}{{.Source}}{{"\n"}}{{end}}' | grep -F "$(pwd)" prints a line).
  • Ask for the target slug and confirm it is code: curl -s http://localhost:8000/agents | jq -r '.[] | "\(.id)\tis_component=\(.is_component)"'. is_component=true has no file — route edits through Platform Builder (edit_* + publish_component) and never create a file under that id (it shadows the component).
  • Suggest a branch: git checkout -b improve/<slug>-$(date +%Y%m%d).

1. Read the intent

Open the file (agents/<slug>.py; teams/lead.py for agno). Capture purpose, tools, and every explicit rule in INSTRUCTIONS. Restate the purpose in 1–2 sentences; fold in any failure modes the user volunteers.

2. Derive probes

Mine usage first (needs the venv: source .venv/bin/activate):

from db import get_postgres_db
db = get_postgres_db()
sessions, _ = db.get_sessions(component_id="<slug>", limit=20, deserialize=False)
asks = [run["input"]["input_content"] for s in sessions for run in (s.get("runs") or []) if run.get("input")]
evals, _ = db.get_eval_runs(agent_id="<slug>", limit=20, deserialize=False)   # team_id= for a team

Look for recurring shapes, visible fumbles, and out-of-scope asks. A recorded answer is a scenario, never the oracle — expected behavior comes from INSTRUCTIONS. Reword private content before it becomes a probe. No sessions is fine.

Then derive from INSTRUCTIONS: 2–3 probes per rule plus 1–2 adversarial, usually 8–12 total, across golden path, edge cases (should refuse or ask, not fabricate), tool selection, and adversarial (injection, malformed input). Write a one-line expected behavior per probe. Wanting a behavior the instructions don't promise is a Step 5 edit, not a probe failure.

Read the full file on GitHub · 90 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. 8d ago First seen · 90 lines · 87 tokens per session scan A 0696dd0b6faf

Subscribe to this mod's changes

improve-agent is a skill published in the GitHub repository agno-agi/agentos-modal (2 stars, last pushed 8d ago), licensed Apache-2.0. It adds 87 tokens to every session and 1,811 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). It is 100% identical to improve-agent, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

modal-serverless-gpu

Run approved CPU or GPU work through OpenScience computejob on the user's configured Modal account. Use for isolated scientific scripts, dependency provisioning, durable outputs, logs, status, cancellation, and recovery. Never invoke the Modal SDK or CLI directly.

synthetic-sciences/openscience · 54 tokens

protein-binder-design

Design and validate de novo protein binders with the current NVIDIA BioNeMo Agent Toolkit workflow, while adapting honestly when NVIDIA-hosted credentials are unavailable.

synthetic-sciences/openscience · 35 tokens

interaction-patterns

UI interaction design patterns for skeleton loading, infinite scroll with accessibility, progressive disclosure, modal/drawer/inline selection, drag-and-drop with keyboard alternatives, tab overflow handling, and toast notification positioning. Use when implementing loading states, content pagination, disclosure…

yonatangross/orchestkit · 66 tokens

agentos-ui-ux

Design, review, or implement AgentOS UI and UX work using the project’s operator-console visual system. Use for React/Tailwind pages, cards, dialogs, mobile layouts, theme work, navigation, forms, empty/loading/error states, and UI consistency reviews in AgentOS.

SapienXai/AgentOS · 62 tokens

modal

Use when running Python or GPU workloads serverlessly on Modal — modal.App, inline container Images, gpu= on @app.function, Volumes for weight caching, Cron schedules, ASGI endpoints, modal run vs serve vs deploy. NOT managed prediction APIs with no container of your own (that is replicate); NOT SSH-able GPU boxes…

ericrisco/rsc-harness · 78 tokens

swiftui-backports

Find SwiftUIBackports replacements for SwiftUI APIs unavailable on a project deployment target. Use for Swift/SwiftUI compiler availability errors, old iOS/tvOS/watchOS/macOS targets, or when implementing SwiftUI app features that may benefit from SwiftUIBackports.

shaps80/SwiftUIBackports · 60 tokens