clawsocial-plugin 1.7.2 → 1.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -10
- package/README.zh.md +4 -10
- package/SKILL.md +76 -67
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,21 +7,15 @@ Claw-Social helps your AI lobster discover and connect with people who share you
|
|
|
7
7
|
### Option 1: OpenClaw Plugin (recommended)
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
openclaw plugins install clawsocial-plugin
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
No configuration needed — just install and restart the gateway:
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
openclaw plugins install clawsocial-plugin
|
|
17
|
-
kill $(lsof -ti:18789) 2>/dev/null; sleep 2; openclaw gateway
|
|
10
|
+
openclaw plugins install clawsocial-plugin@latest
|
|
11
|
+
openclaw gateway restart
|
|
18
12
|
```
|
|
19
13
|
|
|
20
14
|
**Upgrading:**
|
|
21
15
|
|
|
22
16
|
```bash
|
|
23
|
-
openclaw plugins install clawsocial-plugin
|
|
24
|
-
|
|
17
|
+
openclaw plugins install clawsocial-plugin@latest
|
|
18
|
+
openclaw gateway restart
|
|
25
19
|
```
|
|
26
20
|
|
|
27
21
|
Your data (identity, messages, settings) is stored separately and will not be affected by upgrades.
|
package/README.zh.md
CHANGED
|
@@ -7,21 +7,15 @@
|
|
|
7
7
|
### 方式一:OpenClaw 插件(推荐)
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
openclaw plugins install clawsocial-plugin
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
安装完成后无需任何配置,安装后重启 gateway 即可使用:
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
openclaw plugins install clawsocial-plugin
|
|
17
|
-
kill $(lsof -ti:18789) 2>/dev/null; sleep 2; openclaw gateway
|
|
10
|
+
openclaw plugins install clawsocial-plugin@latest
|
|
11
|
+
openclaw gateway restart
|
|
18
12
|
```
|
|
19
13
|
|
|
20
14
|
**升级插件:**
|
|
21
15
|
|
|
22
16
|
```bash
|
|
23
|
-
openclaw plugins install clawsocial-plugin
|
|
24
|
-
|
|
17
|
+
openclaw plugins install clawsocial-plugin@latest
|
|
18
|
+
openclaw gateway restart
|
|
25
19
|
```
|
|
26
20
|
|
|
27
21
|
升级不会影响你的数据(身份、消息、设置),它们存储在独立的目录中。
|
package/SKILL.md
CHANGED
|
@@ -1,94 +1,103 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: claw-social
|
|
3
|
+
description: Social discovery network that helps users find and connect with people who share their interests. Use when the user wants to find people, connect, check messages, generate a profile card, or manage their Claw-Social profile.
|
|
4
|
+
metadata: { "openclaw": { "emoji": "🦞" } }
|
|
5
|
+
---
|
|
6
|
+
|
|
1
7
|
# Claw-Social
|
|
2
8
|
|
|
3
|
-
|
|
9
|
+
The Claw-Social account, profile, card, and messages belong to the user, not the AI agent.
|
|
4
10
|
|
|
5
|
-
|
|
11
|
+
## Registration
|
|
6
12
|
|
|
7
|
-
|
|
13
|
+
Triggers: "register on Claw-Social", "use Claw-Social", or first use of any Claw-Social tool.
|
|
8
14
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
15
|
+
On first use, call `clawsocial_register`. Only ask the user for `public_name`.
|
|
16
|
+
After registration:
|
|
17
|
+
1. Start the Profile Building sequence below
|
|
18
|
+
2. If local files not found, ask the user to describe their interests directly
|
|
19
|
+
3. After profile is set, ask if they want to add or edit tags, intro, or other details
|
|
14
20
|
|
|
15
|
-
|
|
16
|
-
- "find someone who…", "connect me with…", "anyone interested in…"
|
|
17
|
-
- "open my inbox", "any new messages", "check my sessions"
|
|
18
|
-
- "register on Claw-Social", "use Claw-Social"
|
|
21
|
+
## Profile Building (MANDATORY SEQUENCE)
|
|
19
22
|
|
|
20
|
-
|
|
23
|
+
This sequence applies ONLY when building a profile from local files (the `profile` field). For other fields like `self_intro`, `topic_tags`, `public_name`, or `availability`, call `clawsocial_update_profile` directly.
|
|
21
24
|
|
|
22
|
-
|
|
25
|
+
⚠️ WHY: Local files contain private data (real names, companies, locations). The suggest_profile tool strips this. Skipping it risks uploading private information visible to other users.
|
|
23
26
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
-
|
|
30
|
-
|
|
31
|
-
- Pass the user's search intent verbatim as `intro_message` in `clawsocial_connect`; for card-based connections, use "Connected via shared card"
|
|
32
|
-
- When user asks to open inbox or check messages, call `clawsocial_open_inbox` to generate a login link
|
|
27
|
+
```
|
|
28
|
+
Profile Checklist:
|
|
29
|
+
- [ ] Call clawsocial_suggest_profile (reads and strips local files)
|
|
30
|
+
- [ ] Show the COMPLETE draft to the user
|
|
31
|
+
- [ ] Wait for "ok" / "confirmed" / user edits
|
|
32
|
+
- [ ] Call clawsocial_update_profile with confirmed content
|
|
33
|
+
```
|
|
33
34
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
- Include real name, contact info, email, phone, or location in `intro_message`
|
|
37
|
-
- Paraphrase the user's message in `clawsocial_session_send`
|
|
38
|
-
- Call `clawsocial_update_profile` without explicit user confirmation
|
|
35
|
+
NEVER read local files directly and pass content to update_profile.
|
|
36
|
+
NEVER call update_profile with PROFILE data without completing this checklist.
|
|
39
37
|
|
|
40
|
-
|
|
38
|
+
When user describes themselves directly ("I'm a designer interested in AI art"), use `self_intro` field — no checklist needed.
|
|
41
39
|
|
|
42
|
-
|
|
40
|
+
**Direct profile updates (no checklist needed):**
|
|
41
|
+
- "update my intro to: ..." → `self_intro` field
|
|
42
|
+
- "add tags: AI, coding, startup" → `topic_tags` field
|
|
43
|
+
- "change my name to Bob" → `public_name` field
|
|
44
|
+
- "set me to invisible" → `availability` = "closed"
|
|
43
45
|
|
|
44
|
-
|
|
46
|
+
## Finding People
|
|
45
47
|
|
|
46
|
-
|
|
47
|
-
|-------------|------|----------|
|
|
48
|
-
| **Find a specific person** (Retrieval) | `clawsocial_find` | "find Alice", "contact Bob", "find Bob who does AI" |
|
|
49
|
-
| **Discover by interest** (Discovery) | `clawsocial_match` | "find people into AI", "anyone interested in Web3?", "connect me with startup founders" |
|
|
48
|
+
Triggers: "find someone who...", "connect me with...", "anyone interested in..."
|
|
50
49
|
|
|
51
|
-
|
|
50
|
+
| User says | Tool | Example |
|
|
51
|
+
|-----------|------|---------|
|
|
52
|
+
| Specific name | `clawsocial_find` | "find Alice" |
|
|
53
|
+
| Name + context | `clawsocial_find` with interest | "find Bob who does AI" → name="Bob" interest="AI" |
|
|
54
|
+
| Interest/trait | `clawsocial_match` | "find people into AI" |
|
|
55
|
+
| Pastes a card | `clawsocial_connect` | Extract 🔗 ID as target_agent_id — do NOT search by name |
|
|
56
|
+
| Gives an ID | `clawsocial_connect` | Use UUID as target_agent_id directly |
|
|
52
57
|
|
|
53
|
-
|
|
58
|
+
`clawsocial_find` checks local contacts first, then the server.
|
|
54
59
|
|
|
55
|
-
|
|
60
|
+
When showing search results, include for each candidate:
|
|
61
|
+
- **name** and **match score**
|
|
62
|
+
- **self_intro** (their self-description) — separate from match_reason
|
|
63
|
+
- **match_reason** (why they match your search)
|
|
64
|
+
- **topic tags** and **completeness**
|
|
56
65
|
|
|
57
|
-
##
|
|
66
|
+
## Connecting
|
|
58
67
|
|
|
59
|
-
|
|
60
|
-
1.
|
|
61
|
-
2.
|
|
62
|
-
3.
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
6. When user asks to check inbox: call `clawsocial_open_inbox` → return the login link
|
|
68
|
+
Before connecting, ALWAYS:
|
|
69
|
+
1. Show the candidate to the user
|
|
70
|
+
2. Get explicit "yes" / approval
|
|
71
|
+
3. Use user's search intent **verbatim** as `intro_message`
|
|
72
|
+
- Card connection → "Connected via shared card"
|
|
73
|
+
- Direct ID → ask user why they want to connect
|
|
66
74
|
|
|
67
|
-
|
|
68
|
-
1. User: "find Alice" / "contact Bob"
|
|
69
|
-
2. Call `clawsocial_find` with `name` = the person's name
|
|
70
|
-
3. If found, show results; if user wants to connect → call `clawsocial_connect`
|
|
75
|
+
NEVER include real names, contact info, or locations in intro_message.
|
|
71
76
|
|
|
72
|
-
|
|
73
|
-
1. User: "find Bob who does AI"
|
|
74
|
-
2. Call `clawsocial_find` with `name="Bob"` and `interest="AI"` for disambiguation
|
|
77
|
+
After connecting, tell the user they can open the inbox to chat.
|
|
75
78
|
|
|
76
|
-
|
|
77
|
-
1. User pastes a Claw-Social card and expresses intent to connect
|
|
78
|
-
2. Extract the UUID from the 🔗 ID line — do NOT search by name
|
|
79
|
-
3. Call `clawsocial_connect` with `target_agent_id` = the UUID, `intro_message` = "Connected via shared card"
|
|
80
|
-
Note: The 🔗 ID on the card is the `target_agent_id` parameter.
|
|
79
|
+
## Blocking
|
|
81
80
|
|
|
82
|
-
|
|
83
|
-
1. User provides an ID (UUID) directly and asks to connect
|
|
84
|
-
2. Call `clawsocial_connect` with `target_agent_id` = the UUID
|
|
81
|
+
"block this person" → call `clawsocial_block`. This is irreversible — the other user will no longer be able to contact or find the user.
|
|
85
82
|
|
|
86
|
-
|
|
83
|
+
## Messages
|
|
84
|
+
|
|
85
|
+
Triggers: "open my inbox", "any new messages", "check my sessions"
|
|
86
|
+
|
|
87
|
+
**Checking messages:**
|
|
88
|
+
- Call `clawsocial_open_inbox` to generate a server inbox login link (15 min, any device)
|
|
89
|
+
- Call `clawsocial_open_local_inbox` to start a local inbox with full message history (this machine only)
|
|
90
|
+
|
|
91
|
+
**Viewing a conversation:**
|
|
92
|
+
- "show me my chat with Alice" → call `clawsocial_session_get` with partner_name
|
|
93
|
+
- Can also use session_id directly
|
|
94
|
+
|
|
95
|
+
**Sending a message:**
|
|
96
|
+
- "tell Bob: see you tomorrow" → call `clawsocial_session_send` with the user's message
|
|
97
|
+
- NEVER paraphrase — forward the user's message verbatim
|
|
87
98
|
|
|
88
|
-
##
|
|
99
|
+
## Profile Card
|
|
89
100
|
|
|
90
|
-
|
|
101
|
+
Triggers: "generate my card", "share my card", "show my Claw-Social card"
|
|
91
102
|
|
|
92
|
-
|
|
93
|
-
2. **Local inbox** — user types `/clawsocial-inbox` to list unread sessions (zero token cost)
|
|
94
|
-
3. **Local web UI** — user types `/clawsocial-inbox web` to open full message history at localhost
|
|
103
|
+
Call `clawsocial_get_card` to generate the user's profile card. The card represents the user, not the AI agent. Display the card text exactly as returned — do not reformat or summarize. Share it so the user can send it to others.
|