llm-wiki-eval-tooling
Skill3 starsChanged 5 months agoMITView on GitHub
Select evaluation tools and CI gates for LLM-Wiki measurement. Use when the user asks which eval framework, dataset format, scorecard file, red-team config, prompt regression test, hosted/self-hosted service, or human calibration workflow to use; route actual pilot runs to llm-wiki-eval.
In this repository50 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- llm-wiki-adr-memorySkill
- llm-wiki-agent-memory-bridgeSkill
- llm-wiki-archiveSkill
- llm-wiki-capture-pipelineSkill
- llm-wiki-chooseSkill
- llm-wiki-claim-anchorsSkill
- llm-wiki-company-flow-auditSkill
- llm-wiki-conflict-resolverSkill
- llm-wiki-critique-auditSkill
- llm-wiki-designSkill
- llm-wiki-doctorSkill
- llm-wiki-domain-packSkill
- llm-wiki-ecosystem-registrySkill
- llm-wiki-evalSkill
- llm-wiki-export-publishSkill
- llm-wiki-faqSkill
- llm-wiki-github-actionSkill
- llm-wiki-gitlab-operating-modelSkill
- llm-wiki-human-first-designSkill
- llm-wiki-implementation-deep-diveSkill
- llm-wiki-ingestion-stackSkill
- llm-wiki-interviewSkill
- llm-wiki-local-first-stackSkill
- llm-wiki-mcp-integrationSkill
- llm-wiki-migration-plannerSkill
- llm-wiki-model-policySkill
- llm-wiki-news-radarSkill
- llm-wiki-obsidian-hardeningSkill
- llm-wiki-orientSkill
- llm-wiki-paf-adoptionSkill
- llm-wiki-privacy-redactorSkill
- llm-wiki-provenanceSkill
- llm-wiki-refactorSkill
- llm-wiki-repo-docsSkill
- llm-wiki-retrieval-architectSkill
- llm-wiki-security-reviewSkill
- llm-wiki-setupSkill
- llm-wiki-skill-compilerSkill
- llm-wiki-skill-doctorSkill
- llm-wiki-source-refreshSkill
- llm-wiki-team-rolloutSkill
- llm-wiki-threat-modelSkill
- llm-wiki-trust-auditSkill
- llm-wiki-zero-to-working-wikiSkill
- wiki-ingestSkill
- wiki-lintSkill
- wiki-querySkill
- wiki-triageSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. About 0 are common, 17 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈17
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
Use references/docs/18-evaluation-methodology.md as the reference methodology for metric definitions, experiment design, dataset …
- Distinctive: line 65
Do not require every tool.
- Distinctive: line 69
Use 10-20 real questions for a pilot and expand only after the first run.
- Distinctive: line 91
Use synthetic generation only to expand coverage.
- Distinctive: line 95
Use TREC-style qrels for retrieval:
- Distinctive: line 104
Use support labels for grounding:
- Distinctive: line 112
Use at least two modes when possible:
- Distinctive: line 123
Do not claim a stack is better unless the eval set represents the user's real work.
- Distinctive: line 158
no critical unsupported-claim regressions.
- Distinctive: line 197
Use human review to calibrate LLM judges and thresholds.
- Distinctive: line 201
Every eval report should include:
- Distinctive: line 248
Do not optimize for note count, graph density or other vanity metrics.
- Distinctive: line 249
Do not use synthetic questions alone to justify adoption.
- Distinctive: line 250
Do not run evals on sensitive material through cloud tools without policy approval.
- Distinctive: line 251
Do not hide examples of failed queries.
- Distinctive: line 252
Do not claim external benchmarks prove the user's local wiki will work.
- Distinctive: line 253
Do not rely exclusively on LLM judges.
- Distinctive: line 254
Do not compare eval runs across changed datasets without recording dataset revision.
≈ “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.
Files
LLM-Wiki Eval Tooling
Goal
Turn LLM-Wiki usefulness, retrieval quality, grounding, security and maintenance questions into measurable tests, scorecards and repeatable CI/review gates.
Use references/docs/18-evaluation-methodology.md as the reference methodology for metric definitions, experiment design, dataset construction, CI strategy and rollout.
When to use
- The user asks which eval framework, dataset format, scorecard, or CI gate fits their LLM-Wiki (e.g. "should we use Ragas or promptfoo", "what does a retrieval eval set look like").
- The user wants to prove or disprove a claim such as "the wiki saves time" or "hybrid retrieval improved answers" with measurable tests.
- The user needs to design PR-time, nightly, or release-time CI gates for retrieval, grounding, or security regressions.
- The user needs a red-team/prompt-injection test plan or a human calibration workflow for LLM judges.
- Route to
llm-wiki-evalinstead when the user wants an actual pilot run executed, not tool/format selection.
Inputs
- Wiki path and evaluation scope.
- User claim to test, such as “the wiki saves time” or “hybrid retrieval improved answers”.
- Recent real questions/tasks or production traces.
- Retrieval layer details.
- Model/provider policy.
- Desired tools: Ragas, promptfoo, DeepEval, TruLens, LangSmith, OpenAI Evals/API Evals, Phoenix/Arize, pytrec_eval, custom scripts.
- Security constraints and risk tier.
Procedure
1. Pick evaluation layer
| Layer | Question | Tools/metrics |
| Retrieval | Did we find the right wiki/source pages? | recall@k, MRR, nDCG, qrels, hit/miss labels, pytrec_eval, Ragas context precision/recall. |
| Grounding | Is the answer supported by sources? | citation coverage, unsupported-claim rate, claim audit, Ragas/DeepEval faithfulness, TruLens groundedness. |
| Answer quality | Does the answer solve the task? | human rubric, pairwise preference, model-graded rubric, correctness/completeness/actionability. |
| Wiki usefulness | Did the wiki reduce work? | retrieval hit rate, answer reuse, read/write ratio, output beyond vault, time saved estimate. |
| Prompt/model regression | Did behavior change after prompt/model edits? | promptfoo, DeepEval, LangSmith evals, snapshot tests, PromptEval-style prompt variants. |
| Safety | Can malicious sources or prompts bypass policy? | promptfoo red-team, indirect prompt injection tests, PII/secret canaries, OWASP-aligned fixtures. |
| Operational health | Is the wiki alive and trusted? | wiki-lint, stale-page count, review backlog, provenance coverage, broken links. |
2. Choose the tool stack
| Need | Default recommendation |
| Fully open-source lean baseline | pytrec_eval + Ragas + promptfoo + custom wiki-lint/claim-audit scripts. |
| Python unit-test ergonomics | DeepEval plus custom tests. |
| Trace-level RAG introspection | TruLens. |
| Managed datasets, experiments and annotation queues | LangSmith. |
| Production observability | Phoenix/Arize, LangSmith, TruLens/OpenTelemetry or existing APM. |
| Fine-grained RAG diagnostics | RAGChecker-style analysis after basic gates exist. |
| Calibrated judge training with synthetic data | ARES-style workflow after human labels exist. |
| OpenAI-native eval workflows | OpenAI Evals/API Evals only after checking current deprecation/platform state. |
Do not require every tool. Pick the smallest stack that answers the user's evaluation question.
3. Build an eval set
Use 10-20 real questions for a pilot and expand only after the first run. For serious evaluation, build 200-300 examples plus a high-stakes slice.
Record each item:
id: ""
question: ""
query_type: exact|conceptual|synthesis|multi-hop|recent|sensitive
expected_answer_traits: []
required_pages: []
required_sources: []
expected_passages: []
forbidden_sources: []
required_filters: {}
gold_answer_points: []
freshness_sla_days: 0
sensitivity: public|internal|sensitive|regulated|unknown
risk_tier: low|medium|high|critical
answer_type: factual|synthesis|comparison|decision|debugging|planning
must_cite_sources: trueUse synthetic generation only to expand coverage. Do not use synthetic questions alone to justify adoption.
4. Add qrels and support labels
Use TREC-style qrels for retrieval:
relevance:
wiki/page.md#heading: 3
raw/source.pdf#p12: 2
wiki/related.md#section: 1Use support labels for grounding:
support_level: extracted|inferred|ambiguous|synthesis|unsupported|conflicting5. Compare baselines
Use at least two modes when possible:
| Mode | Purpose |
| no-wiki | Baseline answer using only general model/context. |
| raw-RAG/search only | Measures whether precompiled wiki pages add value. |
| wiki-grep | Minimal LLM-Wiki baseline. |
| wiki-hybrid | Tests semantic/hybrid upgrade. |
| wiki-hybrid-rerank | Tests reranker value. |
| wiki-graph | Tests graph-aware upgrade. |
Do not claim a stack is better unless the eval set represents the user's real work.
6. Define gates by risk tier
Example gates:
retrieval:
recall_at_10_min: 0.85
mrr_min: 0.70
ndcg_at_10_min: 0.80
grounding:
citation_coverage_min: 0.90
unsupported_claim_rate_max: 0.05
security:
prompt_injection_success_rate_max: 0.05
pii_secret_leaks_max: 0
cross_tenant_leaks_max: 0
operations:
stale_tier1_pages_max_pct: 5
median_review_age_days_max: 7
broken_verified_links_max: 0For early pilots, report gates without failing CI until the team agrees thresholds are fair.
7. Plan CI/review workflow
PR-time checks:
- deterministic lint;
- broken links/citations;
- retrieval smoke set;
- promptfoo quality subset;
- secret/PII scan;
- no critical unsupported-claim regressions.
Nightly checks:
- full retrieval eval;
- full grounding eval;
- prompt-injection red team;
- stale-page report;
- review backlog report;
- latency/cost trend report.
Release checks:
- with-wiki vs without-wiki comparison;
- retrieval ablations for major index changes;
- human calibration review;
- security sign-off for public/team deployments.
8. Add human calibration
Monthly sample:
- 25 passing examples;
- 25 failing examples;
- 25 judge/human disagreements;
- 25 high-risk examples.
Use a rubric:
correctness: 1-5
completeness: 1-5
groundedness: 1-5
citation_quality: 1-5
actionability: 1-5
risk: low|medium|high|critical
reviewer_notes: ""Use human review to calibrate LLM judges and thresholds.
9. Report actionably
Every eval report should include:
- what changed;
- what improved;
- what regressed;
- examples of misses;
- likely root causes;
- next fix;
- whether the next fix is schema, retrieval, ingestion, prompt, review process, security or data policy.
10. Use templates
Recommended templates:
references/templates/retrieval-eval-set.yamlfor retrieval qrels and gates.references/templates/eval-scorecard.yamlfor multi-layer scorecards.references/templates/promptfoo-llm-wiki.yamlfor CI/rubric/security eval configuration.references/templates/llm-wiki-evals.github-actions.ymlfor a GitHub Actions starter workflow.
Output
## Evaluation plan
## Eval set schema
## Baselines and ablations
## Tooling recommendation
## Metrics and gates
## CI/review workflow
## Human calibration plan
## Security/red-team plan
## Scorecard
## Failure taxonomy
## Next skillSafety gates
- Do not optimize for note count, graph density or other vanity metrics.
- Do not use synthetic questions alone to justify adoption.
- Do not run evals on sensitive material through cloud tools without policy approval.
- Do not hide examples of failed queries; they are the most useful output.
- Do not claim external benchmarks prove the user's local wiki will work.
- Do not rely exclusively on LLM judges; keep human calibration.
- Do not compare eval runs across changed datasets without recording dataset revision.
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
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.

