一键导入
data-analysis
DuckDB-powered analytical engine for large data dumps (JSON, CSV, Parquet). Ingest → Profile → Query → File insights.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
DuckDB-powered analytical engine for large data dumps (JSON, CSV, Parquet). Ingest → Profile → Query → File insights.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | data-analysis |
| description | DuckDB-powered analytical engine for large data dumps (JSON, CSV, Parquet). Ingest → Profile → Query → File insights. |
| argument-hint | analyze <file_path> |
| allowed-tools | ["Bash","FileWrite"] |
| auto-invoke | false |
| model | default |
| user-invocable | true |
| context_trigger | ["*.json > 10MB","*.csv > 10MB","data dump","analyze this data","large dataset"] |
| who | Athena agent performing data analysis |
| what | Ingest, profile, query, and extract insights from large structured datasets |
| when | User provides a large data file (JSON/CSV/Parquet) or asks for data analysis |
| where | Local filesystem, DuckDB in-process |
| why | Eliminates ad-hoc Python one-shots for large data analysis. Provides reusable, cached, SQL-queryable analytical backend. |
| how | DuckDB embedded OLAP engine + Parquet columnar storage + auto-filing to case studies |
Wraps the Athena Data Engine (data_engine.py) for structured data analysis on large files.
/analyze workflow invocationpip install duckdb
| Script | Purpose |
|---|---|
.agent/scripts/data_engine.py | Core DuckDB wrapper — ingest, convert, query, profile |
.agent/scripts/auto_file_insights.py | Auto-file extracted insights as case studies |
python3 .agent/scripts/data_engine.py ingest /path/to/data.json
This will:
Cache behavior: If a Parquet cache already exists and is newer than the source file, ingestion is skipped and the cache is used directly (instant).
python3 .agent/scripts/data_engine.py query /path/to/.athena_cache/parquet/data.parquet \
"SELECT COUNT(*) FROM data WHERE text LIKE '%math%'"
The Parquet file is registered as table data. Use standard SQL.
Common patterns:
-- Row count
SELECT COUNT(*) FROM data
-- Date range
SELECT MIN(date), MAX(date) FROM data
-- Value distribution
SELECT column_name, COUNT(*) as cnt
FROM data
GROUP BY column_name
ORDER BY cnt DESC
LIMIT 20
-- Text search
SELECT date, text FROM data
WHERE text ILIKE '%keyword%'
LIMIT 10
-- Time series aggregation
SELECT strftime(date::TIMESTAMP, '%Y-%m') as month, COUNT(*) as volume
FROM data
GROUP BY month
ORDER BY month
-- Rate extraction (regex)
SELECT regexp_extract(text, '\$(\d+)', 1)::INT as rate, COUNT(*) as cnt
FROM data
WHERE rate IS NOT NULL
GROUP BY rate
ORDER BY cnt DESC
After analysis, file insights using:
python3 .agent/scripts/auto_file_insights.py \
--title "Analysis Title" \
--domain "Market Analysis" \
--tags "#data-analysis #market" \
--context "Brief context" \
--findings "Finding 1: detail||Finding 2: detail" \
--patterns "Pattern 1||Pattern 2" \
--relevance "Active project relevance" \
--base-dir "./"
| Format | Detection | Notes |
|---|---|---|
| Telegram JSON export | "messages" key in root object | Auto-flattens nested text arrays, extracts metadata |
| Generic JSON | .json extension | DuckDB read_json_auto() |
| CSV/TSV | .csv/.tsv extension | DuckDB read_csv_auto() |
| Parquet | .parquet/.pq extension | Direct read, no conversion needed |
.athena_cache/parquet/ alongside the source file| Operation | JSON (800MB) | Parquet (cached) |
|---|---|---|
| First ingest | ~60s | — |
| Subsequent load | — | <1s |
| COUNT(*) | ~30s | <100ms |
| GROUP BY | ~45s | <500ms |
| Text search (LIKE) | ~60s | <2s |
json.load() on 800MB files)Unified business model evaluator, client filter, pricing engine, and distribution architect. Absorbs 31 business + 8 marketing + 13 content + 2 acquisition protocols.
Unified codebase manipulation, AI deployment, data analysis, and academic delivery engine. Absorbs 6 coding protocols + data-analysis + academic-delivery + spec-driven-dev.
Unified mathematical arbitrator for all resource allocation decisions — money, time, energy, relationships. Absorbs 46 decision protocols + 24 strategy protocols into one dense engine.
Unified survival infrastructure: health, finance, legal safety, circuit breakers, and structural protection against all ruin classes. The last line of defense.
Unified boundary enforcement, interpersonal diagnostic, and relational audit engine. Absorbs 40 psychology + 2 social protocols and all relationship case studies.
Unified zero-emotion variance shield for capital markets (FX, crypto, CFDs) and poker. Absorbs trading-risk-gate + zenith-execution + trade-journal-analyzer into one engine.