本文へ移動
cccskills
無料GitHub で公開

agent-trajectory-diagnostics

Use when diagnosing agent benchmarks or runtime failures from trajectories instead of aggregate pass rates. Builds shared action-observation decision landscapes, identifies productive cores and trap regions, profiles Access/Trap/Repair behavior, and designs conservative trap-triggered recovery experiments.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md5.2 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Agent Trajectory Diagnostics

Pass rate hides how an agent navigates. Use shared decision landscapes to identify where agents reach productive states, enter recurring failure regions, and recover.

When to Activate

Activate when:

  • Aggregate agent scores do not explain failures
  • Comparing agent models or harnesses on the same task suite
  • Looking for recurring loops, dead ends, invalid tool choices, or repair behavior
  • Building a conservative runtime recovery trigger from historical trajectories
  • Auditing whether a benchmark rewards avoidance, exploration, or recovery

Paper-Backed Vocabulary

EventMeaning
AccessTrajectory reaches a productive core
Trap exposureTrajectory enters a low-outcome region
RepairTrajectory enters a trap and later reaches a productive core

Trap regions are descriptive, not universal proof of a bad action. Some traps contain legitimate exploration.

Workflow

Step 1: Collect Comparable Trajectories

Capture:

  • Task ID
  • Outcome or reward
  • Ordered actions
  • Tool calls
  • Environment observations
  • File, URL, command, or entity cues
  • Model and harness identity

Pool rollouts across models or harness variants before adding model identity to the analysis.

Step 2: Canonicalize Observable States

Create sparse action-observation signatures:

action: edit|read|search|execute|delegate
tool: tool-name
observation: success|error|timeout|empty|conflict
resource: normalized-path-or-entity
phase: optional-workflow-phase

Strip volatile identifiers. Keep enough structure to recognize recurring contexts.

Step 3: Build the Shared Landscape

  1. Create a similarity graph over pooled observable states.
  2. Group densely related states.
  3. Identify articulation gates where trajectories branch between phases or strategies.
  4. Overlay outcome information only after graph construction.
  5. Mark productive cores and low-outcome trap regions.

Model identity should be traffic over the shared landscape, not an input to landscape construction.

Step 4: Profile Supply and Demand

For each model or harness:

  • Access rate
  • Trap-exposure rate
  • Repair rate
  • Time to access
  • Time spent in traps
  • Repeated trap loops

For each benchmark:

  • Does success mostly require reaching productive states?
  • Does success require avoiding traps?
  • Does success require repairing after traps?

Step 5: Validate the Landscape

Manually inspect samples:

  • Within-region state pairs should be more similar than cross-region pairs.
  • Articulation gates should often correspond to strategy or phase changes.
  • Productive cores should be enriched for progress.
  • Trap regions should be enriched for loops, dead ends, or low-outcome transitions.

Step 6: Test Conservative Recovery

When historical traps are repeatable:

  1. Run the live agent normally.
  2. Detect a canonical state matching a historical trap region.
  3. Fork from the same prefix.
  4. Compare small single-factor interventions such as a diagnosis note, increased sampling diversity, or a provider-specific continuation policy.
  5. Promote only an intervention that improves paired outcomes on fired states.

Do not apply recovery globally without evidence.

Output Format

## Trajectory Corpus
[Tasks, rollouts, models, harnesses]

## Shared Landscape
[State signature, graph construction, cores, traps, gates]

## Process Profiles
[Access, Trap, Repair by model and benchmark]

## Failure Regions
[Recurring states and examples]

## Recovery Experiment
[Trigger, prefix fork, treatment arms, paired results]

## Limits
[Where signatures or interventions may not generalize]

Guidelines

  1. Build shared landscapes before overlaying model identity.
  2. Keep runtime triggers observable and conservative.
  3. Test recovery on the same fired prefixes.
  4. Report paired outcome changes, not anecdotes.
  5. Preserve trap false positives for review.
  6. Treat process profiles as diagnostics, not a replacement leaderboard.

Gotchas

  1. Scalar-score tunnel vision - Equal pass rates can hide different failure and recovery modes.
  2. Outcome leakage - Do not construct the state graph from model identity or labels.
  3. Trap absolutism - Low-outcome regions may include useful exploration.
  4. Global repair policies - Trigger recovery only where historical evidence supports it.
  5. Over-specific signatures - Volatile IDs prevent matching recurring states.
  6. Over-general signatures - Removing too much structure creates noisy triggers.

Reference


Skill Metadata

Created: 2026-06-02 Version: 1.0.0

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Use when long-lived agents, project memories, system prompts, or playbooks are repeatedly summarized, rewritten, or optimized and risk losing domain detail, provenance, or execution learnings.

日本語の概要は準備中です。原文の説明を表示しています。

mouadja02/skills102026年10月16日 更新

Use this skill when the user explicitly asks to map, document, or onboard into an existing codebase. Trigger for prompts like "map this codebase", "document this architecture", "onboard me to this repo", or "create codebase docs". Do not trigger for routine feature implementation, bug fixes, or narrow code edits unless the user asks for repository-level discovery.

日本語の概要は準備中です。原文の説明を表示しています。

mouadja02/skills102026年10月16日 更新

Adds educational comments to a code file so it becomes a learning resource, asking for the file (with a list of close matches) if none is given. Use when preparing code for learners, onboarding, or teaching.

日本語の概要は準備中です。原文の説明を表示しています。

mouadja02/skills102026年10月16日 更新

Write, debug, and optimize Adobe Illustrator automation scripts using ExtendScript (JavaScript/JSX). Use when creating or modifying scripts that manipulate documents, layers, paths, text frames, colors, symbols, artboards, or any Illustrator DOM objects. Covers the complete JavaScript object model, coordinate system, measurement units, export workflows, and scripting best practices.

日本語の概要は準備中です。原文の説明を表示しています。

mouadja02/skills102026年10月16日 更新

Patterns and techniques for adding governance, safety, and trust controls to AI agent systems. Use this skill when: - Building AI agents that call external tools (APIs, databases, file systems) - Implementing policy-based access controls for agent tool usage - Adding semantic intent classification to detect dangerous prompts - Creating trust scoring systems for multi-agent workflows - Building audit trails for agent actions and decisions - Enforcing rate limits, content filters, or tool restrictions on agents - Working with any agent framework (PydanticAI, CrewAI, OpenAI Agents, LangChain, AutoGen)

日本語の概要は準備中です。原文の説明を表示しています。

mouadja02/skills102026年10月16日 更新

Check any AI agent codebase against the OWASP Agentic Security Initiative (ASI) Top 10 risks. Use this skill when: - Evaluating an agent system's security posture before production deployment - Running a compliance check against OWASP ASI 2026 standards - Mapping existing security controls to the 10 agentic risks - Generating a compliance report for security review or audit - Comparing agent framework security features against the standard - Any request like "is my agent OWASP compliant?", "check ASI compliance", or "agentic security audit"

日本語の概要は準備中です。原文の説明を表示しています。

mouadja02/skills102026年10月16日 更新

mouadja02 のスキルをすべて見る

このスキルの問題を報告する