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.
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-proceduresRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install generating-stored-procedures in Claude Code
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/generating-stored-procedures ~/.gemini/antigravity-cli/skills/generating-stored-proceduresAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install generating-stored-procedures in Antigravity CLI
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 →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.
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.
Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.
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.
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.
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.
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.
