[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6D6SPW9SY89X7WZH87PV36B":3,"skill-same:01M6D6SPW9SY89X7WZH87PV36B":52},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":27,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M6D6SPW9SY89X7WZH87PV36B","quickstart",null,"javimosch\u002Fsupercli","javimosch","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F12900508?v=4","01M6D3F2AS6PV75ET9PZ1QGP8J","Javier Leandro Arancibia","01M6D3F2EBNWNJ358Q90P5YQR1",57,"MIT","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fsupercli\u002Fblob\u002Fmaster\u002Fplugins\u002Fduckdb\u002Fskills\u002Fquickstart\u002FSKILL.md",[],[5],"2026-11-10 10:12:30",false,"# DuckDB Quickstart Guide\n\nDuckDB is an in-process SQL OLAP database system designed for high-speed analytical queries. It can read CSV, Parquet, and JSON files directly without importing, making it perfect for data exploration and transformation.\n\n## Commands\n- `duckdb \u003Cresource> \u003Caction>` — Execute duckdb commands\n- `duckdb self version` — Print DuckDB version\n- `duckdb query file` — Execute SQL query on file (CSV, Parquet, JSON)\n- `duckdb query database` — Query a DuckDB database file\n- `duckdb interactive shell` — Open DuckDB interactive shell\n- `duckdb _ _` — Passthrough to DuckDB CLI\n\n## Installation\n\n```bash\nbrew install duckdb\n```\n\nOr via Homebrew on Linux, or download precompiled binaries from [GitHub](https:\u002F\u002Fgithub.com\u002Fduckdb\u002Fduckdb\u002Freleases).\n\n## Basic Usage\n\n### Interactive shell\n```bash\nduckdb\n```\n\n### Query CSV file directly\n```bash\nduckdb -c \"SELECT * FROM read_csv('data.csv') LIMIT 10\"\n```\n\n### Query Parquet file\n```bash\nduckdb -c \"SELECT COUNT(*) FROM read_parquet('data.parquet')\"\n```\n\n### Query JSON\n```bash\nduckdb -c \"SELECT * FROM read_json('data.json')\"\n```\n\n## Common Operations\n\n### Read and filter data\n```bash\nduckdb :memory: \"SELECT name, age FROM read_csv('people.csv') WHERE age > 30\"\n```\n\n### Aggregate and group\n```bash\nduckdb -c \"SELECT category, COUNT(*) as count FROM read_csv('sales.csv') GROUP BY category\"\n```\n\n### Join multiple files\n```bash\nduckdb -c \"SELECT * FROM read_csv('orders.csv') o JOIN read_csv('customers.csv') c ON o.customer_id = c.id\"\n```\n\n### Write results to file\n```bash\nduckdb -c \"COPY (SELECT * FROM read_csv('input.csv')) TO 'output.parquet' (FORMAT PARQUET)\"\n```\n\n## File Formats Supported\n\n- **CSV** - `read_csv('file.csv')`\n- **Parquet** - `read_parquet('file.parquet')`\n- **JSON** - `read_json('file.json')`\n- **JSON Lines** - `read_ndjson('file.ndjson')`\n- **Excel** - `read_excel('file.xlsx')`\n- **Avro** - `read_avro('file.avro')`\n- **Iceberg** - `read_iceberg('table')`\n\n## Database Persistence\n\n### Work in-memory (temporary)\n```bash\nduckdb :memory:\n```\n\n### Create persistent database\n```bash\nduckdb mydb.duckdb\n# Now all queries are saved to mydb.duckdb\n```\n\n### Open existing database\n```bash\nduckdb mydb.duckdb\n```\n\n## Advanced Queries\n\n### Window functions\n```bash\nduckdb -c \"\nSELECT name, salary, \n       AVG(salary) OVER (PARTITION BY dept) as dept_avg\nFROM read_csv('employees.csv')\n\"\n```\n\n### CTEs (Common Table Expressions)\n```bash\nduckdb -c \"\nWITH filtered AS (\n  SELECT * FROM read_csv('data.csv') WHERE age > 25\n)\nSELECT COUNT(*) FROM filtered\n\"\n```\n\n### Generate data\n```bash\nduckdb -c \"SELECT * FROM range(1, 10)\"\n```\n\n### Statistical functions\n```bash\nduckdb -c \"\nSELECT \n  AVG(value) as mean,\n  STDDEV(value) as std,\n  MIN(value) as min,\n  MAX(value) as max\nFROM read_csv('metrics.csv')\n\"\n```\n\n## Real-world Use Cases\n\n### Analyze log files\n```bash\nduckdb -c \"\nSELECT timestamp, COUNT(*) as errors\nFROM read_json('app.log')\nWHERE level = 'ERROR'\nGROUP BY timestamp\n\"\n```\n\n### Data quality checks\n```bash\nduckdb -c \"\nSELECT \n  SUM(CASE WHEN id IS NULL THEN 1 ELSE 0 END) as null_ids,\n  COUNT(DISTINCT id) as unique_ids\nFROM read_csv('data.csv')\n\"\n```\n\n### Convert file formats\n```bash\n# CSV to Parquet\nduckdb -c \"COPY (SELECT * FROM read_csv('data.csv')) TO 'data.parquet' (FORMAT PARQUET)\"\n\n# JSON to CSV\nduckdb -c \"COPY (SELECT * FROM read_json('data.json')) TO 'data.csv' (FORMAT CSV)\"\n```\n\n### Quick data validation\n```bash\nduckdb -c \"\nSELECT COUNT(*), COUNT(DISTINCT name), \n       MAX(LENGTH(name)) as max_name_len\nFROM read_csv('users.csv')\n\"\n```\n\n## Performance Tips\n\n- DuckDB automatically parallelizes queries across CPU cores\n- Use Parquet format for large datasets (much faster than CSV)\n- Filter data early in queries to reduce memory usage\n- Use appropriate data types (don't read everything as VARCHAR)\n- DuckDB spills to disk for very large workloads\n\n## Command-line Options\n\n- `-c \u003CQUERY>` - Execute query and exit\n- `-readonly` - Open database in read-only mode\n- `-unsigned` - Enable unsigned integer types\n- `-json` - Output results as JSON lines\n- `-csv` - Output as CSV (default)\n- `-noheader` - No header row in output\n- `-separator \u003CSEP>` - Custom delimiter (default: `,`)\n\n## Scripting\n\n### From file\n```bash\nduckdb mydb.duckdb \u003C queries.sql\n```\n\n### Multiple queries\n```bash\nduckdb -c \"\n  CREATE TABLE my_table AS SELECT * FROM read_csv('input.csv');\n  SELECT * FROM my_table LIMIT 10;\n\"\n```\n\n## Memory Management\n\nDuckDB automatically:\n- Uses multi-threading for parallelization\n- Spills to disk when memory is insufficient\n- Optimizes query execution plans\n- Manages buffer pools efficiently\n\nFor very large datasets:\n```bash\n# Query with explicit memory limit\nduckdb -c \"PRAGMA memory_limit='4GB'; SELECT * FROM read_parquet('big.parquet')\"\n```\n\n## Integration with Other Tools\n\n### Pipe with other commands\n```bash\ncat data.csv | duckdb -c \"SELECT * FROM read_csv('\u002Fdev\u002Fstdin') WHERE value > 100\"\n```\n\n### Combined with jq\n```bash\nduckdb -c \"SELECT * FROM read_json('data.json')\" | jq '.[] | select(.active == true)'\n```\n\n## Resources\n\n- [Official Documentation](https:\u002F\u002Fduckdb.org\u002Fdocs\u002F)\n- [GitHub Repository](https:\u002F\u002Fgithub.com\u002Fduckdb\u002Fduckdb)\n- [SQL Reference](https:\u002F\u002Fduckdb.org\u002Fdocs\u002Fsql\u002Fintroduction)\n- [Function Reference](https:\u002F\u002Fduckdb.org\u002Fdocs\u002Fsql\u002Ffunctions\u002Foverview)\n- [Awesome DuckDB](https:\u002F\u002Fgithub.com\u002Fdavidgasquez\u002Fawesome-duckdb)\n\n## Troubleshooting\n\n### \"File not found\" error\nEnsure path is relative or absolute:\n```bash\nduckdb -c \"SELECT * FROM read_csv('.\u002Fdata\u002Ffile.csv')\"\n```\n\n### Out of memory\nReduce data or use Parquet format:\n```bash\n# Convert CSV to Parquet first\nduckdb -c \"COPY (SELECT * FROM read_csv('large.csv')) TO 'large.parquet' (FORMAT PARQUET)\"\n```\n\n### Slow queries\nUse EXPLAIN to see query plan:\n```bash\nduckdb -c \"EXPLAIN SELECT * FROM read_csv('data.csv') WHERE id > 1000\"\n```\n",{},"master","d362369a98edfcc6356f3bb152db470c34f08a46","plugins\u002Fduckdb\u002Fskills\u002Fquickstart",5,"https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fsupercli","https:\u002F\u002Fjavimosch.github.io\u002Fsupercli\u002F","https:\u002F\u002Fgithub.com\u002Fjavimosch","intrane.fr","Building robust, open-source infrastructure for the commons. AI-leveraged, self-hosted, built to last.","2026-11-02 18:24:17",{"source":7,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add javimosch\u002Fsupercli --skill quickstart",{"tool":38,"command":39},"bunx","bunx skills add javimosch\u002Fsupercli --skill quickstart",{"tool":41,"command":42},"pnpm","pnpm dlx skills add javimosch\u002Fsupercli --skill quickstart","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fsupercli\u002Fblob\u002Fmaster\u002Fplugins\u002Fduckdb\u002Fskills\u002Fquickstart\u002FSKILL.md",true,[46],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Fgroup-enrollment.md","REFERENCE","参考文档",4394,"https:\u002F\u002Fgithub.com\u002Fgtapps\u002Fhermitd\u002Fblob\u002Fmain\u002Fplugins\u002Fhermitd\u002Fskills\u002Fchannel-setup\u002Freferences\u002Fgroup-enrollment.md",[53,61,79,92,105,113],{"skillNo":54,"name":55,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":18},"01M6G7YFZVHRYAY51J0YG9SDNJ","sc-machin-mcp","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fsupercli\u002Fblob\u002Fmaster\u002Fsupercli-machin-cli\u002Fskills\u002Fsc-machin-mcp\u002FSKILL.md",[],[59,60],"sc machin mcp","MCP",{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":18},"01M6G7YB179MQMSHZBJDC8TZA8","supercli.quickstart","SuperCLI capability router — discover and execute CLI commands through namespace.resource.action interface","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fsupercli\u002Fblob\u002Fmaster\u002Fskills\u002Fsupercli\u002FSKILL.md",[],[68,5,69,70,71,72,73,74,75,76,77,78],"supercli quickstart","cli","capability router","plugin","discovery","execute","router","discover","commands","interface","supercli,cli,plugin,capability,discovery,agent",{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M6G7Y734QS3793YMS5PR146J","zzdoc","Use this skill to compile scdoc manpages with a fast Zig-based compiler.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fsupercli\u002Fblob\u002Fmaster\u002Fplugins\u002Fzzdoc\u002Fskills\u002Fquickstart\u002FSKILL.md",[],[81,86,87,88,89,90,91],"with","use","zig","fast","compiler","compile",{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":18},"01M6G7Y2WX56K2QJQ9RV2ZKEV7","zx","Use this skill when the user wants to a tool for writing better scripts using node.js.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fsupercli\u002Fblob\u002Fmaster\u002Fplugins\u002Fzx\u002Fskills\u002Fquickstart\u002FSKILL.md",[],[94,99,87,100,101,102,103,104],"scripts","user","node","tool","js","writing",{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":18},"01M6G7Y0M792DGW31HN4TEQT10","zvm","Use this skill when the user wants to manage multiple Zig compiler versions.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fsupercli\u002Fblob\u002Fmaster\u002Fplugins\u002Fzvm\u002Fskills\u002Fquickstart\u002FSKILL.md",[],[107,88,112,87,100,90],"manage",{"skillNo":114,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":18},"01M6G7XX51W5HJW09DYXBK92TJ","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fsupercli\u002Fblob\u002Fmaster\u002Fplugins\u002Fzstdmt\u002Fskills\u002Fquickstart\u002FSKILL.md",[],[5]]