Xpersona
F

Feishu User Auth

CLAWHUB · Unverified

Complete one-time Feishu browser authorization and cache a local `user_access_token` so later `feishu-bitable-sync` runs can write Bitable rows as the curren... Skill: Feishu User Auth Owner: abigale-cyber Summary: Complete one-time Feishu browser authorization and cache a local user_access_token so later feishu-bitable-sync runs can write Bitable rows as the curren... Tags: latest:1.0.0 Version history: v1.0.0 | 2026-04-07T14:22:06.925Z | user Sync latest content-system skill docs and runtime implementation Archive index: Archive v1.0.0: 6 files, 5382 bytes Files: README.md

62
Rank
84
Safety
993
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 993 downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s177gvvwbgtc3ew8annt8ph3gx84c2xt:feishu-user-auth
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-abigale-cyber-feishu-user-auth/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

5,298 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: feishu-user-auth
description: Complete one-time Feishu browser authorization and cache a local `user_access_token` so later `feishu-bitable-sync` runs can write Bitable rows as the current user instead of app identity.
---

# feishu-user-auth

在当前租户下,如果 `tenant_access_token` 不能稳定写多维表,先运行这个 skill。

它会:

- 打开浏览器进入飞书授权页
- 通过本地回调地址接收授权码
- 换取 `user_access_token + refresh_token`
- 缓存在本机 `~/.codex/feishu-auth/content-system-sync.json`

运行前请确认:

- 已配置 `FEISHU_APP_ID`
- 已配置 `FEISHU_APP_SECRET`
- 飞书应用已开通网页应用能力
- 飞书应用回调地址已包含 `http://127.0.0.1:14578/callback`

输出:

- `content-production/published/YYYYMMDD-feishu-user-auth.md`

授权成功后,再运行 `feishu-bitable-sync` 即可按用户身份写多维表。

README.md

# feishu-user-auth

`feishu-user-auth` 是飞书用户授权 skill。它只做一件事:通过浏览器完成一次飞书 OAuth,把用户级 token 缓存在本机,供后续多维表同步直接复用。

## 这个 skill 能做什么

- 打开浏览器进入飞书授权页
- 通过本地回调地址接收授权码
- 换取并缓存 `user_access_token + refresh_token`
- 给 `feishu-bitable-sync` 提供用户身份写表能力

## 安装

### 基础依赖

```bash
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt
```

### 必需环境变量

```bash
export FEISHU_APP_ID=...
export FEISHU_APP_SECRET=...
```

### 回调地址要求

- 飞书应用已开通网页应用能力
- 飞书应用回调地址包含 `http://127.0.0.1:14578/callback`

## 输入和输出

**输入**

- 任意一个 Markdown 请求文件即可,通常直接传 `wechat-report` 结果路径也行

**输出**

- `content-production/published/YYYYMMDD-feishu-user-auth.md`
- 本机缓存:`~/.codex/feishu-auth/content-system-sync.json`

## 使用方法

### 单独运行

```bash
.venv/bin/python -m skill_runtime.cli run-skill feishu-user-auth \
  --input content-production/inbox/20260407-harness-engineering-wechat-report.md
```

## 什么时候用

- 第一次准备把公众号报告同步到飞书时
- 之前的用户 token 已失效,需要重新授权时
- 你想避免一直用租户身份直写多维表时

## 注意事项

- 这是一次性授权 skill,不负责实际同步内容
- 授权成功后,再运行 `feishu-bitable-sync`
- 如果浏览器打不开或回调地址没配好,本 skill 会失败并在回执里写原因

## 相关文件

- [SKILL.md](./SKILL.md)
- [runtime.py](./runtime.py)
- [feishu_auth.py](../../skill_runtime/feishu_auth.py)

_meta.json

{
  "ownerId": "kn7260sq9qb3na1v093x0a05z582mg8v",
  "slug": "feishu-user-auth",
  "version": "1.0.0",
  "publishedAt": 1775571726925
}

skill-card.md

## Description:

Complete one-time Feishu browser authorization and cache a local user_access_token so later feishu-bitable-sync runs can write Bitable rows as the current user instead of app identity.

This skill is ready for commercial/non-commercial use.

## Publisher:

[abigale-cyber](https://clawhub.ai/user/abigale-cyber)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and operators use this skill to complete a one-time Feishu OAuth flow, cache user-level credentials locally, and enable later Bitable synchronization to run under the current user's identity.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill stores Feishu user access and refresh tokens on the local machine.

Mitigation: Keep the cache path private, restrict local access to ~/.codex/feishu-auth/content-system-sync.json, and delete the cache or revoke the Feishu app authorization when it is no longer needed.

Risk: The generated authorization report may include user identity metadata such as name, open_id, issue time, and expiry time.

Mitigation: Avoid sharing the generated auth report when Feishu identity metadata is sensitive.

Risk: The OAuth flow depends on a Feishu app configuration and the local callback http://127.0.0.1:14578/callback.

Mitigation: Confirm the Feishu app has web application capability enabled and that the callback URL is configured before running the skill.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/abigale-cyber/skills/feishu-user-auth)
- [Publisher profile](https://clawhub.ai/user/abigale-cyber)

## Skill Output:

**Output Type(s):** [text, markdown, configuration, guidance]

**Output Format:** [Markdown authorization report plus local token cache metadata]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Writes an auth result report under content-production/published and stores Feishu user token cache data locally.]

## Skill Version(s):

1.0.0 (source: release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

skill.json

{
  "id": "feishu-user-auth",
  "name": "Feishu User Auth",
  "layer": "distribute",
  "executor": "feishu_user_auth_v1",
  "input_kind": "feishu_auth_request_markdown",
  "output_kind": "auth_report_markdown",
  "description": "Complete one-time Feishu OAuth authorization in the browser, cache a user_access_token locally, and prepare later Bitable syncs to run as the current user."
}

Sponsored

Ads related to Feishu User Auth and adjacent AI workflows.