[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72ZM7CQBYRYA8FN6X8QDG1H":3,"skill-same:01M72ZM7CQBYRYA8FN6X8QDG1H":74},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":32,"commitSha":33,"skillDirectory":34,"forksCount":13,"repositoryHtmlUrl":35,"repositoryHomepageUrl":6,"ownerHtmlUrl":36,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":37,"install":38,"resources":51},"01M72ZM7CQBYRYA8FN6X8QDG1H","sql-pro",null,"Optimizes SQL queries, designs database schemas, and troubleshoots performance issues. Use when a user asks why their query is slow, needs help writing complex joins or aggregations, mentions database performance issues, or wants to design or migrate a schema. Invoke for complex queries, window functions, CTEs, indexing strategies, query plan analysis, covering index creation, recursive queries, EXPLAIN\u002FANALYZE interpretation, before\u002Fafter query benchmarking, or migrating queries between database dialects (PostgreSQL, MySQL, SQL Server, Oracle).","andrewthomastaylor\u002FSkills","andrewthomastaylor","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F249856925?v=4","01M72Z00NZWQPWA1TVXZPKXXWJ","01M72Z00PJ210Z6DAD1N93P2HG",0,"MIT","https:\u002F\u002Fgithub.com\u002Fandrewthomastaylor\u002FSkills\u002Fblob\u002Fmain\u002Fclaude-skills\u002Fskills\u002Fsql-pro\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: sql-pro\ndescription: Optimizes SQL queries, designs database schemas, and troubleshoots performance issues. Use when a user asks why their query is slow, needs help writing complex joins or aggregations, mentions database performance issues, or wants to design or migrate a schema. Invoke for complex queries, window functions, CTEs, indexing strategies, query plan analysis, covering index creation, recursive queries, EXPLAIN\u002FANALYZE interpretation, before\u002Fafter query benchmarking, or migrating queries between database dialects (PostgreSQL, MySQL, SQL Server, Oracle).\nlicense: MIT\nmetadata:\n  author: https:\u002F\u002Fgithub.com\u002FJeffallan\n  version: \"1.1.0\"\n  domain: language\n  triggers: SQL optimization, query performance, database design, PostgreSQL, MySQL, SQL Server, window functions, CTEs, query tuning, EXPLAIN plan, database indexing\n  role: specialist\n  scope: implementation\n  output-format: code\n  related-skills: devops-engineer\n---\n\n# SQL Pro\n\n## Core Workflow\n\n1. **Schema Analysis** - Review database structure, indexes, query patterns, performance bottlenecks\n2. **Design** - Create set-based operations using CTEs, window functions, appropriate joins\n3. **Optimize** - Analyze execution plans, implement covering indexes, eliminate table scans\n4. **Verify** - Run `EXPLAIN ANALYZE` and confirm no sequential scans on large tables; if query does not meet sub-100ms target, iterate on index selection or query rewrite before proceeding\n5. **Document** - Provide query explanations, index rationale, performance metrics\n\n## Reference Guide\n\nLoad detailed guidance based on context:\n\n| Topic | Reference | Load When |\n|-------|-----------|-----------|\n| Query Patterns | `references\u002Fquery-patterns.md` | JOINs, CTEs, subqueries, recursive queries |\n| Window Functions | `references\u002Fwindow-functions.md` | ROW_NUMBER, RANK, LAG\u002FLEAD, analytics |\n| Optimization | `references\u002Foptimization.md` | EXPLAIN plans, indexes, statistics, tuning |\n| Database Design | `references\u002Fdatabase-design.md` | Normalization, keys, constraints, schemas |\n| Dialect Differences | `references\u002Fdialect-differences.md` | PostgreSQL vs MySQL vs SQL Server specifics |\n\n## Quick-Reference Examples\n\n### CTE Pattern\n```sql\n-- Isolate expensive subquery logic for reuse and readability\nWITH ranked_orders AS (\n    SELECT\n        customer_id,\n        order_id,\n        total_amount,\n        ROW_NUMBER() OVER (PARTITION BY customer_id ORDER BY order_date DESC) AS rn\n    FROM orders\n    WHERE status = 'completed'          -- filter early, before the join\n)\nSELECT customer_id, order_id, total_amount\nFROM ranked_orders\nWHERE rn = 1;                           -- latest completed order per customer\n```\n\n### Window Function Pattern\n```sql\n-- Running total and rank within partition — no self-join required\nSELECT\n    department_id,\n    employee_id,\n    salary,\n    SUM(salary)  OVER (PARTITION BY department_id ORDER BY hire_date) AS running_payroll,\n    RANK()       OVER (PARTITION BY department_id ORDER BY salary DESC) AS salary_rank\nFROM employees;\n```\n\n### EXPLAIN ANALYZE Interpretation\n```sql\n-- PostgreSQL: always use ANALYZE to see actual row counts vs. estimates\nEXPLAIN (ANALYZE, BUFFERS, FORMAT TEXT)\nSELECT *\nFROM orders o\nJOIN customers c ON c.id = o.customer_id\nWHERE o.created_at > NOW() - INTERVAL '30 days';\n```\nKey things to check in the output:\n- **Seq Scan on large table** → add or fix an index\n- **actual rows ≫ estimated rows** → run `ANALYZE \u003Ctable>` to refresh statistics\n- **Buffers: shared hit** vs **read** → high `read` count signals missing cache \u002F index\n\n### Before \u002F After Optimization Example\n```sql\n-- BEFORE: correlated subquery, one execution per row (slow)\nSELECT order_id,\n       (SELECT SUM(quantity) FROM order_items oi WHERE oi.order_id = o.id) AS item_count\nFROM orders o;\n\n-- AFTER: single aggregation join (fast)\nSELECT o.order_id, COALESCE(agg.item_count, 0) AS item_count\nFROM orders o\nLEFT JOIN (\n    SELECT order_id, SUM(quantity) AS item_count\n    FROM order_items\n    GROUP BY order_id\n) agg ON agg.order_id = o.id;\n\n-- Supporting covering index (includes all columns touched by the query)\nCREATE INDEX idx_order_items_order_qty\n    ON order_items (order_id)\n    INCLUDE (quantity);\n```\n\n## Constraints\n\n### MUST DO\n- Analyze execution plans before recommending optimizations\n- Use set-based operations over row-by-row processing\n- Apply filtering early in query execution (before joins where possible)\n- Use EXISTS over COUNT for existence checks\n- Handle NULLs explicitly in comparisons and aggregations\n- Create covering indexes for frequent queries\n- Test with production-scale data volumes\n\n### MUST NOT DO\n- Use SELECT * in production queries\n- Use cursors when set-based operations work\n- Ignore platform-specific optimizations when targeting a specific dialect\n- Implement solutions without considering data volume and cardinality\n\n## Output Templates\n\nWhen implementing SQL solutions, provide:\n1. Optimized query with inline comments\n2. Required indexes with rationale\n3. Execution plan analysis\n4. Performance metrics (before\u002Fafter)\n5. Platform-specific notes if applicable\n\n[Documentation](https:\u002F\u002Fjeffallan.github.io\u002Fclaude-skills\u002Fskills\u002Flanguage\u002Fsql-pro\u002F)\n","# SQL Pro\n\n## Core Workflow\n\n1. **Schema Analysis** - Review database structure, indexes, query patterns, performance bottlenecks\n2. **Design** - Create set-based operations using CTEs, window functions, appropriate joins\n3. **Optimize** - Analyze execution plans, implement covering indexes, eliminate table scans\n4. **Verify** - Run `EXPLAIN ANALYZE` and confirm no sequential scans on large tables; if query does not meet sub-100ms target, iterate on index selection or query rewrite before proceeding\n5. **Document** - Provide query explanations, index rationale, performance metrics\n\n## Reference Guide\n\nLoad detailed guidance based on context:\n\n| Topic | Reference | Load When |\n|-------|-----------|-----------|\n| Query Patterns | `references\u002Fquery-patterns.md` | JOINs, CTEs, subqueries, recursive queries |\n| Window Functions | `references\u002Fwindow-functions.md` | ROW_NUMBER, RANK, LAG\u002FLEAD, analytics |\n| Optimization | `references\u002Foptimization.md` | EXPLAIN plans, indexes, statistics, tuning |\n| Database Design | `references\u002Fdatabase-design.md` | Normalization, keys, constraints, schemas |\n| Dialect Differences | `references\u002Fdialect-differences.md` | PostgreSQL vs MySQL vs SQL Server specifics |\n\n## Quick-Reference Examples\n\n### CTE Pattern\n```sql\n-- Isolate expensive subquery logic for reuse and readability\nWITH ranked_orders AS (\n    SELECT\n        customer_id,\n        order_id,\n        total_amount,\n        ROW_NUMBER() OVER (PARTITION BY customer_id ORDER BY order_date DESC) AS rn\n    FROM orders\n    WHERE status = 'completed'          -- filter early, before the join\n)\nSELECT customer_id, order_id, total_amount\nFROM ranked_orders\nWHERE rn = 1;                           -- latest completed order per customer\n```\n\n### Window Function Pattern\n```sql\n-- Running total and rank within partition — no self-join required\nSELECT\n    department_id,\n    employee_id,\n    salary,\n    SUM(salary)  OVER (PARTITION BY department_id ORDER BY hire_date) AS running_payroll,\n    RANK()       OVER (PARTITION BY department_id ORDER BY salary DESC) AS salary_rank\nFROM employees;\n```\n\n### EXPLAIN ANALYZE Interpretation\n```sql\n-- PostgreSQL: always use ANALYZE to see actual row counts vs. estimates\nEXPLAIN (ANALYZE, BUFFERS, FORMAT TEXT)\nSELECT *\nFROM orders o\nJOIN customers c ON c.id = o.customer_id\nWHERE o.created_at > NOW() - INTERVAL '30 days';\n```\nKey things to check in the output:\n- **Seq Scan on large table** → add or fix an index\n- **actual rows ≫ estimated rows** → run `ANALYZE \u003Ctable>` to refresh statistics\n- **Buffers: shared hit** vs **read** → high `read` count signals missing cache \u002F index\n\n### Before \u002F After Optimization Example\n```sql\n-- BEFORE: correlated subquery, one execution per row (slow)\nSELECT order_id,\n       (SELECT SUM(quantity) FROM order_items oi WHERE oi.order_id = o.id) AS item_count\nFROM orders o;\n\n-- AFTER: single aggregation join (fast)\nSELECT o.order_id, COALESCE(agg.item_count, 0) AS item_count\nFROM orders o\nLEFT JOIN (\n    SELECT order_id, SUM(quantity) AS item_count\n    FROM order_items\n    GROUP BY order_id\n) agg ON agg.order_id = o.id;\n\n-- Supporting covering index (includes all columns touched by the query)\nCREATE INDEX idx_order_items_order_qty\n    ON order_items (order_id)\n    INCLUDE (quantity);\n```\n\n## Constraints\n\n### MUST DO\n- Analyze execution plans before recommending optimizations\n- Use set-based operations over row-by-row processing\n- Apply filtering early in query execution (before joins where possible)\n- Use EXISTS over COUNT for existence checks\n- Handle NULLs explicitly in comparisons and aggregations\n- Create covering indexes for frequent queries\n- Test with production-scale data volumes\n\n### MUST NOT DO\n- Use SELECT * in production queries\n- Use cursors when set-based operations work\n- Ignore platform-specific optimizations when targeting a specific dialect\n- Implement solutions without considering data volume and cardinality\n\n## Output Templates\n\nWhen implementing SQL solutions, provide:\n1. Optimized query with inline comments\n2. Required indexes with rationale\n3. Execution plan analysis\n4. Performance metrics (before\u002Fafter)\n5. Platform-specific notes if applicable\n\n[Documentation](https:\u002F\u002Fjeffallan.github.io\u002Fclaude-skills\u002Fskills\u002Flanguage\u002Fsql-pro\u002F)\n",{"name":5,"license":14,"metadata":23,"description":7},{"role":24,"scope":25,"author":26,"domain":27,"version":28,"triggers":29,"output-format":30,"related-skills":31},"specialist","implementation","https:\u002F\u002Fgithub.com\u002FJeffallan","language","1.1.0","SQL optimization, query performance, database design, PostgreSQL, MySQL, SQL Server, window functions, CTEs, query tuning, EXPLAIN plan, database indexing","code","devops-engineer","main","cb7b4065bacb4b06224de86d509ccef568f68b79","claude-skills\u002Fskills\u002Fsql-pro","https:\u002F\u002Fgithub.com\u002Fandrewthomastaylor\u002FSkills","https:\u002F\u002Fgithub.com\u002Fandrewthomastaylor","2026-05-29 06:53:07",{"source":8,"skillName":5,"commands":39,"prompt":49,"zipAvailable":50},[40,43,46],{"tool":41,"command":42},"npx","npx skills add andrewthomastaylor\u002FSkills --skill sql-pro",{"tool":44,"command":45},"bunx","bunx skills add andrewthomastaylor\u002FSkills --skill sql-pro",{"tool":47,"command":48},"pnpm","pnpm dlx skills add andrewthomastaylor\u002FSkills --skill sql-pro","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fandrewthomastaylor\u002FSkills\u002Fblob\u002Fmain\u002Fclaude-skills\u002Fskills\u002Fsql-pro\u002FSKILL.md",true,[52,58,62,66,70],{"path":53,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002Fdatabase-design.md","REFERENCE","参考文档",12540,"https:\u002F\u002Fgithub.com\u002Fandrewthomastaylor\u002FSkills\u002Fblob\u002Fmain\u002Fclaude-skills\u002Fskills\u002Fsql-pro\u002Freferences\u002Fdatabase-design.md",{"path":59,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Fdialect-differences.md",11951,"https:\u002F\u002Fgithub.com\u002Fandrewthomastaylor\u002FSkills\u002Fblob\u002Fmain\u002Fclaude-skills\u002Fskills\u002Fsql-pro\u002Freferences\u002Fdialect-differences.md",{"path":63,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":64,"sourceHtmlUrl":65},"references\u002Foptimization.md",10820,"https:\u002F\u002Fgithub.com\u002Fandrewthomastaylor\u002FSkills\u002Fblob\u002Fmain\u002Fclaude-skills\u002Fskills\u002Fsql-pro\u002Freferences\u002Foptimization.md",{"path":67,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":68,"sourceHtmlUrl":69},"references\u002Fquery-patterns.md",7439,"https:\u002F\u002Fgithub.com\u002Fandrewthomastaylor\u002FSkills\u002Fblob\u002Fmain\u002Fclaude-skills\u002Fskills\u002Fsql-pro\u002Freferences\u002Fquery-patterns.md",{"path":71,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":72,"sourceHtmlUrl":73},"references\u002Fwindow-functions.md",8860,"https:\u002F\u002Fgithub.com\u002Fandrewthomastaylor\u002FSkills\u002Fblob\u002Fmain\u002Fclaude-skills\u002Fskills\u002Fsql-pro\u002Freferences\u002Fwindow-functions.md",[75,84,92,99,106,113],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":79,"licenseFileUrl":80,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":18},"01M732GDQJ0CWHBAW4D7ENMA3N","skill-creator","Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fandrewthomastaylor\u002FSkills\u002Fblob\u002Fmain\u002Fskill-creator\u002Fskills\u002Fskill-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fandrewthomastaylor\u002FSkills\u002Fblob\u002Fmain\u002Fskill-creator\u002Fskills\u002Fskill-creator\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":88,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":18},"01M731QVEE2QCT389Z3X1JWFVQ","humanizer-zh","去除文本中的 AI 生成痕迹。适用于编辑或审阅文本，使其听起来更自然、更像人类书写。\n基于维基百科的\"AI 写作特征\"综合指南。检测并修复以下模式：夸大的象征意义、\n宣传性语言、以 -ing 结尾的肤浅分析、模糊的归因、破折号过度使用、三段式法则、\nAI 词汇、否定式排比、过多的连接性短语。","https:\u002F\u002Fgithub.com\u002Fandrewthomastaylor\u002FSkills\u002Fblob\u002Fmain\u002Fhumanizer-zh\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fandrewthomastaylor\u002FSkills\u002Fblob\u002Fmain\u002Fhumanizer-zh\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":79,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":18},"01M731AMWEC72GFFNFS55F0TTC","returns-reverse-logistics","Codified expertise for returns authorization, receipt and inspection, disposition decisions, refund processing, fraud detection, and warranty claims management. Informed by returns operations managers with 15+ years experience. Includes grading frameworks, disposition economics, fraud pattern recognition, and vendor recovery processes. Use when handling product returns, reverse logistics, refund decisions, return fraud detection, or warranty claims.","https:\u002F\u002Fgithub.com\u002Fandrewthomastaylor\u002FSkills\u002Fblob\u002Fmain\u002Feverything-claude-code\u002Fskills\u002Freturns-reverse-logistics\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":79,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":18},"01M7319BJFM3CBX39C85QWSMD1","quality-nonconformance","Codified expertise for quality control, non-conformance investigation, root cause analysis, corrective action, and supplier quality management in regulated manufacturing. Informed by quality engineers with 15+ years experience across FDA, IATF 16949, and AS9100 environments. Includes NCR lifecycle management, CAPA systems, SPC interpretation, and audit methodology. Use when investigating non-conformances, performing root cause analysis, managing CAPAs, interpreting SPC data, or handling supplier quality issues.","https:\u002F\u002Fgithub.com\u002Fandrewthomastaylor\u002FSkills\u002Fblob\u002Fmain\u002Feverything-claude-code\u002Fskills\u002Fquality-nonconformance\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":79,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":18},"01M7318DPHWK6CEVCVT7PHNKDZ","production-scheduling","Codified expertise for production scheduling, job sequencing, line balancing, changeover optimization, and bottleneck resolution in discrete and batch manufacturing. Informed by production schedulers with 15+ years experience. Includes TOC\u002Fdrum-buffer-rope, SMED, OEE analysis, disruption response frameworks, and ERP\u002FMES interaction patterns. Use when scheduling production, resolving bottlenecks, optimizing changeovers, responding to disruptions, or balancing manufacturing lines.","https:\u002F\u002Fgithub.com\u002Fandrewthomastaylor\u002FSkills\u002Fblob\u002Fmain\u002Feverything-claude-code\u002Fskills\u002Fproduction-scheduling\u002FSKILL.md",[],[],{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":79,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":18},"01M7315ZE0J0AB6KTQAFGCYF5V","logistics-exception-management","Codified expertise for handling freight exceptions, shipment delays, damages, losses, and carrier disputes. Informed by logistics professionals with 15+ years operational experience. Includes escalation protocols, carrier-specific behaviors, claims procedures, and judgment frameworks. Use when handling shipping exceptions, freight claims, delivery issues, or carrier disputes.","https:\u002F\u002Fgithub.com\u002Fandrewthomastaylor\u002FSkills\u002Fblob\u002Fmain\u002Feverything-claude-code\u002Fskills\u002Flogistics-exception-management\u002FSKILL.md",[],[]]