用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/timescale/uns_adapters_claude --skill validate-pipeline命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | validate-pipeline |
| description | Run end-to-end pipeline validation — query TimescaleDB after collection and report |
End-to-end validation of the UNS pipeline. Queries TimescaleDB to verify that
readings collected by the clients landed correctly in tag_history.
/validate-pipeline — query TimescaleDB and report on the data that landedBefore running, ensure:
uv syncuns_namespace is seededtag_history holds dataTo collect without real sources, start the simulator first (a separate
script). If tag_history is empty, the validation script warns and exits.
uv run scripts/validate_pipeline.py (no arguments — it validates
whatever data is already in tag_history)| Check | What it validates | Failure means |
|---|---|---|
| Tag coverage | Every tag in tag_database.csv has rows | Client dropped a tag |
| Timestamp sanity | Timestamps are recent, UTC, not future | Timezone bug or clock skew |
| Foreign key integrity | All tag_ids resolve to uns_namespace | Client wrote an unresolved tag |
| Dead letter | No rejected readings | Client emitting invalid data |
| Value plausibility | Booleans are 0/1, temps in range | Scale factor or type error |
| Cross-area drift | Areas have aligned timestamps | Naive-timestamp leak |
## Pipeline Validation Report
### Checks
- Tag coverage: {N}/{total} — {PASS|FAIL}
- Timestamp sanity: {PASS|FAIL}
- Foreign key integrity: {PASS|FAIL}
- Dead letter: {N} rejected — {PASS|FAIL}
- Value plausibility: {PASS|FAIL}
- Cross-area drift: {PASS|FAIL}
### Client Health
- area_01: {N} tags, {M} rows
- area_02: {N} tags, {M} rows
### Diagnosis
{Root cause analysis for any failures}