openlark: Skill for Claude Code

.agents/skills/openlark-api-field-verify/SKILL.md

openlark-api-field-verify is a skill for Claude Code from foxzool/openlark. It costs 129 tokens per session (4,252 once invoked), scanned A, original, Apache-2.0.

A checker for verifying that Rust code uses the same request and response fields as the official Feishu Open Platform API documentation. Feishu is a collaboration and business software platform, and its documentation is a JavaScript-rendered website.

In plain words
What is it for?
It verifies request and response fields for new or changed Feishu APIs, including user-level interfaces, and identifies fields that do not match the official documentation.
Why use it?
API fields are easy to guess incorrectly, especially for user-level access tokens. The checker extracts the rendered documentation and compares it with the implementation.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: installed under .agents/ (shared by several agents).

This is foxzool/openlark's own configuration. It tells Claude Code how to work on openlark itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything openlark configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 tools/verify_api_fields.py.

Reuse

Borrowing it

Nothing to install: this file belongs to foxzool/openlark. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/foxzool/openlark/main/.agents/skills/openlark-api-field-verify/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/foxzool/openlark

Made for: Claude Code.

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 openlark-api-field-verify

README.md
[![agentmods](https://agentmods.dev/badge/skills/foxzool/openlark/openlark-api-field-verify.svg)](https://agentmods.dev/skills/foxzool/openlark/openlark-api-field-verify)
Your own site
<a href="https://agentmods.dev/skills/foxzool/openlark/openlark-api-field-verify"><img src="https://agentmods.dev/badge/skills/foxzool/openlark/openlark-api-field-verify.svg" alt="Measured on agentmods" height="20"></a>
Per session 129 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,252 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.00129 $0.04252
Opus 5 $0.00064 $0.02126
Sonnet 5 $0.00026 $0.00850
Haiku 4.5 $0.00013 $0.00425

Measured 7d ago against content hash e3954d9a3deb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

openlark-api-field-verify 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 7d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/fetch_doc.js), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.agents/skills/openlark-api-field-verify/SKILL.md · 308 lines

How it starts

The opening of the file, as written. The whole thing — 308 lines — stays where its author put it; the contents beside it link to each section on GitHub.

OpenLark API 字段核对技能

🧭 技能路由指南

本技能适用场景:

  • 实现前/后读取飞书官方文档字段(本仓库唯一可靠的文档抓取入口)
  • 新增/重构飞书 API 后,核对请求体/响应体字段是否与官方文档一致
  • 怀疑某个 API 的字段是"推断"而非来自真实文档(如参照同族接口复制)
  • 用户级(user_access_token)接口的字段核对(这类接口字段常与应用级不同)
  • fetch_docpath.py 在线抓取失败(返回占位文本),需要替代方案

其他技能:

  • 添加/重构 API 的实现规范 → Skill(openlark-api)(读文档后回此技能核对,或实现时先来此抓取)
  • 统计 API 覆盖率/缺失清单 → Skill(openlark-api-validation)
  • 代码规范、风格一致性 → Skill(openlark-code-standards)

关键词触发映射

  • 字段核对、字段验证、字段不符、文档核对、核对请求字段、核对响应字段、飞书文档、playwright 抓文档 → openlark-api-field-verify
  • 新增 API、重构 API、Builder、Request/Response → openlark-api
  • 覆盖率、缺失 API、CSV 对比 → openlark-api-validation

双向跳转规则

  • openlark-api 需要读文档时必须来本技能(勿用 fetch_docpath.py 在线抓取)
  • 若核对发现字段不符需要修正实现,转 openlark-api 落地修正
  • 若核对发现是 API 尚未实现,转 openlark-api 补齐
  • 若核对根源是覆盖率脚本误报,转 openlark-api-validation

🎯 技能用途

飞书开放平台文档是 SPA(单页应用),内容靠 JS 动态渲染。常见的两种抓取方式各有局限:

方式 问题
fetch_docpath.py(项目 skill 脚本) 新接口常返回占位文本,抓不到字段表
直接 HTTP 请求文档 URL 只拿到 SPA 外壳,正文为空
web reader / 搜索引擎 新接口搜不到,SPA 抓不到

本技能用 playwright 真实渲染页面,等待 JS 执行后提取 innerText,拿到完整的字段表。这是目前唯一可靠的方式。

📋 核心工作流

第 0 步:判断是否需要核对

以下情况必须核对(字段易错):

  • ✅ 用户级(user_access_token)接口 —— 字段常与应用级不同(无 user_id,从 token 推断)
  • ✅ 参照"同族接口"复制的实现 —— 字段名/结构可能已变
  • ✅ 新上的飞书接口 —— 文档可能尚未被旧脚本收录
  • ✅ 请求体有数组/嵌套对象的接口 —— 上限、子字段易漏

以下情况可跳过:

  • ⏭️ 直接照抄飞书官方 JSON 示例实现的(已有真实样本)
  • ⏭️ 仅改端点 URL、字段未动的重构

第 1 步:找到正确的文档 URL

这是最易错的一步。 URL 唯一权威源是 CSV 的 fullPath

canonical_url = "https://open.feishu.cn" + fullPath
来源 是否可用 说明
fullPath ✅ 唯一权威 原样拼接,不要改路径格式
docPath ❌ 默认勿用 常与 fullPath 不一致(大量 server-docs vs 实际路径)
手拼 /reference/.../server-docs/... ❌ 禁止 易 404:"The documentation could not be found."
# 从 CSV 用 api id 或 url 反查 fullPath
python3 -c "
import csv
with open('api_list_export.csv', encoding='utf-8-sig') as f:
    for row in csv.DictReader(f):
        if row['id'] == '7642253323628383198' or 'approval/v4/tasks/pass' in row['url']:
            print(row['fullPath'])
"

Read the full file on GitHub · 308 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 7d ago First seen · 308 lines · 129 tokens per session scan A e3954d9a3deb

Subscribe to this mod's changes

openlark-api-field-verify is a skill published in the GitHub repository foxzool/openlark (105 stars, last pushed 4d ago), licensed Apache-2.0. It adds 129 tokens to every session and 4,252 once invoked, about $0.0006 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