skills/feishu-docx-python/SKILL.md
Use when: (1) working with Feishu/Lark document API (docx), (2) creating or editing Feishu documents via Python SDK, (3) adding blocks (text, heading, list, quote, code, etc.) to Feishu documents, or when user mentions "飞书文档", "Feishu docx", or "lark docx".
npx skillsauth add tkorays/zero-skills feishu-docx-pythonInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use lark_oapi package to create and manipulate Feishu (飞书) cloud documents.
pip install lark-oapi
import lark_oapi as lark
from lark_oapi.api.docx.v1 import *
client = lark.Client.builder() \
.app_id("your_app_id") \
.app_secret("your_app_secret") \
.build()
request = CreateDocumentRequest.builder() \
.request_body(CreateDocumentRequestBody.builder()
.folder_token("fldxxxxxxxx")
.title("文档标题")
.build()) \
.build()
response = client.docx.v1.document.create(request)
document_id = response.data.document.document_id
Critical: Must set BOTH block_type AND content method.
from lark_oapi.api.docx.v1.model import *
# Define constants (SDK doesn't include these)
class BlockType:
TEXT = 2; HEADING1 = 3; HEADING2 = 4; HEADING3 = 5
BULLET = 13; ORDERED = 14; CODE = 17; QUOTE = 18; DIVIDER = 19
# Helper: create text element
def text(content: str) -> TextElement:
return TextElement.builder().text_run(
TextRun.builder().content(content).build()
).build()
# Create block: heading + paragraph
blocks = [
Block.builder()
.block_type(BlockType.HEADING1)
.heading1(Text.builder().elements([text("标题")]).build())
.build(),
Block.builder()
.block_type(BlockType.TEXT)
.text(Text.builder().elements([text("正文内容")]).build())
.build(),
]
# Add to document root
request = CreateDocumentBlockChildrenRequest.builder() \
.document_id(document_id) \
.block_id(document_id) \
.request_body(CreateDocumentBlockChildrenRequestBody.builder()
.children(blocks).index(-1).build()) \
.build()
client.docx.v1.document_block_children.create(request)
.block_type() AND content method (.heading1(), .text(), etc.)document_id as block_id to add to document rootresponse.success() before accessing datadevelopment
XtQuant Python量化交易库使用指南。使用场景:(1) 获取股票/期货/期权等行情数据, (2) 实现实盘交易(下单/撤单/查持仓), (3) 查询财务数据/板块信息, (4) 编写量化策略脚本。当用户提到"xtquant"、"MiniQMT"、"量化交易"、"QMT实盘"时使用此skill。
development
Automatically install all personal development skills in a fresh environment. Use when setting up a new computer, workspace, or when the user asks to configure/initialize their dev environment with required skills.
development
SQL, pandas, and Python data analysis. Use when: (1) writing SQL queries, (2) data analysis with pandas, (3) data cleaning/transformation, (4) exploratory data analysis, or when user mentions data analysis, SQL, pandas, or statistics.
development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.