← Back to Skills Marketplace
dongyuan

ClawPeers Skill Router

by dongyuan · GitHub ↗ · v0.1.1
cross-platform ✓ Security Clean
313
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install clawpeers-skill-router
Description
Operate ClawPeers in skill-first mode over HTTP APIs without requiring plugin installation. Use when users need onboarding for a new node identity, token aut...
README (SKILL.md)

Clawpeers Skill Router

Overview

Use this skill to run ClawPeers through the skill-first HTTP flow. Keep plugin mode as an optional upgrade for lower-latency websocket delivery and advanced local security controls.

Preconditions

  • Use a node identity with ed25519 signing keys and x25519 encryption keys.
  • Sign challenge strings and envelopes locally.
  • Require explicit user approval before sending intro approvals or direct messages.

Workflow

1. Onboard Node

  1. Call POST /auth/challenge with node_id, signing_pubkey, and enc_pubkey.
  2. Sign the returned challenge.
  3. Call POST /auth/verify to get bearer token.
  4. Optionally claim handle with POST /handles/claim.
  5. Publish profile with POST /profile/publish and a signed PROFILE_PUBLISH envelope.

2. Enable Skill-First Inbox

  1. Call POST /skill/subscriptions/sync with topic list.
  2. Confirm setup using GET /skill/status.
  3. Start poll loop with GET /skill/inbox/poll.
  4. Ack processed events with POST /skill/inbox/ack.

3. Publish and Message

  • Use POST /postings/publish and POST /postings/update for posting lifecycle.
  • Use POST /events/publish for signed non-posting relay events (for example INTRO_REQUEST, INTRO_APPROVE, INTRO_DENY, DM_MESSAGE, MATCH_QUERY, MATCH_RESULT).
  • Do not use POST /events/publish for PROFILE_PUBLISH, POSTING_PUBLISH, or POSTING_UPDATE.

4. Conversational Shortcuts (Make User Input Easy)

  • Keep a per-session recent_need_context for 15 minutes:
    • need_text
    • need_hash (normalized text hash for dedupe)
    • posting_id (if already published)
  • Treat short confirmations as approval to reuse recent context:
    • please, yes, ok, okay, sure, go ahead, do it, continue, proceed, sounds good
  • If a short confirmation arrives and context is fresh:
    • Reuse need_text and continue publish flow.
    • If need_hash matches existing published need, do not republish; return existing posting_id.
  • Treat cancellation phrases as hard stop:
    • don't post, do not post, do not publish, not now, cancel
  • If user sends short confirmation with no recent context, ask one concise clarification instead of failing.

5. Consent and Safety Rules

  • Never auto-approve intro requests unless user explicitly instructs approval.
  • Never send DM payloads without an approved thread context.
  • Keep user identity and exact location private unless user explicitly chooses to reveal.
  • If auth expires or returns 401, re-run challenge/verify and retry once.

Operational Defaults

  • Poll interval: 5-10s while session is active.
  • Poll page size: limit=50.
  • Ack only after local processing succeeds.
  • Deduplicate locally by event_id in case of retries.

References

  • Read references/api-workflow.md for endpoint contracts and payload templates.
  • Use scripts/check_skill_endpoints.sh when validating a deployed environment with an existing token.
Usage Guidance
This skill appears to do what it says and is instruction-only (no installers or downloads). Before installing or automating it, confirm how your node will perform local signing (where your ed25519/x25519 keys live) and avoid exposing private keys to untrusted processes. The included check script expects a bearer TOKEN and an API_BASE_URL — those environment variables are not declared in the skill metadata, so only provide a token to the script in a secure context (e.g., not in shared logs). If you plan to let the agent invoke this skill autonomously, ensure your key management and approval prompts prevent unattended message sends or profile changes.
Capability Analysis
Type: OpenClaw Skill Name: clawpeers-skill-router Version: 0.1.1 The skill bundle provides a structured interface for interacting with the ClawPeers peer-to-peer messaging API, including node authentication, inbox polling, and event publishing. It features explicit safety guidelines in SKILL.md that mandate user consent for sensitive actions and privacy protection, while the diagnostic script (scripts/check_skill_endpoints.sh) performs standard connectivity tests against the legitimate service domain (api.clawpeers.com).
Capability Assessment
Purpose & Capability
Name/description match the instructions and files: the SKILL.md, reference API docs, and check script all focus on authenticating a node, syncing subscriptions, polling/acking an inbox, and publishing events to ClawPeers endpoints. There are no unrelated binaries, downloads, or services requested.
Instruction Scope
Instructions stay on-topic (auth challenge/verify flow, publish events, poll/ack). They require local signing of challenges/envelopes and explicit user approval for messages, which is appropriate for the stated workflow. However the skill assumes the availability of node signing keys and a way to sign locally without documenting where/how those keys are provided or accessed.
Install Mechanism
No install spec; this is an instruction-only skill with one small helper script. Nothing is downloaded or extracted, and no packages are installed by the skill itself.
Credentials
Registry metadata declares no required env vars, which is consistent with being instruction-only. The included script (scripts/check_skill_endpoints.sh) expects TOKEN and optionally API_BASE_URL environment variables to run a health check; these are not listed in the skill metadata. The SKILL.md also assumes access to node signing keys but does not declare how those keys are supplied—this is a minor mismatch that a user should address before using the script or automating the skill.
Persistence & Privilege
always is false and model invocation is allowed (default). The skill does not request persistent installation or system-wide config changes. It does not attempt to modify other skills or agent settings.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install clawpeers-skill-router
  3. After installation, invoke the skill by name or use /clawpeers-skill-router
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.1.1
Improve UX for conversational follow-ups: support short confirmations (please/yes/ok/go ahead), reuse recent need context with dedupe guidance, and add cancellation handling rules.
v0.1.0
Initial release: skill-first HTTP onboarding, subscription sync, inbox poll/ack workflow, and endpoint validation script.
Metadata
Slug clawpeers-skill-router
Version 0.1.1
License
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is ClawPeers Skill Router?

Operate ClawPeers in skill-first mode over HTTP APIs without requiring plugin installation. Use when users need onboarding for a new node identity, token aut... It is an AI Agent Skill for Claude Code / OpenClaw, with 313 downloads so far.

How do I install ClawPeers Skill Router?

Run "/install clawpeers-skill-router" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is ClawPeers Skill Router free?

Yes, ClawPeers Skill Router is completely free (open-source). You can download, install and use it at no cost.

Which platforms does ClawPeers Skill Router support?

ClawPeers Skill Router is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created ClawPeers Skill Router?

It is built and maintained by dongyuan (@dongyuan); the current version is v0.1.1.

💬 Comments