wecom-session-control SKILL.md skillB
wecom-session-control from cakcode/connect2cli-bridge is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add cakcode/connect2cli-bridge/wecom-session-control@git:20261020.59bc834Pins git:20261020.59bc834 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- B, 16 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- cakcode/connect2cli-bridge
- Path
relate-skills/wecom-session-control/SKILL.md- Versions recorded
- 2
- Latest version
- git:20261020.59bc834, committed Oct 20, 2026
- First version recorded
- May 9, 2026
- Size
- 3,856 bytes
- Repository stars
- 39
- License
- none declared
当前运行环境是企业微信智能机器人桥接模式。用户如果要求“停止当前任务”“中断这次执行”“新建会话”“重置会话”“清掉当前上下文”,应调用 bridge 提供的 session 管理 API,只操作当前 chat 对应的 session。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# 企业微信会话控制
## Description
当前运行环境是企业微信智能机器人桥接模式。你可以控制当前会话的运行状态,包括:
- 中断当前正在跑的任务,但保留上下文
- 新建 session 并保留旧上下文,或者原地重置当前 session
这类操作只影响当前 `chatKey` 对应的 session,不影响其他人的会话。
## Rules
- 只能操作当前 BridgeContext 里的 `chatKey` / `sessionId`
- 不要去中断别人的会话
- 优先使用当前 BridgeContext 里的 `sessionId`
- new/reset 会同时取消当前 chat 对应的本地文件回传请求;取消结果以当前会话为范围
- 如果当前 Codex 运行在 sandbox 中,不要直接访问 localhost API
- 只有在宿主机模式或外部控制器环境下,才使用 bridge API
- 只在用户明确表达“停止、取消、新建会话、清空当前会话”时使用
- 回复用户时只说结果,不暴露 URL、curl、JSON 或内部实现
## 调用方式
当前技能默认是“会话控制意图说明”技能,不强制在 sandbox 内直接调用 API。
如果当前运行环境允许直接访问 bridge API,例如:
- `CODEX_EXEC_MODE=host`
- 或者当前动作由外部控制器执行
才使用下面的 API 示例。
## API 示例
中断当前任务,但保留 thread 上下文:
```bash
python3 - <<'PY'
import json, urllib.parse, urllib.request
bots = json.loads(urllib.request.urlopen('http://127.0.0.1:9299/api/bots').read().decode())
chat_key = "single:userid"
bot = next((b for b in bots if any(s.get("key") == chat_key for s in b.get("sessions", []))), None)
if not bot:
raise SystemExit("bot/session not found")
chat_key_encoded = urllib.parse.quote(chat_key, safe='')
url = f"http://127.0.0.1:9299/api/bots/{bot['id']}/sessions/{chat_key_encoded}/interrupt"
…Read the whole file at its exact version.
How to install
mdr add cakcode/connect2cli-bridge/wecom-session-control@sha256:56d8f0ea1e547563The line at the top of this page pins the label git:20261020.59bc834, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_wl4nxa3qb3dlxcnz)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 2 versions of this file, between May 9, 2026 and Oct 20, 2026, about one every 164 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261020.59bc834 latest | 2026-10-20 | 59bc834 | 3,856 B | B | view · diff |
| git:20260509.9be671e | 2026-05-09 | 9be671e | 3,445 B | B | view |
Audit of the latest version
- fail: No link to a raw IP address (matched: http://127.0.0.1:9299)
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (3856 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No script tag
Starting a new one? Use a template for SKILL.md on mdpantry, which passes every one of these checks and says what to change in it.
Source
cakcode/connect2cli-bridge · 39 stars · license none declared · pushed 2026-10-21 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_wl4nxa3qb3dlxcnz GET https://markdownregistry.com/api/v1/resolve?ref=cakcode/connect2cli-bridge/wecom-session-control GET https://markdownregistry.com/api/v1/blob/56d8f0ea1e547563c61bf41922d1c944151291cf419806870c35d4400b06bf81
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.