[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6XDZYC0SVC6V5RX68NHBZ81":3,"skill-same:01M6XDZYC0SVC6V5RX68NHBZ81":61},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":35,"linkOnly":36,"markdownContent":37,"markdownBody":38,"frontMatter":39,"refName":40,"commitSha":41,"skillDirectory":42,"forksCount":13,"repositoryHtmlUrl":43,"repositoryHomepageUrl":6,"ownerHtmlUrl":44,"ownerBlogUrl":6,"ownerDescription":45,"updatedAt":46,"install":47,"resources":60},"01M6XDZYC0SVC6V5RX68NHBZ81","sqlite-map-parser",null,"Parse SQLite databases into structured JSON data. Use when exploring unknown database schemas, understanding table relationships, and extracting map data as JSON.","Waaaalnut\u002Fskillsbench","Waaaalnut","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F103995656?v=4","01M6XCS9K1V51EY3JMB7DGMX24","01M6XCS9Q4WPW88W62C55G1H44",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FWaaaalnut\u002Fskillsbench\u002Fblob\u002Fmain\u002Ftasks\u002Fciv6-adjacency-optimizer\u002Fenvironment\u002Fskills\u002Fsqlite-map-parser\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34],"sqlite","parser","sqlite map parser","map","relationships","when","parse","unknown","extracting","as","structured","database","databases","use","table","json","data","2026-11-10 10:12:30",false,"---\nname: sqlite-map-parser\ndescription: Parse SQLite databases into structured JSON data. Use when exploring unknown database schemas, understanding table relationships, and extracting map data as JSON.\n---\n\n# SQLite to Structured JSON\n\nParse SQLite databases by exploring schemas first, then extracting data into structured JSON.\n\n## Step 1: Explore the Schema\n\nAlways start by understanding what tables exist and their structure.\n\n### List All Tables\n```sql\nSELECT name FROM sqlite_master WHERE type='table';\n```\n\n### Inspect Table Schema\n```sql\n-- Get column names and types\nPRAGMA table_info(TableName);\n\n-- See CREATE statement\nSELECT sql FROM sqlite_master WHERE name='TableName';\n```\n\n### Find Primary\u002FUnique Keys\n```sql\n-- Primary key info\nPRAGMA table_info(TableName);  -- 'pk' column shows primary key order\n\n-- All indexes (includes unique constraints)\nPRAGMA index_list(TableName);\n\n-- Columns in an index\nPRAGMA index_info(index_name);\n```\n\n## Step 2: Understand Relationships\n\n### Identify Foreign Keys\n```sql\nPRAGMA foreign_key_list(TableName);\n```\n\n### Common Patterns\n\n**ID-based joins:** Tables often share an ID column\n```sql\n-- Main table has ID as primary key\n-- Related tables reference it\nSELECT m.*, r.ExtraData\nFROM MainTable m\nLEFT JOIN RelatedTable r ON m.ID = r.ID;\n```\n\n**Coordinate-based keys:** Spatial data often uses computed coordinates\n```python\n# If ID represents a linear index into a grid:\nx = id % width\ny = id \u002F\u002F width\n```\n\n## Step 3: Extract and Transform\n\n### Basic Pattern\n```python\nimport sqlite3\nimport json\n\ndef parse_sqlite_to_json(db_path):\n    conn = sqlite3.connect(db_path)\n    conn.row_factory = sqlite3.Row  # Access columns by name\n    cursor = conn.cursor()\n\n    # 1. Explore schema\n    cursor.execute(\"SELECT name FROM sqlite_master WHERE type='table'\")\n    tables = [row[0] for row in cursor.fetchall()]\n\n    # 2. Get dimensions\u002Fmetadata from config table\n    cursor.execute(\"SELECT * FROM MetadataTable LIMIT 1\")\n    metadata = dict(cursor.fetchone())\n\n    # 3. Build indexed data structure\n    data = {}\n    cursor.execute(\"SELECT * FROM MainTable\")\n    for row in cursor.fetchall():\n        key = row[\"ID\"]  # or compute: (row[\"X\"], row[\"Y\"])\n        data[key] = dict(row)\n\n    # 4. Join related data\n    cursor.execute(\"SELECT * FROM RelatedTable\")\n    for row in cursor.fetchall():\n        key = row[\"ID\"]\n        if key in data:\n            data[key][\"extra_field\"] = row[\"Value\"]\n\n    conn.close()\n    return {\"metadata\": metadata, \"items\": list(data.values())}\n```\n\n### Handle Missing Tables Gracefully\n```python\ndef safe_query(cursor, query):\n    try:\n        cursor.execute(query)\n        return cursor.fetchall()\n    except sqlite3.OperationalError:\n        return []  # Table doesn't exist\n```\n\n## Step 4: Output as Structured JSON\n\n### Map\u002FDictionary Output\nUse when items have natural unique keys:\n```json\n{\n  \"metadata\": {\"width\": 44, \"height\": 26},\n  \"tiles\": {\n    \"0,0\": {\"terrain\": \"GRASS\", \"feature\": null},\n    \"1,0\": {\"terrain\": \"PLAINS\", \"feature\": \"FOREST\"},\n    \"2,0\": {\"terrain\": \"COAST\", \"resource\": \"FISH\"}\n  }\n}\n```\n\n### Array Output\nUse when order matters or keys are simple integers:\n```json\n{\n  \"metadata\": {\"width\": 44, \"height\": 26},\n  \"tiles\": [\n    {\"x\": 0, \"y\": 0, \"terrain\": \"GRASS\"},\n    {\"x\": 1, \"y\": 0, \"terrain\": \"PLAINS\", \"feature\": \"FOREST\"},\n    {\"x\": 2, \"y\": 0, \"terrain\": \"COAST\", \"resource\": \"FISH\"}\n  ]\n}\n```\n\n## Common Schema Patterns\n\n### Grid\u002FMap Data\n- Main table: positions with base properties\n- Feature tables: join on position ID for overlays\n- Compute (x, y) from linear ID: `x = id % width, y = id \u002F\u002F width`\n\n### Hierarchical Data\n- Parent table with primary key\n- Child tables with foreign key reference\n- Use LEFT JOIN to preserve all parents\n\n### Enum\u002FLookup Tables\n- Type tables map codes to descriptions\n- Join to get human-readable values\n\n## Debugging Tips\n\n```sql\n-- Sample data from any table\nSELECT * FROM TableName LIMIT 5;\n\n-- Count rows\nSELECT COUNT(*) FROM TableName;\n\n-- Find distinct values in a column\nSELECT DISTINCT ColumnName FROM TableName;\n\n-- Check for nulls\nSELECT COUNT(*) FROM TableName WHERE ColumnName IS NULL;\n```\n","# SQLite to Structured JSON\n\nParse SQLite databases by exploring schemas first, then extracting data into structured JSON.\n\n## Step 1: Explore the Schema\n\nAlways start by understanding what tables exist and their structure.\n\n### List All Tables\n```sql\nSELECT name FROM sqlite_master WHERE type='table';\n```\n\n### Inspect Table Schema\n```sql\n-- Get column names and types\nPRAGMA table_info(TableName);\n\n-- See CREATE statement\nSELECT sql FROM sqlite_master WHERE name='TableName';\n```\n\n### Find Primary\u002FUnique Keys\n```sql\n-- Primary key info\nPRAGMA table_info(TableName);  -- 'pk' column shows primary key order\n\n-- All indexes (includes unique constraints)\nPRAGMA index_list(TableName);\n\n-- Columns in an index\nPRAGMA index_info(index_name);\n```\n\n## Step 2: Understand Relationships\n\n### Identify Foreign Keys\n```sql\nPRAGMA foreign_key_list(TableName);\n```\n\n### Common Patterns\n\n**ID-based joins:** Tables often share an ID column\n```sql\n-- Main table has ID as primary key\n-- Related tables reference it\nSELECT m.*, r.ExtraData\nFROM MainTable m\nLEFT JOIN RelatedTable r ON m.ID = r.ID;\n```\n\n**Coordinate-based keys:** Spatial data often uses computed coordinates\n```python\n# If ID represents a linear index into a grid:\nx = id % width\ny = id \u002F\u002F width\n```\n\n## Step 3: Extract and Transform\n\n### Basic Pattern\n```python\nimport sqlite3\nimport json\n\ndef parse_sqlite_to_json(db_path):\n    conn = sqlite3.connect(db_path)\n    conn.row_factory = sqlite3.Row  # Access columns by name\n    cursor = conn.cursor()\n\n    # 1. Explore schema\n    cursor.execute(\"SELECT name FROM sqlite_master WHERE type='table'\")\n    tables = [row[0] for row in cursor.fetchall()]\n\n    # 2. Get dimensions\u002Fmetadata from config table\n    cursor.execute(\"SELECT * FROM MetadataTable LIMIT 1\")\n    metadata = dict(cursor.fetchone())\n\n    # 3. Build indexed data structure\n    data = {}\n    cursor.execute(\"SELECT * FROM MainTable\")\n    for row in cursor.fetchall():\n        key = row[\"ID\"]  # or compute: (row[\"X\"], row[\"Y\"])\n        data[key] = dict(row)\n\n    # 4. Join related data\n    cursor.execute(\"SELECT * FROM RelatedTable\")\n    for row in cursor.fetchall():\n        key = row[\"ID\"]\n        if key in data:\n            data[key][\"extra_field\"] = row[\"Value\"]\n\n    conn.close()\n    return {\"metadata\": metadata, \"items\": list(data.values())}\n```\n\n### Handle Missing Tables Gracefully\n```python\ndef safe_query(cursor, query):\n    try:\n        cursor.execute(query)\n        return cursor.fetchall()\n    except sqlite3.OperationalError:\n        return []  # Table doesn't exist\n```\n\n## Step 4: Output as Structured JSON\n\n### Map\u002FDictionary Output\nUse when items have natural unique keys:\n```json\n{\n  \"metadata\": {\"width\": 44, \"height\": 26},\n  \"tiles\": {\n    \"0,0\": {\"terrain\": \"GRASS\", \"feature\": null},\n    \"1,0\": {\"terrain\": \"PLAINS\", \"feature\": \"FOREST\"},\n    \"2,0\": {\"terrain\": \"COAST\", \"resource\": \"FISH\"}\n  }\n}\n```\n\n### Array Output\nUse when order matters or keys are simple integers:\n```json\n{\n  \"metadata\": {\"width\": 44, \"height\": 26},\n  \"tiles\": [\n    {\"x\": 0, \"y\": 0, \"terrain\": \"GRASS\"},\n    {\"x\": 1, \"y\": 0, \"terrain\": \"PLAINS\", \"feature\": \"FOREST\"},\n    {\"x\": 2, \"y\": 0, \"terrain\": \"COAST\", \"resource\": \"FISH\"}\n  ]\n}\n```\n\n## Common Schema Patterns\n\n### Grid\u002FMap Data\n- Main table: positions with base properties\n- Feature tables: join on position ID for overlays\n- Compute (x, y) from linear ID: `x = id % width, y = id \u002F\u002F width`\n\n### Hierarchical Data\n- Parent table with primary key\n- Child tables with foreign key reference\n- Use LEFT JOIN to preserve all parents\n\n### Enum\u002FLookup Tables\n- Type tables map codes to descriptions\n- Join to get human-readable values\n\n## Debugging Tips\n\n```sql\n-- Sample data from any table\nSELECT * FROM TableName LIMIT 5;\n\n-- Count rows\nSELECT COUNT(*) FROM TableName;\n\n-- Find distinct values in a column\nSELECT DISTINCT ColumnName FROM TableName;\n\n-- Check for nulls\nSELECT COUNT(*) FROM TableName WHERE ColumnName IS NULL;\n```\n",{"name":5,"description":7},"main","7eeb258ada72b7f58119b0e7a2c00ea89d9beedd","tasks\u002Fciv6-adjacency-optimizer\u002Fenvironment\u002Fskills\u002Fsqlite-map-parser","https:\u002F\u002Fgithub.com\u002FWaaaalnut\u002Fskillsbench","https:\u002F\u002Fgithub.com\u002FWaaaalnut","student of Zhejiang University","2026-04-21 23:16:23",{"source":8,"skillName":5,"commands":48,"prompt":58,"zipAvailable":59},[49,52,55],{"tool":50,"command":51},"npx","npx skills add Waaaalnut\u002Fskillsbench --skill sqlite-map-parser",{"tool":53,"command":54},"bunx","bunx skills add Waaaalnut\u002Fskillsbench --skill sqlite-map-parser",{"tool":56,"command":57},"pnpm","pnpm dlx skills add Waaaalnut\u002Fskillsbench --skill sqlite-map-parser","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FWaaaalnut\u002Fskillsbench\u002Fblob\u002Fmain\u002Ftasks\u002Fciv6-adjacency-optimizer\u002Fenvironment\u002Fskills\u002Fsqlite-map-parser\u002FSKILL.md",true,[],[62,75,90,116,138,157],{"skillNo":63,"name":64,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":72,"publishedAt":35},"01M6XEWMJ6VY3ZC53MPDCPG3GH","data-reconciliation","https:\u002F\u002Fgithub.com\u002FWaaaalnut\u002Fskillsbench\u002Fblob\u002Fmain\u002Ftasks\u002Fxlsx-recover-data\u002Fenvironment\u002Fskills\u002Fdata-reconciliation\u002FSKILL.md",[67],{"categoryNo":68,"categoryName":69,"taxonomyType":70,"taxonomyTypeDesc":71},"01JBSEEDCAT000000000000033","数据分析师","PROFESSION","适用职业",[73,74,34],"data reconciliation","reconciliation",{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":35},"01M6XEW8MNPMF1KRXV6ATGFRQF","speech-to-text","Transcribe video to timestamped text using Whisper tiny model (pre-installed).","https:\u002F\u002Fgithub.com\u002FWaaaalnut\u002Fskillsbench\u002Fblob\u002Fmain\u002Ftasks\u002Fvideo-tutorial-indexer\u002Fenvironment\u002Fskills\u002Fspeech-to-text\u002FSKILL.md",[],[82,83,84,85,86,87,88,89],"speech","text","speech to text","transcribe video","whisper","model","Video","transcribe",{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":101,"publishedAt":35},"01M6XEW3FQZP0T1RKQQJFXVY9T","video-processor","Process videos by removing segments and concatenating remaining parts. Use when you need to remove detected pauses\u002Fopenings from videos, create highlight reels, or batch process segment removals using ffmpeg filter_complex.","https:\u002F\u002Fgithub.com\u002FWaaaalnut\u002Fskillsbench\u002Fblob\u002Fmain\u002Ftasks\u002Fvideo-silence-remover\u002Fenvironment\u002Fskills\u002Fvideo-processor\u002FSKILL.md",[96],{"categoryNo":97,"categoryName":98,"taxonomyType":99,"taxonomyTypeDesc":100},"01JBSEEDCAT000000000000016","图像与多媒体","SCENARIO","使用场景",[88,102,103,104,105,106,23,107,108,109,110,111,112,113,114,31,115],"processor","video processor","batch","create","reels","parts","segments","process","videos","you","segment","filter","ffmpeg","remove",{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":123,"publishedAt":35},"01M6XEVXJ5KZ0NTY3XZKRY4AS1","silence-detector","Detect initial silence segments in audio\u002Fvideo using energy-based analysis. Use when you need to find low-energy periods at the start of recordings (title slides, setup time, pre-roll silence).","https:\u002F\u002Fgithub.com\u002FWaaaalnut\u002Fskillsbench\u002Fblob\u002Fmain\u002Ftasks\u002Fvideo-silence-remover\u002Fenvironment\u002Fskills\u002Fsilence-detector\u002FSKILL.md",[122],{"categoryNo":97,"categoryName":98,"taxonomyType":99,"taxonomyTypeDesc":100},[124,125,126,127,23,111,128,129,130,131,132,108,133,134,88,135,136,137,31],"detector","silence detector","title","slides","time","energy","at","recordings","detect","find","Audio","analysis","start","setup",{"skillNo":139,"name":140,"nameZh":6,"description":141,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":142,"categories":143,"keywords":144,"publishedAt":35},"01M6XEVT3NGRN1FT7JPMAPXS6M","segment-combiner","Combine multiple segment detection results into a unified list. Use when you need to merge segments from different detectors, prepare removal lists for video processing, or consolidate detection outputs.","https:\u002F\u002Fgithub.com\u002FWaaaalnut\u002Fskillsbench\u002Fblob\u002Fmain\u002Ftasks\u002Fvideo-silence-remover\u002Fenvironment\u002Fskills\u002Fsegment-combiner\u002FSKILL.md",[],[112,145,88,146,147,148,149,150,23,151,152,108,111,153,154,31,155,156],"segment combiner","detection","prepare","merge","video processing","for","outputs","combine","processing","consolidate","results","list",{"skillNo":158,"name":159,"nameZh":6,"description":160,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":161,"categories":162,"keywords":166,"publishedAt":35},"01M6XEVMPVASGS2KX86QK4FMT7","report-generator","Generate compression reports for video processing. Use when you need to create structured JSON reports with duration statistics, compression ratios, and segment details after video processing.","https:\u002F\u002Fgithub.com\u002FWaaaalnut\u002Fskillsbench\u002Fblob\u002Fmain\u002Ftasks\u002Fvideo-silence-remover\u002Fenvironment\u002Fskills\u002Freport-generator\u002FSKILL.md",[163],{"categoryNo":164,"categoryName":165,"taxonomyType":70,"taxonomyTypeDesc":71},"01JBSEEDCAT000000000000034","行政与办公人员",[167,168,169,112,23,150,111,170,153,171,28,172,31,149,33,88,173,174,105],"generator","report generator","report","with","statistics","reports","compression","generate"]