← 返回 Skills 市场
43
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install axiom-sql-formatter
功能描述
Formats SQL queries with uppercase keywords, consistent indentation, aligned clauses, and preserved string literals for improved readability.
使用说明 (SKILL.md)
axiom-sql-formatter
Version: 0.1.2 Axioma Tools
Formats SQL queries with consistent style without parsing or executing them.
What this skill does
- Uppercase SQL keywords (SELECT, FROM, WHERE, etc.)
- Consistent indentation (4 spaces or configurable)
- Newline before major clauses
- Single-quote string preservation
- Configurable keyword list
When to use this skill
- ✅ Format raw SQL for readability
- ✅ Standardize team SQL style
- ✅ Pre-process before code review
- ❌ Parse SQL into AST (use sqlparse)
- ❌ Validate SQL syntax (use EXPLAIN)
Usage
python3 axiom_sql_formatter.py query.sql
python3 axiom_sql_formatter.py --indent 2 query.sql
from axiom_sql_formatter import format_sql
formatted = format_sql('select a,b from t where x=1')
# 'SELECT a, b\
FROM t\
WHERE x = 1'
Validation
| Check | Status |
|---|---|
| Unit tests | 20+ cases |
| Performance | \x3C100ms |
| Security | Pure stdlib, no injection |
| Determinism | Byte-to-byte stable |
| License | Apache-2.0 |
Last updated: 2026-06-14
安全使用建议
Reasonable to install if you want a simple local SQL formatter. Treat it as formatting only, not SQL validation or parsing, and note that a few README/SKILL examples may not match the actual CLI options.
能力评估
Purpose & Capability
The artifacts consistently present a SQL formatting utility, and the Python code tokenizes input, uppercases keywords, adds line breaks, and prints formatted text without executing SQL.
Instruction Scope
Instructions are mostly aligned, but some documentation overstates support for options such as --indent, configurable keyword lists, and 20+ tests; this is a quality mismatch, not a security concern.
Install Mechanism
No installer, package manager hook, shell bootstrap, or background setup behavior is present.
Credentials
The runtime uses Python standard-library modules only and reads either command-line SQL text or a user-specified local file for formatting.
Persistence & Privilege
No persistence, privilege escalation, credential/session access, destructive filesystem writes, subprocess execution, or network access was found.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install axiom-sql-formatter - 安装完成后,直接呼叫该 Skill 的名称或使用
/axiom-sql-formatter触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.2
Initial publish: SQL formatter. Uppercase keywords, indent, align. No parsing, no execution.
元数据
常见问题
Axiom Sql Formatter 是什么?
Formats SQL queries with uppercase keywords, consistent indentation, aligned clauses, and preserved string literals for improved readability. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 43 次。
如何安装 Axiom Sql Formatter?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install axiom-sql-formatter」即可一键安装,无需额外配置。
Axiom Sql Formatter 是免费的吗?
是的,Axiom Sql Formatter 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Axiom Sql Formatter 支持哪些平台?
Axiom Sql Formatter 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Axiom Sql Formatter?
由 Kofna3369(@kofna3369)开发并维护,当前版本 v0.1.2。
推荐 Skills