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 agentmods add skills/chaosrealmsai/agent-cli-spec/ai-native-clinpx skills add ChaosRealmsAI/agent-cli-spec --skill ai-native-cligit clone --depth 1 https://github.com/ChaosRealmsAI/agent-cli-specWrote 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/chaosrealmsai/agent-cli-spec/ai-native-cli)<a href="https://agentmods.dev/skills/chaosrealmsai/agent-cli-spec/ai-native-cli"><img src="https://agentmods.dev/badge/skills/chaosrealmsai/agent-cli-spec/ai-native-cli.svg" alt="Measured on agentmods" 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 | $0.00061 | $0.05290 |
| Opus 5 | $0.00030 | $0.02645 |
| Sonnet 5 | $0.00012 | $0.01058 |
| Haiku 4.5 | $0.00006 | $0.00529 |
Grade A, and why
ai-native-cli 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 3d 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 — 516 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Agent-Friendly CLI Spec v0.1
When building or modifying CLI tools, follow these rules to make them safe and reliable for AI agents to use.
Core Philosophy
- Agent-only -- output is always JSON, no human-friendly mode
- Agent is untrusted -- validate all input at the same level as a public API
- Fail-Closed -- when validation logic itself errors, deny by default
- Verifiable -- every rule is written so it can be automatically checked
Layer Model
This spec now uses two orthogonal axes:
- Layer answers rollout scope:
core,recommended,ecosystem - Priority answers severity:
P0,P1,P2
Use layers for migration and certification:
- core -- execution contract: JSON, errors, exit codes, stdout/stderr, safety
- recommended -- better machine UX: self-description, explicit modes, richer schemas
- ecosystem -- agent-native integration:
agent/,skills,feedback, inline context
Certification maps to layers:
- Agent-Friendly -- all
corerules pass - Agent-Ready -- all
core+recommendedrules pass - Agent-Native -- all layers pass
Output Mode
Output is always JSON. No human-friendly mode. No flags needed.
$ mycli list # JSON output, always
- All output is JSON to stdout. Period.
- No
--human, no--agent, no mode switching. - If a human needs to read it, pipe through
jq.
agent/ Directory Convention
Every CLI tool MUST have an agent/ directory at its project root. This is the
tool's identity and behavior contract for AI agents.
agent/
├── brief.md # One paragraph: who am I, what can I do
├── rules/ # Behavior constraints (auto-registered)
│ ├── trigger.md # When should an agent use this tool
│ ├── workflow.md # Step-by-step usage flow
│ └── writeback.md # MANDATORY auto-feedback behavior
└── skills/ # Extended capabilities (auto-registered)
└── getting-started.md
File Format
agent/brief.md — plain text, one paragraph. No frontmatter needed.
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 3d ago First seen · 516 lines · 61 tokens per session scan A 481b1ce495db
ai-native-cli is a skill published in the GitHub repository ChaosRealmsAI/agent-cli-spec (2 stars, last pushed 5mo ago), licensed MIT. It adds 61 tokens to every session and 5,290 once invoked, about $0.0003 per session on Opus 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-08-31.
Other skills, from other repositories
display-dev
Publishes HTML or Markdown as display.dev URLs with public, company, or private access. Supports signup, claiming, sharing, browsing, bounded reads, exact edits, and comment iteration. Use when the user asks to "publish this", "share this", "share with the org", "post this online", "make a private link", "share with…
source-grounded-research
Produce auditable, evidence-first research and reports for public-interest, market, policy, product, academic, and fact-checking questions. Use this skill whenever a user asks to investigate a topic, compare options, verify claims, synthesize multiple sources, or write a research report that should be traceable claim…
project-state-governor
Maintain evidence-backed project state across conversations, branches, reviews, and research cycles. Use when an AI coding agent must reconstruct or consolidate fragmented project documentation, reconcile conflicting history against code/tests/contracts/Git, classify active and completed work, verify completion…
tao
Orchestrate large, multi-stage, or long-running engineering work with a persistent strong Project Lead, reusable economy Workers, optional review, and repository-backed handoffs. Use for model-cost-aware execution, explicit tiered-agent commands, or continuation when .tiered-agent state exists. Do not start the full…
cn-law-hub
用于查询、检索、核验、下载、导出、批量采集中国官方法律法规、规章、条约和具体法条。Use this skill aggressively when the user asks to 查法律、查法规、查条例、查规章、查条约、查法条、查第几条、找法律依据、引用法律依据、核验现行有效、判断是否废止/已修改/尚未生效、下载法规全文、导出法规目录、批量下载法规文件、按关键词检索具体法条、展开法条分析,或在中国法律咨询、案例分析、合规审查、合同审查、劳动争议、行政法分析、公司合规、数据合规、政策研究中需要调用、核验或引用中国现行有效法律法规原文作为依据。Trigger also when phrases such as…
cad-modeling-fusion
Generate parametric CAD model specifications and Autodesk Fusion Python scripts from natural-language 3D modeling requests. Use when the user asks to create, automate, modify, export, or validate CAD models for Fusion, FreeCAD, OpenSCAD, STEP, STL, OBJ, or 3D printing.