当前位置: 首页 > Skill >

@identyclaw/identyclaw-skill

@identyclaw/identyclaw-skill

@identyclaw/identyclaw-skill

ClawHub skill bundle for IdentyClaw agent workflows

1.2.2 2026.11.24 892
获取Skill文件查看使用说明
作 者:许安 许可证: 更新时间:2026.11.24
本文目录展开

IdentyClaw

Base URL: https://api.identyclaw.com

IdentyClaw is an HTTP API for IdentyClaw Passport holders and the HOLA mutual authentication protocol. Most agent work needs a JWT (login) and POST /api/identity/verify (validate any inbound HOLA in one call). Deep protocol detail lives in bundled references/; this file is the runnable cheat sheet.

Live docs: MCP doc:discovery (index) · doc:skills (cheat sheet) · curl https://api.identyclaw.com/api/mcp/resource/doc:skills

ClawHub (published): identyclaw/identyclaw · OpenClaw plugin

Credentials (ClawHub “API key required” badge)

ClawHub shows a generic API key required badge when a skill needs a user-supplied credential. For IdentyClaw, that credential is your IdentyClaw Passport — not a separate vendor API key.

What you configure Role (API-key analogy)
Passport signing key (accountid + nearPrivateKey, or IDENTYCLAW_ACCOUNT_ID + IDENTYCLAW_NEAR_PRIVATE_KEY) Your long-lived secret — configure once in OpenClaw, like skills.entries.*.apiKey
JWT (jwt_token from POST /api/login) Short-lived session token (~1 hour); plugin obtains and refreshes it from the Passport key
Public routes (GET /api/agents, MCP docs) No Passport needed

OpenClaw setup (recommended): put Passport material in plugin config — never paste keys into chat:

{
  plugins: {
    entries: {
      "identyclaw-tools": {
        enabled: true,
        config: {
          baseUrl: "https://api.identyclaw.com",
          accountid: "<64-char-hex-near-implicit-account>",
          nearPrivateKey: "ed25519:..."
        }
      }
    }
  }
}

Enroll or mint a Passport first if you do not have one — see references/login-authentication.md. HOLA signing always uses your Passport key locally; the API never holds it.

Install and entry points

Skill (workflows):     openclaw skills install clawhub:identyclaw
Plugin (tools):        openclaw plugins install clawhub:@identyclaw/openclaw-identyclaw-plugin
MCP (docs):            https://api.identyclaw.com/mcp
Discovery index:       doc:discovery
Cheat sheet:           doc:skills

Agent cheat sheet

Protected routes need Authorization: Bearer <jwt_token> from POST /api/login. Field name is jwt_token. JWT lasts ~1 hour; HOLA nonces last ~5 minutes — fetch a new nonce immediately before each HOLA you sign.

# Goal Method Auth
1 Get JWT GET /api/login/timestamp → sign → POST /api/login No
2 Create outbound HOLA identyclaw_create_hola or @identyclaw/hola-client JWT + local key
3 Verify peer HOLA POST /api/identity/verify JWT
4 Resolve Passport → full DN GET /api/identity/token/{tokenId}/full JWT
5 List public agents GET /api/agents?limit=20 No
6 Resolve DID GET /.well-known/did/resolve?did=did:rodit:{tokenId} JWT

1. Login (get JWT)

BASE=https://api.identyclaw.com

TS_JSON=$(curl -sS "$BASE/api/login/timestamp")
TIMESTAMP=$(echo "$TS_JSON" | jq -r '.timestamp')
TIMESTAMP_ISO=$(echo "$TS_JSON" | jq -r '.timestamp_iso')

# Sign UTF-8 bytes of: <accountid> + <timestamp_iso> (no separator)
# → base64url_signature with your NEAR/Passport Ed25519 key

JWT=$(curl -sS -X POST "$BASE/api/login" 
  -H "Content-Type: application/json" 
  -d "{"accountid":"<64-char-hex>","timestamp":$TIMESTAMP,"base64url_signature":"<sig>"}" 
  | jq -r '.jwt_token')

Full signing steps: references/login-authentication.md.

2. Create outbound HOLA

Recommended: OpenClaw identyclaw_create_hola (plugin v1.3.0+) or @identyclaw/hola-client — JWT fetches nonce; private key signs locally (never sent to API).

Manual fallback: GET /api/holanonce16ts → sign uppercase canonical line → POST /api/testhola to self-test.

