{"versions":{"0.1.0":{"name":"dsh-data-insight","version":"0.1.0","description":"DSH (DeepSeek Harness) data-insight skill plugin: turn raw data (CSV / pasted table / SQL results / DuckDB) into a structured Markdown report with business conclusions, metrics and charts.","license":"MIT","type":"module","main":"./plugin/index.js","exports":{".":"./plugin/index.js","./package.json":"./package.json"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"peerDependencies":{"@deepseek-ai/dsh-skill-filesystem":"*"},"peerDependenciesMeta":{"@deepseek-ai/dsh-skill-filesystem":{"optional":true}},"keywords":["dsh","dsh-plugin","deepseek-harness","data-analysis","data-insight","analytics","report","csv","duckdb","skills"],"_id":"dsh-data-insight@0.1.0","gitHead":"2f15358a66dad6f0884528828d0375e3c0b722f6","_nodeVersion":"22.21.0","_npmVersion":"10.9.4","dist":{"integrity":"sha512-d2XVpdZbfQ34QGAU4C9H/xdhN3d8vna29Ve+I9vlJN52PmEQSD7OviripKLJQ1T6iVXg1K/XPUSGicw/+K+LBQ==","shasum":"0092b82c14a7efb6d0cce2bd1186d26e64819730","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/dsh-data-insight/-/dsh-data-insight-0.1.0.tgz","fileCount":14,"unpackedSize":45343,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIE8rUfG4rXXNE/H7wfAkUkHbUS5EiMHaNsngvBJKu8+FAiEA3a+g9bDFNoCWITC9nJp0kZCOp9mtOKrfynIQp/3ChWY="}],"size":18836},"_npmUser":{"name":"anonymous","email":"3351868726@qq.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"3351868726@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dsh-data-insight_0.1.0_1786881317833_0.011104490236399034"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-08-16T11:55:17.973Z","publish_time":1786881317973,"_source_registry_name":"default","contributors":[]},"0.1.1":{"name":"dsh-data-insight","version":"0.1.1","description":"DSH (DeepSeek Harness) data-insight skill plugin: turn raw data (CSV / pasted table / SQL results / DuckDB) into a structured Markdown report with business conclusions, metrics and charts.","license":"MIT","type":"module","scripts":{"test":"node --test test/csv-profile.test.mjs"},"main":"./plugin/index.js","exports":{".":"./plugin/index.js","./package.json":"./package.json"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"peerDependencies":{"@deepseek-ai/dsh-skill-filesystem":"*"},"peerDependenciesMeta":{"@deepseek-ai/dsh-skill-filesystem":{"optional":true}},"keywords":["dsh","dsh-plugin","deepseek-harness","data-analysis","data-insight","analytics","report","csv","duckdb","skills"],"_id":"dsh-data-insight@0.1.1","gitHead":"bbef09e12341e51d914d28b05c37c2c2486d770f","_nodeVersion":"22.21.0","_npmVersion":"10.9.4","dist":{"integrity":"sha512-/6Hann3xa0gESWHJSDcjezvaoswvS9fvecRhDK8H285fw1RiesX2EF858q3H0dBVoggBB/WGApgJO9tYfBHmfA==","shasum":"ad16d66c1912d0f54f09662395f5ae8aa8056602","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/dsh-data-insight/-/dsh-data-insight-0.1.1.tgz","fileCount":15,"unpackedSize":50231,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIACP5pQ2kesBuAxSpuHaPWoLSrb6FFbuSRrMkTGpzyT6AiBWMyN9lcA5nB7gSKdCaouiNMZEQpkF6xcj0QNX41fKlA=="}],"size":20349},"_npmUser":{"name":"anonymous","email":"3351868726@qq.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"3351868726@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dsh-data-insight_0.1.1_1786883797489_0.24794463547447165"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-08-16T12:36:37.644Z","publish_time":1786883797644,"_source_registry_name":"default","contributors":[]},"0.1.2":{"name":"dsh-data-insight","version":"0.1.2","description":"DSH (DeepSeek Harness) data-insight skill plugin: turn raw data (CSV / pasted table / SQL results / DuckDB) into a structured Markdown report with business conclusions, metrics and charts.","license":"MIT","type":"module","repository":{"type":"git","url":"git+https://github.com/duyanta123/dsh-data-insight.git"},"bugs":{"url":"https://github.com/duyanta123/dsh-data-insight/issues"},"homepage":"https://github.com/duyanta123/dsh-data-insight#readme","scripts":{"test":"node --test test/csv-profile.test.mjs","prepublishOnly":"npm test"},"main":"./plugin/index.js","exports":{".":"./plugin/index.js","./package.json":"./package.json"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"peerDependencies":{"@deepseek-ai/dsh-skill-filesystem":"*"},"peerDependenciesMeta":{"@deepseek-ai/dsh-skill-filesystem":{"optional":true}},"keywords":["dsh","dsh-plugin","deepseek-harness","data-analysis","data-insight","analytics","report","csv","duckdb","skills"],"_id":"dsh-data-insight@0.1.2","gitHead":"63afd128d16067b466c84298ac4da3e837a4a844","_nodeVersion":"22.21.0","_npmVersion":"10.9.4","dist":{"integrity":"sha512-8Vnk8xMfF4dbX4dL+7IcQOBVD1CNtgFayRmnvsVJxLHODWf1x2G4I94iemflzOA+SWtmVLKocnWvrhadV65lYw==","shasum":"9c2801bf5003fb6cb38ff4c36384a4ccf2bafc15","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/dsh-data-insight/-/dsh-data-insight-0.1.2.tgz","fileCount":15,"unpackedSize":52806,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCICH3X3PVCaTVAkPJFkdXEuxnVJrnf4AdWteyvhJ6m6VdAiEAyhM2AFUl8+kyHEAEAH//O9uKDukIJaSek1jyfaZuiYg="}],"size":21362},"_npmUser":{"name":"anonymous","email":"3351868726@qq.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"3351868726@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dsh-data-insight_0.1.2_1788283893267_0.46666178279545667"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-09-01T17:31:33.396Z","publish_time":1788283893396,"_source_registry_name":"default","contributors":[]},"0.1.3":{"name":"dsh-data-insight","version":"0.1.3","description":"DSH (DeepSeek Harness) data-insight skill plugin: turn raw data (CSV / pasted table / SQL results / DuckDB) into a structured Markdown report with business conclusions, metrics and charts.","license":"MIT","type":"module","repository":{"type":"git","url":"git+https://github.com/duyanta123/dsh-data-insight.git"},"bugs":{"url":"https://github.com/duyanta123/dsh-data-insight/issues"},"homepage":"https://github.com/duyanta123/dsh-data-insight#readme","scripts":{"test":"node --test test/csv-profile.test.mjs","test:compat":"node test/dsh-compat.test.mjs","prepublishOnly":"npm test"},"main":"./plugin/index.js","exports":{".":"./plugin/index.js","./package.json":"./package.json"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"peerDependencies":{"@deepseek-ai/dsh-skill-filesystem":"*"},"peerDependenciesMeta":{"@deepseek-ai/dsh-skill-filesystem":{"optional":true}},"keywords":["dsh","dsh-plugin","deepseek-harness","data-analysis","data-insight","analytics","report","csv","duckdb","skills"],"_id":"dsh-data-insight@0.1.3","gitHead":"a99926f3c57e8d5c4dfc873fea0da546c2dc348f","_nodeVersion":"24.20.0","_npmVersion":"11.5.1","dist":{"integrity":"sha512-QFP3QmbPl0NyyBu9yubpmrneD8v6zFFecUPfYBQZLuMPddPk7PRjGojSoLv4IZcUix2qvJgfYOZO8XeFBdcXlg==","shasum":"1aaa166bdf5a0d922862cb1bcc62db1937265e4b","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/dsh-data-insight/-/dsh-data-insight-0.1.3.tgz","fileCount":15,"unpackedSize":53085,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/dsh-data-insight@0.1.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGDX4I9WWKEZtVowV5y3VdqrLfEBpmGC5zDWGx+pdR6/AiEA10j0hOMQAFRrdibgjxs5y7Ohj4ShFo6DK1vYLmRvTdY="}],"size":21506},"_npmUser":{"name":"anonymous","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:48151a46-67e2-47ae-96f5-b16d4b32769a"}},"directories":{},"maintainers":[{"name":"anonymous","email":"3351868726@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dsh-data-insight_0.1.3_1788685989767_0.7252095334139455"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-09-06T09:13:09.901Z","publish_time":1788685989901,"_source_registry_name":"default","contributors":[]},"0.1.4":{"name":"dsh-data-insight","version":"0.1.4","description":"DSH (DeepSeek Harness) data-insight skill plugin: turn raw data (CSV / pasted table / SQL results / DuckDB) into a structured Markdown report with business conclusions, metrics and charts.","license":"MIT","type":"module","repository":{"type":"git","url":"git+https://github.com/duyanta123/dsh-data-insight.git"},"bugs":{"url":"https://github.com/duyanta123/dsh-data-insight/issues"},"homepage":"https://github.com/duyanta123/dsh-data-insight#readme","scripts":{"test":"node --test test/csv-profile.test.mjs","test:compat":"node test/dsh-compat.test.mjs","prepublishOnly":"npm test"},"main":"./plugin/index.js","exports":{".":"./plugin/index.js","./package.json":"./package.json"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"peerDependencies":{"@deepseek-ai/dsh-skill-filesystem":"*"},"peerDependenciesMeta":{"@deepseek-ai/dsh-skill-filesystem":{"optional":true}},"keywords":["dsh","dsh-plugin","deepseek-harness","data-analysis","data-insight","analytics","report","csv","duckdb","skills"],"_id":"dsh-data-insight@0.1.4","gitHead":"2415a7df98764053603331a24fecc2b3bc6d9d83","_nodeVersion":"24.20.0","_npmVersion":"11.5.1","dist":{"integrity":"sha512-xjxQzhqfOISqk2Kv7shLIVsE2Qi85cfQnWt1HAYDENSRHt/nWqaxEhy2h8OrEkgUGJhipU1J1U5B7QCiRHljeg==","shasum":"7d127bcfc84d0599b7f46f06f929c46cc1f13812","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/dsh-data-insight/-/dsh-data-insight-0.1.4.tgz","fileCount":15,"unpackedSize":53690,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/dsh-data-insight@0.1.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDdPHifyBv7hQoWyxgIlkl/CBtr6jyJDDu3DJZfbLKXygIhAMqG+kVLKqPR+889bwOXsQoQj3jUsGJssoeq9zEZ/QWS"}],"size":21789},"_npmUser":{"name":"anonymous","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:48151a46-67e2-47ae-96f5-b16d4b32769a"}},"directories":{},"maintainers":[{"name":"anonymous","email":"3351868726@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dsh-data-insight_0.1.4_1789144482212_0.3880549648821796"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-09-11T16:34:42.341Z","publish_time":1789144482341,"_source_registry_name":"default","contributors":[]},"0.1.5":{"name":"dsh-data-insight","version":"0.1.5","description":"DSH (DeepSeek Harness) data-insight skill plugin: turn raw data (CSV / pasted table / SQL results / DuckDB) into a structured Markdown report with business conclusions, metrics and charts.","license":"MIT","type":"module","repository":{"type":"git","url":"git+https://github.com/duyanta123/dsh-data-insight.git"},"bugs":{"url":"https://github.com/duyanta123/dsh-data-insight/issues"},"homepage":"https://github.com/duyanta123/dsh-data-insight#readme","scripts":{"test":"node --test test/csv-profile.test.mjs","test:compat":"node test/dsh-compat.test.mjs","prepublishOnly":"npm test"},"main":"./plugin/index.js","exports":{".":"./plugin/index.js","./package.json":"./package.json"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"peerDependencies":{"@deepseek-ai/dsh-skill-filesystem":"*"},"peerDependenciesMeta":{"@deepseek-ai/dsh-skill-filesystem":{"optional":true}},"keywords":["dsh","dsh-plugin","deepseek-harness","data-analysis","data-insight","analytics","report","csv","duckdb","skills"],"_id":"dsh-data-insight@0.1.5","gitHead":"4a9f3fef1bcaa2d4b3e3b0a4c1ea44d7bc65a573","_nodeVersion":"24.20.0","_npmVersion":"11.5.1","dist":{"integrity":"sha512-b2w+WFzxlOv/gNX+UtMwzukn6BGbQUFB/4e4Tz1U5hDMXe3DUQmvOhD3GdV6xL+ET9Sy1ME2dZG/eYrDm7kx/w==","shasum":"a1f0dfdd551f6386ece6bdd56cb84f4dabd39b4c","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/dsh-data-insight/-/dsh-data-insight-0.1.5.tgz","fileCount":16,"unpackedSize":65842,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/dsh-data-insight@0.1.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDpcdf8JCwFn4eZ6EGU3105c0FFN1GyKfqkQjlaIwFFpwIhAK5peYIw0mBU3MSFu32a2E5+NhKe2V5rIild/pZv4BqA"}],"size":26055},"_npmUser":{"name":"anonymous","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:48151a46-67e2-47ae-96f5-b16d4b32769a"}},"directories":{},"maintainers":[{"name":"anonymous","email":"3351868726@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dsh-data-insight_0.1.5_1789579448734_0.09729942470950004"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-09-16T17:24:08.873Z","publish_time":1789579448873,"_source_registry_name":"default","contributors":[]},"0.1.6":{"_id":"dsh-data-insight@0.1.6","dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"bugs":{"url":"https://github.com/duyanta123/dsh-data-insight/issues"},"dist":{"shasum":"00f4fb93665608bfdde9d68eac036f80a915e1f2","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/dsh-data-insight/-/dsh-data-insight-0.1.6.tgz","fileCount":16,"integrity":"sha512-4ciwXl5Mr2nps5ehNmDWNKmUu3id1CRTzJuAmNgmlRuU70NMfEtor07mbsoIa5lOLI52h73DbQL3X/H1GQhf3g==","signatures":[{"sig":"MEUCIQCcgUhs+Gy1K9buIp4zYSbIw+AEmEdoIbYnsLNqZW03WAIgJ+uCyawzQqz1i5CXJB68Se0YFiQkq4PuAP4VHpFoni4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQC4XZ7CdfgW/1y3w6rhtPdR0/632SUH0IJ4zQ+PXCTgWAIgXeZmaUnZ9y1G39lxUMw68zNdabkLMvLdvcgslMqDf4c="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/dsh-data-insight@0.1.6","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":67810,"size":26767},"main":"./plugin/index.js","name":"dsh-data-insight","type":"module","exports":{".":"./plugin/index.js","./package.json":"./package.json"},"gitHead":"7331b3d40ac9a3d96af4ea79c94db4a1a8ab9ebb","license":"MIT","scripts":{"test":"node --test test/csv-profile.test.mjs","test:compat":"node test/dsh-compat.test.mjs","prepublishOnly":"npm test"},"version":"0.1.6","_npmUser":{"name":"anonymous","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"48151a46-67e2-47ae-96f5-b16d4b32769a"}},"homepage":"https://github.com/duyanta123/dsh-data-insight#readme","keywords":["dsh","dsh-plugin","deepseek-harness","data-analysis","data-insight","analytics","report","csv","duckdb","skills"],"repository":{"url":"git+https://github.com/duyanta123/dsh-data-insight.git","type":"git"},"_npmVersion":"11.5.1","description":"DSH (DeepSeek Harness) data-insight skill plugin: turn raw data (CSV / pasted table / SQL results / DuckDB) into a structured Markdown report with business conclusions, metrics and charts.","directories":{},"maintainers":[{"name":"anonymous","email":"3351868726@qq.com"}],"_nodeVersion":"24.21.0","_hasShrinkwrap":false,"peerDependencies":{"@deepseek-ai/dsh-skill-filesystem":"*"},"peerDependenciesMeta":{"@deepseek-ai/dsh-skill-filesystem":{"optional":true}},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dsh-data-insight_0.1.6_1790839950312_0.0014358816329489432"},"_cnpmcore_publish_time":"2026-10-01T07:32:30.397Z","publish_time":1790839950397,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"0.1.6"},"name":"dsh-data-insight","time":{"created":"2026-08-16T11:55:34.595Z","modified":"2026-10-01T07:32:40.485Z","0.1.0":"2026-08-16T11:55:17.973Z","0.1.1":"2026-08-16T12:36:37.644Z","0.1.2":"2026-09-01T17:31:33.396Z","0.1.3":"2026-09-06T09:13:09.901Z","0.1.4":"2026-09-11T16:34:42.341Z","0.1.5":"2026-09-16T17:24:08.873Z","0.1.6":"2026-10-01T07:32:30.397Z"},"readme":"# dsh-data-insight\n\nEnglish | [简体中文](README.zh-CN.md)\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)\n[![DeepSeek Harness](https://img.shields.io/badge/DeepSeek%20Harness-plugin-4c1d95)](https://github.com/topics/dsh-plugin)\n[![CI](https://github.com/duyanta123/dsh-data-insight/actions/workflows/ci.yml/badge.svg)](https://github.com/duyanta123/dsh-data-insight/actions/workflows/ci.yml)\n[![dsh-index](https://img.shields.io/badge/dsh--index-dsh--data--insight-blue)](https://dsh-index.xlings.org/packages/dsh-data-insight/)\n[![version](https://img.shields.io/badge/version-0.1.6-green)](CHANGELOG.md)\n\nA DSH (DeepSeek Harness) **data-insight skill plugin**: turns raw data into a structured Markdown analysis report of \"business conclusions + metrics + charts\".\n\nA pure instruction-type skill plugin with zero dependencies and zero build. Computation is done by the LLM driven by the host's file/shell tools; the package ships a zero-dependency CSV profiling script and full chart/report specifications.\n\n## Positioning\n\ndsh-data-insight covers the \"data → report\" step: given a data source, it produces a reviewable Markdown report. It does not write or clean data back to storage, and it never sends data to any external service.\n\nIt answers:\n- What does this data look like overall (schema / missing / duplicates / distribution)?\n- What are the core metrics, and how do they change period over period?\n- What are the TopN entries and outliers (Z-score / IQR)?\n- What numbers back each conclusion, and can they be recomputed?\n\nRigor guarantees (hard gates baked into the report template): every conclusion backed by numbers, facts separated from inference, reproducible metrics definitions, no fabricated data.\n\n## Installation\n\nAs a DSH plugin (recommended):\n\n```sh\ndsh plugin --profile web add \"github:duyanta123/dsh-data-insight#v0.1.6\"\n```\n\nOr from npm:\n\n```sh\nnpm install dsh-data-insight\n```\n\nOr manually in two steps (in the target profile directory): add `\"dsh-data-insight\": \"^0.1.6\"` to `dependencies` in `package.json`, and add `\"dsh-data-insight\"` to the `dsh.profile.bundles` array.\n\nCompatibility tiers: the standalone CSV / DuckDB scripts run on Node.js >= 18; as a DSH 0.2.0-rc.2 plugin it is verified with Node.js >= 22.19. Run `npm run test:compat` to execute an isolated-profile add, dump-config, and startup smoke test.\n\nAfter restarting the profile, the `data-insight-runbook` skill appears in the skill list and is ready to use.\n\n## Quick Start\n\n### 1. Use as a DSH skill\n\nSay \"analyze this CSV and give me a report\", \"take a look at this data\", or \"compute these metrics for me\" with a data source attached (file path / pasted table / DuckDB connection). The model loads `data-insight-runbook` and runs the five-stage pipeline: input intake → data profiling → metric computation → chart rendering → report output (hard gates at each stage). The deliverable is a Markdown report written to the workspace.\n\n### 2. Use as a standalone profiling script\n\n```sh\nnode skills/data-insight-runbook/scripts/csv-profile.mjs skills/data-insight-runbook/examples/sample-sales.csv\n```\n\nPrints a profiling report for the CSV (schema / missing / distribution / outliers); the corresponding full report sample is [examples/sample-report.md](skills/data-insight-runbook/examples/sample-report.md).\n\n### 3. DuckDB direct connection (optional)\n\nZero dependencies by default; to query databases directly, install the [DuckDB](https://duckdb.org/) single-file CLI (on PATH). Install scripts: Windows `skills/data-insight-runbook/scripts/setup-duckdb.ps1`, macOS/Linux `skills/data-insight-runbook/scripts/setup-duckdb.sh`.\n\n```sh\n# Query CSV/Parquet directly: no database file, no -readonly (v1.5.5: -readonly fails on in-memory databases)\nduckdb -csv -c \"SELECT * FROM read_csv_auto('data.csv') LIMIT 100\"\n# Database file / remote DB: connection string via env var, forced read-only (POSIX shell: \"$DATA_INSIGHT_DB_URL\")\nduckdb -readonly -csv -c \"SELECT ... LIMIT 5000\" \"$env:DATA_INSIGHT_DB_URL\"\n```\n\n## CLI Options\n\n| Option | Default | Description |\n| --- | --- | --- |\n| `<file>` | - | Path to the CSV file to profile |\n| `--sep <char>` | auto-detect | Field separator (auto-detects `,`, `\\t`, `;`) |\n| `--encoding <enc>` | utf8 | File encoding: utf8 / utf16le / latin1 (transcode GBK files first) |\n| `--limit <N>` | 0 (all) | Limit rows read, for sampling very large datasets |\n| `--json` | - | Output the profiling result as JSON |\n\n## Output\n\nThe final artifact of the five-stage pipeline is a Markdown analysis report with a fixed skeleton defined in [docs/report-template.md](skills/data-insight-runbook/docs/report-template.md):\n\n- **Core conclusions** (each backed by numbers with cross-references)\n- **Data overview** (schema, missing values, duplicates, dispositions)\n- **Metric details** (summary stats, period-over-period, TopN, outliers)\n- **Trends & comparisons** (three-channel charts: Markdown tables + numbers first, Mermaid / ASCII bar charts as fallback)\n- **Definitions & recomputation** (facts separated from inference)\n\n## Safety Boundaries\n\n- **Read-only profiling**: the CSV profiling script only reads its input file — no writes, no network.\n- **DuckDB red lines**: database connections always use `-readonly` (write statements are blocked); connection strings go through the `DATA_INSIGHT_DB_URL` env var, never into commands, config, or reports; queries default to `LIMIT 5000`.\n- **No fabricated data**: report conclusions must be backed by numbers; missing data is stated as-is.\n\n## Troubleshooting\n\n**DuckDB says `Cannot launch in-memory database in read-only mode`?**\nDon't pass `-readonly` for file-less queries (CSV/Parquet) — see the example above; `-readonly` is only for database files / remote databases.\n\n**`duckdb: command not found`?**\nThe CLI isn't installed or isn't on PATH; run the platform install script (`skills/data-insight-runbook/scripts/setup-duckdb.ps1` / `setup-duckdb.sh`) and reopen the terminal.\n\n**Garbled Chinese text in CSV?**\nPrefer UTF-8 (BOM is handled correctly); transcode GBK files first with `iconv -f GBK -t UTF-8`.\n\n**Metrics don't match expectations?**\nRun `node skills/data-insight-runbook/scripts/csv-profile.mjs <file>` first and check the profiling report's missing values / duplicate rows / outlier distribution — real-world sample data has surfaced three classes of issues (a single dirty row driving a spike, duplicates inflating counts, missing values dragging averages), all exposed at the profiling stage.\n\n**Mermaid charts don't render in local Markdown preview?**\nOver `file://`, CDN-loaded mermaid.js is blocked by same-origin policy; open with a local renderer such as Typora, or switch to the Markdown table / ASCII bar chart channels per [docs/chart-spec.md](skills/data-insight-runbook/docs/chart-spec.md).\n\n**Old sessions won't open after upgrading the DSH host to 0.1.5.x?**\nThe Session format V3 migration is irreversible and is host behavior; back up session logs before upgrading the host (see the 0.1.4 entry in [CHANGELOG.md](CHANGELOG.md)).\n\n## Documentation\n\n- [docs/chart-spec.md](skills/data-insight-runbook/docs/chart-spec.md) — three-channel chart spec and examples (including the warning that the DSH Web GUI doesn't render Mermaid)\n- [docs/report-template.md](skills/data-insight-runbook/docs/report-template.md) — report skeleton + rigor checklist\n- [examples/](skills/data-insight-runbook/examples/) — sample CSV and full sample report\n- [CHANGELOG.md](CHANGELOG.md) — release notes\n- [PLUGIN-MAINTENANCE.md](PLUGIN-MAINTENANCE.md) — repo maintenance runbook\n\n## License\n\n[MIT](LICENSE)","users":{}}