knowledge-graph-rag
Skill4 starsChanged 5 months agoApache-2.0View on GitHub
Builds, refactors and hardens Neo4j-native KG-enabled RAG with LangGraph, hybrid retrieval, text-to-Cypher, and provenance. Use when implementing GraphRAG, graph-backed retrieval, or guarded text-to-Cypher pipelines.
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-retrieval-ragSkill
- krag-evaluation-governanceSkill
- 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
10 rules. About 0 are common, 4 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Use this skill when building, refactoring, reviewing or hardening Neo4j-native GraphRAG or KG-enabled RAG systems that require graph-aware …
- Very specific: line 16
Do not use it for generic document RAG, vector-only retrieval, or ontology-only design work where knowledge-retrieval-rag or …
- Very specific: line 27
Use reference/implementation-lifecycle.md for ingestion, resolution, retrieval, LangGraph orchestration, evaluation, security guardrails, …
- Very specific: line 28
Use reference/code-patterns.md only when concrete schemas, Cypher, retriever or evaluator patterns are needed.
- Very specific: line 29
Use reference/testing-contract.md before claiming implementation, refactor or hardening work is complete.
- Very specific: line 30
Use reference/metadata.yaml when stack defaults, activation keywords or audience metadata are needed.
- Distinctive: line 34
Prefer Neo4j-native graph, full-text and vector indexes unless an ADR justifies another store.
- Very specific: line 35
Use deterministic identifiers, MERGE/upsert semantics and transaction boundaries for repeatable ingestion.
- Distinctive: line 36
Never expose raw database metadata, embeddings, audit fields or unrestricted schema details directly to an LLM.
- Distinctive: line 43
Keep responsibilities separated: configuration, domain models, ingestion, graph persistence, retrieval, orchestration, generation, …
≈ “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
KG-Enabled RAG
When to use
Use this skill when building, refactoring, reviewing or hardening Neo4j-native GraphRAG or KG-enabled RAG systems that require graph-aware retrieval, provenance-first ingestion, guarded text-to-Cypher, conceptual schema control or graph-backed answer generation.
Do not use it for generic document RAG, vector-only retrieval, or ontology-only design work where knowledge-retrieval-rag or ontology-and-knowledge-graph-modeling is sufficient.
Objective
Implement Neo4j-native KG-enabled RAG with provenance-first ingestion, guarded retrieval, grounded answers, and tests.
Procedure
- Inspect the repository for existing graph, retrieval, LLM, prompt, evaluation, Neo4j, LangGraph, Pydantic, FastAPI and OpenTelemetry conventions.
- Apply the non-negotiable invariants from
reference/implementation-lifecycle.md: Neo4j-native storage by default, idempotent writes, curated conceptual schema, structured LLM outputs, evidence links and guarded Cypher. - Align to the smallest useful vertical slice rather than replacing the repository architecture wholesale.
- Use
reference/implementation-lifecycle.mdfor ingestion, resolution, retrieval, LangGraph orchestration, evaluation, security guardrails, done criteria and anti-patterns. - Use
reference/code-patterns.mdonly when concrete schemas, Cypher, retriever or evaluator patterns are needed. - Use
reference/testing-contract.mdbefore claiming implementation, refactor or hardening work is complete. - Use
reference/metadata.yamlwhen stack defaults, activation keywords or audience metadata are needed.
Non-negotiable invariants
- Prefer Neo4j-native graph, full-text and vector indexes unless an ADR justifies another store.
- Use deterministic identifiers,
MERGE/upsert semantics and transaction boundaries for repeatable ingestion. - Never expose raw database metadata, embeddings, audit fields or unrestricted schema details directly to an LLM.
- Validate all LLM outputs with typed schemas and reject, repair or quarantine invalid extractions.
- Link every decision-relevant fact, relationship, claim, summary, answer and evaluation result to source evidence.
- Parameterise Cypher and default user-facing text-to-Cypher to read-only, bounded queries.
Recommended architecture
Keep responsibilities separated: configuration, domain models, ingestion, graph persistence, retrieval, orchestration, generation, evaluation, observability, security, API and CLI. API layers should not contain business logic.
Reference files
reference/metadata.yaml— version, audience, activation keywords and default stack metadata.reference/implementation-lifecycle.md— detailed invariants, repository architecture, lifecycle steps, security guardrails, done criteria and anti-patterns.reference/code-patterns.md— conceptual schema config, Pydantic extraction models, idempotent Neo4j persistence, local/global search and evaluator examples.reference/testing-contract.md— required unit, integration, end-to-end and evaluation tests.
Related skills
knowledge-retrieval-rag— generic document-grounded RAG patterns.ontology-and-knowledge-graph-modeling— semantic modelling and competency questions.data-lineage-and-provenance— traceability for graph facts, retrieval evidence and generated answers.guardrails-safety-patterns— validation, policy and tool-use controls.evaluation-and-monitoring— retrieval, answer and operational quality measurement.
References
Verification
- Relevant reference files were loaded for the task scope.
- Files changed reported.
- Commands and validations run with results stated.
- Behaviour intentionally changed described.
- Assumptions and residual risks or follow-up work 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.

