Index of every page on this site: llms.txt
All skills
alextangson avatar

/feishu-task

@7569ef1
Run it yourself

飞书任务。创建任务、更新任务、查询任务。

Use this Skill: https://skilld.dev/gh/alextangson/feishu_skills/feishu-task

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈18 tokens for metadata: the name and description. ≈310 when used: this file.

How this Skill uses context

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈34 characters, or 0.4%.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

飞书任务

通过 Task API 管理任务。

Base URL: https://open.feishu.cn/open-apis/task/v2

认证与 Token 获取

从 feishu_skills 根目录执行共享脚本:

TOKEN="$(./scripts/get_feishu_token.sh)"

请求头统一使用 Authorization: Bearer ${TOKEN}。

如果业务接口返回 token 无效、过期或 401,强制刷新后仅重试一次原请求:

TOKEN="$(./scripts/get_feishu_token.sh --force-refresh)"

环境变量:

  • FEISHU_APP_ID
  • FEISHU_APP_SECRET

本地缓存: ./.feishu_token_cache.json(未过期直接复用,默认提前 5 分钟刷新)


任务操作

API 端点 说明
创建任务 POST /tasks -
获取任务 GET /tasks/{task_guid} -
更新任务 PATCH /tasks/{task_guid} -
完成任务 POST /tasks/{task_guid}/complete -
删除任务 DELETE /tasks/{task_guid} -

创建任务:

{
  "summary": "任务标题",
  "description": "任务描述",
  "due": {"timestamp": "1770508800"},
  "members": [{"id": "ou_xxx", "role": "assignee"}]
}

最佳实践

  1. due 用秒级时间戳
  2. members 指定角色(assignee/follower)

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo5 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The skill integrates with the Feishu (Lark) Task API using official endpoints and standard authentication practices. It utilizes a local helper script for managing access tokens.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

  • Runlayer8mo

    1/1 file flagged

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 7569ef1. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Dormantupdated 9 months ago
required_permissions
[
  "task:task:write"
]

README badge

README badge for alextangson/feishu_skills/feishu-task