HOLA/<recipient>/<tokenId>/<timestamp>/<noncetsHex>/API.IDENTYCLAW.COM/<base32-signature>/<checksum>

Walkthrough: references/hola-howto.md. Spec: references/hola-agent-authentication.md.

3. Verify an incoming HOLA (most important)

One call validates format, checksum, freshness, nonce replay, token existence/active, and on-chain signature. Do not trust local crypto alone — wait for verified: true.

curl -sS -X POST https://api.identyclaw.com/api/identity/verify 
  -H "Authorization: Bearer $JWT" 
  -H "Content-Type: application/json" 
  -d '{"hola":"HOLA/MUNDO/<peerTokenId>/...","expectedRecipient":"MUNDO"}'

Optional: expectedRecipient suppresses RECIPIENT_MISMATCH; constraints.maxAgeMs sets freshness window. Same fields on /api/testhola.

Trust only when verified: true. Diagnostics: references/hola-agent-authentication.md.

4. Resolve tokenId → full identity

curl -sS "https://api.identyclaw.com/api/identity/token/<tokenId>/full" 
  -H "Authorization: Bearer $JWT"

Public browse (no JWT): GET /api/agents?limit=20&cursor=... — then use /full per candidate. Patterns: references/finding-agents.md.

5. Discover agents (public)

curl -sS "https://api.identyclaw.com/api/agents?limit=20"

First contact from an unknown agent

  1. Login — obtain your JWT (cheat sheet §1).
  2. Verify — POST /api/identity/verify with the exact HOLA string received.
  3. If verified: true — note peerTokenId (12-letter Passport ID).
  4. Lookup — GET /api/identity/token/{peerTokenId}/full for DN, contactUri, traits (self-declared).
  5. Impersonation guard — compare peerTokenId to the Passport ID the entity officially publishes on channels they control. If the verified peerTokenId is not the same ID the entity officially publishes, reject them as that entity, even though HOLA verification succeeded. See references/finding-agents.md.
  6. Subagent only — if the line includes delegation fields, also call POST /api/isauthorizedsigner. See references/hola-subagent-authentication.md.
VERIFY=$(curl -sS -X POST "$BASE/api/identity/verify" 
  -H "Authorization: Bearer $JWT" 
  -H "Content-Type: application/json" 
  -d "$(jq -n --arg h "$PEER_HOLA" '{hola:$h}')")

if [ "$(echo "$VERIFY" | jq -r '.verified')" = "true" ]; then
  TOKEN=$(echo "$VERIFY" | jq -r '.peerTokenId')
  curl -sS "$BASE/api/identity/token/$TOKEN/full" -H "Authorization: Bearer $JWT"
fi

DID resolution

curl -sS "https://api.identyclaw.com/.well-known/did/resolve?did=did:rodit:<tokenId>" 
  -H "Authorization: Bearer $JWT"

Spec: references/did-rodit-method.md.

OpenClaw plugin (recommended for Gateways)

Install the matching plugin so the agent calls typed tools instead of hand-rolled curl on every turn:

openclaw plugins install clawhub:@identyclaw/openclaw-identyclaw-plugin
Tool Auth Purpose
identyclaw_list_agents Public Paginated agent discovery
identyclaw_list_resources Public MCP-style doc catalog
identyclaw_get_resource Public Fetch one doc by URI
identyclaw_get_my_identity JWT (optional) Caller Passport profile
identyclaw_get_nonce JWT (optional) Fresh HOLA nonce
identyclaw_create_hola JWT + local key (optional) Build/sign outbound HOLA (key stays on Gateway)
identyclaw_verify_hola JWT (optional) Verify peer HOLA (hola, optional expectedRecipient, maxAgeMs)
identyclaw_get_agent_identity JWT (optional) Full DN + contactUri for a peer
identyclaw_check_subagent_signer JWT (optional) Delegation check after subagent verify
identyclaw_resolve_did JWT (optional) DID document for peer

Configure baseUrl, accountid, and nearPrivateKey under plugins.entries.identyclaw-tools.config. Enable optional tools in tools.allow when credentials are configured. Plugin v1.3.0+ required for identyclaw_create_hola.

ClawHub skill (this bundle): openclaw skills install clawhub:identyclaw

Bundled references

