graphify
Knowledge graph development for LLM applications. Graph storage selection, graph algorithms, extraction from documents/code/websites, entity extraction, Graph RAG, and visualization
Install / Use
npx skills add v1truv1us/ai-eng-system --skill graphifyInstalls into whichever agent you are using.
Gemini Rules
Gemini CLI config
Quality Score
Category
AI & Machine LearningSupported Platforms
Our assessment of graphify
graphify scores 79/100 on our quality scale, 777th of 968 AI & Machine Learning skills we index.
Its Gemini Rules is 9.1 KB long, well organised into 42 sections with 16 code examples: a thorough specification that gives an agent plenty to work with.
It has no GitHub stars yet, so there is no community track record; judge it on its content.
Maintenance, license and trust
- The repository was last updated about 2 months ago, so graphify is actively maintained.
- Our last check on 2026-09-24 found the source still online.
- No license is declared. By default that means all rights are reserved: you can read it, but reusing or redistributing it is not clearly permitted. Ask the author before building on it commercially.
- Its trust signals score 80/100, with 2 cautions from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-09-28. Automated pattern scan on 2026-09-28. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
graphify compared with similar skills
All 4 of these similar skills score higher than graphify; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| graphify (this skill)by v1truv1us | 79 | 0 | 53d ago | Gemini Rules |
| claude-memby thedotmack | 100 | 98.6k | today | CLAUDE.md |
| Understand-Anythingby Egonex-AI | 100 | 85.7k | 3d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 74.8k | today | CLAUDE.md |
| CowAgentby zhayujie | 100 | 47.3k | today | CLAUDE.md |
Frequently asked questions
- How do I install graphify?
- Run
npx skills add v1truv1us/ai-eng-system. The install tabs above show the steps for each supported agent. - Which AI agents does graphify work with?
- It is written for Gemini CLI, as a Gemini Rules file. Other agents that read the same format can often use it too.
- Is graphify safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It declares no license and scores 80/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is graphify still maintained?
- The repository was last updated about 2 months ago, so graphify is actively maintained.
Skill content
View source on GitHubname: graphify description: Knowledge graph development for LLM applications. Graph storage selection, graph algorithms, extraction from documents/code/websites, entity extraction, Graph RAG, and visualization. Use when building knowledge graphs, graph databases, or LLM graph applications.
Graphify
Build knowledge graphs for LLM applications. Knowledge graphs improve AI responses by providing structured context with relationships, enable retrieval-augmented generation with graph traversal, and support agentic workflows with graph-defined tools.
When to Use
- Building knowledge bases with relationships (not just chunks)
- Implementing Graph RAG for better recall
- Extracting structure from unstructured documents
- Building agent memories with relationships
- Creating recommendation systems
- Analyzing code dependencies
1. Graph Storage Selection
Choose storage based on query patterns and scale requirements.
In-Memory Graph
Use for: prototyping, small graphs (<10K nodes), single-machine apps
// Example: GraphLib or native Map/Set
const graph = new Map<string, Set<string>>();
PostgreSQL with Extensions
Use when: already using PostgreSQL, need ACID compliance, moderate scale
- pggraph: Native graph support via extensions
- Works with existing Postgres infrastructure
Neo4j
Use when: complex relationship queries, Cypher proficiency, managed needed
- Best for: traversals, path finding, graph algorithms
- Avoid if: simple queries dominate
Redis
Use when: caching, real-time, ephemeral graphs
- Best for: session graphs, rate limiting, recent activity
AWS Neptune
Use when: managed, need Gremlin/SPARQL, AWS ecosystem
- Serverless option available
- Integration with AWS services
Decision Matrix:
| Scenario | Recommended | |----------|-------------| | Prototyping | In-memory | | Already on Postgres | PostgreSQL | | Complex traversals | Neo4j | | Caching/real-time | Redis | | Managed AWS | Neptune | | Knowledge base | Neo4j or PostgreSQL |
2. Graph Algorithms
Select algorithm based on the question you're answering.
Traversal (BFS/DFS)
Use for: exploration, finding any path, connectivity
- BFS: Shortest unweighted path, level-by-level
- DFS: Deep exploration, cycle detection
// BFS for shortest path
function bfs(graph, start, goal) {
const queue = [[start]];
const visited = new Set([start]);
while (queue.length) {
const path = queue.shift();
const node = path[path.length - 1];
if (node === goal) return path;
for (const neighbor of graph.get(node) || []) {
if (!visited.has(neighbor)) {
visited.add(neighbor);
queue.push([...path, neighbor]);
}
}
}
}
Shortest Path (Dijkstra, A*)
Use for: weighted routing, travel time, cost optimization
Centrality Measures
Use for: identifying important nodes
- PageRank: Importance via links/votes
- Betweenness: Bridge identification
- Degree: Direct influence
Community Detection
Use for: clustering, segmentation
- Louvain: Large-scale community detection
- Label Propagation: Fast clustering
When to Use Each:
| Question | Algorithm | |----------|-----------| | How do I get from A to B? | BFS/Dijkstra | | What's the best order? | Topological sort | | What's most important? | PageRank | | Who are the bridges? | Betweenness | | What groups exist? | Louvain |
3. Graph Extraction Sources
Extract graphs from different data sources.
From Documents (PDF, Markdown)
Process: chunk → extract entities → extract relationships
// Extract entities from text chunk
prompt = `Extract entities from: {chunk}
Entities as JSON: { "entities": [{"id": "...", "type": "...", "name": "..."}] }`;
From Code (AST Parsing)
Extract: imports, function calls, class relationships
// Dependency graph from imports
imports.map(file => ({
source: file.path,
targets: file.imports,
type: 'imports'
}));
From Websites
Link graphs from HTML parsing
// Extract links
links = html.querySelectorAll('a[href]')
.map(a => ({ source: pageUrl, target: a.href, type: 'links_to' }));
From SQL
Schema graphs: tables, columns, foreign keys
// Extract schema relationships
foreignKeys.map(fk => ({
source: fk.fromTable,
target: fk.toTable,
type: 'references',
via: fk.column
}));
From JSON/YAML
Configuration graphs
// Dependencies from package.json
deps.map(d => ({ source: 'package', target: d.name, type: 'depends_on' }));
4. LLM Graph Construction
Build graphs using LLMs for entity and relationship extraction.
Entity Extraction Prompt
Extract all entities from the following text.
For each entity, provide: id, type, name, description.
Text: {text}
Output as JSON array:
Relationship Extraction Prompt
Extract relationships between these entities.
For each relationship: source, target, type, confidence (0-1).
Entities: {entities}
Relationships:
Relationship Confidence
- Use LLM to provide confidence scores
- Filter by threshold (e.g., confidence > 0.7)
- Allow incremental updating
Semantic Search with Embeddings
// Embed entities for semantic search
entities.forEach(entity => {
entity.embedding = embed(entity.name + ' ' + entity.description);
});
// Query: find similar entities
similar = vectorSearch(queryEmbedding, entities, topK: 10);
Incremental Graph Building
- Process new document
- Extract entities (match existing → link, new → add)
- Extract relationships (add/update)
- Update embeddings
5. LLM Graph Integration
Use graphs with LLMs for improved retrieval.
Graph RAG Pattern
Context from knowledge graph:
{graph_context}
Question: {question}
Based on the graph context above, answer:
Graph retrieval steps:
- Convert question to graph query
- Traverse relevant subgraphs
- Include relationship context in prompt
Graph Tools for Agents
Define tools from graph structure:
// Graph-defined tools
const tools = graph.nodes.map(node => ({
name: `query_${node.type}`,
description: `Query ${node.type} entities`,
parameters: { ... }
}));
Subagent Orchestration via Graph
// Route through graph
function orchestrate(query, graph) {
const relevant = graph.query(query);
const agent = selectAgent(relevant.type);
return agent.execute(query, relevant.context);
}
Hybrid RAG: Vector + Graph
| Approach | Best For | |----------|----------| | Vector only | Similarity search | | Graph only | Relationship queries | | Hybrid | Both similarity + relationships |
Execute both, combine results.
6. Graph Visualization
Choose visualization based on context.
Mermaid
For documentation, README files:
graph TD
A[User] --> B[Login]
B --> C[Dashboard]
C --> D[Query Graph]
D --> E[Results]
D3.js
For interactive web applications:
// D3 force-directed graph
const simulation = d3.forceSimulation(nodes)
.force('link', d3.forceLink(links).id(d => d.id))
.force('charge', d3.forceManyBody())
.force('center', d3.forceCenter(width / 2, height / 2));
Graphviz (DOT)
For static diagrams:
digraph {
User -> Login -> Dashboard
Dashboard -> Query
Query -> Graph
}
Selection Guide:
| Context | Recommended | |--------|-------------| | Documentation | Mermaid | | Web app | D3.js | | Static analysis | Graphviz | | CLI output | ASCII |
Process Summary
Step 1: Choose Storage
Start simple, upgrade as needed
Step 2: Extract Graph
- From documents → chunk + LLM extraction
- From code → AST parsing
- From existing data → schema extraction
Step 3: Build Incrementally
- Process documents
- Deduplicate entities
- Add relationships
- Update embeddings
Step 4: Integrate with LLM
- Graph RAG for retrieval
- Graph tools for agents
Step 5: Visualize
As needed for debugging/documentation
Common Mistakes
| Mistake | Reality | |---------|--------| | "Start with Neo4j" | Start in-memory, upgrade when needed | | "Extract everything" | Focus on useful relationships | | "Graph replaces vector" | Use hybrid approach | | "One-time build" | Graphs need maintenance |
Verification
- [ ] Graph storage selected based on query patterns
- [ ] Algorithm chosen for actual questions
- [ ] Extraction working from primary sources
- [ ] Entity/relationship extraction prompts defined
- [ ] Graph RAG pattern implemented
- [ ] Visualization working for debugging
Anti-Rationalization Table
| Excuse | Counter | |--------|---------| | "Start with Neo4j" | Start in-memory, upgrade when needed. Premature infrastructure adds operational cost. | | "Extract everything" | Focus on useful relationships. Over-extraction creates noise and slows queries. | | "Graph replaces vector" | Use hybrid approach. Graph and vector complement each other, they do not compete. | | "One-time build is enough" | Graphs need maintenance. Stale graphs produce stale answers. | | "I don't need confidence scores on relationships" | Without confidence, you cannot filter low-quality edges. Scores enable quality control. |
Related Skills
claude-mem
98.6kPersistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Understand-Anything
85.7kGraphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
headroom
74.8kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
CowAgent
47.3kOpen-source personal AI assistant & Agent Harness. Plans tasks, runs tools and skills, self-evolves with memory and knowledge. Multi-agent, multi-model, multi-channel. Lightweight, extensible, one-line install.
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
