openlark: Skill for Claude Code

.agents/skills/openlark-design-review/SKILL.md

openlark-design-review is a skill for Claude Code from foxzool/openlark. It costs 121 tokens per session (3,721 once invoked), scanned A, original, Apache-2.0.

A review guide for the design of public APIs in the OpenLark Rust SDK. It checks how crates and modules expose features, requests, services, builders, configuration, errors, documentation, and tests.

In plain words
What is it for?
Use it to measure API completion, review feature flags and endpoint patterns, check validation and error handling, and produce a prioritized remediation plan.
Why use it?
It makes API design reviews repeatable and highlights inconsistencies across the SDK. Findings are organized by priority and backed by implementation evidence.

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/validate_apis.py --crate <crate-name>.

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-design-review/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-design-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/foxzool/openlark/openlark-design-review/github.svg)](https://agentmods.dev/skills/foxzool/openlark/openlark-design-review)
Your own site
<a href="https://agentmods.dev/skills/foxzool/openlark/openlark-design-review"><img src="https://agentmods.dev/badge/skills/foxzool/openlark/openlark-design-review/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 openlark-design-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/foxzool/openlark/openlark-design-review"><img src="https://agentmods.dev/badge/skills/foxzool/openlark/openlark-design-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 121 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,721 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00121 $0.03721
Opus 5 $0.00060 $0.01861
Sonnet 5 $0.00024 $0.00744
Haiku 4.5 $0.00012 $0.00372

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

Security

Grade A, and why

openlark-design-review 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 10d 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.

.agents/skills/openlark-design-review/SKILL.md · 264 lines

How it starts

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

OpenLark 代码设计规范审查(Skill)

🧭 技能路由指南

本技能适用场景:

  • 审查 crate 或模块的整体设计规范
  • 需要统计 API 完成度(已实现/未实现/完成率)
  • 需要检查架构一致性(端点体系、范式选择、feature gating)
  • 需要输出按优先级排序的整改清单(P0-P3)

其他技能:

  • 仅做代码规范体检(不做深度设计审查)→ Skill(openlark-code-standards)
  • 添加/重构单个 API → Skill(openlark-api)
  • 统一 validate() 写法 → Skill(openlark-validation-style)

关键词触发映射

  • 架构设计、public API、收敛方案、feature gating、兼容策略、breaking change → openlark-design-review
  • 代码规范、规范检查、风格一致性、体检 → openlark-code-standards
  • validate、必填校验、空白字符串、validate_required → openlark-validation-style
  • 新增 API、重构 API、Builder、Request/Response、mod.rs 导出 → openlark-api
  • 覆盖率、缺失 API、实现数量、CSV 对比 → openlark-api-validation

双向跳转规则

  • 若先做设计审查,但缺少全仓规范证据,先补跑 openlark-code-standards
  • 若主要问题退化为校验写法统一,转 openlark-validation-style

目标

把“设计审查”变成可重复执行的流程,而不是随手点评。

你要输出:

  • 一份 可执行的整改清单(P0~P3,含证据与影响)
  • 一份 收敛方向(选定 1 套对外范式,并说明迁移策略)
  • 一段 接口完成度量化(完成/缺失/完成率,排除 meta.Version=old
  • 如用户同意:直接落地修复(优先处理 P0/P1)

适用范围

  • 任意 crate(如 crates/openlark-docs/)或任意模块树(如 src/ccm/wiki/v2/
  • 重点面向 public API跨模块一致性

0. 完成度统计(必须先做)

目的:把“我觉得实现了很多”变成可验证数据。统计口径默认排除 meta.Version=old

0.1 以 crate 为单位统计(推荐)

使用仓库已有脚本直接对比 CSV 与落盘实现(strict 命名规范):

python3 tools/validate_apis.py --crate <crate-name>

输出包含:API 总数/已实现/未实现/完成率,以及按 bizTag 的统计表;同时会生成默认报告到 reports/api_validation/<crate>.md

0.2 以 bizTag 为单位统计(当用户只关心某些业务域)

python3 tools/validate_apis.py --src <crate-src-path> --filter <bizTag...>

0.3 预期总量参考(快速对齐)

若需要快速确认“某 bizTag 的有效 API 总数(排除 old)”,可参考仓库文档 crates.md 的统计表(数据源为 api_list_export.csv)。

如需从 api_list_export.csv 重新生成 bizTag 统计(排除 old),可运行:

python3 - <<'PY'
import csv
from collections import Counter

counts = Counter()
counts_all = Counter()
with open("api_list_export.csv", newline="", encoding="utf-8") as f:
    r = csv.DictReader(f)
    for row in r:
        biz = row.get("bizTag")
        ver = row.get("meta.Version")
        if not biz:
            continue
        counts_all[biz] += 1
        if ver != "old":
            counts[biz] += 1

print("bizTag,total,exclude_old,old")
for biz in sorted(counts_all.keys()):
    total = counts_all[biz]
    ex = counts[biz]
    print(f"{biz},{total},{ex},{total-ex}")
print(f"TOTAL,{sum(counts_all.values())},{sum(counts.values())},{sum(counts_all.values())-sum(counts.values())}")
PY

Read the full file on GitHub · 264 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. 10d ago First seen · 264 lines · 121 tokens per session scan A 96cee1bafb33

Subscribe to this mod's changes

openlark-design-review is a skill published in the GitHub repository foxzool/openlark (105 stars, last pushed today), licensed Apache-2.0. It adds 121 tokens to every session and 3,721 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

architecture-audit

Systematic architecture audit and refactoring methodology for Rust + TypeScript codebases. Use when performing refactoring, cleanup, unification, code review, dead code removal, module reorganization, or tech debt elimination. Ensures no naming confusion, semantic overloading, hidden defaults, duplicate logic, or…

org2AI/ORG2 · 70 tokens

rust-review

A Rust code-review skill for services, checking for crashes, unsafe SQL construction, exposed credentials, ignored errors, and unfinished code.

liuyanghejerry/Clausura · 25 tokens

rust-skills

Comprehensive Rust coding guidelines with 265 rules across 26 categories. Use when writing, reviewing, or refactoring Rust code. Covers ownership, error handling, async patterns, concurrency, unsafe code, API design, memory optimization, performance, numeric safety, conversions, serde, pattern matching, macros…

leonardomso/rust-skills · 84 tokens

adversarial-rust

Use this skill when reviewing or refactoring existing Rust code that carries an alien mental model — OO/enterprise ceremony from Java/C#, garbage-collected object graphs, exception-style control flow, or imperative loops ported onto the borrow checker. It is the adversarial, architecture-level counterpart to…

pproenca/dot-skills · 223 tokens

writing-rust

Idiomatic Rust development. Use when writing Rust code, Cargo crates/workspaces, Rust tests, or rustfmt/clippy/cargo workflows. Emphasizes ownership, Result errors, small APIs, stdlib-first dependencies, fast cargo feedback, and behavior tests. NOT for Go, Python, TypeScript, shell scripts, or infra-only work.

alexei-led/cc-thingz · 73 tokens

architectural_review

Review Rust code for advanced architectural patterns — capability mixins, typed commands, concurrency model choice, smart pointer/interior mutability selection, error-handling architecture, and memory layout. Use when the user asks to review system architecture, suggest broad design improvements, or evaluate trait…

EmilLindfors/a2a-rs · 82 tokens