Topic File
Endpoint catalog references/api-reference.md
Login + MITM notes references/login-authentication.md
HOLA quick path references/hola-howto.md
HOLA full spec references/hola-agent-authentication.md
Subagent delegation references/hola-subagent-authentication.md
Nonce JSON shape references/holanonce-api.md
Agent discovery references/finding-agents.md
Email outreach references/inter-agent-communication.md
Collaboration envelope references/collaboration-envelope.md
OpenClaw webhooks references/openclaw-integration-guide.md
DID method references/did-rodit-method.md
Token metadata references/token-metadata.md
Client-side auth patterns references/mcp-auth-tools.md
MCP discovery index references/mcp-discovery-index.md

Conventions

Terminology: User-facing copy says IdentyClaw Passport (12-letter ID). RODiT is the underlying protocol technology only — do not say "RODiT Passport."

Two clocks:

Clock TTL Used for
JWT session ~1 hour Bearer on protected routes
HOLA nonce ~5 minutes Timestamp + nonce inside each HOLA line

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,016
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,004
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,002
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,001
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,001
PHP集成RabbitMQ实现消息队列的完整步骤

使用 php-amqplib 库,通过建立连接、声明交换机与队列并绑定,即可在 PHP 中实现消息的发送与消费。

2026.05.24 1,001
Skill 文件
  • SKILL.md
    • IdentyClaw
    • Credentials (ClawHub “API key required” badge)
    • Install and entry points
    • Agent cheat sheet
      • 1. Login (get JWT)
      • 2. Create outbound HOLA
      • 3. Verify an incoming HOLA (most important)
      • 4. Resolve tokenId → full identity
      • 5. Discover agents (public)
    • First contact from an unknown agent
    • DID resolution
    • OpenClaw plugin (recommended for Gateways)
    • Bundled references
    • Conventions
  • 项目或源文件

相关 Skill

更多
IFQ App Builder IFQ App Builder Use this OpenClaw / ClawHub skill when the user wants to turn three ordinary sentences into a verified build-ready prompt bundle for a real app: PC desktop, macOS, Windows, iOS, Android, HarmonyOS, WeChat MiniProgram, self-hosted local web, PWA, or CLI. It routes to one of 12 platform modes, forks a prompt template, fills acceptance / packaging / security / IFQ ambient requirements, and verifies the bundle without installing platform SDKs. Do not use for visual-only design deliverables, SEO page
Skill Bundle Skill Bundle 自主式 AI 视频编辑器——能端到端规划和执行自然语言视频编辑,支持病毒式短视频、自动字幕、竖屏 9:16 重构。
Publish Checklist Publish Checklist 对外发布前审查清单。发布 ClawHub skill、提交 GitHub PR/Issue、发帖、发邮件、任何公开内容前必须加载此 skill 并逐项检查。
MimoTtsAsr26Free MimoTtsAsr26Free ClawHub Skill vs 官方 MiMo V2.5 TTS 差异分析 官方提供的是"模型能力",本 Skill 提供的是"工程化产品"——防限流、长文本分句、edge-tts 兜底、缓存、重试,这些生产环境必须但官方不提供的东西,全在这了。官方是引擎,本 Skill 是整车。 维度 本 Skill 官方 三合一封装 一个脚本统一调用 3 款 TTS 模型 只给 API,不给封装脚本 edge-tts 兜底 无 Key 自动降级到免费 TTS 无降级方案 防限流 随机延迟 + 并发控制 无客户端限流策略 长文本分句 120 字/段自动切分 不处理长文本 音频缓存 相同文本秒返,零消耗 无缓存 异常重试 502/503/timeout 自动重试 不处理 文本预处理 数字/符号/格式自动规范化 不处理 ASR 封装 asr.py 封装(需 GPU 或等云端开放) 只开源模型,不给脚本 联合工作流 TTS + ASR 串联示例 无工作流文档 开源方案指南 edge-tts/ChatTTS/GPT-SoVITS 等推荐 无 批量合成 --file 逐行读取批量处理 无 格式自动检测
jhskill jhskill 姜胡说 SkillHub 根入口。Use when installing or invoking the packaged Jiang Hushuo / 姜胡说 skill bundle for ordinary people making money and growing. Defaults to IMA knowledge base "姜胡说Ai知识库|普通人赚钱与成长" and routes users to $jhs, $jhs-ima, $jhs-learning-map, $jhs-content, $jhs-writing, or $jhs-practice.