mm-sql-craft

Format, refactor, optimize, harden, and lint T-SQL code.

1|Updated Apr 6, 2026
One-click install
npx skills add https://github.com/mikkeymoo/claude-solo --skill mm-sql-craft
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mm-sql-craft
Source: https://github.com/mikkeymoo/claude-solo/tree/main/mm-skills/mm-sql-craft
Command: npx skills add https://github.com/mikkeymoo/claude-solo --skill mm-sql-craft

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the process of improving SQL code quality and performance by formatting, refactoring, optimizing, hardening, and linting T-SQL code.

Core Features & Use Cases

  • Formatting: Enforce a consistent coding style and layout.
  • Refactoring: Improve readability and maintainability by restructuring code.
  • Optimization: Enhance query performance with SARGable predicates and index suggestions.
  • Hardening: Ensure code is secure and robust with safety checks and best practices.
  • Linting: Identify potential issues and suggest improvements for better code quality.
  • Use Case: Refactor and optimize a complex SQL query to improve its performance and ensure it adheres to best practices.

Quick Start

Use the mm-sql-craft skill to refactor the SQL code in 'query.sql'.

Frequently Asked Questions about mm-sql-craft

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize T-SQL query performance with SARGable predicates?

T-SQL query optimization is achieved by restructuring code to use SARGable predicates and generating index suggestions. This enhances query performance by enabling the database engine to efficiently utilize indexes during data retrieval operations.

What is the best way to format and lint T-SQL code for Microsoft SQL Server?

The best way to format and lint T-SQL code is through automated enforcement of consistent coding style and layout. This Skill identifies potential issues and applies formatting rules to improve readability and maintainability for Microsoft SQL Server environments.

Can I automatically refactor complex SQL queries to improve readability?

Yes, you can automatically refactor complex SQL queries to improve readability and maintainability. The Skill restructures existing T-SQL code without altering its external behavior, making the codebase easier for database administrators and developers to manage.

Does this tool harden T-SQL code against security vulnerabilities?

Yes, this tool hardens T-SQL code by applying safety checks and security best practices. It ensures database code is robust and secure, protecting Microsoft SQL Server data from unauthorized access or corruption through automated vulnerability assessments.

When do I need automated SQL code linting and hardening?

You need automated SQL code linting and hardening when preparing complex queries for production environments. It identifies potential structural issues and applies security best practices to ensure your T-SQL code is robust, performant, and maintainable.