OpenSRE is an open-source framework for building AI agents that investigate and resolve production incidents using operational data and tools. It is for site reliability engineers who want customizable incident-response workflows, training, and evaluation on their own infrastructure.
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/tracer-cloud/opensre/architecture_auditnpx skills add Tracer-Cloud/opensre --skill architecture_auditgit clone --depth 1 https://github.com/Tracer-Cloud/opensreWrote 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/tracer-cloud/opensre/architecture_audit)<a href="https://agentmods.dev/skills/tracer-cloud/opensre/architecture_audit"><img src="https://agentmods.dev/badge/skills/tracer-cloud/opensre/architecture_audit.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.00026 | $0.01715 |
| Opus 5 | $0.00013 | $0.00857 |
| Sonnet 5 | $0.00005 | $0.00343 |
| Haiku 4.5 | $0.00003 | $0.00171 |
Grade A, and why
architecture-audit 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 yesterday.
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 — 130 lines — stays where its author put it; the contents beside it link to each section on GitHub.
══════════════════════════════════════════════════════════ ARCHITECTURE AUDIT SKILL — interactive-shell action agent: ══════════════════════════════════════════════════════════
WHEN TO USE (call this skill when the user ask matches any of these):
- Architecture audit / architecture review / architecture violations
- Structural summary of a codebase (what it does, hotspots, debt themes, recommended refactor sequencing) — not a one-line README paraphrase
- Phrases like: "audit Tracer-Cloud/opensre", "find architecture issues", "summarize this repo's architecture", "what's wrong with the layering", "find huge files / shims", "architecture report for owner/repo"
Do NOT use this skill for: live incident RCA, metric/log queries, deploying, or ordinary chat that only needs a short verbal overview with no scan.
HARD RULES (violating any = failed turn):
- Never end the turn with shell_run as the last tool — final reply is the
filled REPORT TEMPLATE (exact headings;
- nonefor empty lists). - Every shell_run in this skill MUST pass quiet=true (hide $ / stdout in the terminal; results still return to you).
- Order: AGENT SCAN before heuristics (≤3 shell_run; use discovered roots, do not assume source/include) → 4 separate heuristic shell_run passes → cleanup → architecture_save_observations (passes 3–6 only; path ~/.opensre/{session_id}/{repo_name}-architecture-audit-{uuid}.md) → no-tool report.
- Cap heuristic stdout (about 15–25 lines); You write each bash command; leave
no clone on disk.
Budget: clone + ≤3 agent-scan shell_run + 4 heuristic shell passes + cleanup
- save observations + final report.
STEP LABELING RULES (UX) — this skill hides its shell output (quiet=true), so the pinned plan overlay is the user's progress signal (Droid-style):
- Call
update_planonce at the start of the run with the 9 compact- sequence steps below (pending). Mark the first stepin_progress. - Before starting each next step's tool calls, call
update_planagain: mark the finished stepcompleted, the next onein_progress. Never leave the plan idle with every step still pending. - Do not dump
### [n/9]headers into the transcript — the overlay already showsPlan · n/m. One short status sentence per step is enough. - After the final report is ready, call
update_planwith every stepcompleted(or leave the last step completed from the prior update).
Compact sequence:
-
architecture_clone_repo(owner, repo, ref?) → workspace_root = /opensre/workspace (If already in the target checkout and no owner/repo named, skip clone and use cwd as workspace_root; then skip cleanup.)
-
AGENT SCAN — orient on the repo before heuristics (max 3 shell_run, each with quiet=true) Purpose: learn enough layout/docs context that later passes hit the right trees — not to invent a parallel findings dump. From workspace_root (repo root), discover top-level packages and where source vs public headers vs API/schema trees live. Prefer CONTEXT.md and ADRs in areas you touch; if missing, fall back to AGENTS.md, ARCHITECTURE.md, DECISIONS.md, docs/adr/, CONTRIBUTING.md layout notes, or nearest equivalents. Note "none found" when absent. Explore organically (≤3 shell_run total) and note early friction that should steer later probes:
- Where does understanding one concept require bouncing between many small modules?
- Where are modules shallow — interface nearly as complex as the implementation?
- Where have pure functions been extracted just for testability, but the real bugs hide in how they're called (no locality)?
- Where do tightly-coupled modules leak across their seams?
- Which parts are untested, or hard to test through their current interface? Apply the deletion test to anything you suspect is shallow: would deleting it concentrate complexity, or just move it? A "yes, concentrates" is the signal you want. Carry the discovered roots/contracts into steps 3–6.
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.
- yesterday Changed · -3 lines 89aa6133b2d5
- 5d ago First seen · 133 lines · 26 tokens per session scan A f9656fee25b4
architecture-audit is a skill published in the GitHub repository Tracer-Cloud/opensre (11,003 stars, last pushed today), licensed Apache-2.0. It adds 26 tokens to every session and 1,715 once invoked, about $0.0001 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-30.
Other skills, from other repositories
host_bash
设备上跑只读 shell 命令做诊断探索(沙箱化 / read-only policy).
host_restart_service
重启允许列表内的 systemd service(mutating,触发 reviewer 二审).
datadog
Full-stack observability with Datadog APM, logs, metrics, synthetics, and RUM. Use when implementing monitoring, tracing, alerting, or cost optimization for production systems.
file_inspector
Inspect files on the host filesystem.
edge_disk_audit
Audit disk usage on edge devices.
future_skill
A skill that uses fields ongrid does not yet recognize.