[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CXS2KAMFWZBTJHW5EYQC8K":3,"skill-same:01M6CXS2KAMFWZBTJHW5EYQC8K":98},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":52,"commitSha":53,"skillDirectory":54,"forksCount":55,"repositoryHtmlUrl":56,"repositoryHomepageUrl":57,"ownerHtmlUrl":58,"ownerBlogUrl":59,"ownerDescription":60,"updatedAt":61,"install":62,"resources":75},"01M6CXS2KAMFWZBTJHW5EYQC8K","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).","eric861129\u002FSKILLS_All-in-one","eric861129","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F74950944?v=4","01M6CXHDYEYRPFGGV4EFXCSYCF","ChiYu-Huang","01M6CXHE2J5CN1EBTY0FKV3ZKW",52,"MIT","https:\u002F\u002Fgithub.com\u002Feric861129\u002FSKILLS_All-in-one\u002Fblob\u002Fmain\u002Fpublic\u002FSKILLS\u002FData & Analysis\u002Fsql-pro\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"sql","sql pro","postgresql","indexing","strategies","query","engineer","analyze","migrate","analysis","server","design","mysql","database","issues","code","interpretation","performance","oracle","writing","2026-11-10 10:12:30",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","# 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",{"name":5,"license":15,"metadata":44,"description":7},{"role":45,"scope":46,"author":47,"domain":48,"version":49,"triggers":50,"output-format":34,"related-skills":51},"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","devops-engineer","main","cbdd44aae21131521c09e42762e36178c790eacf","public\u002FSKILLS\u002FData & Analysis\u002Fsql-pro",13,"https:\u002F\u002Fgithub.com\u002Feric861129\u002FSKILLS_All-in-one","http:\u002F\u002Fhuangchiyu.com\u002FSKILLS_All-in-one\u002F","https:\u002F\u002Fgithub.com\u002Feric861129","https:\u002F\u002Fhuangchiyu.com\u002FChiYu-Blog\u002F","開發工程師，專注於 C#／.NET 系統現代化、AI-assisted engineering、開源工具與技術寫作。","2026-04-16 14:28:14",{"source":8,"skillName":5,"commands":63,"prompt":73,"zipAvailable":74},[64,67,70],{"tool":65,"command":66},"npx","npx skills add eric861129\u002FSKILLS_All-in-one --skill sql-pro",{"tool":68,"command":69},"bunx","bunx skills add eric861129\u002FSKILLS_All-in-one --skill sql-pro",{"tool":71,"command":72},"pnpm","pnpm dlx skills add eric861129\u002FSKILLS_All-in-one --skill sql-pro","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Feric861129\u002FSKILLS_All-in-one\u002Fblob\u002Fmain\u002Fpublic\u002FSKILLS\u002FData & Analysis\u002Fsql-pro\u002FSKILL.md",true,[76,82,86,90,94],{"path":77,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":80,"sourceHtmlUrl":81},"references\u002Fdatabase-design.md","REFERENCE","参考文档",12540,"https:\u002F\u002Fgithub.com\u002Feric861129\u002FSKILLS_All-in-one\u002Fblob\u002Fmain\u002Fpublic\u002FSKILLS\u002FData & Analysis\u002Fsql-pro\u002Freferences\u002Fdatabase-design.md",{"path":83,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":84,"sourceHtmlUrl":85},"references\u002Fdialect-differences.md",11951,"https:\u002F\u002Fgithub.com\u002Feric861129\u002FSKILLS_All-in-one\u002Fblob\u002Fmain\u002Fpublic\u002FSKILLS\u002FData & Analysis\u002Fsql-pro\u002Freferences\u002Fdialect-differences.md",{"path":87,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":88,"sourceHtmlUrl":89},"references\u002Foptimization.md",10820,"https:\u002F\u002Fgithub.com\u002Feric861129\u002FSKILLS_All-in-one\u002Fblob\u002Fmain\u002Fpublic\u002FSKILLS\u002FData & Analysis\u002Fsql-pro\u002Freferences\u002Foptimization.md",{"path":91,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":92,"sourceHtmlUrl":93},"references\u002Fquery-patterns.md",7439,"https:\u002F\u002Fgithub.com\u002Feric861129\u002FSKILLS_All-in-one\u002Fblob\u002Fmain\u002Fpublic\u002FSKILLS\u002FData & Analysis\u002Fsql-pro\u002Freferences\u002Fquery-patterns.md",{"path":95,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":96,"sourceHtmlUrl":97},"references\u002Fwindow-functions.md",8860,"https:\u002F\u002Fgithub.com\u002Feric861129\u002FSKILLS_All-in-one\u002Fblob\u002Fmain\u002Fpublic\u002FSKILLS\u002FData & Analysis\u002Fsql-pro\u002Freferences\u002Fwindow-functions.md",[99,123,144,167,188,207],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":39},"01M6CZ1WR3KNVTKSWH4GNWT646","what-if-oracle","Run structured What-If scenario analysis with multi-branch possibility exploration. Use this skill when the user asks speculative questions like \"what if...\", \"what would happen if...\", \"what are the possibilities\", \"explore scenarios\", \"scenario analysis\", \"possibility space\", \"what could go wrong\", \"best case \u002F worst case\", \"risk analysis\", \"contingency planning\", \"strategic options\", or any question about uncertain futures. Also trigger when the user faces a fork-in-the-road decision, wants to stress-test an idea, or needs to think through consequences before committing.","https:\u002F\u002Fgithub.com\u002Feric861129\u002FSKILLS_All-in-one\u002Fblob\u002Fmain\u002Fpublic\u002FSKILLS\u002FWriting & Research\u002Fwhat-if-oracle\u002FSKILL.md",[],[37,106,107,108,109,110,111,112,28,113,114,115,116,117,118,119,120,121,122,23],"what if oracle","go","run","planning","ux","futures","risk","explore","decision","branch","question","read","write","idea","exploration","options","stress-test",{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":39},"01M6CZ1QHGJE91A95MSN5EK5Q9","venue-templates","Access comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.","https:\u002F\u002Fgithub.com\u002Feric861129\u002FSKILLS_All-in-one\u002Fblob\u002Fmain\u002Fpublic\u002FSKILLS\u002FWriting & Research\u002Fvenue-templates\u002FSKILL.md",[],[130,131,132,133,134,135,136,137,138,139,117,118,140,141,142,143],"templates","venue templates","research","guidelines","NeurIPS","ICML","LaTeX","science","Bash","access","edit","proposals","Academic","requirements",{"skillNo":145,"name":146,"nameZh":6,"description":147,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":148,"categories":149,"keywords":150,"publishedAt":39},"01M6CZ1KBQD2E5RTFB3BGVX7CD","the-fool","Use when challenging ideas, plans, decisions, or proposals using structured critical reasoning. Invoke to play devil's advocate, run a pre-mortem, red team, or audit evidence and assumptions.","https:\u002F\u002Fgithub.com\u002Feric861129\u002FSKILLS_All-in-one\u002Fblob\u002Fmain\u002Fpublic\u002FSKILLS\u002FWriting & Research\u002Fthe-fool\u002FSKILL.md",[],[151,152,107,153,154,108,34,155,156,157,158,159,160,161,141,162,163,164,165,166],"the fool","review","workflow","architecture","audit","forge","devil","team","designer","reviewer","challenge","stress test","evidence","expert","poke","ideas",{"skillNo":168,"name":169,"nameZh":6,"description":170,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":171,"categories":172,"keywords":173,"publishedAt":39},"01M6CZ1ES826S7P1X3333E40TA","scientific-writing","Core skill for the deep research and writing tool. Write scientific manuscripts in full paragraphs (never bullet points). Use two-stage process with (1) section outlines with key points using research-lookup then (2) convert to flowing prose. IMRAD structure, citations (APA\u002FAMA\u002FVancouver), figures\u002Ftables, reporting guidelines (CONSORT\u002FSTROBE\u002FPRISMA), for research papers and journal submissions.","https:\u002F\u002Fgithub.com\u002Feric861129\u002FSKILLS_All-in-one\u002Fblob\u002Fmain\u002Fpublic\u002FSKILLS\u002FWriting & Research\u002Fscientific-writing\u002FSKILL.md",[],[38,174,133,175,176,177,178,179,138,180,117,118,140,181,182,183,184,185,186,187],"scientific writing","core","reporting","deep research","Citations","Outlines","tool","use","never","structure","deep","full","stage","prisma",{"skillNo":189,"name":190,"nameZh":6,"description":191,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":192,"categories":193,"keywords":194,"publishedAt":39},"01M6CZ1B2JGJTB9FRD0TW4RXXE","scientific-brainstorming","Creative research ideation and exploration. Use for open-ended brainstorming sessions, exploring interdisciplinary connections, challenging assumptions, or identifying research gaps. Best for early-stage research planning when you do not have specific observations yet. For formulating testable hypotheses from data use hypothesis-generation.","https:\u002F\u002Fgithub.com\u002Feric861129\u002FSKILLS_All-in-one\u002Fblob\u002Fmain\u002Fpublic\u002FSKILLS\u002FWriting & Research\u002Fscientific-brainstorming\u002FSKILL.md",[],[195,196,132,197,109,198,199,200,181,201,202,203,120,204,205,186,206],"brainstorming","scientific brainstorming","sessions","data","hypothesis","open","ideation","creative","do","connections","research ideation","generation",{"skillNo":208,"name":209,"nameZh":6,"description":210,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":211,"categories":212,"keywords":213,"publishedAt":39},"01M6CZ16JG8N7A2ZX04BGE8J2Y","research-lookup","Look up current research information using the Parallel Chat API (primary) or Perplexity sonar-pro-search (academic paper searches). Automatically routes queries to the best backend. Use for finding papers, gathering research data, and verifying scientific information.","https:\u002F\u002Fgithub.com\u002Feric861129\u002FSKILLS_All-in-one\u002Fblob\u002Fmain\u002Fpublic\u002FSKILLS\u002FWriting & Research\u002Fresearch-lookup\u002FSKILL.md",[],[132,214,215,216,198,217,218,138,219,220,117,118,140,181,221,222,223,224,225,142],"lookup","research lookup","search","perplexity","api","parallel","openrouter","backend","up","look","queries","chat"]