yifanfeng97/hyper-extract/graph-designer
Claude Code and agent skill by yifanfeng97/hyper-extract
- community
Checking that the SKILL.md file is still in the repository.
Design YAML extraction templates for graph types (graph, hypergraph, temporal_graph, spatial_graph). Use when user says: "design graph", "create knowledge graph", "extract relationships", "temporal data", "spatial data". Trigger: User wants to extract entity relationships, multi-party events, or time/location-based data. Skip: User wants simple record extraction (use record-designer instead).
Install
npx vskill@latest install yifanfeng97/hyper-extract/graph-designerSKILL.md
Graph Designer: graph/hypergraph/temporal/spatial
Input from Brainstorm
Receive design specs from brainstorm:
- Entity types and fields
- Relation types and fields
- Hypergraph grouping strategy
- Time/location requirements
Workflow
- Confirm type based on brainstorm specs
- Design entities (output.entities)
- Design relations (output.relations)
- Configure identifiers (identifiers)
- Set display (display)
- Write guideline (guideline)
- Review and output YAML
Critical: Output vs Guideline
Key Principle: Schema defines "WHAT", Guideline defines "HOW TO DO WELL". DO NOT repeat schema definitions in guideline.
| Guideline Should Have | Guideline Should NOT Have | |
|---|---|---|
| Extraction strategy ("extract valuable entities") | Field definitions ("name should be...") | |
| Quality requirements ("maintain naming consistency") | Type descriptions ("type field is...") | |
| Creation conditions ("only when text explicitly states") | Reference requirements ("must reference name field") | |
| Common mistakes to avoid | Schema field descriptions |
Type Confirmation
| Type | relation_members | Additional Config | |
|---|---|---|---|
| graph | {source, target} | - | |
| hypergraph (simple) | participants (string) | - | |
| hypergraph (nested) | [group_a, group_b] (list) | - | |
| temporal_graph | + type | time_field | |
| spatial_graph | + type | location_field | |
| spatio_temporal | + both | time_field + location_field |
Output Template
Display Design Principles
Important: display.label is used for graph visualization. Edges connect two nodes (source/target), so the edge label should NOT repeat this information.
Design Principles
| Principle | entity_label | relation_label | |
|---|---|---|---|
| Node | Show core identifier | - | |
| Edge | - | Show relation type + optional dimensions | |
| Spatio-temporal | - | Show relation type + location + time |
Recommended relation_label by Type
| Type | relation_label | Example | |
|---|---|---|---|
| graph | {relation_type} | owns | |
| hypergraph | {event_name} or {outcome} | Battle of Red Cliffs | |
| spatio_temporal_graph | {relation_type}@{location}({event_date}) | meets@Beijing(1985) |
Length Reference
- entity_label: Recommended 5-20 characters
- relation_label: Recommended 10-30 characters
Quick Config Reference
Binary Relations (graph)
Hypergraph Simple
Hypergraph Nested
Temporal
Spatial
Cases by Type
Important: Load only the case matching user's selected type.
| Type | Case File | |
|---|---|---|
| graph | cases/corporate-ownership.yaml | |
| hypergraph | cases/battle-analysis.yaml | |
| spatio_temporal_graph | cases/biography-events.yaml |
Reference Files
Important: Check these files only when needed for the specific design task.
| Topic | When to Check | |
|---|---|---|
| references/entity.md | When designing output.entities | |
| references/relation.md | When designing output.relations | |
| references/hypergraph.md | For hypergraph type only | |
| references/dimensions.md | For temporal_graph/spatial_graph types |
Design Checklist
Entities
- [ ] Entity types cover key concepts?
- [ ] Entity granularity appropriate?
- [ ] Multi-type nodes handled?
- [ ] No redundant fields?
Relations
- [ ] Relation types semantically clear?
- [ ] source/target reference entities?
- [ ] No ambiguous relations?
Guideline (Must Check)
- [ ] No field definitions repeated from schema?
- [ ] Extraction strategy defined?
- [ ] Quality requirements specified (naming consistency)?
- [ ] Creation conditions clear ("only when text explicitly states")?
- [ ] Common mistakes warned?
Hypergraph
- [ ] Participant count reasonable?
- [ ] Grouping strategy clear?
- [ ] Outcome defined?
Identifiers
- [ ] entity_id references name field?
- [ ] relation_id template correct?
- [ ] relation_members configured?
- [ ] time/location_field specified?
Multi-language
- [ ]
zhdescriptions use pure Chinese (no English terms likeentity(...)) - [ ]
endescriptions use pure English (no Chinese characters)
Entity-Relation Consistency
- [ ] source/target types match entities definition
Relation Type Design
For generic templates: Use open-ended description
For domain-specific templates: Can use predefined types
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinghyperextract-skills/graph-designer/SKILL.md
Popularity
- Repository stars
- 654
- Repository forks
- 69
- 7-day trend score
- 32
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 28 Apr 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/yifanfeng97/hyper-extract/graph-designer)