oci-iot-platform
Explore, create, and troubleshoot Oracle Cloud Infrastructure Internet of Things Platform resources, including domains, digital twin models, adapter…
它会碰到什么
扫了多少17 个文本文件,65 KB
它会碰到什么读文件
命中总数1 处
命中统计严重 0 · 高 0 · 中 1 · 低 0
这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。
技能内容
OCI IoT Platform
Quick Start
- Confirm the user is working with Oracle Cloud Infrastructure Internet of Things Platform.
- Ask for the minimum context needed before giving commands:
IOT_DOMAIN_IDwhen availableOCI_CLI_PROFILEOCI_CLI_AUTHwhen the selected profile needs it, such assecurity_tokenOCI_REGIONif it cannot be derived from the domain- intended operation: inspect, create, update, delete, or publish test telemetry
- Prefer this execution order:
- discover the domain and current state
- inspect the relevant model, adapter, or twin
- check local CLI capability with
oci ... --helpwhen using newer filters or gateway/raw-command options - make the smallest required change
- verify the result with a fresh read
Default Workflow
- Start with read-only OCI CLI discovery.
- Use
scripts/derive_domain_context.shwhen the user only hasIOT_DOMAIN_ID. - Use [references/platform-surface.md](references/platform-surface.md) when the task needs orientation on OCI IoT resource families, data flow, connectivity types, or which surface to use.
- Use [references/cli-workflows.md](references/cli-workflows.md) for control-plane actions:
- domains and domain groups
- digital twin models
- adapters
- instances
- relationships
- work requests
- HTTPS publish examples
- Use [references/mcp-optional-use.md](references/mcp-optional-use.md) only when an OCI IoT MCP server is already available in the user's environment. Keep CLI as the fallback and never require MCP for public workflows.
- Use [references/resilience-guidance.md](references/resilience-guidance.md) for:
- large or ambiguous list operations
- SDK or CLI command-shape drift
- gateway-aware topology
- relationship source/target diagnosis
- work-request failures
- publish rejection triage
- raw-command final-state validation
- cleanup or rollback planning
- Use [references/modeling-guidance.md](references/modeling-guidance.md) when the request involves DTDL authoring or adapter payload design.
- Use [references/data-access.md](references/data-access.md) only when the user explicitly needs Data API, ORDS, direct database access, or APEX-oriented workflows.
- Use [references/release-validation.md](references/release-validation.md) before calling the skill package ready to share publicly.
Bundled Resources
- Run [scripts/derive_domain_context.sh](scripts/derive_domain_context.sh) to derive:
- region
- device host
- data host
- domain group OCID
- short IDs used in later commands
- Run [scripts/twin_tools.py](scripts/twin_tools.py) for:
last-knownofflinetelemetry-template- Reuse [templates/model.temperature-sensor.template.json](templates/model.temperature-sensor.template.json), [templates/adapter.default.template.json](templates/adapter.default.template.json), [templates/instance.template.json](templates/instance.template.json), and [templates/publish-curl.template.sh](templates/publish-curl.template.sh) as neutral starting points.
- Use [references/platform-surface.md](references/platform-surface.md) to explain how domains, domain groups, models, adapters, twins, relationships, work requests, raw commands, and data access fit together.
- Use [references/resilience-guidance.md](references/resilience-guidance.md) to keep operator responses bounded, active-resource focused, and explicit about final-state evidence.
- Use [references/mcp-optional-use.md](references/mcp-optional-use.md) to recognize optional OCI IoT MCP tool families, gateway-aware helper behavior, Data API wrappers, and safety rules.
Guardrails
- Do not assume internal tenancy names, profiles, network access patterns, or private tooling.
- Treat Oracle product docs and official samples as the source of truth for platform behavior.
- Prefer read-only commands first and verify current state before recommending mutations.
- When suggesting create, update, or delete operations, include a verification command immediately after the mutation.
- Bound large reads with filters and
--limitbefore using--all. - Treat asynchronous acceptance, including raw-command
202, as incomplete until final state is verified. - For digital twin instance creation, never use
INDIRECTas a shortcut to avoid auth setup. UseINDIRECTonly when the user explicitly asks for a gateway/downstream topology or provides a gateway routing requirement. Otherwise clarify connectivity or proceed withDIRECTwhen a publishing device is implied. - Keep MCP guidance optional. Do not make MCP installation or private MCP bootstrap part of the public workflow.
- When MCP is already available, treat it as an accelerator for joined context, selector resolution, bounded pagination, gateway topology, Data API summaries, and polling; always be ready to fall back to CLI or SDK commands.
- Treat device publishing auth modes separately:
- vault-secret-backed basic auth
- certificate-based mTLS
- Do not imply OCI IoT is a general-purpose MQTT broker.
- Keep examples redacted and tenant-neutral.
Authoritative References
- Oracle IoT service docs:
https://docs.oracle.com/en-us/iaas/Content/internet-of-things/home.htm- OCI CLI IoT command reference:
https://docs.oracle.com/en-us/iaas/tools/oci-cli/latest/oci_cli_docs/cmdref/iot.html- Oracle sample repository:
https://github.com/oracle-samples/oci-iot-samples
Output Style
For each task, return:
- The exact command sequence with placeholders filled or called out.
- The key IDs, state, or timestamps that matter.
- The next verification step.
想直接用这个技能?
本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。