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 $0.00028 $0.00256
Sonnet 5 $0.00011 $0.00102
Haiku 4.5 $0.00006 $0.00051

Measured 11d ago against content hash 13f57301d1eb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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 11d 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++ SDKlibWeWorkFinanceSdk_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. 11d 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 2mo ago), licensed MIT. It adds 57 tokens to every session and 512 once invoked, about $0.0003 per session on Opus 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

Other skills, from other repositories

metabot-team

Use for the MetaBot Agent Teams CLI: create and inspect durable Teams, spawn teammates, exchange messages, and manage Tasks and Runs across Sessions.

xvirobotics/metabot · 33 tokens

firebase-messaging

Use when setting up Firebase Cloud Messaging, managing permissions and tokens, handling background/foreground notification taps, or dispatching messages server-side (HTTP v1).

evanca/flutter-ai-rules · 35 tokens

firebase-cloud-functions

Use when calling callable functions (httpsCallable), passing data to server-side logic, handling function errors/timeouts, configuring regions, or testing with the Emulator Suite.

evanca/flutter-ai-rules · 36 tokens

audit-payment-system

Read-only audit for payment/money-movement systems, scope-gated so a Stripe-Checkout site and an in-house ledger each see only relevant findings. Use when "audit payment system", "double charge / idempotency", "ledger / reconciliation", "webhook / 3DS / PCI". Mobile IAP → audit-monetization-iap.

kensaurus/cursor-kenji · 76 tokens

enhance-web-web3d

Add purposeful 3D/WebGL and scroll choreography to an existing site with Three.js/R3F, GSAP, or Motion. Use when "add 3D", "WebGL hero", "React Three Fiber", or "scroll-driven 3D". General UI polish → enhance-web-ui. Motion without 3D → enhance-motion.

kensaurus/cursor-kenji · 77 tokens

mobile-rn-screen

Polish an existing React Native screen to feel intentional, native, and human-crafted. Use for "this screen looks off", "feels clunky on iOS", "Android version looks wrong", "jank when scrolling", "button is unreachable", or any RN-specific UX polish pass.

kensaurus/cursor-kenji · 64 tokens