← 返回 Skills 市场
Diseñador base de datos
作者
felix-antonio-sl
· GitHub ↗
· v1.0.0
· MIT-0
92
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install kv-database-designer
功能描述
Design, analyze, optimize and evolve database schemas. Use when the user asks to design schemas from scratch, choose between SQL and NoSQL engines, analyze o...
使用说明 (SKILL.md)
Database Designer
Convert a design request or existing schema into a structured, validated, production-ready artifact.
Activation
Use this skill when the user asks to:
- design or review a database schema (DDL, ERD, Prisma, JSON Schema)
- choose a database engine or decide SQL vs NoSQL
- analyze normalization, constraints, naming or data types
- plan an indexing strategy or diagnose slow queries
- generate migration scripts with rollback
- interpret an EXPLAIN plan or diagnose N+1 patterns
Workflow
- Classify the request:
design|analyze|index|migrate|query|select-engine. - Load the relevant reference for that mode:
design/analyze→{baseDir}/references/database-design-reference.md- normalization questions →
{baseDir}/references/normalization_guide.md - indexing / EXPLAIN →
{baseDir}/references/index_strategy_patterns.md - engine selection →
{baseDir}/references/database_selection_decision_tree.md
- Run the appropriate script when the user provides a schema or queries:
# Analyze schema for issues (normalization, constraints, naming, types) python {baseDir}/scripts/schema_analyzer.py --schema=\x3Cddl_file> # Suggest index improvements for a query workload python {baseDir}/scripts/index_optimizer.py --schema=\x3Cddl_file> --queries=\x3Cqueries_file> # Generate up/down migration scripts python {baseDir}/scripts/migration_generator.py --before=\x3Cold_schema> --after=\x3Cnew_schema> - Formalize the design: objects, relationships, constraints, normalization level, primary/foreign keys.
- Emit the artifact: DDL, Mermaid ERD, Prisma schema, or JSON Schema — one format unless the user asks for multiple.
- Declare trade-offs: note any denormalization choices, missing constraints, or engine-specific limitations.
Output Contract
- Open with the dominant design decision or issue found.
- Emit one primary artifact (DDL, ERD, or schema) per response.
- Annotate non-obvious choices (e.g. why a partial index, why a surrogate key).
- Declare
Information Losswhen the target format cannot express a constraint (e.g. CHECK logic in Prisma). - Close with indexing recommendations and next migration step if applicable.
Key Rules
- Default to PostgreSQL unless the user specifies another engine or the decision tree points elsewhere.
- Default to 3NF for new schemas; document any intentional deviation and the reason.
- Every generated migration must include a
downscript. - For destructive changes (DROP COLUMN with data), always recommend a logical backup first.
- Do not generate application-layer connection pool code unless explicitly asked — reference the patterns instead.
Guardrails
- Do not skip normalization analysis when designing from scratch.
- Do not recommend over-indexing — flag indexes that may hurt write throughput.
- Flag N+1 patterns but do not generate ORM-specific code unless the user's stack is known.
- Stay within schema, index, migration and query scope; for large-scale cross-engine migrations refer to
migration-architect.
Self Check
Before emitting any artifact, verify:
- all foreign keys are declared;
- primary key strategy is explicit (surrogate vs natural);
- normalization level is stated and intentional deviations justified;
- migration script has a
downcounterpart; - no inline example code duplicates what a reference file already covers.
安全使用建议
This skill appears internally consistent and contains local Python scripts plus reference material appropriate for database design tasks. Before installing or running: (1) ensure you have a trusted Python runtime (3.8+) available; (2) only feed it schema or query files you are comfortable sharing with the skill — the scripts will read those files to produce migrations/analysis; (3) review the included scripts yourself if you need assurance there are no network calls or behavior not visible in the snippets; (4) avoid providing production credentials or connection strings unless you explicitly want the skill to run live checks (the manifest does not request any credentials). If you plan to allow autonomous invocation by an agent, be aware the agent could execute these local scripts when invoked — that's expected but worth confirming you trust the skill and its input sources.
功能分析
Type: OpenClaw Skill
Name: kv-database-designer
Version: 1.0.0
The database-designer skill bundle is a legitimate toolset for database schema analysis, index optimization, and migration generation. The included Python scripts (schema_analyzer.py, index_optimizer.py, and migration_generator.py) perform their stated functions using standard library modules like json and re, without any evidence of malicious behavior such as data exfiltration, unauthorized network access, or command injection. The SKILL.md instructions and reference documentation are consistent with the tool's purpose and do not contain any prompt-injection attempts.
能力评估
Purpose & Capability
Name/description (database design, indexing, migrations, engine selection) match the provided artifacts: schema_analyzer, index_optimizer, migration_generator and multiple reference guides. The requested inputs (schema files, query workload files) are exactly what these capabilities need.
Instruction Scope
SKILL.md restricts operations to reading included reference files and running the local Python scripts against user-supplied schema/query files. The instructions do not ask to read unrelated system files, secrets, or to transmit data to external endpoints. Script usage examples operate on local files (e.g. --schema, --queries, --current, --target).
Install Mechanism
There is no install spec — the skill is delivered as code files and an instruction document. That is proportionate for a tooling skill. The scripts are local and use standard Python libraries; no external downloads or package installs are required by the manifest.
Credentials
The skill declares no required environment variables, no primary credential, and no config paths. The scripts operate on provided schema/query files; there is no request for unrelated credentials or secrets.
Persistence & Privilege
The skill is not always-enabled and does not request elevated platform privileges. It contains local scripts and reference docs only and does not attempt to modify other skills or global agent settings.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install kv-database-designer - 安装完成后,直接呼叫该 Skill 的名称或使用
/kv-database-designer触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of kv-database-designer skill.
- Designs, analyzes, and optimizes database schemas for SQL and NoSQL.
- Supports schema normalization checks, naming, constraints, and data type analysis.
- Includes index strategy planning, migration script generation with rollback, and EXPLAIN plan interpretation.
- Outputs one main artifact per response (DDL, ERD, Prisma, or JSON Schema), with annotations on key choices.
- Defaults: PostgreSQL engine, 3NF normalization, and scripts with `down` migrations.
- Adds guardrails against over-indexing, missing constraints, and improper normalization.
元数据
常见问题
Diseñador base de datos 是什么?
Design, analyze, optimize and evolve database schemas. Use when the user asks to design schemas from scratch, choose between SQL and NoSQL engines, analyze o... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 92 次。
如何安装 Diseñador base de datos?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install kv-database-designer」即可一键安装,无需额外配置。
Diseñador base de datos 是免费的吗?
是的,Diseñador base de datos 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Diseñador base de datos 支持哪些平台?
Diseñador base de datos 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Diseñador base de datos?
由 felix-antonio-sl(@felix-antonio-sl)开发并维护,当前版本 v1.0.0。
推荐 Skills