← 返回 Skills 市场
husamabdel

keyco

作者 husamabdel · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
89
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install keyco
功能描述
Manage Keyco assets, DUBs (QR/NFC/BLE/Virtual beacons), workflows, lifecycle events, users, and analytics. Use when the user asks about Keyco, asset manageme...
使用说明 (SKILL.md)

Keyco Skill

This skill uses the Keyco CLI to manage assets (DUBs), workflows, lifecycle events, users, notifications, and analytics through the Keyco platform (api.qrdub.com).

When to Use This Skill

Invoke this skill when the user:

  • Asks about Keyco assets, DUBs, or inventory
  • Needs to look up a specific asset by UUID
  • Wants to check asset lifecycle events, maintenance, or compliance
  • Requests workflow status, asset assignments, or utilization reports
  • Asks for analytics (weekly digest, stale assets, summaries)
  • Wants to manage notifications, groups, or API keys
  • Mentions api.qrdub.com, keyco.io, kc_live_*, or the keyco CLI
  • Wants to script asset operations (bulk ops, CI/CD automation)

Prerequisites

Before running any command, verify the CLI is installed and configured:

  1. Check if keyco is on PATH: which keyco

  2. Check configuration: keyco status

  3. If either check fails, run the setup script — it handles install + configure in one shot:

    bash scripts/setup-keyco.sh
    

    The script will:

    • Install @keyco/cli globally via npm if missing (falling back to sudo npm if needed)
    • Skip install if already present
    • Walk the user through keyco configure if no valid API key is set
    • Verify connectivity at the end

    Always offer to run this script before failing — don't ask the user to manually install or configure.

Core Workflow

1. Identify the user's intent

Map their request to one of the Keyco domains:

Intent Command family
Look up asset / inventory keyco dub get, keyco dub list, keyco dub search
Asset location / tracking keyco dub location history, keyco dub map-data
Lifecycle events keyco lifecycles create, keyco lifecycles get
Workflows keyco workflows list, keyco workflows get, keyco workflows dubs
Users & assignments keyco user list, keyco user assigned-dubs, keyco user unassigned-dubs
Analytics & reports keyco analytics summary, keyco analytics weekly-digest, keyco analytics stale-assets
Groups keyco groups list, keyco groups dubs
Notifications keyco notifications list, keyco notifications unread-count
API keys keyco api-keys list, keyco api-keys create

2. Run commands with --output json for programmatic parsing

Always append --output json when you need to parse or transform the data. Use --output table only when displaying directly to the user.

3. Handle errors

  • 401 / 403: API key missing, expired, or lacking required scope — tell the user to run keyco configure or create a key with the needed scope
  • 404: Resource doesn't exist — double-check the UUID with the user
  • 429: Rate limited — back off and retry
  • Connection errors: Check keyco status to verify reachability

4. Summarize results for the user

Don't just dump raw JSON — extract the key fields and present them clearly. Offer follow-up actions (e.g., "Want me to check its location history too?").

Data Integrity — IMPORTANT

The following operations have been intentionally removed from the Keyco CLI because they bypass authoritative scan/heartbeat events and break the audit trail:

  • Manual DUB location updates
  • Marking workflows complete out-of-band
  • Advancing workflow steps without a verified DUB scan

Never try to work around these restrictions. If the user asks to "set" or "update" a DUB's location or manually complete a workflow, explain that these actions must happen via the physical scan/event flow (QR scan, NFC tap, BLE heartbeat) to preserve audit integrity. Direct them to [email protected] if they need an override for legitimate reasons.

Output Format

When presenting asset data to the user:

Asset: \x3Cdubname>
UUID: \x3Cuuid>
Type: \x3CQR | Pro | Active | Virtual>
Status: \x3Cactive | inactive>
Group: \x3Cgroup name>
Assigned to: \x3Cuser email or "Unassigned">
Last seen: \x3Ctimestamp>

When running analytics, lead with the top-line numbers, then break down by category.

Examples

User: "What assets does [email protected] have?" → keyco user list --output json to find her user ID, then → keyco user assigned-dubs --user-id \x3CUUID> --output json → Summarize: "Alice has N assets assigned: [list]"

User: "Create a maintenance event for DUB ee6f2f42-31b1-4f90-9440-e91fb02ac7c4 due next Friday" → Compute the absolute date from "next Friday" → keyco lifecycles create --event-type MAINTENANCE --name "Maintenance" --assigned-dub ee6f2f42-31b1-4f90-9440-e91fb02ac7c4 --due-date 2026-04-24 → Confirm creation to the user with the returned event ID

User: "Show me this week's analytics" → keyco analytics weekly-digest --output json → Summarize top-line metrics (total assets, active workflows, open lifecycle events, utilization %)

