Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Jobs Trace Analyzer

ASecurity

Analyze benchmark jobs (Terminal-Bench, Harbor) in jobs/, inspect ATIF trajectory logs, tool call errors, prompt issues, timeout/circuit-breaker failures, and verifier results to identify harness bottlenecks in LibrAgent and generate evidence-based improvement plans. Trigger phrases: 'jobs 트레이스 분석', 'benchmark trace analysis', 'jobs 디렉토리 분석', '하네스 분석', '성적 감점 요인 분석', 'jobs-trace-analyzer'.

10 stars
0 votes
0 copies
0 views
Added 9/28/2026
ai-agentspythongoshellbashapi

Works with

terminalapimcp

Security Analysis

A100/100

Scanned 9/28/2026

Install to Claude Code

$npx -y skills add fritzprix/libr-agent --skill jobs-trace-analyzer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Jobs Trace Analyzer?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Jobs Trace Analyzer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/fritzprix-jobs-trace-analyzer/badge)](https://www.skillsdirectory.com/skills/fritzprix-jobs-trace-analyzer)

More formats (shields.io, HTML) on the badges page.

Files
SKILL.md
---
name: jobs-trace-analyzer
description: "Analyze benchmark jobs (Terminal-Bench, Harbor) in jobs/, inspect ATIF trajectory logs, tool call errors, prompt issues, timeout/circuit-breaker failures, and verifier results to identify harness bottlenecks in LibrAgent and generate evidence-based improvement plans. Trigger phrases: 'jobs 트레이스 분석', 'benchmark trace analysis', 'jobs 디렉토리 분석', '하네스 분석', '성적 감점 요인 분석', 'jobs-trace-analyzer'."
---

# Jobs Trace & Harness Bottleneck Analyzer

Analyze benchmark run trajectories stored under `jobs/<job_timestamp>/` to
pinpoint harness bottlenecks in **LibrAgent** (Builtin Tools, Prompts, Circuit
Breakers, Timeouts, Context Compaction) that degrade scores, and formulate
evidence-backed improvement plans.

**Scope:** tool sequences, observations, harness layers. **Don't care:**
model, serving engine. No harness contract broken → pattern and stop.

## Relationship to `harbor-harness-improvement-loop`

This skill is a **lighter inventory / categorization** pass over `jobs/<run>/`.

| Concern                                          | Use                                  |
| ------------------------------------------------ | ------------------------------------ |
| Quick pass-rate, failure buckets, tool frequency | **jobs-trace-analyzer** (this skill) |
| Evidence-backed BM → fix → rerun cycles          | **harbor-harness-improvement-loop**  |

Harbor’s analyzer is stricter: `verifier/reward.txt` as reward SSOT, ATIF-first
metrics, and explicit **heuristic ≠ verified failure**. Prefer that skill when
proposing product changes. Do not treat this script’s categories as causal proof.

## Workflow

### 1. Job Inventory & Automatic Trace Analysis

```bash
python .agents/skills/jobs-trace-analyzer/scripts/analyze_jobs_trace.py \
  jobs/<job_timestamp> \
  --output .libragent/work/trace-analysis/<job_timestamp>-analysis.md
```

Optional: `--verbose` prints per-task tool name lists.

The script reports:

- Total trials, pass rate (%), failed trial counts
- Failure categories (see below)
- Tool call frequency (ATIF-first when metadata trajectory is empty)
- `heuristic_error_observations` (keyword hits in ATIF observation text — **not**
  verified tool failures)

#### Failure categories

| Category                        | Meaning                                                                |
| ------------------------------- | ---------------------------------------------------------------------- |
| `SUCCESS`                       | Reward ≥ 1.0                                                           |
| `TIMEOUT_EXCEEDED`              | Exception type contains `Timeout`                                      |
| `NETWORK_API_ERROR`             | Connection / API network exception                                     |
| `TOOL_EXECUTION_ERROR`          | Structured tool `error` fields only (rare; not observation heuristics) |
| `INITIALIZATION_OR_EARLY_ABORT` | Zero turns                                                             |
| `AGENT_LOOP_OR_STUCK`           | ≥3 repeated adjacent identical tool calls (loop detected)              |
| `HIGH_TURN_COUNT`               | Turns > 30 without repeated-call evidence (inspect manually)           |
| `VERIFIER_FAILED_WRONG_STATE`   | Default failed bucket                                                  |

#### Tool extraction priority

1. `agent_result.metadata.trajectory` tool calls when present
2. Else ATIF `agent/trajectory.json` → `steps[].tool_calls[].function_name`
3. Else `metadata.tool_calls_count` (count only; names unavailable)

Reward prefers `verifier/reward.txt`, then `verifier_result.rewards.reward`.

---

### 2. Deep-Dive Trajectory Inspection (ATIF & Task Logs)

For each failed trial, inspect `jobs/<job_timestamp>/<task_name>/`:

1. **`result.json`**: rewards, `exception_info` / `exception.txt`, metadata turns
2. **`agent/trajectory.json` (ATIF)**: first divergence turn
3. **`verifier/reward.txt` & `trial.log`**: why verification failed

---

### 3. Harness Layer Mapping

> **Don't care (never diagnose, compare, or blame):** model, serving engine.
> In this harness project, tests evaluate the harness itself. If no harness
> contract (tool schema, handler, prompt assembly, circuit breaker, adapter)
> is broken, report the tool pattern and stop.

| Symptom                              | Primary Owning Layer               | Target Code                                                         |
| ------------------------------------ | ---------------------------------- | ------------------------------------------------------------------- |
| Tool parameter / schema error        | Builtin MCP tools                  | `src-tauri/src/mcp/builtin/`                                        |
| Repeated tool loop                   | Circuit breaker / natural recovery | `src-tauri/src/agent/llm/circuit_breaker.rs`, `natural_recovery.rs` |
| Timeout / unfinished                 | Timeout multipliers / shell        | `src-tauri/src/mcp/builtin/workspace/utils.rs`                      |
| Missing verification / premature end | Prompts                            | `src-tauri/src/agent/prompt/`                                       |
| Context loss / truncation            | Compaction                         | `src-tauri/src/agent/llm/completion/request/compact.rs`             |

---

### 4. Formulate Evidence-Based Improvement Plan

For each issue: symptom + trajectory evidence → root cause → smallest
intervention → verification (`pnpm refactor:validate`, `cargo test`, re-run
slice). Escalate to `harbor-harness-improvement-loop` for controlled BM cycles.

---

### 5. Report Output Location

Save reports under:

`.libragent/work/trace-analysis/<job_name>-analysis.md`

Attribution

fritzprixfritzprix
View sourceMore from fritzprix →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Ultra-compressed communication mode that cuts output tokens while keeping technical accuracy. Levels: lite, full, ultra and the wenyan variants. Use for /caveman, "caveman mode", "talk like caveman", "be brief" or "less tokens".

1074701 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

695601 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3351 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

691 votes

math-skill

A comprehensive mathematical reasoning skill for AI assistants — handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling

381 votes
View all in ai-agents →