$npx -y skills add agentscope-ai/QwenPaw --skill channel_message-enUse this skill to proactively send a one-way message to a user/session/channel, usually only when the user explicitly asks to send to a channel/session or when proactive notification is needed. First query sessions with qwenpaw chats list, then push with qwenpaw channels send.
| 1 | # Channel Message |
| 2 | |
| 3 | ## When to Use |
| 4 | |
| 5 | Use this skill only when the **user explicitly asks you to send a message to a channel/session**, or when you need to **proactively push a notification** (e.g., task completion, reminders, alerts). |
| 6 | This is a **one-way send** — **no reply is returned**. |
| 7 | |
| 8 | ### Should Use |
| 9 | - The user explicitly asks to send to a specific channel/session |
| 10 | - Proactively notifying the user after a task completes |
| 11 | - Scheduled reminders, alerts, or status updates |
| 12 | - Pushing async results back to an existing session |
| 13 | - The user explicitly says "notify me when done" |
| 14 | |
| 15 | ### Should Not Use |
| 16 | - If you are simply replying in the current session, **do not use `qwenpaw channels send`** |
| 17 | - You need a two-way conversation and expect an immediate reply |
| 18 | - You do not know which target session to use |
| 19 | - You are guessing `target-user` or `target-session` |
| 20 | |
| 21 | ## Decision Rules |
| 22 | |
| 23 | 1. **Only use this when the user explicitly asks to send to a channel/session, or proactive notification is needed** |
| 24 | 2. **You must query sessions before sending** |
| 25 | 3. **Do not guess `target-user` or `target-session`** |
| 26 | 4. **If multiple sessions are found, prefer the most recently active one** |
| 27 | 5. **`channel send` is a one-way push — no user reply is returned** |
| 28 | |
| 29 | --- |
| 30 | |
| 31 | ## Most Common Commands |
| 32 | |
| 33 | ### 1) Query available sessions first |
| 34 | |
| 35 | ```bash |
| 36 | qwenpaw chats list --agent-id <your_agent> --channel <channel> |
| 37 | ``` |
| 38 | |
| 39 | You can also filter by user: |
| 40 | |
| 41 | ```bash |
| 42 | qwenpaw chats list --agent-id <your_agent> --user-id <user_id> |
| 43 | ``` |
| 44 | |
| 45 | ### 2) Send a message |
| 46 | |
| 47 | ```bash |
| 48 | qwenpaw channels send \ |
| 49 | --agent-id <your_agent> \ |
| 50 | --channel <channel> \ |
| 51 | --target-user <user_id> \ |
| 52 | --target-session <session_id> \ |
| 53 | --text "..." |
| 54 | ``` |
| 55 | |
| 56 | --- |
| 57 | |
| 58 | ## Minimal Workflow |
| 59 | |
| 60 | ``` |
| 61 | 1. Determine: is the user explicitly requesting a send, or is proactive notification needed? |
| 62 | 2. qwenpaw chats list — query the target session |
| 63 | 3. Extract user_id and session_id from the results |
| 64 | 4. If multiple sessions exist, prefer the most recently active one |
| 65 | 5. qwenpaw channels send — send the message |
| 66 | 6. Done (no reply) |
| 67 | ``` |
| 68 | |
| 69 | --- |
| 70 | |
| 71 | ## Key Rules |
| 72 | |
| 73 | ### Required Parameters |
| 74 | |
| 75 | `qwenpaw channels send` requires all of the following: |
| 76 | - `--agent-id` |
| 77 | - `--channel` |
| 78 | - `--target-user` |
| 79 | - `--target-session` |
| 80 | - `--text` |
| 81 | |
| 82 | ### Must Query First |
| 83 | |
| 84 | Before sending, run: |
| 85 | |
| 86 | ```bash |
| 87 | qwenpaw chats list --agent-id <your_agent> --channel <channel> |
| 88 | ``` |
| 89 | |
| 90 | Extract from the results: |
| 91 | - `user_id` → `--target-user` |
| 92 | - `session_id` → `--target-session` |
| 93 | |
| 94 | If there are multiple candidate sessions, prefer the one with the most recent `updated_at`. |
| 95 | |
| 96 | ### One-Way Push |
| 97 | |
| 98 | `qwenpaw channels send` only sends — it does not wait for a reply. |
| 99 | |
| 100 | --- |
| 101 | |
| 102 | ## Brief Examples |
| 103 | |
| 104 | ### User explicitly asks to send to a channel |
| 105 | |
| 106 | ```bash |
| 107 | qwenpaw chats list --agent-id notify_bot --channel feishu |
| 108 | |
| 109 | qwenpaw channels send \ |
| 110 | --agent-id notify_bot \ |
| 111 | --channel feishu \ |
| 112 | --target-user manager_id \ |
| 113 | --target-session manager_session \ |
| 114 | --text "Weekly report is ready, please review" |
| 115 | ``` |
| 116 | |
| 117 | ### Task completion notification |
| 118 | |
| 119 | ```bash |
| 120 | qwenpaw chats list --agent-id task_bot --channel console |
| 121 | |
| 122 | qwenpaw channels send \ |
| 123 | --agent-id task_bot \ |
| 124 | --channel console \ |
| 125 | --target-user alice \ |
| 126 | --target-session alice_console_001 \ |
| 127 | --text "Task completed" |
| 128 | ``` |
| 129 | |
| 130 | ### Async result push-back |
| 131 | |
| 132 | ```bash |
| 133 | qwenpaw chats list --agent-id analyst_bot --user-id alice |
| 134 | |
| 135 | qwenpaw channels send \ |
| 136 | --agent-id analyst_bot \ |
| 137 | --channel console \ |
| 138 | --target-user alice \ |
| 139 | --target-session alice_console_001 \ |
| 140 | --text "Data analysis is complete. Results saved to report.pdf" |
| 141 | ``` |
| 142 | |
| 143 | --- |
| 144 | |
| 145 | ## Common Mistakes |
| 146 | |
| 147 | ### Mistake 1: Using channel send for a normal reply |
| 148 | |
| 149 | If you are replying to the user in the current session, do not use `qwenpaw channels send`. |
| 150 | |
| 151 | ### Mistake 2: Sending without querying sessions first |
| 152 | |
| 153 | Do not guess `target-user` or `target-session`. First run: |
| 154 | |
| 155 | ```bash |
| 156 | qwenpaw chats list --agent-id <your_agent> --channel <channel> |
| 157 | ``` |
| 158 | |
| 159 | ### Mistake 3: Missing required parameters |
| 160 | |
| 161 | All five are required: `--agent-id`, `--channel`, `--target-user`, `--target-session`, `--text`. |
| 162 | |
| 163 | ### Mistake 4: Expecting a reply from send |
| 164 | |
| 165 | There is no reply. It only pushes the message. |
| 166 | |
| 167 | ### Mistake 5: Picking an arbitrary session when the user has multiple |
| 168 | |
| 169 | Prefer the most recently active session. |
| 170 | |
| 171 | --- |
| 172 | |
| 173 | ## Optional Commands |
| 174 | |
| 175 | ### List all sessions |
| 176 | |
| 177 | ```bash |
| 178 | qwenpaw chats list --agent-id <your_agent> |
| 179 | ``` |
| 180 | |
| 181 | ### List sessions for a specific user |
| 182 | |
| 183 | ```bash |
| 184 | qwenpaw chats list --agent-id <your_agent> --user-id <user_id> |
| 185 | ``` |
| 186 | |
| 187 | ### List available channels |
| 188 | |
| 189 | ```bash |
| 190 | qwenpaw channels list --agent-id <your_agent> |
| 191 | ``` |
| 192 | |
| 193 | --- |
| 194 | |
| 195 | ## Difference from Agent Chat |
| 196 | |
| 197 | - **qwenpaw agents chat**: sends to another agent, two-way |