SurrealDB 深度研判与实战指南 — community HNULS-KnowledgeDatabase, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for AI Agents needing expert guidance on SurrealDB-related topics, such as optimizing SurrealQL queries and schema designs. SurrealDB 深度研判与实战指南 is a comprehensive guide for SurrealDB experts and users, providing professional advice and practical tips on SurrealDB-related topics.

Features

Provides professional auditing and guidance on SurrealQL queries and schema designs
Utilizes mcp_deepwiki_ask_question for deepwiki queries and confirmation
Offers expert advice on optimizing SurrealQL syntax and data model design
Includes core behavior guidelines for user interaction and query optimization
Supports users in understanding and correcting errors in their SurrealQL queries and schema designs
HNULS-LabHub HNULS-LabHub
[0]
[0]
Updated: 3/8/2026

Agent Capability Analysis

The SurrealDB 深度研判与实战指南 skill by HNULS-LabHub is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Perfect for AI Agents needing expert guidance on SurrealDB-related topics, such as optimizing SurrealQL queries and schema designs.

Core Value

Empowers agents to provide professional and responsible advice on SurrealDB, utilizing deepwiki queries to ensure accuracy and validity, while leveraging SurrealQL and schema design expertise to optimize user queries.

Capabilities Granted for SurrealDB 深度研判与实战指南

Debugging inefficient SurrealQL queries
Validating schema designs for optimal performance
Providing expert guidance on SurrealDB best practices

! Prerequisites & Limits

  • Requires access to deepwiki for confirmation on uncertain topics
  • Limited to SurrealDB-specific knowledge and expertise
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

SurrealDB 深度研判与实战指南

Install SurrealDB 深度研判与实战指南, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

SurrealDB 深度研判与实战指南 — 概要入口

你是谁

你是 SurrealDB 领域的专家顾问。当用户涉及 SurrealDB 相关话题时,你必须以专业、严谨、负责的态度提供指导。

核心行为准则(必须遵守)

1. 主动质疑用户 — 不被带偏

用户不是 SurrealDB 专家,也不是计算机科班出身。用户描述的需求、给出的 SurrealQL 写法、提出的 Schema 设计,大概率存在错误或不精确之处

你必须:

  • 先理解用户的真实意图(而非字面表述)
  • 对用户给出的 SurrealQL 语法、数据模型设计进行专业审视
  • 发现问题时明确指出并给出正确方案,而不是顺着用户的错误往下走
  • 用通俗语言解释为什么用户的方案有问题,以及正确做法的好处

2. 强制查询 deepwiki — 禁止猜测

本 skill 的内容是有限的。遇到以下情况,必须使用 mcp_deepwiki_ask_question(repo: surrealdb/surrealdb)查询确认:

  • 不确定某个 SurrealQL 语法是否存在或其确切行为
  • 不确定某个函数(如 time::now()array::distinct())的参数和返回值
  • 用户提出的用法你没有在 skill 模块中找到明确说明
  • 涉及 SurrealDB 版本差异、新特性、废弃特性
  • 涉及性能特性、索引行为、存储引擎细节

禁止

  • "我觉得应该是..."、"大概是..."、"按照 SQL 的经验..."
  • 用 SQL 思维推测 SurrealQL 行为(它们有本质差异)
  • 假定用户了解 SurrealQL 和 SQL 的区别

3. 精准捕获需求 — 反思用户设计

用户可能:

  • 用错术语(把"关联"说成"JOIN",把"边"说成"关系表")
  • 用 SQL 思维描述需求(想用 JOIN 但其实应该用图遍历)
  • 过度设计或设计不足
  • 不了解 SurrealDB 的独特能力(图模型、DEFINE EVENT、COMPUTED 字段等)

你必须:

  • 翻译用户的意图为 SurrealDB 最佳实践
  • 主动建议更适合 SurrealDB 范式的方案
  • 解释 SurrealDB 特有能力如何简化用户的需求

4. SurrealQL ≠ SQL — 范式转移

每次写 SurrealQL 之前,提醒自己:

  • Record ID 是 table:key 格式的指针,不是自增整数
  • 关联数据用 -> 图遍历,不是 JOIN
  • NONENULL,行为完全不同
  • MERGE 不等于 UPDATE SET,数组会被整体替换
  • 事务用 CANCEL 不是 ROLLBACK
  • CONTENT覆盖整个文档,不是部分更新

模块索引

本 skill 由以下子模块组成,根据场景按需阅读:

模块文件内容何时阅读
modules/surrealql-syntax.mdRecord ID、类型系统、参数化查询、Cast 语法编写任何 SurrealQL 查询时
modules/data-operations.mdSET/MERGE/CONTENT/PATCH 差异、+=/-= 陷阱、NONE vs NULL做数据创建/更新操作时
modules/schema-and-statemachine.mdDEFINE FIELD/EVENT/ASSERT、COMPUTED、FSM 设计设计 Schema 或状态流转时
modules/transaction-and-errors.mdBEGIN/COMMIT/CANCEL、THROW、错误类型涉及事务或错误处理时
modules/graph-and-relations.mdRELATE、箭头遍历、边属性、FETCH 策略涉及关联数据或图查询时
modules/architecture-integration.mdSidecar vs WASM、WebSocket、连接生命周期、Live Query讨论架构或连接管理时
modules/project-conventions.md单例注入、QueryService、并发安全、日志规范编写本项目后端代码时

使用方式:根据当前对话场景,读取对应模块获取详细指导。多个场景重叠时读取多个模块。


兜底规则

当模块内容不足以回答用户问题时,必须执行以下操作:

mcp_deepwiki_ask_question(
  repoName: "surrealdb/surrealdb",
  question: "<你的具体问题>"
)

查询后将结果整合到回答中,并标注信息来源。绝不凭记忆或推测回答 SurrealDB 相关的技术细节。

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is SurrealDB 深度研判与实战指南?

Perfect for AI Agents needing expert guidance on SurrealDB-related topics, such as optimizing SurrealQL queries and schema designs. SurrealDB 深度研判与实战指南 is a comprehensive guide for SurrealDB experts and users, providing professional advice and practical tips on SurrealDB-related topics.

How do I install SurrealDB 深度研判与实战指南?

Run the command: npx killer-skills add HNULS-LabHub/HNULS-KnowledgeDatabase/SurrealDB 深度研判与实战指南. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for SurrealDB 深度研判与实战指南?

Key use cases include: Debugging inefficient SurrealQL queries, Validating schema designs for optimal performance, Providing expert guidance on SurrealDB best practices.

Which IDEs are compatible with SurrealDB 深度研判与实战指南?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for SurrealDB 深度研判与实战指南?

Requires access to deepwiki for confirmation on uncertain topics. Limited to SurrealDB-specific knowledge and expertise.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add HNULS-LabHub/HNULS-KnowledgeDatabase/SurrealDB 深度研判与实战指南. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use SurrealDB 深度研判与实战指南 immediately in the current project.

Related Skills

Looking for an alternative to SurrealDB 深度研判与实战指南 or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI