keyco
/install keyco
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 thekeycoCLI - Wants to script asset operations (bulk ops, CI/CD automation)
Prerequisites
Before running any command, verify the CLI is installed and configured:
-
Check if
keycois on PATH:which keyco -
Check configuration:
keyco status -
If either check fails, run the setup script — it handles install + configure in one shot:
bash scripts/setup-keyco.shThe script will:
- Install
@keyco/cliglobally via npm if missing (falling back tosudo npmif needed) - Skip install if already present
- Walk the user through
keyco configureif 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.
- Install
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 configureor 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 statusto 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
- Full CLI command reference
- API scope reference
- Data integrity guidelines
- Keyco docs: https://docs.qrdub.com
- Keyco dashboard: https://dashboard.qrdub.com
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install keyco - 安装完成后,直接呼叫该 Skill 的名称或使用
/keyco触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
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。