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

generating-stored-procedures

Skill by jeremylongshore

Generates stored procedures, database functions and triggers for PostgreSQL, MySQL and SQL Server. It adds error handling and transaction management, and can validate and deploy the SQL. It is aimed at developers and DBAs who write database code.

  • Score 77
  • 3k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install generating-stored-procedures

Built from the published package, never by AI.

git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.claude/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/generating-stored-procedures ~/.claude/skills/generating-stored-procedures

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

Step-by-step: install generating-stored-procedures in Claude Code

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

About

Generating-stored-procedures is a skill that creates stored procedures, database functions and triggers for PostgreSQL, MySQL and SQL Server. The generated code includes error handling and transaction management. The skill shows PostgreSQL PL/pgSQL, MySQL and T-SQL examples, including CRUD procedures and an audit trigger pattern.

The workflow has five steps: identify the database type and version, generate the procedure, add transaction handling, validate the syntax with a Python script, and deploy to the database with a second script. The listed outputs are a SQL file, a validation report, deployment results and a rollback script. It is aimed at developers and DBAs who need to write or deploy procedures. It requires database credentials and CREATE PROCEDURE, CREATE FUNCTION and EXECUTE permissions.

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

What it can do

  • Generate proceduresWrites PostgreSQL functions, MySQL procedures and SQL Server T-SQL procedures with error handling.
  • Transaction managementAdds transaction handling and rollback logic to generated procedures.
  • Trigger creationCreates database triggers, such as an audit trigger that logs changes to a table.
  • CRUD proceduresGenerates create, get, update and delete procedures for a given table.
  • Syntax validationRuns stored_procedure_syntax_validator.py to check a SQL file for a database type.
  • DeploymentRuns stored_procedure_deployer.py to deploy a SQL file to a target database.

What you need

  • Database connection credentials (host, port, database, user, password)
  • Database user with CREATE PROCEDURE, CREATE FUNCTION and EXECUTE permissions
  • Python 3 for the validation and deployment scripts
  • Claude Code

Try asking

  • Generate CRUD stored procedures for the products table in PostgreSQL
  • Create a trigger to log all changes to the orders table
  • Validate the MySQL procedure in procedure.sql for syntax errors

Good to know

  • Covers PostgreSQL, MySQL and SQL Server only.
  • Deployment needs database credentials and the permissions listed in the source.
  • The helper scripts it calls are referenced but their code is not included in the source.

Security check

B
  • Allowed to use Write, Edit without limitsIn SKILL.md

Checked automatically: skills/.curated/generating-stored-procedures/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: ReadWriteEditGrepGlobBash(psql:*)Bash(mysql:*)Bash(sqlcmd:*)

Alternatives to generating-stored-procedures

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

generating-stored-procedures: common questions

Which databases does this skill support?

The source lists PostgreSQL, MySQL and SQL Server. It gives example code for each.

Can it deploy procedures to a database?

Yes. The source includes a deployer script that takes a database type, host, database name and SQL file.

Does it produce a rollback script?

The output section lists a rollback script for removing the procedure.

How do I install generating-stored-procedures?

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

Is generating-stored-procedures free?

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

Is generating-stored-procedures safe to use?

It scores 77 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use write, edit without limits). Review the code before you install. How grades work.

What are alternatives to generating-stored-procedures?

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

generating-stored-procedures Install

Add to stack

Loading.