krag-evaluation-governance
Skill4 starsChanged 5 months agoApache-2.0View on GitHub
Evaluate and govern KRAG and GraphRAG systems only. Use when defining KRAG-scoped acceptance thresholds, test design, observability, drift, grounding evidence, and KRAG promotion blockers.
In this repository114 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- accessibility-wcagSkill
- agentic-ux-patternsSkill
- ai-model-governanceSkill
- api-design-and-lifecycleSkill
- apply-laws-of-aiSkill
- bdd-practiceSkill
- browser-testing-with-devtoolsSkill
- business-capability-modelingSkill
- business-information-concept-modelingSkill
- capability-maturity-assessmentSkill
- cdc-and-source-to-stream-ingestionSkill
- ci-cd-and-automationSkill
- cloud-platform-architectureSkill
- code-review-and-qualitySkill
- cognitive-bias-reviewSkill
- conceptual-data-modelingSkill
- context-engineeringSkill
- data-contract-designSkill
- data-governance-and-qualitySkill
- data-integration-and-interoperabilitySkill
- data-lifecycle-and-retention-managementSkill
- data-lineage-and-provenanceSkill
- data-product-dashboard-designSkill
- data-product-designSkill
- data-security-and-privacy-architectureSkill
- ddd-practiceSkill
- deprecation-and-migrationSkill
- design-system-practiceSkill
- documentation-and-adrsSkill
- dora-four-keysSkill
- dry-principleSkill
- eip-integration-validationSkill
- evaluation-and-monitoringSkill
- event-driven-architectureSkill
- event-governance-and-lineageSkill
- event-modelingSkill
- event-streaming-platform-designSkill
- exception-handling-and-recoverySkill
- finops-practiceSkill
- frontend-state-and-interaction-designSkill
- git-workflow-and-versioningSkill
- goal-setting-and-monitoringSkill
- guardrails-safety-patternsSkill
- human-in-the-loopSkill
- idea-refinementSkill
- incident-response-and-postmortemsSkill
- incremental-implementationSkill
- infrastructure-as-codeSkill
- integration-message-constructionSkill
- inter-agent-communication-a2aSkill
- kiss-principleSkill
- knowledge-graph-ragSkill
- knowledge-retrieval-ragSkill
- krag-ingestion-graph-constructionSkill
- krag-retrieval-answeringSkill
- krag-system-designSkill
- lakehouse-and-medallion-architectureSkill
- learning-and-adaptationSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 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.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Use when defining quality gates, test sets, observability, governance controls, release criteria or failure policies for a KRAG system.
- Distinctive: line 26
Run release checks and block promotion when gates fail.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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
KRAG Evaluation and Governance
When to use
Use when defining quality gates, test sets, observability, governance controls, release criteria or failure policies for a KRAG system.
Objective
Prove that the KRAG system retrieves the right evidence, constructs a valid graph, answers faithfully, and fails safely.
Procedure
- Define evaluation layers (source, graph, retrieval, answer, operational, governance).
- Build the minimum test set covering lookup, traversal, synthesis, conflict, and abstention.
- Establish quality gates and acceptance thresholds per layer.
- Instrument observability for query intent, strategy, evidence, latency, and cost.
- Run release checks and block promotion when gates fail.
- Record remediation actions and governance evidence for audit.
Evaluation layers
- Source quality: parser coverage, structure preservation, extraction errors, checksum/version integrity.
- Graph quality: schema conformance, duplicate rate, orphan rate, evidence coverage, relationship validity, entity-resolution precision/recall.
- Retrieval quality: recall@k, precision@k, MRR/NDCG, graph path relevance, hybrid ranking lift over vector-only baseline.
- Answer quality: groundedness, citation accuracy, completeness, contradiction handling, abstention quality.
- Operational quality: latency, cost, index freshness, failure recovery, observability, access control, audit logs.
- Governance quality: data classification, retention, lineage, policy-as-code checks, human approval for high-impact graph writes.
Minimum test set
Create tests for:
- exact lookup
- vague semantic search
- multi-hop graph traversal
- impact analysis
- cross-document synthesis
- conflicting evidence
- stale evidence
- unauthorised data access
- missing evidence abstention
- regression against known gold answers
Quality gates
Block release when:
- material claims lack evidence anchors
- LLM-generated facts bypass validation
- retrieval is not better than vector-only baseline for graph-relevant questions
- citations do not support the answer
- protected data appears in unauthorised retrieval results
- graph schema migrations are untested
- entity resolution creates unsafe merges
Observability
Log per query:
- question type
- retrieval strategy
- graph queries and vector queries
- retrieved evidence IDs
- ranking scores
- answer citations
- latency and token/cost metrics
- abstention reason
- user feedback and evaluator scores
Output format
Return evaluation plan, metrics, acceptance thresholds, test cases, release gates, monitoring signals, and remediation actions.
Related skills
evaluation-and-monitoring— generic evaluation and monitoring disciplineguardrails-safety-patterns— safety and policy controlskrag-system-design— architecture and backlog slices to evaluatekrag-ingestion-graph-construction— graph quality and ingestion testskrag-retrieval-answering— retrieval and answer quality tests
References
Verification
- Retrieval, graph, answer and operational quality gates are explicit.
- Release blockers and governance controls are defined.
- Observability and regression test expectations are stated.
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.

