agentleFS
EvXataEvXata/deepeval-bcg/.claude/skills/pipeline-eval/SKILL.md

pipeline-eval

Skill2 starsChanged 7 months agoMITView on GitHub

System-level evaluation framework for multi-stage LLM pipelines. Scores the pipeline *as a whole* across 8 dimensions — input quality, output quality, prompt design, input-coverage %, sequence optimality, parallelization, fact-grounding, and self-improvement feedback. Complements `deepeval` (which scores single content artifacts) by scoring the pipeline architecture itself. Trigger when user types `/pipeeval-*` commands or asks to "evaluate the pipeline", "audit the agent system", "find bottlenecks", "check input/output coverage", or works with pipeline.json / n8n workflows / multi-agent orchestrations. Use proactively after `/deepeval-run` if the user wants system-level (not artifact-level) findings. Also triggers on the short aliases /eval2 <prompt-or-pipeline> (prompt-design audit, same as /pipeeval-prompt) and /eval3 <pipeline.json> (full end-to-end pipeline eval, same as /pipeeval-full).

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use deepeval (not this) when:

    line 18
  2. Distinctive:

    No external LLM SDK calls: When Claude-as-judge is needed, the orchestrator prepares a prompt to disk.

    line 51
  3. Very specific:

    Cadence rule: no metric bucket exceeds 30 days.

    line 53
  4. Distinctive:

    Parallel-first execution: when a mode can run on N items independently (e.g., scoring 51 prompts), spawn N agents in parallel by default.

    line 54
  5. Very specific:

    Every claim in a verdict requires an evidence field with a quote from the source (same anti-fabrication rule as deepeval).

    line 91

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

pipeline-eval — System-level evaluation for LLM pipelines

What this skill is for

deepeval scores one content artifact. pipeline-eval scores the system that produced it. Different question, different rubric, complementary.

Use pipeline-eval when:

  • The user has a multi-stage pipeline (pipeline.json, n8n workflow, LangGraph, custom orchestrator)
  • They want to know: where does quality leak? — at input, at the prompt, at sequencing, at fact-grounding, somewhere else
  • They want to compare two pipeline versions (A vs B)
  • They want a self-improvement loop that learns from past runs

Use deepeval (not this) when:

  • The user has one strategic artifact and wants a BCG-style scorecard
  • The output is the question, not the system

The 8 evaluation modes

ModeCommandWhat it checks
1. Input Quality/pipeeval-input <stage>Are stage inputs well-formed, complete, useful? Probes with adversarial noise.
2. Output Quality/pipeeval-output <stage>Wraps deepeval Tier-2 BCG rubric + adds downstream-compatibility check.
3. Prompt Design/pipeeval-prompt <prompt>Applies BCG 8-dim in prompt_design_quality mode — scores prompt text itself.
4. Input Coverage/pipeeval-coverage <stage>% of required-info present; criticality map (what breaks when missing).
5. Sequence Optimality/pipeeval-sequence <pipeline.json>Detects needless serialization, missing deps, redundant stages.
6. Parallelization Audit/pipeeval-parallel <pipeline.json>Builds DAG, identifies parallelizable buckets, computes parallel efficiency.
7. Fact Grounding/pipeeval-facts <output>Each numerical/factual claim → source. % grounded vs hallucinated.
8. Self-Improvement/pipeeval-learn <feedback>Feeds outcomes back into the pipeline — A/B framework, drift detection.

End-to-end run: /pipeeval-full <pipeline.json> — runs all 8 in dependency order.

Short aliases (eval1 / eval2 / eval3)

Three short shortcut commands give a 3-tier eval ladder — pick the one matching how much you want to investigate:

AliasMaps toScopeCost
/eval1 <artifact>deepeval skill's /deepeval-runQuick. Single artifact, BCG 8-dim Tier-2 verdict.~1 LLM call
/eval2 <prompt-or-pipeline>/pipeeval-prompt (Mode 3)Medium. Prompt-design audit — score one or many prompts against BCG rubric in prompt_design_quality mode. Parallel-first for >5 prompts.~1 LLM call per prompt
/eval3 <pipeline.json>/pipeeval-full (all 8 modes)Full. End-to-end pipeline audit — parse → DAG → per-stage input/output/prompt/coverage/facts → self-improvement rollup.Many parallel agents

/eval1 is owned by the deepeval skill; /eval2 and /eval3 are owned here. The aliases are stable shortcuts — the underlying long-form commands (/deepeval-run, /pipeeval-prompt, /pipeeval-full) remain canonical.

Architectural rules (inherited from deepeval)

  1. No external LLM SDK calls. When Claude-as-judge is needed, the orchestrator prepares a prompt to disk; Claude (the runtime) reads it and emits the verdict JSON inline. No anthropic.messages.create / openai.chat.completions.create / genai.generate_content.
  2. BCG rubric anchors are reused VERBATIM for the output-quality and prompt-design modes — same calibration language as deepeval.
  3. Cadence rule: no metric bucket exceeds 30 days. The Self-Improvement mode uses Day/Week/30-day windows only — never 90/180/365.
  4. Parallel-first execution: when a mode can run on N items independently (e.g., scoring 51 prompts), spawn N agents in parallel by default. Only serialize when there is an explicit dependency.

Execution pattern per mode

Each mode follows the same 4-step pattern:

1. scripts/probe_<N>_<mode>.py     ← deterministic: extract structure, build manifest
2. scripts/prepare_judge_<N>.py    ← compose Claude-as-judge prompt to disk
3. Claude reads prompt + emits JSON verdict inline  (no SDK call)
4. scripts/aggregate_<N>.py        ← roll up verdicts into report

For modes 4, 5, 6 (coverage / sequence / parallelization) — purely deterministic: step 3 is skipped, the orchestrator's static analysis is the answer.

For modes 1, 2, 3, 7 — Claude-as-judge required.

For mode 8 — combines outputs from modes 1-7 over time + applies drift detection.

Reference files (read before applying a mode)

FileRead when
references/1-input-quality.mdrunning /pipeeval-input
references/2-output-quality.mdrunning /pipeeval-output (delegates to deepeval)
references/3-prompt-design.mdrunning /pipeeval-prompt
references/4-input-coverage.mdrunning /pipeeval-coverage
references/5-sequence-optimality.mdrunning /pipeeval-sequence
references/6-parallelization-audit.mdrunning /pipeeval-parallel
references/7-fact-grounding.mdrunning /pipeeval-facts
references/8-self-improvement.mdrunning /pipeeval-learn
references/output-format.mdalways — defines the universal verdict schema

Output discipline

  • Concise. Each mode emits JSON. Combine into one pipeline-verdict.md at the end.
  • Russian for user-facing chat; English for code, configs, file content (project rule).
  • Every claim in a verdict requires an evidence field with a quote from the source (same anti-fabrication rule as deepeval).

Composability with deepeval

pipeline-eval and deepeval are designed to compose:

  • /deepeval-run <artifact> → scores one artifact (content-quality)
  • /pipeeval-output <stage> → wraps the above + adds downstream-compatibility check
  • /pipeeval-full <pipeline.json> → calls /deepeval-run for every stage's output automatically

A user who has installed deepeval first gets the artifact-level eval; installing pipeline-eval adds the system-level eval. Neither replaces the other.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.