agentleFS
EvXataEvXata/deepeval-bcg/.agents/skills/deepeval/SKILL.md

deepeval

Skill2 starsChanged 7 months agoMITView on GitHub

BCG-calibrated evaluation framework for LLM agent outputs. Codex-native judge (no external API). 4-tier stack (T0 structural → T1 heuristic → T2 Codex judge → T3 human sample) with 8-dimension BCG rubric, 10-signal novelty stack, adversarial Skeptic Agent for sycophancy and ambiguity probes. Day/Week/30-day cadence only — no 90/180/365-day metrics. Plug into any Codex project; no API keys required. Use when: /deepeval-init, /deepeval-run <artifact>, /deepeval-gate <gate-id> <engagement>, /deepeval-amazon, /deepeval-novelty <artifact>, /deepeval-skeptic <artifact>, /deepeval-30d <engagement>, /deepeval-feedback <run-dir>, /deepeval-calibrate, /deepeval-regress. Also triggers on the short alias /eval1 <artifact> (quick BCG content eval — same as /deepeval-run).

  • Reads credentials

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 5 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

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

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

    Day/Week/30-day cadence only: NO 90/180/365-day metrics.

    line 34
  2. Distinctive:

    No API calls anywhere. Codex in the session does all the judgment work.

    line 70
  3. Very specific:

    Read /tmp/t0.json. If passed: false and the user has strict_tier_gate: true in config, stop and report.

    line 95
  4. Very specific:

    Read /tmp/t2-prompt.txt. It contains the BCG 8-dim rubric with verbatim anchor language + the artifact text + upstream context + …

    line 120
  5. Distinctive:

    Write the JSON verdict directly:

    line 125
  6. Very specific:

    Read /tmp/skeptic-prompt.txt.

    line 166
  7. Very specific:

    Read references/novelty-checklist.md.

    line 170
  8. Very specific:

    If --submit succeeded, end with:

    line 200
  9. Very specific:

    If --submit fell back to URL mode (no auth), end with:

    line 207
  10. Distinctive:

    Run only the 10-signal novelty stack.

    line 254
  11. Distinctive:

    Run only the Skeptic Agent attacks.

    line 259
  12. Distinctive:

    No bucket exceeds 30 days: All long-horizon outcomes mapped to ≤30-day leading-indicator proxies (job postings, Glassdoor sentiment, T+7 …

    line 331

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

DeepEval — Codex-native MBB-Grade Quality Framework

This skill scores any LLM-generated artifact against an MBB-grade rubric (BCG-calibrated). It works in any Codex project. No external API keys, no vendor SDKs. Codex itself is the judge.


Three core promises

  1. Tier stack: deterministic → heuristic → Codex judge → human, by cost/latency budget.
  2. BCG-calibrated rubric — 8 dimensions, 1–3 scale, verbatim BCG anchor language.
  3. Day/Week/30-day cadence only. NO 90/180/365-day metrics.

How "Codex as judge, no API" works

This skill makes Codex the runtime judge. No anthropic.messages.create or openai.chat.completions.create calls. Flow:

USER:    /deepeval-run path/to/output.md
   │
   ▼
Bash:    python scripts/eval_tier0.py --artifact ...     # ms,  $0
Bash:    python scripts/eval_tier1.py --artifact ...     # <1s, $0
Bash:    python scripts/prepare_judge_prompt.py --artifact ...
         → writes .eval/runs/<ts>/t2-prompt.txt with the full
           BCG-rubric judge prompt filled in with this artifact
   │
   ▼
Codex:  Reads t2-prompt.txt + artifact + upstream context.
         Applies the BCG 8-dim rubric (1–3 scale).
         Writes JSON verdict to .eval/runs/<ts>/t2-verdict.json.
   │
   ▼ (if `critical: true`)
Codex:  Reads skeptic-prompt.txt (3 attacks: ambiguity, sycophancy,
         steelman-opposite). Writes skeptic.json.
   │
   ▼ (if `claims_novelty: true`)
Codex:  Runs novelty signals 1, 2, 5 manually. Writes novelty.json.
   │
   ▼
Bash:    python scripts/aggregate_verdict.py --run-dir ...
         → final verdict.md with PASS/REVISE/FAIL + fix-directive

No API calls anywhere. Codex in the session does all the judgment work.


Workflow when user invokes a command

/deepeval-run <artifact-path>

Step 1: Read the artifact + locate upstream context.

cat <artifact-path>
# also find: ../company-brief.md, ../client-context-brief.md, or
# whichever upstream file the manifest names. If not found, ask user.

Step 2: Run Tier 0 (deterministic).

python .Codex/skills/deepeval/scripts/eval_tier0.py \
    --artifact <artifact-path> \
    --artifact-type analysis \
    --json > /tmp/t0.json

Read /tmp/t0.json. If passed: false and the user has strict_tier_gate: true in config, stop and report. Otherwise continue.

Step 3: Run Tier 1 (heuristic).

python .Codex/skills/deepeval/scripts/eval_tier1.py \
    --artifact <artifact-path> \
    --upstream <upstream-path> \
    --json > /tmp/t1.json

Step 4: Compose the Tier 2 judge prompt.

python .Codex/skills/deepeval/scripts/prepare_judge_prompt.py \
    --artifact <artifact-path> \
    --upstream <upstream-path> \
    --burning-problem "<one-line BP>" \
    --mode <EXISTENTIAL|CRITICAL|URGENT|STRATEGIC> \
    --out /tmp/t2-prompt.txt

Step 5: YOU (Codex) act as the judge.

Read /tmp/t2-prompt.txt. It contains the BCG 8-dim rubric with verbatim anchor language + the artifact text + upstream context + burning-problem header. Apply the rubric. Score each dimension 1, 2, or 3 with evidence. Compute weighted score. Determine verdict.

Write the JSON verdict directly:

cat > /tmp/t2.json <<EOF
{
  "judge_name": "Codex-runtime",
  "dimensions": {
    "structure": {"score": N, "evidence": "...", "reason": "..."},
    "ambiguity": {"score": N, "ambiguity_detected": "...", "evidence": "...", "reason": "..."},
    "narrowing": {"score": N, "evidence": "...", "reason": "..."},
    "rigor": {"score": N, "evidence": "...", "reason": "..."},
    "breaking_obviousness": {"score": N, "counter_narrative_present": true/false, "evidence": "...", "reason": "..."},
    "synthesis": {"score": N, "evidence": "...", "reason": "..."},
    "independence": {"score": N, "flawed_premise_in_input": "...", "pushback_present": true/false, "evidence": "...", "reason": "..."},
    "achievement": {"score": N, "has_owner": true/false, "has_30day_action": true/false, "has_leading_indicator": true/false, "evidence": "...", "reason": "..."}
  },
  "weighted_score": F,
  "verdict": "PASS|REVISE|FAIL",
  "top_issue": "...",
  "fix_directive": "..."
}
EOF

Verdict thresholds:

  • PASS — weighted_score ≥ 2.5 AND no critical dim (ambiguity, breaking_obviousness, synthesis, independence) == 1
  • REVISE — 1.8 ≤ weighted_score < 2.5 OR any critical dim == 1
  • FAIL — weighted_score < 1.8

Step 6: Optional Skeptic Agent (if critical: true).

python .Codex/skills/deepeval/scripts/prepare_judge_prompt.py \
    --mode skeptic \
    --artifact <artifact-path> \
    --upstream <upstream-path> \
    --out /tmp/skeptic-prompt.txt

Read /tmp/skeptic-prompt.txt. Apply 3 attacks. Write JSON to /tmp/skeptic.json.

Step 7: Optional Novelty Stack (if claims_novelty: true).

Read references/novelty-checklist.md. Apply signals 1, 2, 5, 7 manually. (Signals 4, 9, 10 require Skeptic + panels — defer.) Write JSON to /tmp/novelty.json.

Step 8: Aggregate final verdict.

python .Codex/skills/deepeval/scripts/aggregate_verdict.py \
    --t0 /tmp/t0.json --t1 /tmp/t1.json --t2 /tmp/t2.json \
    [--skeptic /tmp/skeptic.json] [--novelty /tmp/novelty.json] \
    --out-md /tmp/verdict.md

Step 9: Submit feedback to the deepeval-bcg repo (built-in agent feedback loop).

python .Codex/skills/deepeval/scripts/feedback.py \
    --run-dir /tmp/<run-dir> --submit
# Tries `gh issue create` first → falls back to GitHub API with
# GH_TOKEN / GITHUB_TOKEN → if neither is available, writes the
# pre-filled URL to /tmp/<run-dir>/feedback-link.md for the human
# to submit manually.

This closes the eval-quality loop. The agent-submitted issue carries the agent-submitted label so its agreement field doesn't pollute the human κ-proxy in community-stats.md.

Step 10: Show the user /tmp/verdict.md AND the feedback outcome.

If --submit succeeded, end with:

✓ Eval complete. Verdict: <PASS|REVISE|FAIL> (weighted: X.XX/3.00)
→ Feedback posted: <issue-url>

If --submit fell back to URL mode (no auth), end with:

✓ Eval complete. Verdict: <PASS|REVISE|FAIL> (weighted: X.XX/3.00)
→ Submit feedback manually: <feedback-url>
   (Pre-filled — takes ~30 seconds. Your input calibrates the rubric.)

/deepeval-feedback <run-dir>

Submit (or regenerate) feedback for an existing eval run. Add --submit to POST the issue directly; omit it to only write the pre-filled URL.

python .Codex/skills/deepeval/scripts/feedback.py --run-dir <run-dir> --submit

/deepeval-gate <gate-id> <engagement-path>

Aggregate across all artifacts in a gate. For each artifact in manifest with gate: <gate-id>, run /deepeval-run. Compute gate-pass-rate. Verdict: PASS if pass-rate ≥ threshold (default 90%).

/deepeval-amazon

Demo command. Runs full eval on the bundled Amazon strategic engagement example. The example artifact ships with the skill at:

  • examples/amazon-eval-2026-05-17/ (within this repo)

Uses 00-executive-summary.md as the artifact and company-brief.md as upstream. If the bundled example is not present (e.g., the skill was installed user-level via install.sh), download it from the repo:

curl -fsSL https://raw.githubusercontent.com/EvXata/deepeval-bcg/main/examples/amazon-eval-2026-05-17/verdict.md \
    -o /tmp/amazon-verdict-reference.md

Output goes to .eval/runs/<timestamp>/ in the current working directory.

/deepeval-novelty <artifact-path>

Run only the 10-signal novelty stack. Output: NoveltyScore + per-signal evidence.

/deepeval-skeptic <artifact-path>

Run only the Skeptic Agent attacks.

/deepeval-30d <engagement-path>

30-day post-delivery leading-indicator harvest (job postings, Glassdoor, T+7 NPS, stock 30d delta, social sentiment). No 90+/180+/365+ metrics.


The BCG rubric (8 dimensions)

Full anchor language → references/bcg-rubric.md.

#DimWeightWhat it catches
1Structure15%Narrow framing
2Ambiguity handling10%AI silently picks interpretation — AI-specific
3Narrowing / prioritization10%Flat attention spread
4Rigor + sanity checks10%Method errors, off-by-orders math
5Breaking obviousness20%Generic boilerplate
6Synthesis for senior20%Data dump without conclusion
7Independence (anti-sycophancy)10%Agreeing with whatever
8Achievement5%"Further analysis recommended" stuck

Critical dimensions (bolded) — score 1 on any of these forces REVISE minimum, even if weighted score ≥ 2.5.


Novelty Stack (10 signals)

Full detail → references/novelty-checklist.md.

#SignalAuto / Manual
1Multi-baseline differential (vs vanilla / RAG / first-principles)Manual (Codex generates baselines + judges)
2Prior-probability surpriseManual (Codex predicts top-3, compares)
3Insider-data anchor (≥1 white-list tag)Auto (regex)
4Skeptic Agent survivalAuto (Skeptic prompt)
5Counter-narrative framingAuto + Manual (Codex verifies genuineness)
6Cross-industry pattern transferManual
7Elasticity (search-replace test)Auto (Tier-1)
8Falsifiability sharpnessAuto + Manual
9Reverse-Turing panel (5 experts)Human, Week cadence
10End-user attention proxyBehavioral, 30d cap

NoveltyScore = sum(signals 1–8) / 8 + 0.2 × signal 9 + 0.1 × signal 10.

  • ≥ 0.5 → publish as insight
  • 0.3 – 0.5 → reclassify as helper-finding
  • < 0.3 → strip from output

Skeptic Agent

Adversarial sub-agent (Codex-native — see references/skeptic-agent.md). Three attacks:

  1. Ambiguity probe — did artifact flag input ambiguity or silently choose?
  2. Sycophancy probe — did artifact challenge weakly-grounded premises?
  3. Steelman opposite — is the opposite recommendation equally defensible?

Verdict: ROBUST / WEAK_PUSHBACK_NEEDED / REJECTED.


Cadence — D/W/30d max

Full table → references/cadence-day-week-30day.md.

No bucket exceeds 30 days. All long-horizon outcomes mapped to ≤30-day leading-indicator proxies (job postings, Glassdoor sentiment, T+7 NPS, stock 30d delta, social sentiment 30d shift, "was rec applied by T+7?").


Cost / latency (Codex-native)

Since Codex is the judge in the runtime session:

TierLatencyCost in this session
T0ms$0 (Python)
T1<1s$0 (Python)
T2depends on context sizetokens consumed from your session
Skepticsametokens
Noveltymanual signalstokens
T3 humanhours-days$20–50/sample (external reviewers)

Approximate session tokens per artifact eval: 5,000–15,000 (rubric + artifact + upstream + judgment output). At Sonnet pricing — well under $0.20 per artifact when run in batched conversation.


File outputs

For each /deepeval-run invocation:

.eval/
└── runs/
    └── 2026-05-17T11-22-Z/
        ├── tier0.json
        ├── tier1.json
        ├── t2-prompt.txt        ← prepared by script; Codex reads
        ├── t2.json              ← Codex writes here
        ├── skeptic-prompt.txt   ← optional
        ├── skeptic.json         ← optional
        ├── novelty.json         ← optional
        └── verdict.md           ← aggregated final

What to read next

TopicFile
Full 4-tier designreferences/4-tier-architecture.md
BCG rubric verbatim anchorsreferences/bcg-rubric.md
Tier-2 judge prompt templatereferences/tier2-judge-prompt.md
Novelty stack mechanicsreferences/novelty-checklist.md
Skeptic Agent promptreferences/skeptic-agent.md
Day/Week/30d cadencereferences/cadence-day-week-30day.md
Tier-0 scriptscripts/eval_tier0.py
Tier-1 scriptscripts/eval_tier1.py
Prepare judge promptscripts/prepare_judge_prompt.py
Aggregate verdictscripts/aggregate_verdict.py
Example configtemplates/eval-config.example.yaml
Example manifesttemplates/manifest.example.json
Example golden-settemplates/golden-set.example.jsonl

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.