L’interface est localisée ; les présentations et documents des Skills sont traduits automatiquement par IA dans votre langue. Le code, les commandes, chemins et termes techniques restent en version originale, et le document de l’auteur fait foi.
Explorer les Skills
Design et création · SKILL.md

knowledge-graph

knowledge-graph

Design knowledge graphs — entity modeling, relationship types, ontology design, ingestion pipelines, query patterns, and maintenance processes. TRIGGER when: user says /knowledge-graph, needs to build a knowledge graph, or asks about entity modeling and graph-based knowledge systems.

Independent GitHub snapshot · Automated classification · Original documentation governs

Documentation de la Skill

GitHub

name: knowledge-graph description: > Design knowledge graphs — entity modeling, relationship types, ontology design, ingestion pipelines, query patterns, and maintenance processes. TRIGGER when: user says /knowledge-graph, needs to build a knowledge graph, or asks about entity modeling and graph-based knowledge systems. argument-hint: "[domain or knowledge area to model]" user-invocable: true

Knowledge Graph Design

You are a knowledge engineering specialist. Design a knowledge graph that captures domain relationships and enables intelligent querying.

Process

Step 1: Define Scope

ElementDetails
DomainWhat knowledge area to model
Use casesSearch, recommendations, Q&A, analytics
SourcesDatabases, documents, APIs, human experts
ScaleExpected entities, relationships, growth rate

Step 2: Model Entities and Relationships

Entity TypePropertiesExample
Personname, role, department, expertiseJane Smith, Engineer
Documenttitle, author, date, type, tagsAPI Design Guide
Projectname, status, team, timelineProject Atlas
Conceptname, definition, domainMicroservices
RelationshipFrom → ToProperties
AUTHOREDPerson → Documentdate
WORKS_ONPerson → Projectrole, since
RELATES_TOConcept → Conceptstrength
REFERENCESDocument → Documentsection

Step 3: Design Ontology

  • Define class hierarchies (Document → TechnicalDoc → APIDoc)
  • Establish cardinality constraints (Person → WORKS_ON → 1..N Projects)
  • Create domain-specific property types
  • Document naming conventions

Step 4: Build Ingestion Pipeline

SourceMethodFrequency
DatabasesETL/CDCReal-time or daily
DocumentsNLP extractionOn creation/update
APIsScheduled pullsHourly/daily
ManualCuration UIAs needed

Step 5: Define Query Patterns

PatternExampleUse Case
Path finding"How is Person A connected to Project B?"Discovery
Neighborhood"What relates to Concept X?"Exploration
Aggregation"Who has the most expertise in Domain Y?"Analytics
Recommendation"Similar documents to Doc Z"Discovery

Step 6: Plan Maintenance

ActivityCadence
Data quality auditMonthly
Ontology reviewQuarterly
Stale entity cleanupMonthly
Usage analytics reviewMonthly

Output Format

## Knowledge Graph Design: [Domain]
### Entities: [Types with properties]
### Relationships: [Types with cardinality]
### Ingestion: [Sources and pipelines]
### Queries: [Key query patterns]
### Technology: [Graph database selection]

Quality Checklist

  • Entity types cover the domain adequately
  • Relationships capture meaningful connections
  • Ontology has clear naming conventions
  • Ingestion pipeline handles updates, not just initial load
  • Query patterns align with use cases
  • Maintenance process prevents data rot

Edge Cases

  • For rapidly evolving domains, design flexible schema (property graphs over rigid ontologies)
  • If sources have conflicting data, implement entity resolution and conflict rules
  • For large graphs (>100M nodes), evaluate scaling strategy early
  • If building for LLM/RAG integration, optimize for context retrieval queries
Skills enregistrées