技能详情(站内镜像,无评论)
许可证:MIT-0
MIT-0 ·免费使用、修改和重新分发。无需归因。
版本:v1.1.0
统计:⭐ 0 · 207 · 0 current installs · 0 all-time installs
⭐ 0
安装量(当前) 0
🛡 VirusTotal :良性 · OpenClaw :良性
Package:abstrct/structs-diplomacy
安全扫描(ClawHub)
- VirusTotal :良性
- OpenClaw :良性
OpenClaw 评估
The skill is an instruction-only helper for the structsd CLI and its required commands align with the described purpose, but the packaging omits an explicit requirement for the structsd binary and does not state how signing keys are provided—which are important operational details to verify before use.
目的
The name and description match the instructions: all commands are structsd queries or transactions for permission and address management in Structs. However, the skill does not declare that the structsd binary is required even though every command uses it; that omission is inconsistent with the skill's stated purpose. Also, TX_FLAGS include '--from [key-name]' and signing proofs, which implies access to local keys/keyring—even though key acces…
说明范围
SKILL.md stays on-topic: it lists explicit query and tx commands, verification steps, and error cases. It does not instruct the agent to read arbitrary files, exfiltrate data, or contact unexpected endpoints. The only scope concern is that the instructions perform state-changing transactions (grant/revoke/set) and require signing authority—behave accordingly.
安装机制
This is instruction-only with no install spec or code to write to disk, which minimizes installer risk. There are no download URLs or packages to evaluate.
证书
The skill declares no environment variables or credentials, which is consistent with being instruction-only. However, its transactional commands implicitly require signing credentials (local key names passed via '--from' and address proof signatures). The skill does not document where these keys must exist or how they are managed, which is an operational gap the user should verify.
持久
always is false and the skill does not request persistent installation or modify other skills or system-wide config. Autonomous invocation is allowed (platform default) but not combined with other red flags.
综合结论
This skill is a straightforward CLI cheat-sheet for the structsd tool and appears coherent, but before using it: ensure you have the official structsd binary installed and trust its source; confirm which local keyring or key names you'll use with '--from' (don’t provide private keys to untrusted code); test query commands first (read-only) before running any tx commands that change permissions; verify you're pointed at the correct network/chai…
安装(复制给龙虾 AI)
将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。
请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「Structs Diplomacy」。简介:Handles permissions, address management, and inter-player coordination in Struc…。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/abstrct/structs-diplomacy/SKILL.md
(来源:yingzhi8.cn 技能库)
SKILL.md
---
name: structs-diplomacy
description: Handles permissions, address management, and inter-player coordination in Structs. Use when granting or revoking permissions on objects, registering new addresses, managing multi-address accounts, delegating authority to other players, or setting up address-level access control.
---
# Structs Diplomacy
**Important**: Entity IDs containing dashes (like `3-1`, `4-5`) are misinterpreted as flags by the CLI parser. All transaction commands in this skill use `--` before positional arguments to prevent this.
## Procedure
1. **Query permissions** — `structsd query structs permission [id]`, `permission-by-object [object-id]`, `permission-by-player [player-id]`.
2. **Grant on object** — `structsd tx structs permission-grant-on-object TX_FLAGS -- [object-id] [player-id] [permissions]`. Permissions are additive.
3. **Revoke on object** — `structsd tx structs permission-revoke-on-object -- [object-id] [player-id] [permissions]`.
4. **Set on object** — `structsd tx structs permission-set-on-object -- [object-id] [player-id] [permissions]` — clears existing and applies new set.
5. **Address-level permissions** — `structsd tx structs permission-grant-on-address -- [address] [permissions]`, `permission-revoke-on-address -- [address] [permissions]`, `permission-set-on-address -- [address] [permissions]`.
6. **Address management** — Register: `structsd tx structs address-register TX_FLAGS -- [player-id] [address] [proof-pubkey] [proof-signature] [permissions]`. Revoke: `structsd tx structs address-revoke -- [address]`. Update primary: `structsd tx structs player-update-primary-address -- [player-id] [new-address]`.
## Commands Reference
| Action | Command |
|--------|---------|
| Grant on object | `structsd tx structs permission-grant-on-object -- [object-id] [player-id] [permissions]` |
| Revoke on object | `structsd tx structs permission-revoke-on-object -- [object-id] [player-id] [permissions]` |
| Set on object | `structsd tx structs permission-set-on-object -- [object-id] [player-id] [permissions]` |
| Grant on address | `structsd tx structs permission-grant-on-address -- [address] [permissions]` |
| Revoke on address | `structsd tx structs permission-revoke-on-address -- [address] [permissions]` |
| Set on address | `structsd tx structs permission-set-on-address -- [address] [permissions]` |
| Address register | `structsd tx structs address-register -- [player-id] [address] [proof-pubkey] [proof-sig] [permissions]` |
| Address revoke | `structsd tx structs address-revoke -- [address]` |
| Update primary address | `structsd tx structs player-update-primary-address -- [player-id] [new-address]` |
**TX_FLAGS**: `--from [key-name] --gas auto --gas-adjustment 1.5 -y`
| Query | Command |
|-------|---------|
| Permission by ID | `structsd query structs permission [id]` |
| Permission by object | `structsd query structs permission-by-object [object-id]` |
| Permission by player | `structsd query structs permission-by-player [player-id]` |
| Address | `structsd query structs address [address]` |
| Addresses by player | `structsd query structs address-all-by-player [player-id]` |
## Verification
- **Permission**: `structsd query structs permission-by-object [object-id]` — list players with access.
- **Address**: `structsd query structs address [address]` — verify registration, player link.
- **Player addresses**: `structsd query structs address-all-by-player [player-id]` — all linked addresses.
## Error Handling
- **Permission denied**: Signer lacks permission on object. Check `permission-by-object` for current grants.
- **Address already registered**: Use `address-revoke` first, or link to different player.
- **Invalid proof**: Address registration requires valid proof pubkey and signature. Verify auth flow.
- **Object not found**: Object ID may be stale. Re-query to confirm entity exists.
## See Also
- [knowledge/entities/entity-relationships](https://structs.ai/knowledge/entities/entity-relationships) — Object types and IDs
- [protocols/authentication](https://structs.ai/protocols/authentication) — Auth for address registration