o11y-analysis-tools AGENTS.md

o11y-analysis-tools AGENTS.md is an instructions file for Codex, OpenCode from conallob/o11y-analysis-tools. It costs 1,690 tokens per session, scanned A, original, BSD-3-Clause.

Repository instructions for o11y-analysis-tools, a collection of six Go command-line programs for PromQL and Alertmanager rules. PromQL is the query language used by Prometheus monitoring, and Alertmanager handles alerts.

In plain words
What is it for?
Use it when working in that repository to understand where code belongs and to run its downloads, builds, tests, race checks and linting.
Why use it?
It gives coding agents the project structure and the commands used to build, test and check the code before changes are committed.

Instructions file for CodexOpenCode

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.

agentmods
npx agentmods add instructions/conallob/o11y-analysis-tools/agents-md
Clone the repo
git clone --depth 1 https://github.com/conallob/o11y-analysis-tools

Made for: Codex, OpenCode.

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 o11y-analysis-tools AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/conallob/o11y-analysis-tools/agents-md.svg)](https://agentmods.dev/instructions/conallob/o11y-analysis-tools/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/conallob/o11y-analysis-tools/agents-md"><img src="https://agentmods.dev/badge/instructions/conallob/o11y-analysis-tools/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,690 This file is loaded in full into every session.
When invoked 1,690 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.01690 $0.01690
Opus 5 $0.00845 $0.00845
Sonnet 5 $0.00338 $0.00338
Haiku 4.5 $0.00169 $0.00169

Measured 4d ago against content hash b37b591a2e9e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

o11y-analysis-tools AGENTS.md 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 4d 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.

AGENTS.md · 141 lines

How it starts

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

AGENTS.md

Instructions for AI coding agents working in o11y-analysis-tools, following the cross-tool AGENTS.md convention (read natively by Codex CLI, Cursor, GitHub Copilot, Windsurf, Aider, Zed, Jules, and others — Claude Code reads this too, but prefers the richer CLAUDE.md in this repo when both are present).

What this repo is

Six Go CLIs for working with PromQL and Alertmanager rules: promql-fmt, label-check, alert-hysteresis, autogen-promql-tests, e2e-alertmanager-test, stale-alerts-analyzer. Source lives under cmd/<tool>/ (entry points), pkg/ (public libraries), and internal/ (private libraries).

Build, test, lint

go mod download
go test -v -race -coverprofile=./coverage.txt ./...
go build -o bin/ ./cmd/promql-fmt
go build -o bin/ ./cmd/label-check
go build -o bin/ ./cmd/alert-hysteresis
go build -o bin/ ./cmd/autogen-promql-tests
go build -o bin/ ./cmd/e2e-alertmanager-test
go build -o bin/ ./cmd/stale-alerts-analyzer
golangci-lint run   # v2.8+; config in .golangci.yml

Or via make build, make test, make lint. Run the full suite before committing — CI (.github/workflows/test.yml) runs the same commands with -race on Go 1.24/1.25 across ubuntu/macos.

PromQL-Cody: the unified agent

skills/promql-cody/SKILL.md is this repo's unified Agent Skill — named after and dedicated to the late Cody Smith. Load it first: it teaches an agent how to use all six tools below together (which are hermetic and CI-safe vs. interactive-only, the two-families breakdown, and the recommended end-to-end workflow — format → label-check → generate tests → preview notifications → periodically tune/cull alerts). Treat it as the entry point; the per-tool skill files below are the detail it links out to.

skills/promql-cody/ is a real SKILL.md directory — install it the same way as the six tool skills below, including via this repo's Claude Code plugin marketplace (promql-cody@o11y-analysis-tools). See README.md for the human-readable overview of all seven skills.

Read the full file on GitHub · 141 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. 4d ago First seen · 141 lines · 1,690 tokens per session scan A b37b591a2e9e

Subscribe to this mod's changes

o11y-analysis-tools AGENTS.md is an instructions file published in the GitHub repository conallob/o11y-analysis-tools (4 stars, last pushed 1mo ago), licensed BSD-3-Clause. It adds 1,690 tokens to every session, about $0.0085 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.