How codejunkie99/graph-engineering works
Purpose and Distribution
This repository is an agent-consumable “Graph Engineering” skill, not an executable application. It teaches and guides two connected practices: knowledge-graph construction and agent task-graph design. The source skill is graph-engineering/SKILL.md; the distributable artifact is dist/graph-engineering.skill.
Primary installation copies the skill directory into a skill-compatible agent harness. The expected entry interaction is a natural-language request to build a knowledge graph or teach graph engineering.
Skill Orchestrator
graph-engineering/SKILL.md is the central control document. It defines the agent’s operating modes, likely including build guidance and interactive teaching, and directs the agent through the knowledge-graph pipeline and task-graph principles.
WORKFLOWS.md provides alternate prompt-level entry points: an end-to-end tutor workflow plus focused commands that can be chained across a build. This is the user-facing orchestration layer for environments that do not invoke the skill directly.
Knowledge-Graph Pipeline
The core production model is a nine-stage, ordered pipeline:
1. scope
2. representation
3. ontology
4. entity extraction
5. relation extraction
6. event modeling/extraction
7. quality gate
8. fusion
9. LLM-facing serving
The key boundary is “model before extraction”: scope, representation, and ontology establish constraints before source facts are produced. Quality gates validate intermediate outputs; fusion resolves and reconciles records before graph storage or retrieval serving.
The conceptual pipeline is defined by graph-engineering/SKILL.md and decomposed into reusable workflow prompts in WORKFLOWS.md.
Domain Modeling and Extraction
Ontology and representation design are the schema boundary between an unstructured domain and graph data. graph-engineering/references/modeling.md supplies the modeling guidance, while graph-engineering/references/extraction.md covers deriving entities, relations, and likely source-grounded facts.
Extraction is treated as a staged transformation rather than direct triple generation: entities, relations, and events are separate concerns. This makes provenance, temporal context, validation, and later entity resolution possible.
Fusion and LLM Serving
Fusion is a required consolidation phase between extraction and storage/serving. It resolves duplicate or conflicting entities and facts, preserving graph quality rather than allowing raw extracted claims to become canonical graph records.
graph-engineering/references/fusion-and-llm.md defines the integration boundary with GraphRAG and LLM applications: the graph is a structured memory/retrieval substrate, not merely a collection of extracted triples.
Task-Graph Design
The second architectural half models how AI-agent work executes. graph-engineering/references/task-graphs.md defines task nodes as jobs and edges as actual execution dependencies.
The central execution pattern is: split independent work, run workers in parallel, verify outputs in separate contexts, then merge through a single accountable owner. This distinguishes genuine data/control dependencies from “fake edges” that add coordination without transferring work.
A stop rule prevents unnecessary multi-agent decomposition for sequential work, and a human gate is placed at costly-to-reverse decisions.
Reference Base and External Inputs
The repository packages distilled instructional material rather than runtime integrations. The reference corpus is organized across graph-engineering/references/curriculum.md, graph-engineering/references/modeling.md, graph-engineering/references/extraction.md, graph-engineering/references/fusion-and-llm.md, and graph-engineering/references/task-graphs.md.
Its external intellectual sources are Southeast University’s Knowledge Graph course, GraphRAG/LLM practices, and published multi-agent research from Google DeepMind, MIT, and Anthropic. No database, cloud service, web server, or application runtime is present in this repository.
Main entry points: SKILL.md Skill orchestrator · extraction.md Extraction guidance · modeling.md Modeling guidance · fusion-and-llm.md Fusion and LLM guidance
Components 20
Distribution
- Skill orchestrator · Defines operating modes and the ordered graph-engineering process.
graph-engineering/SKILL.md - Workflow prompts · Provides tutor and focused chained entry points.
WORKFLOWS.md - Distributable skill · Installable agent-harness skill package.
dist/graph-engineering.skill
Knowledge-Graph Guidance
- Scope
graph-engineering/SKILL.md - Representation
graph-engineering/SKILL.md - Ontology · Defines graph concepts and constraints before fact extraction.
graph-engineering/SKILL.md - Entity extraction
graph-engineering/SKILL.md - Relation extraction
graph-engineering/SKILL.md - Event modeling and extraction
graph-engineering/SKILL.md - Quality gate · Validates intermediate extracted outputs.
graph-engineering/SKILL.md - Fusion · Reconciles duplicate and conflicting claims before serving.
graph-engineering/SKILL.md - LLM-facing serving · Exposes the graph as structured memory and retrieval context.
graph-engineering/SKILL.md - Modeling guidance
graph-engineering/references/modeling.md - Extraction guidance
graph-engineering/references/extraction.md - Fusion and LLM guidance
graph-engineering/references/fusion-and-llm.md
Task-Graph Guidance
- Task-graph guidance
graph-engineering/references/task-graphs.md - Parallel workers · Independent jobs run concurrently.
graph-engineering/references/task-graphs.md - Separate verification · Outputs are checked in separate contexts.
graph-engineering/references/task-graphs.md - Accountable merge owner · One owner merges verified work.
graph-engineering/references/task-graphs.md - Human decision gate · Used for costly-to-reverse decisions.
graph-engineering/references/task-graphs.md
Connections 22
- Skill orchestrator → Workflow prompts: offers alternate entry points
- Skill orchestrator → Distributable skill: packaged as
- Skill orchestrator → Scope: starts pipeline
- Scope → Representation: constrains
- Representation → Ontology: defines
- Ontology → Entity extraction: models before extraction
- Entity extraction → Relation extraction: feeds
- Relation extraction → Event modeling and extraction: feeds
- Event modeling and extraction → Quality gate: validated by
- Quality gate → Fusion: approved claims
- Fusion → LLM-facing serving: canonical graph for
- Modeling guidance → Representation: guides
- Modeling guidance → Ontology: guides
- Extraction guidance → Entity extraction: guides
- Extraction guidance → Relation extraction: guides
- Extraction guidance → Event modeling and extraction: guides
- Fusion and LLM guidance → Fusion: guides
- Fusion and LLM guidance → LLM-facing serving: defines integration
- Skill orchestrator → Task-graph guidance: teaches
- Parallel workers → Separate verification: outputs checked by
- Separate verification → Accountable merge owner: verified work to
- Human decision gate → Accountable merge owner: approves irreversible decisions