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 urmzd/dotfiles --skill build-cligit clone --depth 1 https://github.com/urmzd/dotfilesWrote 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/urmzd/dotfiles/build-cli)<a href="https://agentmods.dev/skills/urmzd/dotfiles/build-cli"><img src="https://agentmods.dev/badge/skills/urmzd/dotfiles/build-cli/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/urmzd/dotfiles/build-cli"><img src="https://agentmods.dev/badge/skills/urmzd/dotfiles/build-cli.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.00138 | $0.04387 |
| Opus 5.5 | $0.00055 | $0.01755 |
| Sonnet 5.5 | $0.00028 | $0.00877 |
| Haiku 4.5 | $0.00014 | $0.00439 |
Grade B, and why
build-cli scanned grade B with 3 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 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.
Downloads and executes remote codemediumSupply chain
curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.
- One-liner: `curl -fsSL https://raw.githubusercontent.com/<owner>/<repo>/main/install.sh | bash` Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- One-liner: `curl -fsSL https://raw.githubusercontent.com/<owner>/<repo>/main/install.sh | bash` Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
const { execSync } = await import('child_process'); How it starts
The opening of the file, as written. The whole thing — 504 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLI Patterns
Design Philosophy
A junior developer should understand any CLI tool's behavior from --help alone. Prefer obvious defaults. Machine output (JSON) enables composability. All human-facing output goes to stderr.
Output Modes
Decision Tree
| Scenario | Output Mode | Flag |
|---|---|---|
| Data/device API (zigbee-rest) | Always JSON on stdout | None needed |
| Dual human + machine consumers (e.g. release tools, agent orchestrators) | --format json|human |
Default: human |
| CLI with optional machine output (llmem) | --json flag + TTY auto-detect |
Default: human if TTY, JSON if piped |
| Human-only tool (e.g. demo recorders, interactive wizards) | Styled stderr only | No JSON mode |
TTY Auto-Detection
Standard behavior when no explicit format flag is given:
stdout.is_terminal() → human output (styled, colored)
!stdout.is_terminal() → JSON output (machine-readable)
Override flags:
--jsonforce JSON regardless of TTY--no-color/NO_COLOR=1env. Strip ANSI escape codesCI=trueenv. Treat as non-TTY (no spinners, no prompts, no color)
JSON Conventions
- Rust:
serde_json::to_string_pretty()to stdout - Go:
json.MarshalIndent(v, "", " ")to stdout - Python:
json.dumps(v, indent=2)to stdout - Errors in JSON mode:
{"error": "message"}to stdout (not stderr), exit 1
Stdout vs Stderr
| Stream | Content |
|---|---|
| stdout | Machine-readable data: JSON, generated content, completions |
| stderr | All human-facing UI: headers, spinners, checkmarks, errors, progress |
This enables piping: tool command | jq '.field' and tool command 2>/dev/null.
Interactivity
Prompts
Prompt text? [y/N] _
Bold prompt, [y/N] suffix. Rules:
- Return
false/ skip in non-TTY (CI-safe) --yes/-yflag: auto-confirm all prompts- Never block on stdin without checking
stdin.is_terminal()
Dry-Run
Prefix all hypothetical actions with [dry-run] to stderr:
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.
- 8d ago Changed · +3 lines · +27 tokens per session a2d37441f0f9
- 3mo ago First seen · 501 lines · 111 tokens per session scan B 7bbbc58bf83f
build-cli is a skill published in the GitHub repository urmzd/dotfiles (6 stars, last pushed 4d ago), licensed Apache-2.0. It adds 138 tokens to every session and 4,387 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it B with 3 findings (downloads and executes remote code, makes network calls, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
build-cli compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| build-cliurmzd/dotfiles | Skill | 6 | 4d ago | Apache-2.0 | B | 138 | Claude Code |
| metaceptionmagic3007/dotfiles | Skill | 11 | 5d ago | MIT | A | 332 | Claude Code |
| astropymagic3007/dotfiles | Skill | 11 | 5d ago | MIT | A | 56 | Claude Code, Codex |
| benchling-integrationmagic3007/dotfiles | Skill | 11 | 5d ago | MIT | A | 50 | Claude Code |
| mcp-notion-usage-guidemagic3007/dotfiles | Skill | 11 | 5d ago | MIT | A | 174 | Claude Code, Codex |
| esmmagic3007/dotfiles | Skill | 11 | 5d ago | MIT | A | 96 | Claude Code, Codex |
| ralph-loopmagic3007/dotfiles | Skill | 11 | 5d ago | MIT | A | 63 | Claude Code, Codex |