Pipeline evaluator

From oimiragieo/agent-studio · View interactive version

Pipeline evaluator is an AI agent skill from the GitHub repository oimiragieo/agent-studio. Evaluates completed agent pipelines across 5 scoring dimensions and produces a composite verdict with actionable recommendations

How to use this skill

Skill file

Pipeline Evaluator

Purpose

Score a completed agent pipeline across 5 dimensions and produce a structured evaluation report with a composite verdict (EXCELLENT/GOOD/ACCEPTABLE/NEEDS_IMPROVEMENT) and ranked recommendations.

When to Invoke

Skill({ skill: 'pipeline-evaluator' })

Invoke when:


Workflow

Step 1: Gather Pipeline Data

  1. Call TaskList() to retrieve all tasks associated with the pipeline.
  2. For each task, call TaskGet({ taskId }) to fetch full metadata including:
  1. Read any plan file referenced in task metadata to cross-check task completion against planned scope.

Step 2: Score 5 Dimensions

Calculate each dimension score (0–100 unless noted):

D1: Task Completion Rate (weight: 30%)
completionRate = (completedTasks / totalTasks) * 100

Score mapping:

D2: Deviation Count (weight: 20%)

Count total deviations logged across all task metadata deviations[] arrays.

Score mapping (inverse — fewer is better):

D3: Test Pass Rate (weight: 25%)

Parse metadata.testResult fields. Extract pass counts and fail counts from strings like "PASS 42/42" or "FAIL 38/42".

testPassRate = (totalPassed / totalTests) * 100

If no test results reported: use 50 as neutral score.

D4: Time Efficiency (weight: 10%)

Compare actual pipeline duration vs estimated duration (if available in plan file).

efficiency = min(estimatedDuration / actualDuration, 1.0) * 100

If no estimate available: score 70 (neutral).

D5: Quality Score (weight: 15%)

Derived from code quality signals in task metadata:

Cap at 100. Default to 60 if no quality signals present.

Step 3: Calculate Composite Score

composite = (D1 * 0.30) + (D2 * 0.20) + (D3 * 0.25) + (D4 * 0.10) + (D5 * 0.15)

Step 4: Determine Verdict

| Composite Score | Verdict |

| --------------- | ----------------- |

| > 90 | EXCELLENT |

| > 75 | GOOD |

| > 60 | ACCEPTABLE |

| ≤ 60 | NEEDS_IMPROVEMENT |

Step 5: Generate Recommendations

For each dimension scoring below 80, generate a specific recommendation:

Sort recommendations by severity (lowest score dimension first).

Step 6: Write Evaluation Report

Write the structured evaluation to .claude/context/reports/backend/pipeline-eval-{pipelineId}-{YYYY-MM-DD}.md:

<!-- Agent: pipeline-evaluator | Task: #{taskId} | Session: {date} -->

# Pipeline Evaluation: {pipelineId}

**Evaluated At**: {ISO timestamp}
**Verdict**: {VERDICT}
**Composite Score**: {score}/100

## Dimension Scores

| Dimension            | Score | Weight | Weighted   |
| -------------------- | ----- | ------ | ---------- |
| Task Completion Rate | {D1}  | 30%    | {D1\*0.3}  |
| Deviation Count      | {D2}  | 20%    | {D2\*0.2}  |
| Test Pass Rate       | {D3}  | 25%    | {D3\*0.25} |
| Time Efficiency      | {D4}  | 10%    | {D4\*0.1}  |
| Quality Score        | {D5}  | 15%    | {D5\*0.15} |

## Recommendations

{ranked recommendations list}

Also write the machine-readable JSON to .claude/context/reports/backend/pipeline-eval-{pipelineId}-{YYYY-MM-DD}.json conforming to pipeline-evaluation.schema.json.


Scoring Reference

| Verdict | Composite | Meaning |

| ----------------- | --------- | ------------------------------------ |

| EXCELLENT | > 90 | Pipeline executed near-perfectly |

| GOOD | > 75 | Minor issues; no systemic problems |

| ACCEPTABLE | > 60 | Notable gaps but goals met |

| NEEDS_IMPROVEMENT | ≤ 60 | Systemic issues require intervention |


Anti-Patterns

Related Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.