Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

database-ops

Skill by xiaonuobase

Applies Snowy framework database design rules to new tables, menu and button permission SQL, and queries. Built for developers working on Snowy projects.

  • Score 74
  • 824 stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install database-ops

Built from the published package, never by AI.

git clone --depth 1 https://github.com/xiaonuobase/Snowy /tmp/Snowy && mkdir -p ~/.claude/skills && cp -r /tmp/Snowy/.claude/skills/database-ops ~/.claude/skills/database-ops

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install database-ops in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill gives an AI assistant the database design rules used in the Snowy framework. It covers naming, with uppercase table names and a BIZ_ prefix for new business tables. It also covers string snowflake primary keys, a standard audit field group, and a CREATE TABLE template. It includes menu and button permission INSERT statements for SYS_RESOURCE, and the location for SQL scripts under _sql/.

It explains logical deletion with DELETE_FLAG and dynamic datasource setup, with master as the default. When the mysql CLI is available, the assistant runs the SQL. Otherwise it writes the file to docs/sql-pending for the user to run. It is for developers building features in Snowy who need consistent schemas and menu SQL.

Written from the project's SKILL.md and checked against it.

What it can do

  • Table naming rulesUppercase table and field names, with the BIZ_ prefix for new business tables.
  • Table templateA standard CREATE TABLE layout with a varchar(20) ID key and a fixed audit field group.
  • Menu and button SQLINSERT statements for SYS_RESOURCE with a fixed set of button codes.
  • Logical deletion rulesUses DELETE_FLAG with NOT_DELETE and DELETED values and bans hand-written delete conditions.
  • Datasource setupPoints to the dynamic-datasource config in application.properties, with master as the default.
  • SQL execution fallbackRuns SQL through the mysql CLI, or writes a pending file for the user to run.
  • Self-check queriesProvides SQL to confirm tables, table structure, menu rows and saved records.
  • Menu parent IDsLists seed IDs for the business module and catalog that new menus can attach to.

What you need

  • A Snowy project with application.properties configured
  • A MySQL database
  • The mysql command line client, for direct SQL execution

Try asking

  • Design a BIZ_ supplier table for the Snowy project with audit fields.
  • Write the SYS_RESOURCE menu and button SQL for a new order page.
  • Show me the SQL to check the structure of BIZ_NOTICE.

Good to know

  • Written for the Snowy framework and its MySQL init script.
  • DROP, TRUNCATE and ALTER need explicit user confirmation before running.
  • Avoid unique indexes on logically deleted tables; check duplicates in the service layer.
  • New tables should not copy the SYS_ or DEV_ prefixes used by the built-in biz domain.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .claude/skills/database-ops/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to database-ops

All alternatives →
hugging-face-datasetssickn33
94

Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.

AAA Skill 50k
db-repairgarrytan
94

Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.

AAA Skill 34k
alloydb-basicsgoogle
94

Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.

AAA Skill 26k
clickhouse-logs-queriessupabase
94

Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.

AAA Skill 116k
fix-slow-queriespaperclipai
94

Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.

AAA Skill 119k
prisma-8prisma
94

Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.

AAA Skill 48k

Compare with hugging-face-datasets, db-repair or alloydb-basics

database-ops: common questions

Does it require a specific database?

The source describes MySQL with utf8mb4 and InnoDB, and the Snowy init script snowy_mysql.sql.

Can the assistant run DROP or ALTER statements?

Not without explicit user confirmation. The source forbids these statements unless the user agrees first.

Where should new SQL scripts go?

Incremental DDL scripts should be added under snowy-web-app/src/main/resources/_sql/.

How do I install database-ops?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is database-ops free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is database-ops safe to use?

It scores 74 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to database-ops?

Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.

database-ops Install

Add to stack

Loading.