jeremylongshore/tons-of-skills-marketplace / plugins/database/stored-procedure-generator/skills/generating-stored-procedures
generating-stored-procedures
VerifiedUse when you need to generate, validate, or deploy stored procedures for PostgreSQL, MySQL, or SQL Server. Creates database functions, triggers, and procedures with proper error handling and transaction management. Trigger with phrases like "generate stored procedure", "create database function", "write SQL procedure", "add trigger to table", or "create CRUD procedures".
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 7.1 KB |
| assets/README.md | markdown | 383 B |
| config/settings.yaml | config | 1.7 KB |
| references/README.md | markdown | 624 B |
| references/database_security_guidelines.md | markdown | 5.9 KB |
| references/mysql_stored_procedure_best_practices.md | markdown | 7.0 KB |
| references/postgresql_stored_procedure_best_practices.md | markdown | 5.2 KB |
| references/sqlserver_stored_procedure_best_practices.md | markdown | 7.8 KB |
| references/stored_procedure_optimization_techniques.md | markdown | 6.6 KB |
| scripts/README.md | markdown | 514 B |
| scripts/database_connection_test.pyexecutable | script | 7.2 KB |
| scripts/stored_procedure_deployer.pyexecutable | script | 10.5 KB |
| scripts/stored_procedure_syntax_validator.pyexecutable | script | 10.3 KB |
config/settings.yaml
View on GitHub# Stored Procedure Generator Settings
# Connection templates for different database types
databases:
postgresql:
default_port: 5432
client: psql
connection_string: "postgresql://db_admin:$DB_PASSWORD@localhost:5432/app_database"
test_query: "SELECT version();"
permissions_query: |
SELECT privilege_type
FROM information_schema.role_table_grants
WHERE grantee = current_user;
mysql:
default_port: 3306
client: mysql
connection_string: "mysql://db_admin:$DB_PASSWORD@localhost:3306/app_database"
test_query: "SELECT VERSION();"
permissions_query: "SHOW GRANTS;"
sqlserver:
default_port: 1433
client: sqlcmd
connection_string: "Server=localhost,1433;Database=app_database;User Id=db_admin;Password=$DB_PASSWORD;"
test_query: "SELECT @@VERSION;"
permissions_query: "SELECT permission_name FROM fn_my_permissions(NULL, 'DATABASE');"
validation:
# Patterns to detect in stored procedure code
warnings:
- pattern: "SELECT *"
message: "Avoid SELECT * - specify columns explicitly"
- pattern: "EXECUTE '"
message: "Dynamic SQL detected - ensure parameterization"
- pattern: "sp_executesql @sql"
message: "Verify parameters are properly bound"
required:
postgresql:
- "LANGUAGE"
- "$$"
mysql:
- "DELIMITER"
- "BEGIN"
- "END"
sqlserver:
- "AS"
- "BEGIN"
- "END"
deployment:
# Deployment options
dry_run: false
generate_rollback: true
timeout_seconds: 60
transaction_wrap: true
templates:
# Common procedure templates
crud:
- create
- read
- update
- delete
audit:
- audit_trigger
- audit_table
security:
- permission_check
- rate_limit
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deployment | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |