MCP HubMCP Hub
スキル一覧に戻る

generating-stored-procedures

jeremylongshore
更新日 Today
78 閲覧
712
74
712
GitHubで表示
メタdata

について

このスキルは、PostgreSQL、MySQL、SQL Server向けの本番環境対応のストアドプロシージャ、関数、トリガーを生成します。データベースロジックの作成、パフォーマンスの最適化、トランザクション安全性の確保が必要な際にご利用ください。複雑なビジネスロジックやデータ整合性をデータベース内に直接実装することを支援します。

クイックインストール

Claude Code

推奨
プラグインコマンド推奨
/plugin add https://github.com/jeremylongshore/claude-code-plugins-plus
Git クローン代替
git clone https://github.com/jeremylongshore/claude-code-plugins-plus.git ~/.claude/skills/generating-stored-procedures

このコマンドをClaude Codeにコピー&ペーストしてスキルをインストールします

ドキュメント

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

  1. Identify Requirements: Claude analyzes the user's request to understand the desired functionality, database system, and any specific constraints.
  2. Generate Code: Claude uses the stored-procedure-generator plugin to create the appropriate SQL code for the stored procedure, function, or trigger.
  3. 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:

  1. Analyze the request and determine the need for a PostgreSQL stored procedure for order processing.
  2. Generate the SQL code for a stored procedure that handles order creation, validation, and updates.
  3. 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:

  1. Analyze the request and determine the need for a MySQL trigger on the 'products' table.
  2. Generate the SQL code for a trigger that logs changes (inserts, updates, deletes) to a separate audit table.
  3. 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.

GitHub リポジトリ

jeremylongshore/claude-code-plugins-plus
パス: backups/skills-batch-20251204-000554/plugins/database/stored-procedure-generator/skills/stored-procedure-generator
aiautomationclaude-codedevopsmarketplacemcp

関連スキル

content-collections

メタ

This skill provides a production-tested setup for Content Collections, a TypeScript-first tool that transforms Markdown/MDX files into type-safe data collections with Zod validation. Use it when building blogs, documentation sites, or content-heavy Vite + React applications to ensure type safety and automatic content validation. It covers everything from Vite plugin configuration and MDX compilation to deployment optimization and schema validation.

スキルを見る

polymarket

メタ

This skill enables developers to build applications with the Polymarket prediction markets platform, including API integration for trading and market data. It also provides real-time data streaming via WebSocket to monitor live trades and market activity. Use it for implementing trading strategies or creating tools that process live market updates.

スキルを見る

hybrid-cloud-networking

メタ

This skill configures secure hybrid cloud networking between on-premises infrastructure and cloud platforms like AWS, Azure, and GCP. Use it when connecting data centers to the cloud, building hybrid architectures, or implementing secure cross-premises connectivity. It supports key capabilities such as VPNs and dedicated connections like AWS Direct Connect for high-performance, reliable setups.

スキルを見る

llamaindex

メタ

LlamaIndex is a data framework for building RAG-powered LLM applications, specializing in document ingestion, indexing, and querying. It provides key features like vector indices, query engines, and agents, and supports over 300 data connectors. Use it for document Q&A, chatbots, and knowledge retrieval when building data-centric applications.

スキルを見る