用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/timescale/uns_adapters_claude --skill validate-contract命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | validate-contract |
| description | Static review of collection-client code against the UNS data contract in CLAUDE.md |
Static, reasoning-based review of each collection client against the UNS data
contract in CLAUDE.md. This is a judgment task, not a script — read the
client code and the contract, then report violations with file paths, line
numbers, and required fixes.
/validate-contract — review all three clients/validate-contract modbus — review the Modbus client onlyFor each client, check every rule from CLAUDE.md:
contracts/tag_database.csv (column tag_name)register_map.csv / opcua_node_map.csv / mqtt_topic_map.csv)tag_history.ts are timezone-aware UTCsource_timezone from
config/{client}.yaml and log: "Naive timestamp from {source}, assuming {timezone}"validate_reading() before writingDBWriter — no hand-rolled connections or SQLtag_id is resolved from uns_namespace; unresolved tags go to dead_lettermetric_type (Int32, Float, Boolean)GOOD, BAD, or STALE — no other valuesReading from shared.models — never redefine itvalidate_reading()For each client:
## {client_name} — {PASS | FAIL}
Violations:
- {file}:{line} — {rule violated} — {what's wrong} — Fix: {what to change}
Notes:
- {observations about edge cases or fragility}
If a client passes all checks, say PASS and move on. Do not pad the report.