surrealdb/ai-claude-plugin/surql-formatter
Claude Code and agent skill by surrealdb/ai-claude-plugin
- community
Checking that the SKILL.md file is still in the repository.
Use after editing or writing any `.surql` file, or when the user asks Claude to format, lint, or check SurrealQL files.
Install
npx vskill@latest install surrealdb/ai-claude-plugin/surql-formatterSKILL.md
SurQL Formatter
Primary instruction: after editing or writing any .surql file, run `@surrealdb/surql-fmt` on it:
First run downloads the npm package and may take a few seconds. Formatter errors are non-fatal — if the formatter fails, leave the file as the user edited it and continue.
Host behavior
- Claude Code / Cowork: a
PostToolUsehook in `plugins/surrealdb/settings.json` already runssurqlfmt --writeon every.surqlfile afterEdit,Write, orMultiEdit. The model does not need to invoke the formatter — it happens automatically. - Claude Desktop: no hook system. The model must invoke
surqlfmtvia Bash after each.surqledit, per the primary instruction above.
When unsure which host you are running in, just run the formatter — re-running it on already-formatted output is a no-op.
Manual usage
Format a file in place:
Check formatting without writing (CI use — exits 1 on diff):
Format from stdin:
Common flags: --indent <n>, --indent-char space|tab, --max-line-length <n>.
Limitations
.surqlfiles only. SurQL strings embedded in JS/TS/Python/Rust sources are not touched — there is no language-server or tagged-template walker. To format an embedded query, copy it into a.surqlscratch file, format it, and paste back.- Parse errors leave the file unchanged. If a file stops formatting, run
surqlfmt --checkmanually to see the error.
Disabling
- Claude Code / Cowork: remove the
PostToolUseblock from `plugins/surrealdb/settings.json`, or delete the file. - Claude Desktop: remove this skill, or instruct the model not to run the formatter.
Manual surqlfmt invocations continue to work either way.
Security
- Security scanPassed, 90 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 repositoryCheckingplugins/surrealdb/skills/surql-formatter/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
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/surrealdb/ai-claude-plugin/surql-formatter)