generating-stored-procedures: This skill uses the stored-procedure-generator plugin to create production-ready stored procedures, functions, triggers, and custom database logic. It supports PostgreSQL, MySQL, and SQL Server. Use this skill when the user asks to "generate stored procedure", "create database function", "write a trigger", or needs help with "database logic", "optimizing database performance", or "ensuring transaction safety" in their database. The skill is activated by requests related to database stored procedures, functions, or triggers.
Installation
Details
Usage
After installing, this skill will be available to your AI coding assistant.
Verify installation:
skills listSkill Instructions
name: generating-stored-procedures description: | This skill uses the stored-procedure-generator plugin to create production-ready stored procedures, functions, triggers, and custom database logic. It supports PostgreSQL, MySQL, and SQL Server. Use this skill when the user asks to "generate stored procedure", "create database function", "write a trigger", or needs help with "database logic", "optimizing database performance", or "ensuring transaction safety" in their database. The skill is activated by requests related to database stored procedures, functions, or triggers. allowed-tools: Read, Write, Edit, Grep, Glob, Bash version: 1.0.0
Overview
This skill empowers Claude to generate efficient, production-ready stored procedures, functions, and triggers for various database systems. It helps implement complex business logic, enforce data integrity, and optimize database performance directly within the database.
How It Works
- Identify Requirements: Claude analyzes the user's request to understand the desired functionality, database system, and any specific constraints.
- Generate Code: Claude uses the stored-procedure-generator plugin to create the appropriate SQL code for the stored procedure, function, or trigger.
- Present Code: Claude presents the generated SQL code to the user for review and deployment.
When to Use This Skill
This skill activates when you need to:
- Implement complex business rules within a database.
- Enforce data integrity constraints beyond simple foreign keys.
- Optimize database performance by minimizing network round trips.
- Implement atomic transactions for data consistency.
Examples
Example 1: Generating a Stored Procedure for Order Processing
User request: "generate stored procedure to process orders in PostgreSQL"
The skill will:
- Analyze the request and determine the need for a PostgreSQL stored procedure for order processing.
- Generate the SQL code for a stored procedure that handles order creation, validation, and updates.
- Present the generated SQL code to the user.
Example 2: Creating a Trigger for Auditing Data Changes
User request: "create a trigger in MySQL to audit changes to the 'products' table"
The skill will:
- Analyze the request and determine the need for a MySQL trigger on the 'products' table.
- Generate the SQL code for a trigger that logs changes (inserts, updates, deletes) to a separate audit table.
- Present the generated SQL code to the user.
Best Practices
- Database Choice: Specify the target database (PostgreSQL, MySQL, SQL Server) for optimal code generation.
- Detailed Requirements: Provide clear and detailed requirements for the stored procedure, function, or trigger to ensure accurate code generation.
- Security Considerations: Review the generated code for potential security vulnerabilities, such as SQL injection, before deployment.
Integration
This skill can be integrated with other plugins for tasks such as database schema analysis or deployment automation, allowing for a complete end-to-end database development workflow.
More by jeremylongshore
View allRabbitmq Queue Setup - Auto-activating skill for Backend Development. Triggers on: rabbitmq queue setup, rabbitmq queue setup Part of the Backend Development skill category.
evaluating-machine-learning-models: This skill allows Claude to evaluate machine learning models using a comprehensive suite of metrics. It should be used when the user requests model performance analysis, validation, or testing. Claude can use this skill to assess model accuracy, precision, recall, F1-score, and other relevant metrics. Trigger this skill when the user mentions "evaluate model", "model performance", "testing metrics", "validation results", or requests a comprehensive "model evaluation".
building-neural-networks: This skill allows Claude to construct and configure neural network architectures using the neural-network-builder plugin. It should be used when the user requests the creation of a new neural network, modification of an existing one, or assistance with defining the layers, parameters, and training process. The skill is triggered by requests involving terms like "build a neural network," "define network architecture," "configure layers," or specific mentions of neural network types (e.g., "CNN," "RNN," "transformer").
Oauth Callback Handler - Auto-activating skill for API Integration. Triggers on: oauth callback handler, oauth callback handler Part of the API Integration skill category.
