360 Secure SkillHub
360 安全技能中心

Lark CLI Dev Hub Base

该 Skill 面向开发知识枢纽,说明 Base(飞书多维表格)的 Schema、十张表的用途与写入规则,并给出 provision 及 lark-cli base 表/字段查询命令,用于设计、配置、检索和写入结构化记录;要求记录含 Project、Area、AI Summary、Search Keywords,禁止存储密钥,写入失败需保留 outbox 条目。

afengzi
afengzi
热度 27.84
最近更新 2026-05-20 02:35:56
分类:知识依赖:代码执行 / 读写文件 / 第三方 API应用场景:笔记整理 / 工作流 / 任务管理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add lark-cli-devhub-base
Metadata
name
lark-cli-devhub-base
description
Use when designing, provisioning, searching, or writing Feishu/Lark Base records through lark-cli or feishu-cli for a development knowledge hub, including Projects, Areas, Tasks, Bugfixes, Pitfalls, Playbooks, Decisions, Releases, Artifacts, and AI Runs.
metadata
{"requires":{"bins":["lark-cli","python3"]}}

Lark CLI Dev Hub Base

Base is the AI-readable database for Dev Hub. Prefer Base for facts, state, relationships, and search keywords.

Discovery aliases: feishu-cli base, 飞书多维表格, lark-cli base, Lark Base, Feishu Base, Bitable.

Schema

The default schema lives at:

$HOME/.codex/devhub/templates/base-schema.json

Provision:

python3 "$DEVHUB_HOME/bin/devhub.py" provision \
  --schema "$DEVHUB_HOME/templates/base-schema.json" \
  --seed "$DEVHUB_HOME/templates/seed.example.json"

Tables

  • Projects: repo identity and current focus.
  • Areas: modules, code paths, risk, and owner.
  • Tasks: user-facing task state and next actions.
  • Bugfixes: what broke, why, how it was fixed, and how verified.
  • Pitfalls: reusable traps and "check this first" guidance.
  • Playbooks: repeatable diagnosis order and commands.
  • Decisions: accepted choices, tradeoffs, and review triggers.
  • Releases: release evidence before main/master push.
  • Artifacts: Docs, Whiteboards, dashboards, files, and links.
  • AI Runs: agent work summaries and verification trail.

Write Rules

  • Always include Project, Area, AI Summary, and Search Keywords when the fields exist.
  • Put long prose in Docs only when useful; keep Base summaries dense and searchable.
  • Use stable names in text fields when relation fields are not configured yet.
  • Do not store secrets or raw credentials.
  • If a write fails, leave an outbox item. Do not create fake receipts.

Direct CLI Pattern

When using raw lark-cli base commands, read the current schema and field list first:

lark-cli base +table-list --base-token "$BASE_TOKEN" --as user --format json
lark-cli base +field-list --base-token "$BASE_TOKEN" --table-id "$TABLE_ID" --as user --format json

Then write records through devhub.py when possible so receipts/outbox stay consistent.