auto-skill-build-agent-reliability-loop
Skill3 starsChanged 6 months agoMITView on GitHub
Design production agent reliability loops across traces, evals, guardrails, gateways, model budgets, and shadow tests. Use when shipping AI/agent workflows that need simulate/evaluate/protect/monitor/optimize structure, gateway policy, eval suites, guardrail rollout, or trace-to-regression feedback. Skip when the task only needs a local Codex run ledger; use `$agent-observability` instead.
In this repository30 other files it gives its agents.
- agent-memory-ledgerSkill
- agent-observabilitySkill
- automation-skill-forgeSkill
- auto-skill-audit-codex-supercharge-installed-driftSkill
- auto-skill-build-agent-run-ledger-dashboardSkill
- auto-skill-build-mcp-conformance-harnessSkill
- auto-skill-build-memsearch-codex-memorySkill
- auto-skill-build-source-pattern-synthesisSkill
- auto-skill-build-sources-inventorySkill
- auto-skill-build-supercharge-feedback-loopSkill
- auto-skill-ops-supercharge-maintenance-passSkill
- auto-skill-safety-external-skill-intakeSkill
- auto-skill-safety-mcp-secret-guardSkill
- auto-skill-trend-github-discovery-radarSkill
- codebase-graph-scoutSkill
- codex-prompt-template-builderSkill
- codex-supercharge-routerSkill
- experiment-loop-runnerSkill
- low-token-contextSkill
- mcp-safety-reviewSkill
- mcp-server-labSkill
- model-cost-routerSkill
- openapi-to-mcp-skillSkill
- open-design-ui-librarySkill
- repo-intelligence-briefSkill
- repo-to-wikiSkill
- sandbox-source-intakeSkill
- skill-pack-factorySkill
- skill-quality-gateSkill
- workflow-launchpadSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 32
Build eval bundles: create golden cases for task success, prompt conformance, tool correctness, unsafe requests, PII/secrets, latency, and …
- Distinctive: line 37
Stage guardrails: run new pre/post checks in log or monitor mode first, then enforce only after false positives and fail-open/fail-closed …
- Distinctive: line 71
Every production route has at least one trace and one regression case.
- Distinctive: line 72
Every blocking guardrail has a false-positive review path.
- Distinctive: line 73
Every budget/rate limit has an owner and an alert threshold.
- Very specific: line 76
Read references/future-agi-agent-reliability-loop.md for the source-backed pattern and risk notes.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agent Reliability Loop
Generated by: Codex Supercharge maintenance automation.
Goal: turn an agent workflow into a closed loop where production traces become eval cases, eval failures become guardrails or fixes, and gateway policy keeps cost, routing, and tool risk bounded.
Skip When
- The user only wants local Codex run/cost tracking.
- The work is a single benchmark or experiment with no production surface.
- The task is only MCP conformance; use
$auto-skill-build-mcp-conformance-harness.
Workflow
- Map the surface: list user journeys, models, tools, data classes, side effects, risk levels, and quality/cost/latency targets.
- Instrument first: require request IDs, trace/span IDs, session IDs, model/provider, token/cost, cache, fallback, guardrail, and tool metadata.
- Build eval bundles: create golden cases for task success, prompt conformance, tool correctness, unsafe requests, PII/secrets, latency, and cost. Keep judge prompts and heuristic checks versioned.
- Set gateway policy: define provider mapping, model fallbacks, cache rules, virtual keys, budgets, rate limits, privacy redaction, and audit logs.
- Stage guardrails: run new pre/post checks in log or monitor mode first, then enforce only after false positives and fail-open/fail-closed behavior are explicit.
- Shadow safely: mirror sampled traffic to candidate models or prompts only when shadow calls cannot trigger external side effects.
- Close the loop: cluster failed traces, match nearest successful traces, add representative failures to evals, patch prompts/tools/policies, then rerun the bundle before release.
Commands
rg -n "trace|span|cost|tokens|guardrail|fallback|budget|rate limit|request_id" .
rg -n "eval|rubric|judge|golden|dataset|experiment|shadow|canary" .
rg -n "tool|mcp|side effect|webhook|shell|filesystem|credential" .Output
# Agent Reliability Plan
## Surface
## Instrumentation
## Eval Bundle
## Gateway Policy
## Guardrail Rollout
## Shadow Or Canary Plan
## Trace-To-Regression Loop
## Risks And Trust Notes
## ValidationValidation
- Every production route has at least one trace and one regression case.
- Every blocking guardrail has a false-positive review path.
- Every budget/rate limit has an owner and an alert threshold.
- Shadow/canary traffic cannot write to tools, accounts, payments, or user data.
Read references/future-agi-agent-reliability-loop.md for the source-backed
pattern and risk notes.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