User: "Find any stale assets" → keyco analytics stale-assets --output json → Report the count and list the first few, offering to create maintenance events or reassign them

User: "Import 50 assets from this CSV" → Explain that bulk CSV import goes through POST /api/imports/upload (not yet in CLI) — suggest they use the dashboard at https://dashboard.qrdub.com or loop over keyco lifecycles create / asset endpoints individually

Scripting Recipes

For multi-step tasks, compose commands with standard shell tools:

# Export all DUBs as JSON
keyco dub list --size 1000 --output json > all-dubs.json

# Find assets with no assigned user
keyco user unassigned-dubs --output json | jq '.[] | .uuid'

# Stale asset count for CI
STALE=$(keyco analytics stale-assets --output json | jq '.totalElements')
echo "$STALE stale assets detected"

References

安全使用建议
This skill appears to do what it claims (manage Keyco assets via the Keyco CLI). Before running anything: 1) Review the npm package @keyco/cli on the public registry (npmjs.com) to confirm publisher/trust; 2) Be aware the provided setup script may run npm install -g and fall back to sudo (you may be prompted for your password) — run it manually rather than allowing automatic execution if you prefer; 3) Only use API keys with the minimum scopes needed (the docs list recommended scopes) and never paste your Keyco API key into an untrusted chat; 4) If you have doubts about the dashboard URLs (dashboard.qrdub.com / api.qrdub.com), verify them with your organization. Overall: safe and coherent, but exercise standard caution when installing global packages and supplying API keys.
功能分析
Type: OpenClaw Skill Name: keyco Version: 1.0.0 The skill bundle is a legitimate tool for managing assets on the Keyco platform (qrdub.com) via its CLI. The setup script (scripts/setup-keyco.sh) automates the installation of the @keyco/cli package from npm and guides the user through API configuration. The instructions in SKILL.md are well-defined and include explicit safety guidelines regarding data integrity, preventing the agent from attempting to bypass audit trails. No evidence of data exfiltration, malicious execution, or harmful prompt injection was found.
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
Name/description match the included documentation and CLI commands. The SKILL.md and references describe using the Keyco CLI (api.qrdub.com / dashboard.qrdub.com) to manage DUBs/assets, lifecycles, workflows, users, and analytics — everything in the bundle (command reference, scope guidance, setup script) is consistent with that purpose.
Instruction Scope
Runtime instructions are limited to checking/using the Keyco CLI, running Keyco commands with --output json, and running the included setup script if the CLI is missing or not configured. The setup script only checks ~/.keyco.yaml, runs keyco status, and invokes keyco configure interactively. The SKILL.md explicitly forbids circumventing audit flows (no manual location edits or out-of-band workflow completion). No instructions ask the agent to access unrelated system files or external endpoints beyond Keyco dashboard/API hosts.
Install Mechanism
There is no builtin install spec, but the included setup script will run npm install -g @keyco/cli (and retry with sudo if needed). Installing a global npm package is an expected way to get a CLI, but it is a moderate-risk action because it pulls code from the npm registry and may require elevated privileges (sudo). This is proportionate to a CLI integration but worth a manual check before running.
Credentials
The skill does not declare or require unrelated environment variables or credentials. It legitimately expects the user to provide a Keyco API key (kc_live_*) via the CLI or ~ /.keyco.yaml; the included docs note KEYCO_API_KEY as an environment override, which is expected for CLI tooling. No unrelated secrets or high-scope credentials are requested.
Persistence & Privilege
The skill is not always-enabled and does not request persistent elevated privileges or modify other skills. It can be invoked by the agent (normal), but there are no additional privileged behaviors in the bundle.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install keyco
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /keyco 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Keyco skill initial release: - Adds support for managing Keyco assets (DUBs), workflows, lifecycle events, users, notifications, and analytics via the Keyco CLI. - Provides guidance and scripted setup for ensuring the CLI is installed and configured before any operations. - Maps user intents (inventory, tracking, assignments, analytics, etc.) to appropriate CLI commands. - Enforces data integrity by disallowing direct/manual updates that bypass required event flows. - Standardizes output and reporting formats for clear user summaries. - Includes scripting and troubleshooting recipes for common asset management tasks.
元数据
Slug keyco
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

keyco 是什么?

Manage Keyco assets, DUBs (QR/NFC/BLE/Virtual beacons), workflows, lifecycle events, users, and analytics. Use when the user asks about Keyco, asset manageme... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 89 次。

如何安装 keyco?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install keyco」即可一键安装,无需额外配置。

keyco 是免费的吗?

是的,keyco 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

keyco 支持哪些平台?

keyco 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 keyco?

由 husamabdel(@husamabdel)开发并维护,当前版本 v1.0.0。

💬 留言讨论