chat-viewer

chat-viewer is a skill for Claude Code, Codex from nongjun/feishu-cursor-claw. It costs 59 tokens per session (563 once invoked), scanned A, original, MIT.

A design for displaying WeCom chat records. WeCom is an enterprise messaging platform; the service syncs and decrypts messages, downloads media, and can turn voice messages into text.

In plain words
What is it for?
Use it to show customer or group conversation history, including text, images, voice, video, files, links, emojis, and mini-program links.
Why use it?
It removes the need for each business area to separately handle chat retrieval, encrypted data, media files, and different message formats.

Skill for Claude CodeCodex

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

Good fit Use it to show customer or group conversation history, including text, images, voice, video, files, links, emojis, and mini-program links.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nongjun/feishu-cursor-claw/chat-viewer
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 chat-viewer
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 chat-viewer

README.md
[![agentmods](https://agentmods.dev/badge/skills/nongjun/feishu-cursor-claw/chat-viewer.svg)](https://agentmods.dev/skills/nongjun/feishu-cursor-claw/chat-viewer)
Your own site
<a href="https://agentmods.dev/skills/nongjun/feishu-cursor-claw/chat-viewer"><img src="https://agentmods.dev/badge/skills/nongjun/feishu-cursor-claw/chat-viewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 563 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.00059 $0.00563
Opus 5 $0.00030 $0.00282
Sonnet 5 $0.00012 $0.00113
Haiku 4.5 $0.00006 $0.00056

Measured 8d ago against content hash 88eae828408a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

chat-viewer 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 8d 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/chat-viewer/SKILL.md · 61 lines

What it actually says

聊天记录查看器

架构

  • 后端统一:会话存档模块的 ChatService 处理消息同步、解密、媒体下载
  • 前端分散:各业务模块按需实现查看组件

后端核心服务(ChatService)

方法 用途
sync_messages_from_wecom() 从企微批量同步+解密+入库
get_customer_messages() 获取指定客户/群聊的聊天记录
_download_media_if_needed() 自动下载媒体文件
_recognize_voice_message() 语音转文字(腾讯云 ASR)

支持的消息类型

msgtype 渲染方式
text 文字气泡
image 缩略图 + 点击放大
voice 播放按钮 + 转文字
video video 播放器
file 文件图标 + 下载链接
emotion 表情图片
link 链接卡片
weapp 小程序链接

前端组件位置

模块 组件 用途
撩回搭子 ChatPreview.vue 客户聊天预览
联系人侧边栏 ChatDetailDrawer.vue 完整聊天详情
联系人侧边栏 ChatSummaryByUserCard.vue 聊天摘要卡片

API 端点

端点 方法 说明
/api/archive/messages GET 获取聊天记录(分页)
/api/media/{msgid} GET 获取媒体文件

重点关注

  • 语音转码依赖 FFmpeg(AMR → MP3),Docker 中需安装
  • 语音识别使用腾讯云 ASR,需配置 SecretId/SecretKey
  • 消息同步后会触发下游事件(撩回搭子通知、AI标签等)
  • 单聊查询需同时查 from_userid 和 external_userid 双向

参考文件

  • 会话存档/后端服务/app/services/chat_service.py
  • 联系人/前端-侧边栏/src/components/ChatDetailDrawer.vue
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. 8d ago First seen · 61 lines · 59 tokens per session scan A 88eae828408a

Subscribe to this mod's changes

chat-viewer is a skill published in the GitHub repository nongjun/feishu-cursor-claw (14 stars, last pushed 1mo ago), licensed MIT. It adds 59 tokens to every session and 563 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

audit-fe-api

Audit frontend API calls against backend implementation for contract alignment and network shape. Use when "API audit", "FE-BE contract", or "review frontend API integration". Live 4xx/5xx reproduction → debug-fe-be-integration.

kensaurus/cursor-kenji · 52 tokens

backend-realtime

Implement real-time features using WebSockets, Supabase Realtime, Server-Sent Events, and live data. Use when user wants "real-time", "live updates", "WebSocket", "notifications", "chat", "collaborative", "presence", "live data", or "instant sync".

kensaurus/cursor-kenji · 65 tokens

react-server-components

Implements React Server Components (RSC) patterns with Next.js App Router including data fetching, streaming, selective hydration, and server/client composition. Use when users request "server components", "RSC", "Next.js app router", "server-side rendering", or "streaming".

patricio0312rev/skills · 61 tokens

firebase-auth

Use when setting up auth, managing auth state, implementing email/password or social sign-in, handling auth errors, or managing users.

evanca/flutter-ai-rules · 29 tokens

architecture-feature-first

Use when creating a feature, designing folder structure, adding repositories/services/view models, wiring dependency injection, or deciding which layer owns logic.

evanca/flutter-ai-rules · 31 tokens

create-handler

Create a new API handler following the handler pattern. Use when the user asks to create an endpoint, handler, or route.

girijashankarj/cursor-handbook · 28 tokens