Command Palette

Search for a command to run...

Назад к скиллам
скилл № 20795

falkordb-skills

Practical FalkorDB guidance — Cypher queries, UDF management, Docker operations, and data ingestion. Use when writing or reviewing FalkorDB queries, setting…

БесплатноБез исполняемых скриптов
FalkorDBот FalkorDB★ 22 звезды на GitHub

Установить falkordb-skills в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Conventions

  • CLI examples use redis-cli unless noted.
  • Cypher examples are passed as quoted strings to GRAPH.QUERY.
  • Use parameterized queries for cache efficiency and safety.

Cypher Skills

1) Create nodes and relationships

Create labeled nodes and connect them with properties.

Example:

redis-cli GRAPH.QUERY social "CREATE (alice:User {id: 1, name: 'Alice', email: '[email protected]'})
CREATE (bob:User {id: 2, name: 'Bob', email: '[email protected]'})
CREATE (alice)-[:FRIENDS_WITH {since: 1640995200}]->(bob)"

2) Match patterns and return projections

Match by label/property and return fields.

Example:

redis-cli GRAPH.QUERY social "MATCH (alice:User {name: 'Alice'})-[:FRIENDS_WITH]->(friend)
RETURN friend.name"

3) Use MERGE to avoid duplicate nodes

Use MERGE when you want idempotent upserts.

Example:

redis-cli GRAPH.QUERY social "MERGE (u:User {id: 42})
ON CREATE SET u.name = 'Dana'
ON MATCH SET u.last_seen = timestamp()"

4) Update and remove properties safely

Use SET for updates and set properties to NULL to remove them (no REMOVE support).

Example:

redis-cli GRAPH.QUERY social "MATCH (u:User {id: 42})
SET u.email = '[email protected]', u.temp = NULL"

5) Use parameterized queries for cache reuse

Use parameters so the query plan is cached and reused.

Example:

redis-cli GRAPH.QUERY social "CYPHER name='Alice' MATCH (u:User {name: $name}) RETURN u.id"

6) Run safe read-only queries

Use GRAPH.RO_QUERY for read-only paths; it rejects writes.

Example:

redis-cli GRAPH.RO_QUERY social "MATCH (u:User) RETURN count(u)"

7) Inspect query plans before execution

Use GRAPH.EXPLAIN to validate plan shape and index usage without executing.

Example:

redis-cli GRAPH.EXPLAIN social "MATCH (p:Person {age: 30}) RETURN p"

8) Profile query runtime behavior

Use GRAPH.PROFILE to see per-operator runtime and records.

Example:

redis-cli GRAPH.PROFILE social "MATCH (u:User)-[:FRIENDS_WITH]->(f)
RETURN f.name ORDER BY f.name LIMIT 10"

9) Create range indexes for exact/range lookups

Use indexes to speed up equality and range predicates.

Example:

redis-cli GRAPH.QUERY social "CREATE INDEX FOR (p:Person) ON (p.age)"

10) Verify index usage

Confirm plan uses index scans.

Example:

redis-cli GRAPH.EXPLAIN social "MATCH (p:Person) WHERE p.age = 30 RETURN p"

11) Create and query full-text indexes

Use RediSearch-backed full-text indexes for text search.

Example:

redis-cli GRAPH.QUERY social "CALL db.idx.fulltext.createNodeIndex('Movie', 'title')"
redis-cli GRAPH.QUERY social "CALL db.idx.fulltext.queryNodes('Movie', 'Jun*') YIELD node RETURN node.title"

12) Create and query vector indexes

Use HNSW vector indexes for ANN search.

Example:

redis-cli GRAPH.QUERY social "CREATE VECTOR INDEX FOR (p:Product) ON (p.embedding)
OPTIONS {dimension: 768, similarityFunction: 'cosine', M: 32, efConstruction: 200}"

redis-cli GRAPH.QUERY social "CALL db.idx.vector.queryNodes('Product', 'embedding', 5, vecf32([0.1, 0.2, 0.3]))
YIELD node, score RETURN node.name, score"

13) Manage constraints with awareness of async creation

Create constraints and check status with db.constraints().

Example:

redis-cli GRAPH.CONSTRAINT CREATE social UNIQUE NODE Person PROPERTIES 1 id
redis-cli GRAPH.QUERY social "CALL db.constraints()"

Note: Confirm the exact GRAPH.CONSTRAINT CREATE syntax against current docs before use.

14) Inspect graphs and memory usage

Use introspection commands for operational visibility.

Example:

redis-cli GRAPH.LIST
redis-cli GRAPH.INFO social
redis-cli GRAPH.MEMORY USAGE social

15) Track slow queries

Use slowlog to identify and reset slow queries.

Example:

redis-cli GRAPH.SLOWLOG social
redis-cli GRAPH.SLOWLOG social RESET

16) Apply FalkorDB Cypher limitations correctly

Account for known limitations in query design.

Example:

# Not-equal filters are not index-accelerated
redis-cli GRAPH.QUERY social "MATCH (p:Person) WHERE p.age <> 30 RETURN p"

UDF Skills

1) Load a JavaScript UDF library

Register UDFs with falkor.register in JS.

Example:

from falkordb import FalkorDB

db = FalkorDB(host='localhost', port=6379)
lib = "StringUtils"
script = """
function UpperCaseOdd(s) {
  return s.split('')
    .map((c, i) => i % 2 !== 0 ? c.toUpperCase() : c)
    .join('');
};

falkor.register('UpperCaseOdd', UpperCaseOdd);
"""

db.udf_load(lib, script)

2) Call a UDF from Cypher

UDFs behave like built-in functions.

Example:

from falkordb import FalkorDB

db = FalkorDB(host='localhost', port=6379)
g = db.select_graph("social")
result = g.query("RETURN StringUtils.UpperCaseOdd('abcdef')").result_set
print(result)

3) List UDF libraries (with code)

Use `GRAPH.UDF LIST W

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • .gitignore
  • CONTRIBUTING.md
  • LICENSE
  • README.md

FAQ

Что делает скилл falkordb-skills?

Practical FalkorDB guidance — Cypher queries, UDF management, Docker operations, and data ingestion. Use when writing or reviewing FalkorDB queries, setting up FalkorDB containers, working with user-defined functions, or migrating data from other sources.

Как установить скилл falkordb-skills?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл falkordb-skills запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить falkordb-skills с