Configures Claude Code hooks and Codex hooks.json/notify. Use when adding PreToolUse guards, Stop hooks, managed hooks, format-on-save, preflight, audits, or worktree/budget hooks.
日本語の概要は準備中です。原文の説明を表示しています。
Designs coding-agent observability and evals. Use when measuring traces, replay, checkpoint lineage, tool grading, regression, or cost. Not for general LLM evals (ai-evals).
インストールする前に、エージェントに与えられる指示の中身を確認できます。
Use this skill to design or review the feedback loop around a coding-agent runtime: traces, replayable transcripts, eval packs, regression gates, tool-call grading, latency and cost accounting, and production failure triage.
This skill covers how you operate a coding-agent product after the core runtime exists. It does not replace the runtime skills themselves.
| Question | Read | Outcome |
|---|---|---|
| What should the trace and telemetry model include? | references/trace-and-telemetry-model.md | Durable trace schema, session correlation, event stages, and replay boundaries |
| How should evals, regressions, and cost controls work? | references/evals-regression-and-cost-ops.md | Golden tasks, iterative self-extension packs, trajectory scorecards, and cost-aware release gates |
| How do I use the eval/trace substrate to improve the harness itself? | references/harness-self-evolution.md | Closed-loop harness evolution: three observability pillars, falsifiable-contract edits, attribution |
| How does OpenAI Codex combine rollout replay, SQLite state, doctor reports, and telemetry? | references/openai-codex-rollout-doctor-telemetry.md | Replay artifacts, rebuildable state indexes, redacted diagnostics, W3C traces, token metrics |
| How does Codex wire OTel exporters and what analytics events exist? | references/openai-codex-otel-config.md | Schema lookup step, OTel vs proprietary analytics boundary, tracestate propagation and cardinality rules |
| Need | Use Instead |
|---|---|
| Broader coding-agent architecture | ../ai-coding-agents/SKILL.md |
| Session persistence and transcript restore | ../ai-coding-agents-state/SKILL.md |
| Tool runtime design | ../ai-coding-agents-runtime-core/SKILL.md |
| Generic agent eval harnesses | ../qa-agent-testing/SKILL.md |
| Reliability and observability outside agent systems | ../qa-observability/SKILL.md |
doctor subcommand is one example), before reading traces. It surfaces install, update-target, auth, config, sandbox-helper, and MCP faults that traces do not show. Ask for its redacted machine-readable report (codex doctor --json), not screenshots or the --summary view. Report schema: Doctor Reports.conftest.py, or CI config and turn a gate green. Hash test and grader paths before and after each eval task, grade from a clean checkout of those paths, and emit a harness_tamper trace event that auto-fails the task on any change.Emit recovery events as typed state transitions rather than free-form errors. The minimum set is reconnect_started|succeeded|failed, control_cancelled, fallback_activated, worker_escalated, and plugin_loaded|reloaded|disabled. Each event carries stable session/turn/worker/plugin IDs, attempt number, bounded reason class, prior and next state, and duration. Keep raw payloads and detailed provider errors in redacted traces; metrics receive only the bounded event and reason classes.
Track task budget, context/input tokens, output tokens, reasoning tokens when exposed, tool calls, wall time, and external spend as separate fields. A task may exhaust one while retaining the others, and some runtimes enforce only a subset. Record limit_source, limit_value, observed_value, and terminal outcome so a recovered run is distinguishable from a failure or user cancellation. Evals should grade recovery correctness, duplicate-side-effect avoidance, cancellation latency, and whether the final status matches the trace.
Every meaningful runtime action must be trace-correlated.
Production telemetry and eval telemetry are different datasets with different purposes.
Replay must not depend on ephemeral UI state.
Cost accounting must explain which subsystem and provider consumed budget.
Real failures should feed the eval corpus over time.
Metrics dimensions must stay low-cardinality even when trace events carry richer detail.
Evals should reflect the real failure profile of your agent. Do not ship only synthetic tasks or happy-path benchmarks.
Single-shot correctness and green tests do not prove extension robustness. Add a versioned iterative pack when the agent is expected to revisit the same codebase: each checkpoint supplies an evolved external specification and the agent continues from its own prior workspace. Record fresh checkpoint context separately from the carried code so the eval measures the consequences of earlier design choices rather than conversation recall.
For every checkpoint, persist lineage plus the outcome vector: trajectory_id, checkpoint_id, parent_checkpoint_id, spec_version, workspace identity and content hash, strict/isolated/core/regression results, erosion, verbosity, cost, and duration. Compare candidate and baseline trajectories on both level and slope. A release review should surface worsening structural-quality slope or a late-checkpoint correctness regression even when the final aggregate score is green. Derive product-specific gates from a representative baseline and repeated runs; SlopCodeBench does not establish universal thresholds.
One long-horizon preprint reports that explicit quality-guidance prompts reduced initial verbosity and erosion but did not change the degradation rate; effects on correctness are unsourced — verify. Prompt-only controls are therefore insufficient: keep the trajectory pack as the control surface and treat prompt changes as candidates to evaluate. Use ../qa-agent-testing/SKILL.md for the detailed carried-workspace benchmark protocol and ../software-clean-code-standard/SKILL.md for structural-erosion and verbosity definitions; this skill owns their telemetry and release-gate integration, not their formulas.
The OpenTelemetry GenAI semantic conventions define a standard schema for agent telemetry. Before linking or pinning dashboards, resolve the conventions' current location and stability status from the OpenTelemetry project itself. Key attributes:
gen_ai.operation.name — operation identifier on the root span (e.g., invoke_agent, create_agent, execute_tool)gen_ai.agent.name, gen_ai.agent.id, gen_ai.agent.version — agent identitygen_ai.tool.name / gen_ai.tool.call.id — child spans for tool invocationsgen_ai.conversation.id — cross-turn conversation correlationLocation caveat (verify before citing a URL): the gen_ai conventions have been relocated within the OpenTelemetry project before, and old spec pages can render "moved" notices while the attribute names stay valid; at last check the opentelemetry.io gen-ai spec page itself pointed to a separate open-telemetry/semantic-conventions-genai repository. Treat any bookmarked gen-ai spec URL as unstable; re-resolve it from the OpenTelemetry project before you cite it in a runbook or dashboard link.
Experimental status caveat: while the conventions are experimental, most SDKs emit them only behind an opt-in such as OTEL_SEMCONV_STABILITY_OPT_IN=gen_ai_latest_experimental; check the SDK's docs for the current flag. Expect attribute churn until the conventions are declared stable. Design instrumentation against the attribute names, but gate production dashboards and alerting thresholds on a version-pinned snapshot, not "whatever the SDK emits today," so an upstream rename doesn't silently blank a panel.
Contrast with Codex proprietary crate: Codex ships a bespoke codex-rs/otel crate (OtelSettings TOML, OtelExporter variants, W3C tracestate propagation) that predates the gen_ai semconv. The proprietary crate maps to the same conceptual slots but uses different attribute names and has no gen_ai.tool.call.id equivalent. When building cross-runtime dashboards, normalize to gen_ai semconv attributes and treat the Codex-proprietary shape as a source adapter.
Cache-hit telemetry: provider-side prompt caching can move cost and latency sharply without any quality change, and API choice and prompt layout affect hit rates. Track cache hits (and cache writes, where billed) as their own cost dimension, separate from inference cost. Do not fold cache hits into generic token-usage metrics; they have different cost multipliers and different debugging value. Look up the provider's current caching and pricing docs before estimating the savings of an API migration.
Two pre-release patterns that hold across agent runtimes:
<pack> v2.1?" is a more actionable release gate than "did the eval suite pass?"validate command to the CLI that runs all static gates (schema conformance, dependency reachability, policy compliance, extension allowlist intersection) and wire it into CI and the activation path.Static evals tell you whether a build regressed. A harness-evolution loop goes further: the same trace + eval substrate becomes the reward signal for automatically improving the harness (tool wiring, middleware, memory, retry/verification scaffolding — not the system prompt). One preprint reports observability-driven harness evolution beating a human-designed harness on Terminal-Bench 2 and transferring frozen to SWE-bench-verified at lower token cost (single-paper preprint result; see references/harness-self-evolution.md). Public-benchmark gains are not a release signal for your product: public coding benchmarks can be exploited, saturated, or retired, so gate on your own versioned pack.
This needs three distinct observability surfaces — component (every editable harness part is file-level and revertible), experience (trajectories distilled into an agent-readable evidence corpus, not a human dashboard), and decision (every edit carries a pre-declared prediction verified against the next eval round). The decision pillar — falsifiable contracts per edit — is what separates attributable evolution from benchmark-chasing that overfits the corpus.
Keep this strictly separate from the production release gate (Core Invariant: optimizer never trains on production telemetry), and add it only once the eval corpus is versioned and trustworthy. Full method, the loop, evidence, and the Pattern/Anti-pattern/Recipe are in references/harness-self-evolution.md.
These are the calls a strong operator makes differently from a team that just wired up a tracer and a pass/fail suite.
../ai-evals/references/eval-statistics.md.replay:recorded or replay:live, and compare candidate vs baseline only within one mode; check the trace model for which tool outputs are actually captured before trusting recorded mode.contains/excludes substring checks in a golden task are gameable, and agents will find the gap. An agent optimized against a static eval pack (by you, by harness self-evolution, or by the model provider's own RL) can learn to satisfy the literal check without satisfying the intent — e.g., adding a docstring containing the word "handles error" without handling the error. Treat any eval pack that has been used as an optimization target for more than a few cycles as partially compromised: rotate a subset of golden tasks, add mutated/adversarial variants, and keep at least one grading path (compiles, tests pass, schema-valid) that is not a substring match.data/sources.json — Primary docs and implementation references for coding-agent observability and evals../ai-evals/SKILL.md - Judge-bias taxonomy, pairwise/flake control, and threshold derivation for the golden-task graders here../ai-coding-agents/SKILL.md../ai-coding-agents-state/SKILL.md../ai-coding-agents-runtime-core/SKILL.md../qa-agent-testing/SKILL.mdWhen prior decisions or pitfalls are relevant, consult learnings.consolidated.md if present; use learnings.md only for needed history or as the available fallback. Otherwise skip both.
After applying it, if you encountered a pattern worth remembering, a mistake worth preventing, or a domain fact that surprised you, append one dated bullet to learnings.md via agents-skills-feedback-loop/scripts/append_learning.py. Do not modify SKILL.md itself.
まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Configures Claude Code hooks and Codex hooks.json/notify. Use when adding PreToolUse guards, Stop hooks, managed hooks, format-on-save, preflight, audits, or worktree/budget hooks.
日本語の概要は準備中です。原文の説明を表示しています。
Configures and hardens Claude Code and Codex MCP servers. Use when connecting databases, APIs, SaaS, building servers, or serving a clearance-filtered knowledge base.
日本語の概要は準備中です。原文の説明を表示しています。
Owns instruction files: AGENTS.md, CLAUDE.md, personal and repo rules. Use when writing, pruning, auditing them, sharing rules across Claude and Codex, or fixing ignored rules.
日本語の概要は準備中です。原文の説明を表示しています。
Creates and audits agent skills: SKILL.md, references, scripts, runtime metadata. Use when writing, validating, or security-reviewing a skill, or fixing truncated skill listings.
日本語の概要は準備中です。原文の説明を表示しています。
Adds per-skill learnings loops for dated patterns, mistakes, and domain facts. Use when wiring skill memory, consolidation, or drift audits.
日本語の概要は準備中です。原文の説明を表示しています。
Chooses subagent, team, workflow, or debate and launches it on Claude Code or Codex. Use when delegating, running agent review boards, or installing shared agents.
日本語の概要は準備中です。原文の説明を表示しています。