agentleFS
mmccallammccalla/coding-agent-skill-library/skills/krag-evaluation-governance/SKILL.md

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.

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
  1. Distinctive:

    Use when defining quality gates, test sets, observability, governance controls, release criteria or failure policies for a KRAG system.

    line 14
  2. Distinctive:

    Run release checks and block promotion when gates fail.

    line 26

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

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

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

  1. Define evaluation layers (source, graph, retrieval, answer, operational, governance).
  2. Build the minimum test set covering lookup, traversal, synthesis, conflict, and abstention.
  3. Establish quality gates and acceptance thresholds per layer.
  4. Instrument observability for query intent, strategy, evidence, latency, and cost.
  5. Run release checks and block promotion when gates fail.
  6. Record remediation actions and governance evidence for audit.

Evaluation layers

  1. Source quality: parser coverage, structure preservation, extraction errors, checksum/version integrity.
  2. Graph quality: schema conformance, duplicate rate, orphan rate, evidence coverage, relationship validity, entity-resolution precision/recall.
  3. Retrieval quality: recall@k, precision@k, MRR/NDCG, graph path relevance, hybrid ranking lift over vector-only baseline.
  4. Answer quality: groundedness, citation accuracy, completeness, contradiction handling, abstention quality.
  5. Operational quality: latency, cost, index freshness, failure recovery, observability, access control, audit logs.
  6. 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 discipline
  • guardrails-safety-patterns — safety and policy controls
  • krag-system-design — architecture and backlog slices to evaluate
  • krag-ingestion-graph-construction — graph quality and ingestion tests
  • krag-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.

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.