用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/arbazkhan971/godmode --skill pipeline命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | pipeline |
| description | Data pipeline and ETL -- extraction, transformation, loading, data quality, orchestration. |
/godmode:pipeline, "build a data pipeline", "ETL"ls dags/ dbt_project.yml dagster.yaml 2>/dev/null
grep -r "airflow\|dagster\|prefect\|kafka" \
requirements.txt package.json 2>/dev/null
Name: <pipeline>
Type: batch | streaming | micro-batch | CDC
Schedule: cron | event-triggered | continuous
SLA: <max latency>
Sources: <name>: <type> (<format>, <volume/day>)
Transforms: 1. <step> (input -> output)
Destinations: <target>: <type> (<write method>)
Idempotent: yes/no
Error handling: skip | fail | dead-letter | retry
IF data changes hourly: batch with cron. IF sub-second latency needed: streaming (Kafka). IF already using PostgreSQL: CDC with Debezium.
Extraction: track watermarks, retry with backoff, log metrics. Patterns: API pagination with rate limit, DB incremental by updated_at, file dedup.
Transformation: pure functions only -- no DB calls,
no side effects. Composable via .pipe().
Loading strategies:
Every pipeline needs these (not optional):
IF quality < 95%: alert and investigate. IF count change > 50%: block load and alert.
Structured logging at every stage. Metrics: duration_seconds, rows_processed/rejected, last_success, data_freshness, quality_score. Alert: failure, 2x duration, quality < 95%, no data > 2 hours.
DLQ for bad records. Retry with exponential backoff. Checkpoint and resume for large batches. Circuit breaker if source fails N times.
Append .godmode/pipeline-results.tsv:
timestamp stage source target records_in records_out rejected quality_pct status
KEEP if: pipeline runs end-to-end AND quality checks
pass AND SLA met.
DISCARD if: quality fails OR errors OR SLA exceeded.
STOP when ALL of:
- Pipeline runs end-to-end with zero errors
- Quality checks validate all stages
- SLA met
- Backfill tested
On failure: git reset --hard HEAD~1. Never pause.
| Failure | Action |
|---|---|
| Schema changed | Fail loudly, update contract |
| Duplicates | Use upsert, add dedup step |
| DLQ growing | Investigate rejection reason |
| Exceeds SLA | Profile stages, parallelize |
| Connection timeout | Retry with backoff, check pool |
基于 SOC 职业分类