neo4j-query
БесплатноБез исполняемых скриптовНе проверенQuery Neo4j knowledge graph for entities, relationships, and graph analysis.
от OriNachum★ 248 звёзд на GitHubОб этом скилле
Neo4j Query Skill
Query the Neo4j knowledge graph to investigate entities, relationships, and graph structure.
Connection Details
- URI:
bolt://localhost:7687(orNEO4J_URIenv var) - User:
neo4j(orNEO4J_USERenv var) - Password:
refinerypass(orNEO4J_PASSWORDenv var)
Python Usage
from qq.knowledge.neo4j_client import Neo4jClient
# Initialize client
client = Neo4jClient()
# Execute raw Cypher query
results = client.execute("MATCH (n) RETURN n LIMIT 10")
# Get graph summary (entity and relationship counts by type)
summary = client.get_graph_summary()
# Get entity by name
entity = client.get_entity("entity_name")
# Get related entities (up to N hops)
related = client.get_related_entities("entity_name", depth=2, limit=20)
# Close when done
client.close()
Common Cypher Queries
Count entities and relationships
-- Total entities
MATCH (n) RETURN count(n) as total_entities
-- Entities by type
MATCH (n) RETURN labels(n)[0] as type, count(n) as count ORDER BY count DESC
-- Total relationships
MATCH ()-[r]->() RETURN count(r) as total_relationships
-- Relationships by type
MATCH ()-[r]->() RETURN type(r) as type, count(r) as count ORDER BY count DESC
Find orphan entities (no relationships)
-- Entities with no incoming or outgoing relationships
MATCH (n) WHERE NOT (n)--() RETURN n.name, labels(n)[0] as type
Analyze connectivity
-- Entities with most connections
MATCH (n)-[r]-() RETURN n.name, labels(n)[0] as type, count(r) as connections ORDER BY connections DESC LIMIT 10
-- Distribution of relationship counts per entity
MATCH (n)
OPTIONAL MATCH (n)-[r]-()
WITH n, count(r) as rel_count
RETURN rel_count, count(n) as entities_with_this_count ORDER BY rel_count
Sample entities and relationships
-- Sample entities with their properties
MATCH (n) RETURN n.name, labels(n)[0] as type, n.description LIMIT 20
-- Sample relationships with endpoints
MATCH (a)-[r]->(b) RETURN a.name, type(r), b.name LIMIT 20
CLI Usage
# Use cypher-shell directly
docker exec -it qq-neo4j-1 cypher-shell -u neo4j -p refinerypass "MATCH (n) RETURN count(n)"
Установить neo4j-query в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл neo4j-query?
Query Neo4j knowledge graph for entities, relationships, and graph analysis.
Как установить скилл neo4j-query?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл neo4j-query запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic