wecom-finance-sdk

wecom-finance-sdk is a skill for Claude Code, Codex from nongjun/feishu-cursor-claw. It costs 57 tokens per session (512 once invoked), scanned A, original, MIT.

A Python wrapper around the WeCom Finance SDK, which retrieves and decrypts archived WeCom workplace chat messages and downloads attached media.

In plain words
What is it for?
Use it to collect WeCom chat history, decrypt messages, download media, and support a service that stores or processes those records.
Why use it?
It handles the steps needed to turn encrypted chat archives into usable messages and files, including incremental syncing and recovery from a damaged SDK instance.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to collect WeCom chat history, decrypt messages, download media, and support a service that stores or processes those records.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nongjun/feishu-cursor-claw/wecom-finance-sdk
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add nongjun/feishu-cursor-claw --skill wecom-finance-sdk
Clone the repo
git clone --depth 1 https://github.com/nongjun/feishu-cursor-claw

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for wecom-finance-sdk

README.md
[![agentmods](https://agentmods.dev/badge/skills/nongjun/feishu-cursor-claw/wecom-finance-sdk/github.svg)](https://agentmods.dev/skills/nongjun/feishu-cursor-claw/wecom-finance-sdk)
Your own site
<a href="https://agentmods.dev/skills/nongjun/feishu-cursor-claw/wecom-finance-sdk"><img src="https://agentmods.dev/badge/skills/nongjun/feishu-cursor-claw/wecom-finance-sdk/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for wecom-finance-sdk

Your own site · 80×15
<a href="https://agentmods.dev/skills/nongjun/feishu-cursor-claw/wecom-finance-sdk"><img src="https://agentmods.dev/badge/skills/nongjun/feishu-cursor-claw/wecom-finance-sdk.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 512 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00057 $0.00512
Opus 5.5 $0.00023 $0.00205
Sonnet 5.5 $0.00011 $0.00102
Haiku 4.5 $0.00006 $0.00051

Measured 3mo ago against content hash 13f57301d1eb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

wecom-finance-sdk scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

参考代码/njcursor/skills/wecom-finance-sdk/SKILL.md · 49 lines

What it actually says

WeCom Finance SDK

核心特性

  • ctypes 调用 C++ SDK:libWeWorkFinanceSdk_C.so
  • 线程安全单例:get_finance_sdk() 获取全局实例
  • 崩溃自恢复:reset_finance_sdk() 重置损坏的 SDK 实例
  • 分块下载:媒体文件循环调用直到 is_finish == 1

关键方法(WeComFinanceSDK)

方法 用途
get_chat_data(seq, limit) 增量拉取加密聊天记录
decrypt_data(aes_key, encrypt_chat_msg) AES 解密消息内容
get_media_data(sdkfileid) 分块下载媒体文件

消息拉取流程

  1. 调用 get_chat_data(seq=0) 获取加密消息
  2. RSA 私钥解密 encrypt_random_key 得到 AES 密钥
  3. 调用 decrypt_data() 解密消息内容
  4. 保存 seq,下次从新 seq 继续增量拉取

重点关注

  • 仅支持 Linux x86_64,需手动下载 libWeWorkFinanceSdk_C.so
  • 服务器 IP 必须加入企微白名单
  • 消息仅保留 5 天,必须及时拉取
  • SDK 偶发段错误,已通过 reset_finance_sdk() 处理
  • 媒体文件下载必须循环调用直到完成

配合服务

ChatService(会话存档模块)封装了完整的同步流程:

  • sync_messages_from_wecom() — 批量同步+解密+入库
  • _download_media_if_needed() — 媒体文件自动下载
  • _recognize_voice_message() — 语音转文字(腾讯云 ASR)

参考文件

  • 会话存档/后端服务/app/sdk/wecom_finance_sdk.py
  • 会话存档/后端服务/app/services/chat_service.py
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 49 lines · 57 tokens per session scan A 13f57301d1eb

Subscribe to this mod's changes

wecom-finance-sdk is a skill published in the GitHub repository nongjun/feishu-cursor-claw (14 stars, last pushed 4mo ago), licensed MIT. It adds 57 tokens to every session and 512 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

wecom-finance-sdk compared with skills from other repositories

wecom-finance-sdk next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
wecom-finance-sdknongjun/feishu-cursor-clawSkill144mo agoMITA57Claude Code, Codex
firebase-messagingevanca/flutter-ai-rulesSkill67618d agoMITA35Claude Code
firebase-cloud-functionsevanca/flutter-ai-rulesSkill67618d agoMITA36Claude Code
metabot-teamxvirobotics/metabotSkill1.0k1mo agoMITA33Claude Code, Codex
audit-payment-systemkensaurus/cursor-kenjiSkill92mo agoMITA66Claude Code
enhance-web-web3dkensaurus/cursor-kenjiSkill92mo agoMITA69Claude Code
mobile-emulator-testkensaurus/cursor-kenjiSkill92mo agoMITA67Claude Code