freezonex/tier0-cli/uns

Claude Code and agent skill by freezonex/tier0-cli

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Tier0 UNS operations: browse, read, write, history, search, create, update, delete, and restore namespace nodes and topics.

Install

npx vskill@latest install freezonex/tier0-cli/uns

SKILL.md

The same SKILL.md was published earlier as freezonex/tier0-skill/uns.

tier0-uns

Use this skill for Tier0 Unified Namespace data-plane and namespace-management tasks.

Use When

  • The user asks to browse namespace paths or discover topics.
  • The user asks to read current topic values.
  • The user asks to consume UNS values continuously or in real time.
  • The user asks to write values into UNS topics.
  • The user asks for historical values or aggregates.
  • The user asks to create, update, delete, or restore namespace nodes.

Do Not Use When

  • The user wants to manage Node-RED SourceFlow/EventFlow containers. Use flow/SKILL.md.
  • The user wants API key diagnostics. Use auth/whoami.md.
  • The user wants service connectivity only. Use info/info.md.

Non-Negotiable Rules

  1. read, write, and history require full topic leaf paths.
  2. Middle folders cannot be read or written; use browse.
  3. Topic paths must include Metric, Action, or State immediately before the leaf.
  4. topicType is derived from that folder; do not rely on --topic-type to create the folder.
  5. Write payload value must be an object matching the topic fields. The CLI rejects scalar and array values.
  6. For batch responses, check data.success and every data.results[i].success.
  7. Use --path for delete. --topic is a deprecated alias only for compatibility.
  8. Metric topics require --fields at creation. Declare --fields on Action/State topics too — without them the topic has no visible schema in UNS.
  9. Preview agent-generated write, create, update, delete, and restore requests with --dry-run --json.
  10. JSON is strict. Use file flags for complex payloads and never combine an inline JSON flag with its file alternative.
  11. uns read is a snapshot API. For continuous/event-driven data, do not build an OpenAPI polling loop; read references/realtime.md and use MQTT/EventFlow when the required runtime and credentials are available.
  12. For large history queries, use --count-mode none when exact totals are not consumed, and follow each topic's meta.hasMore; use --auto-sparse when bounded trend points are sufficient.
  13. For cumulative Daily/Monthly meter readings, query first and last over the same complete window and calculate last - first in the application; do not substitute avg or sum.

Routing

IntentRead
Browse namespace foldersreferences/browse.md
Read current valuesreferences/read.md
Consume values continuously or in real timereferences/realtime.md
Write current valuesreferences/write.md
Query history or aggregatesreferences/history.md
Search topics by keyword or path prefixreferences/search.md
Create nodes or import a treereferences/create.md
Update metadata or fieldsreferences/update.md
Delete nodesreferences/delete.md
Restore soft-deleted nodesreferences/restore.md

Topic Path Rules

Valid examples:

text
Plant/Line1/Metric/Temperature
Plant/Line1/State/MachineStatus
Machine/Action/Start

Invalid:

text
Plant/Line1/Temperature

The invalid path is missing the type folder before the leaf.

Common Commands

bash
tier0 uns browse --path /
tier0 uns search --keyword Temperature --json
tier0 uns read Plant/Line1/Metric/Temperature --json
tier0 uns write --topic Plant/Line1/Metric/Temperature --value '{"temperature":27.5}'
tier0 uns history -t Plant/Line1/Metric/Temperature --start -1h --json
tier0 uns create --topic Plant/Line1/Metric/Temperature --type topic --fields '[{"name":"temperature","type":"float"}]'
tier0 uns delete --path Plant/Line1/Metric/Temperature --hard --dry-run --json
# after user confirmation
tier0 uns delete --path Plant/Line1/Metric/Temperature --hard --yes

Mutation Preflight

Append --dry-run --json to the final mutation command and inspect data.api[0].method, url, and body. A preview does not authenticate, send a request, or prove business success. Remove --dry-run only after the preview matches the user's intent.

For delete and restore, show the preview and destructive impact to the user, wait for confirmation, then execute with --yes.

Structured Errors

With --json, read failures from stderr and branch on error.type, error.subtype, and error.param. Fix invalid_argument at the named parameter instead of retrying unchanged. Exit code 10 with confirmation_required means the user must approve delete or restore before --yes is added.

Batch Response Handling

UNS batch APIs can return HTTP 200 while one or more business items fail.

Required checks:

js
if (resp.data?.success === false) {
throw new Error("UNS batch operation failed");
}
for (const result of resp.data?.results ?? []) {
if (result.success === false) {
throw new Error(result.message || result.topic || result.path || "UNS item failed");
}
}

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/freezonex/tier0-cli/uns/badge)](https://verified-skill.com/skills/freezonex/tier0-cli/uns)

Something wrong with this skill or its page? Tell us.