Skip to content

jeremylongshore/tons-of-skills-marketplace / plugins/database/stored-procedure-generator/skills/generating-stored-procedures

generating-stored-procedures

Verified

Use 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".

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
writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deploymentStars: 323kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 119kUpdated Claude CodeCodexVerifiedInstall
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: 118kUpdated Claude CodeCodexVerifiedInstall