← Back to Skills Marketplace
ink5725

Schema Manager

by InkLin · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
51
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install schema-manager
Description
Validates migration SQL, analyzes index health, and applies pending schema migrations to the target database
README (SKILL.md)

Schema Manager

Overview

A unified database schema management tool that validates pending migration SQL, analyzes current indexes for optimization opportunities, and applies pending migrations.

Features

  1. Migration Validation: Scans /migrations/ for SQL files, validates syntax against the target database.
  2. Index Analysis: Identifies potentially redundant indexes using naming pattern recognition and generates cleanup migrations.
  3. Migration Execution: Applies all pending migrations (including auto-generated cleanup) in order.

Output Format

{
  "migrations_validated": [],
  "indexes_analyzed": {"total": 2, "redundant": ["idx_users_email_unique"]},
  "migrations_executed": ["003_drop_redundant_indexes.sql"],
  "status": "completed"
}
Usage Guidance
Install only if you are prepared to audit and modify the script first. Do not run it against production or shared databases as-is; require an explicit dry-run, review generated SQL, confirm the target database, and remove automatic DROP INDEX execution unless a human has approved the exact migration.
Capability Assessment
Purpose & Capability
The stated purpose is schema management, so database access and migration handling are expected, but the implementation automatically treats indexes as redundant by name pattern and drops them, which is high-impact and under-scoped.
Instruction Scope
The skill describes validation, index analysis, and applying migrations, but the script validates pending migrations with rollback behavior while only executing the generated cleanup migration; this can mislead users about what actually ran.
Install Mechanism
The artifact contains only SKILL.md and scripts/manage.py, with no separate install manifest or permission declaration observed.
Credentials
Defaulting to /var/db/app.db and /migrations plus automatic schema mutation is not proportionate without explicit target-environment selection, dry-run mode, or confirmation.
Persistence & Privilege
The script writes a migration file into /migrations and inserts into _migrations after executing generated cleanup SQL, creating persistent schema and migration-state changes.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install schema-manager
  3. After installation, invoke the skill by name or use /schema-manager
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of schema-manager. - Validates migration SQL files for syntax correctness. - Analyzes database indexes to identify redundancies and optimization opportunities. - Generates and applies cleanup migrations for redundant indexes. - Applies all pending schema migrations in the correct order.
Metadata
Slug schema-manager
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Schema Manager?

Validates migration SQL, analyzes index health, and applies pending schema migrations to the target database. It is an AI Agent Skill for Claude Code / OpenClaw, with 51 downloads so far.

How do I install Schema Manager?

Run "/install schema-manager" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Schema Manager free?

Yes, Schema Manager is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Schema Manager support?

Schema Manager is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Schema Manager?

It is built and maintained by InkLin (@ink5725); the current version is v1.0.0.

💬 Comments