cwf20266706

Guidance for implementing OpenWeCom (enterprise WeChat) conversation entry points, copy-ID and dial-entry on customer or opportunity cards; used when users need enterprise-WeChat contact or one-click OpenWeCom access, and does not cover bypassing or cracking OpenWeCom.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "cwf20266706" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-bb934846cd3f2f9b384ea702ae04ee73762a940f8c1056db9dededa5d7482dc5. Verify the upstream source and version against https://skillhub.cn/skills/user_f1b049da/cwf20266706 before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Guidance for implementing OpenWeCom (enterprise WeChat) conversation entry points, copy-ID and dial-entry on customer or opportunity cards; used when users need enterprise-WeChat contact or one-click OpenWeCom access, and does not cover bypassing or cracking OpenWeCom.

0 Downloads

Introduction source: third_party · user_f1b049da · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: cwf20266706
slug: cwf20266706
displayName: 企微联系助手
version: 1.0.0
summary: 客户/商机卡片上一键企微会话、复制企微ID、拨号的前端协作手册。
license: MIT
description: 指导在客户/商机卡片上实现企微会话、复制ID与拨号入口。当用户要企微联系助手、openWeComContact、一键企微时使用。不教破解企微。

企微联系助手

灵感:能力工具箱 workwx-contact(workWxContact / 企微侧能力)。

小四原创:卡片三按钮——开聊 / 复制ID / 拨号;依赖用户已绑定 workwxWechatId 与合法 JS-SDK/桥接。禁止伪造会话、禁止绕过企微安全策略。

何时使用

  • 商机/客户列表要「一键找负责人企微」
  • 未绑定要友好提示,勿空白报错
  • 与拨号、复制 ID 并排放

硬约束

  1. 无 workwxWechatId(或等价字段)→ 禁用开聊,提示「未绑定企微」。
  2. 开聊走项目已有桥接(如 openWeComContact(id, opts?)),不在 Skill 内伪造 SDK。
  3. 复制 ID 用 Clipboard API,失败则选中文本兜底。
  4. 拨号用 tel: 链接;无手机号则隐藏。
  5. 实现要点注释标 小四原创。
  6. 仅在企微/已授权 Web 环境承诺完整能力;普通浏览器降级说明。

推荐实现

export type ContactCard = {
  workwxWechatId?: string
  mobile?: string
  name?: string
}

// 小四原创:是否可开聊
export function canOpenWorkWx(c: ContactCard) {
  return Boolean(String(c.workwxWechatId || '').trim())
}

// 小四原创:复制企微 ID
export async function copyWorkWxId(id: string) {
  const text = String(id || '').trim()
  if (!text) throw new Error('无企微 ID')
  try {
    await navigator.clipboard.writeText(text)
  } catch {
    const ta = document.createElement('textarea')
    ta.value = text
    document.body.appendChild(ta)
    ta.select()
    document.execCommand('copy')
    ta.remove()
  }
}

// 小四原创:拨号
export function dialMobile(mobile: string) {
  const m = String(mobile || '').replace(/\s/g, '')
  if (!m) throw new Error('无手机号')
  window.location.href = `tel:${m}`
}

/**
 * 开聊:注入项目桥接,勿在此实现私有协议
 * openWeComContact(wechatId, { cardElement? })
 */
export type OpenWeCom = (wechatId: string, opts?: { cardElement?: HTMLElement }) => void | Promise<void>

Agent 步骤

  1. 卡片加三按钮;按字段显隐。
  2. 开聊调用仓库已有 openWeComContact(或团队封装)。
  3. Toast:已复制 / 未绑定 / 非企微环境。
  4. 自测:有 ID、无 ID、复制成功、tel 链接。

不要做

  • 抓包伪造企微登录态。
  • 批量骚扰开聊。

附加

Current listing version

1.0.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value82/100

Highlights

  • 解决客户/商机卡片上一键企微会话、复制ID与拨号的实际业务痛点
  • 具备明确的前端协作指导价值,适用于通用业务场景
Trigger Precision88/100

Highlights

  • 触发词精准覆盖企微联系助手、openWeComContact、一键企微等核心场景
  • 边界清晰,不易误触或漏触
Structure and Standards85/100

Areas to improve

  • Document is too long Reported severity: Minor

    SKILL.md 总行数超过500行(含代码块),建议适当精简或拆分

    Recommendation: 可将部分代码示例移至 templates/usage.md 或 reference.md,保持主文档简洁

Highlights

  • 结构完整,含何时使用、硬约束、推荐实现、Agent 步骤等关键章节
  • frontmatter 完整,有端到端代码示例与执行出口条件
Execution Reliability90/100

Highlights

  • 依赖项目已有桥接 openWeComContact,不伪造 SDK,符合安全规范
  • 覆盖主要异常场景(无ID、复制失败兜底、拨号校验),有 Toast 提示机制
Evidence Verifiability (mean of the first four)86/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.