بنقرة واحدة
validate-contract
Static review of collection-client code against the UNS data contract in CLAUDE.md
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Static review of collection-client code against the UNS data contract in CLAUDE.md
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| 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.