[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M749CM97WSRDXQSMG6TG7P4S":3,"skill-same:01M749CM97WSRDXQSMG6TG7P4S":48},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M749CM97WSRDXQSMG6TG7P4S","sql-queries",null,"Generate SQL queries from natural language descriptions. Supports BigQuery, PostgreSQL, MySQL, and other dialects. Reads database schemas from uploaded diagrams or documentation. Use when writing SQL, building data reports, exploring databases, or translating business questions into queries.","phuryn\u002Fpm-skills","phuryn","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F7837354?v=4","01M727RY5RDZZWVRDN2X5F4B1W","Pawel Huryn","01M727RY6H19NE8H5PABTR7A59",27991,"MIT","https:\u002F\u002Fgithub.com\u002Fphuryn\u002Fpm-skills\u002Fblob\u002Fmain\u002Fpm-data-analytics\u002Fskills\u002Fsql-queries\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: sql-queries\ndescription: \"Generate SQL queries from natural language descriptions. Supports BigQuery, PostgreSQL, MySQL, and other dialects. Reads database schemas from uploaded diagrams or documentation. Use when writing SQL, building data reports, exploring databases, or translating business questions into queries.\"\n---\n\n# SQL Query Generator\n\n## Purpose\nTransform natural language requirements into optimized SQL queries across multiple database platforms. This skill helps product managers, analysts, and engineers generate accurate queries without manual syntax work.\n\n## How It Works\n\n### Step 1: Understand Your Database Schema\n- If you provide a schema file (SQL, documentation, or diagram description), I will read and analyze it\n- Extract table names, column definitions, data types, and relationships\n- Identify primary keys, foreign keys, and indexing strategies\n\n### Step 2: Process Your Request\n- Clarify the exact data you need to retrieve or analyze\n- Confirm the SQL dialect (BigQuery, PostgreSQL, MySQL, Snowflake, etc.)\n- Ask for any additional requirements (filters, aggregations, sorting)\n\n### Step 3: Generate Optimized Query\n- Write efficient SQL that leverages your database structure\n- Include comments explaining complex logic\n- Add performance considerations for large datasets\n- Provide alternative approaches if applicable\n\n### Step 4: Explain and Test\n- Explain the query logic in plain English\n- Suggest how to test or validate results\n- Offer tips for performance optimization\n- If you want, generate a test script or sample data\n\n## Usage Examples\n\n**Example 1: Query from Schema File**\n```\nUpload your database_schema.sql file and say:\n\"Generate a query to find users who signed up in the last 30 days\nand had at least 5 active sessions\"\n```\n\n**Example 2: Query from Diagram Description**\n```\n\"Here's my database: Users table (id, email, created_at), Sessions table\n(id, user_id, timestamp, duration). Generate a query for average session\nduration per user in January 2026.\"\n```\n\n**Example 3: Complex Analysis Query**\n```\n\"Create a BigQuery query to analyze our revenue by region and customer tier,\nincluding year-over-year growth rates.\"\n```\n\n## Key Capabilities\n\n- **Multi-Dialect Support**: Works with BigQuery, PostgreSQL, MySQL, Snowflake, SQL Server\n- **File Reading**: Reads schema files, SQL dumps, and data documentation\n- **Query Optimization**: Suggests indexes, partitioning, and performance improvements\n- **Explanation**: Breaks down queries for learning and documentation\n- **Testing**: Can generate test queries and sample data scripts\n- **Script Execution**: Create executable SQL scripts for your database\n\n## Tips for Best Results\n\n1. **Provide context**: Share your database schema or structure\n2. **Be specific**: Clearly describe what data you need and any filters\n3. **Mention database**: Specify which SQL dialect you're using\n4. **Include constraints**: Mention data volume, time ranges, and performance needs\n5. **Request format**: Ask for the query result format if you need specific output\n\n## Output Format\n\nYou'll receive:\n- **SQL Query**: Production-ready SQL code with comments\n- **Explanation**: What the query does and how it works\n- **Performance Notes**: Optimization tips and considerations\n- **Test Script** (if requested): Sample data and validation queries\n\n---\n\n### Further Reading\n\n- [The Product Analytics Playbook: AARRR, HEART, Cohorts & Funnels for PMs](https:\u002F\u002Fwww.productcompass.pm\u002Fp\u002Fthe-product-analytics-playbook-aarrr)\n- [How to Become a Technology-Literate PM](https:\u002F\u002Fwww.productcompass.pm\u002Fp\u002Fhow-to-become-a-technology-literate)\n","# SQL Query Generator\n\n## Purpose\nTransform natural language requirements into optimized SQL queries across multiple database platforms. This skill helps product managers, analysts, and engineers generate accurate queries without manual syntax work.\n\n## How It Works\n\n### Step 1: Understand Your Database Schema\n- If you provide a schema file (SQL, documentation, or diagram description), I will read and analyze it\n- Extract table names, column definitions, data types, and relationships\n- Identify primary keys, foreign keys, and indexing strategies\n\n### Step 2: Process Your Request\n- Clarify the exact data you need to retrieve or analyze\n- Confirm the SQL dialect (BigQuery, PostgreSQL, MySQL, Snowflake, etc.)\n- Ask for any additional requirements (filters, aggregations, sorting)\n\n### Step 3: Generate Optimized Query\n- Write efficient SQL that leverages your database structure\n- Include comments explaining complex logic\n- Add performance considerations for large datasets\n- Provide alternative approaches if applicable\n\n### Step 4: Explain and Test\n- Explain the query logic in plain English\n- Suggest how to test or validate results\n- Offer tips for performance optimization\n- If you want, generate a test script or sample data\n\n## Usage Examples\n\n**Example 1: Query from Schema File**\n```\nUpload your database_schema.sql file and say:\n\"Generate a query to find users who signed up in the last 30 days\nand had at least 5 active sessions\"\n```\n\n**Example 2: Query from Diagram Description**\n```\n\"Here's my database: Users table (id, email, created_at), Sessions table\n(id, user_id, timestamp, duration). Generate a query for average session\nduration per user in January 2026.\"\n```\n\n**Example 3: Complex Analysis Query**\n```\n\"Create a BigQuery query to analyze our revenue by region and customer tier,\nincluding year-over-year growth rates.\"\n```\n\n## Key Capabilities\n\n- **Multi-Dialect Support**: Works with BigQuery, PostgreSQL, MySQL, Snowflake, SQL Server\n- **File Reading**: Reads schema files, SQL dumps, and data documentation\n- **Query Optimization**: Suggests indexes, partitioning, and performance improvements\n- **Explanation**: Breaks down queries for learning and documentation\n- **Testing**: Can generate test queries and sample data scripts\n- **Script Execution**: Create executable SQL scripts for your database\n\n## Tips for Best Results\n\n1. **Provide context**: Share your database schema or structure\n2. **Be specific**: Clearly describe what data you need and any filters\n3. **Mention database**: Specify which SQL dialect you're using\n4. **Include constraints**: Mention data volume, time ranges, and performance needs\n5. **Request format**: Ask for the query result format if you need specific output\n\n## Output Format\n\nYou'll receive:\n- **SQL Query**: Production-ready SQL code with comments\n- **Explanation**: What the query does and how it works\n- **Performance Notes**: Optimization tips and considerations\n- **Test Script** (if requested): Sample data and validation queries\n\n---\n\n### Further Reading\n\n- [The Product Analytics Playbook: AARRR, HEART, Cohorts & Funnels for PMs](https:\u002F\u002Fwww.productcompass.pm\u002Fp\u002Fthe-product-analytics-playbook-aarrr)\n- [How to Become a Technology-Literate PM](https:\u002F\u002Fwww.productcompass.pm\u002Fp\u002Fhow-to-become-a-technology-literate)\n",{"name":5,"description":7},"main","9af7bfd0bc47fdad43c2eaa7a43cd13918e7aaef","pm-data-analytics\u002Fskills\u002Fsql-queries",2885,"https:\u002F\u002Fgithub.com\u002Fphuryn\u002Fpm-skills","https:\u002F\u002Fwww.productcompass.pm\u002Fp\u002Fpm-skills-2-red-team-ship","https:\u002F\u002Fgithub.com\u002Fphuryn","https:\u002F\u002Fwww.productcompass.pm\u002F","AI PM Coach, ex-CPO, Builder | 400K+ Follow","2026-11-09 07:10:04",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add phuryn\u002Fpm-skills --skill sql-queries",{"tool":40,"command":41},"bunx","bunx skills add phuryn\u002Fpm-skills --skill sql-queries",{"tool":43,"command":44},"pnpm","pnpm dlx skills add phuryn\u002Fpm-skills --skill sql-queries","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fphuryn\u002Fpm-skills\u002Fblob\u002Fmain\u002Fpm-data-analytics\u002Fskills\u002Fsql-queries\u002FSKILL.md",true,[],[49,56,63,70,77,84],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M749K1XJGDQ1FA90BGD6MJ6Z","review-resume","Comprehensive PM resume review and tailoring against 10 best practices including XYZ+S formula, keyword optimization, job-specific tailoring, and structure. Use when reviewing a PM resume, preparing for job applications, or improving resume impact.","https:\u002F\u002Fgithub.com\u002Fphuryn\u002Fpm-skills\u002Fblob\u002Fmain\u002Fpm-toolkit\u002Fskills\u002Freview-resume\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M749JVQ3SER9X0V501S82BRX","privacy-policy","Draft a detailed privacy policy covering data types, jurisdiction, GDPR and compliance considerations, and clauses needing legal review. Use when creating a privacy policy, updating data protection documentation, or preparing for compliance.","https:\u002F\u002Fgithub.com\u002Fphuryn\u002Fpm-skills\u002Fblob\u002Fmain\u002Fpm-toolkit\u002Fskills\u002Fprivacy-policy\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M749JRFCNDADS61HFWMBHJJD","grammar-check","Identify grammar, logical, and flow errors in text and suggest targeted fixes without rewriting the entire text. Use when proofreading content, checking writing quality, or reviewing a draft.","https:\u002F\u002Fgithub.com\u002Fphuryn\u002Fpm-skills\u002Fblob\u002Fmain\u002Fpm-toolkit\u002Fskills\u002Fgrammar-check\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M749JMXFX9KSXV4JP6J1K7QX","draft-nda","Draft a detailed Non-Disclosure Agreement between two parties covering information types, jurisdiction, and clauses needing legal review. Use when creating confidentiality agreements or preparing an NDA for a partnership.","https:\u002F\u002Fgithub.com\u002Fphuryn\u002Fpm-skills\u002Fblob\u002Fmain\u002Fpm-toolkit\u002Fskills\u002Fdraft-nda\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M749JGY34DGZ9BGFS2YCET6N","value-proposition","Design a detailed value proposition using a 6-part JTBD template — Who, Why, What before, How, What after, Alternatives. Use when creating a value proposition, analyzing customer value delivery, or articulating why customers should choose your product.","https:\u002F\u002Fgithub.com\u002Fphuryn\u002Fpm-skills\u002Fblob\u002Fmain\u002Fpm-product-strategy\u002Fskills\u002Fvalue-proposition\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M749JE27D1APC1PWWPFMF2GN","swot-analysis","Perform a detailed SWOT analysis — strengths, weaknesses, opportunities, and threats with actionable recommendations. Use when doing strategic assessment, competitive analysis, or evaluating a product or business position.","https:\u002F\u002Fgithub.com\u002Fphuryn\u002Fpm-skills\u002Fblob\u002Fmain\u002Fpm-product-strategy\u002Fskills\u002Fswot-analysis\u002FSKILL.md",[],[]]