lov-plane-cli
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesePlane 助手 · Plane Assistant
Plane Assistant · Plane Assistant
通过 Plane REST API v1 读写 Plane 实例。命令表由随包的 在启动时构建,覆盖 130 个操作 / 17 个资源分组,与实例导出的 schema 严格一致。
cli/openapi.jsonThe command table is built at startup from the bundled , covering 130 operations / 17 resource groups, and strictly matching the schema exported from the instance.
cli/openapi.jsonTriggers
Triggers
Activate when
Activate when
- “Plane 上有哪些项目 / 任务?”
- “在 Plane 里建一个工作项。”
- “把这个任务同步到 Plane。”
- “看下 Plane 某个项目的进度 / 周期 / 模块。”
- “List my Plane work items.”
- “What projects / tasks are on Plane?”
- “Create a work item in Plane.”
- “Sync this task to Plane.”
- “Check the progress / cycles / modules of a project in Plane.”
- “List my Plane work items.”
Do not activate when
Do not activate when
- 部署、启动或排障 Plane 实例本身(容器、compose、迁移)——那是运维任务,不走本 Skill。
- 目标是 Jira、Linear、Notion 等其他项目管理工具。
- 用户没有该实例的访问权,或要求绕过认证。
- Deploying, starting, or troubleshooting the Plane instance itself (containers, compose, migrations)—that is an operations task and does not go through this Skill.
- The target is another project management tool such as Jira, Linear, or Notion.
- The user does not have access to the instance or is asking to bypass authentication.
Step 0: 解析运行时
Step 0: Resolve the Runtime
- 确认 Node.js 20+。
node --version - CLI 入口:。若已
$SKILL_DIR/cli/bin/lov-plane-cli.mjs,可直接用npm link。lov-plane-cli - 缺 Node 或缺 时报出相对路径并停止,不要凭记忆拼 URL 调用 API。
cli/openapi.json
- Run to confirm Node.js 20+.
node --version - CLI entry point: . If
$SKILL_DIR/cli/bin/lov-plane-cli.mjshas already been run, you can invoke it directly asnpm link.lov-plane-cli - If Node or is missing, report the relative path and stop. Do not construct API URLs from memory.
cli/openapi.json
Step 1: 确认实例与凭据
Step 1: Confirm the Instance and Credentials
实例地址按此顺序解析: → → 的 → 。
--base-url$PLANE_BASE_URL~/.config/lov-plane-cli/config.jsonbaseUrlhttp://localhost凭据同理: → → 配置文件 。
--api-key$PLANE_API_KEYapiKeybash
export PLANE_BASE_URL=http://localhost
export PLANE_API_KEY=<api token>获取 token:登录 Plane → 右上角头像 → Settings → API tokens → Add API token。
凭据只经环境变量或用户自有配置文件传入。 不要把 token 写进生成文件、示例、日志或 Profile 记录,也不要在回复里回显完整 token。
缺凭据时 CLI 以退出码 2 停止并打印获取指引——把该指引转达用户,不要伪造响应。
Resolve the instance URL in this order: → → the value in → .
--base-url$PLANE_BASE_URLbaseUrl~/.config/lov-plane-cli/config.jsonhttp://localhostResolve credentials in the same way: → → the value in the configuration file.
--api-key$PLANE_API_KEYapiKeybash
export PLANE_BASE_URL=http://localhost
export PLANE_API_KEY=<api token>To obtain a token: Log in to Plane → avatar in the upper-right corner → Settings → API tokens → Add API token.
Credentials must only be passed through environment variables or the user's own configuration file. Never write the token into generated files, examples, logs, or Profile records, and never echo the full token in a response.
If credentials are missing, the CLI exits with code 2 and prints instructions for obtaining them—relay those instructions to the user rather than fabricating a response.
Step 2: 调用
Step 2: Invoke
先看命令表,再执行;不要凭记忆拼 operationId:
bash
lov-plane-cli help # 130 个命令,按资源分组
lov-plane-cli <command> --help # 单命令的路径参数与查询参数
lov-plane-cli <command> ... --dry-run # 只打印请求,不发出常用工作流:
bash
lov-plane-cli list-projects -w <workspace-slug>
lov-plane-cli list-work-items -w <slug> -p <project-id> --per-page 50
lov-plane-cli list-states -w <slug> -p <project-id> # 建工作项前取状态字典
lov-plane-cli list-labels -w <slug> -p <project-id> # 取标签字典
lov-plane-cli create-work-item -w <slug> -p <project-id> --data '{"name":"新任务"}'
lov-plane-cli list-work-item-comments -w <slug> -p <pid> --issue-id <issue-id>参数写法:路径参数可按顺序作为位置参数,也可用同名选项;// 分别是 // 的别名。请求体用 或 。未知参数会直接报错,不会被静默丢弃。
-w-p--idslugproject_idpk--data '<json>'--data @file.jsonFirst review the command table, then execute the command; do not guess an operationId from memory:
bash
lov-plane-cli help # 130 个命令,按资源分组
lov-plane-cli <command> --help # 单命令的路径参数与查询参数
lov-plane-cli <command> ... --dry-run # 只打印请求,不发出Common workflows:
bash
lov-plane-cli list-projects -w <workspace-slug>
lov-plane-cli list-work-items -w <slug> -p <project-id> --per-page 50
lov-plane-cli list-states -w <slug> -p <project-id> # 建工作项前取状态字典
lov-plane-cli list-labels -w <slug> -p <project-id> # 取标签字典
lov-plane-cli create-work-item -w <slug> -p <project-id> --data '{"name":"新任务"}'
lov-plane-cli list-work-item-comments -w <slug> -p <pid> --issue-id <issue-id>Argument syntax: Path parameters can be supplied positionally in order or by using the option with the same name; // are aliases for //, respectively. Request bodies use or . Unknown parameters result in an immediate error and are never silently discarded.
-w-p--idslugproject_idpk--data '<json>'--data @file.jsonStep 3: 写操作前确认
Step 3: Confirm Before Write Operations
create-*update-*delete-*archive-*- 删除、归档、批量修改:先确认再执行,除非用户已明确授权本次操作。
- 不确定字段取值时,先用 给用户看将要发出的请求。
--dry-run - 创建工作项前先取 /
list-states的 id,不要猜 UUID。list-labels
api-graph.jsoncreate-*update-*delete-*archive-*- Deletion, archiving, and bulk modifications: confirm before execution unless the user has explicitly authorized this operation.
- When field values are uncertain, first use to show the user the request that will be sent.
--dry-run - Before creating a work item, retrieve the IDs with /
list-states; do not guess UUIDs.list-labels
api-graph.jsonStep 4: 回读
Step 4: Read Back
写操作后回读对应资源确认结果,不把 2xx 当作最终验收。报告时区分成功、失败与部分完成。
常见状态码: 未提供凭据; token 无效或无权访问该工作区/项目; slug 或 id 不存在。CLI 会原样保留 Plane 的错误体,把它转达给用户而不是改写。
401403404After a write operation, read back the corresponding resource to verify the result; do not treat a 2xx response as final acceptance. When reporting, distinguish success, failure, and partial completion.
Common status codes: means no credentials were provided; means the token is invalid or does not grant access to the workspace/project; means the slug or ID does not exist. The CLI preserves Plane's error body verbatim; pass it through to the user rather than rewriting it.
401403404覆盖范围
Coverage
| 分组 | 操作数 | 分组 | 操作数 |
|---|---|---|---|
| Work Items | 14 | Cycles | 14 |
| Members | 13 | Modules | 12 |
| Work Item Comments | 10 | Work Item Attachments | 10 |
| Work Item Links | 10 | Projects | 8 |
| Assets | 6 | workspaces | 6 |
| Intake | 5 | Labels | 5 |
| States | 5 | Stickies | 5 |
| Work Item Activity | 4 | Work Item Relations | 2 |
| Users | 1 |
| Group | Operations | Group | Operations |
|---|---|---|---|
| Work Items | 14 | Cycles | 14 |
| Members | 13 | Modules | 12 |
| Work Item Comments | 10 | Work Item Attachments | 10 |
| Work Item Links | 10 | Projects | 8 |
| Assets | 6 | workspaces | 6 |
| Intake | 5 | Labels | 5 |
| States | 5 | Stickies | 5 |
| Work Item Activity | 4 | Work Item Relations | 2 |
| Users | 1 |
来源与限制
Source and Limitations
OpenAPI 由 Plane 自托管实例内置的 drf-spectacular 导出,未人工改写路径或字段;仅修正 (容器内地址 → 对外地址)并补充证据标注。
servers每个操作带 : 表示端点经真实探测确认存在(17 个), 表示仅有 schema 定义(113 个)。所有写操作从未在线执行过,字段语义以 Plane 官方文档为准。
x-observationlive-probe-401-403vendor-generated-schemaPlane 升级后接口可能变化:重新导出 schema 覆盖 即可同步,无需改代码。
cli/openapi.jsonThe OpenAPI schema is exported by the drf-spectacular integration built into a self-hosted Plane instance. No paths or fields have been manually rewritten; only was corrected (in-container address → public address), and evidence annotations were added.
serversEach operation includes : indicates that the endpoint's existence was confirmed through live probing (17), while means that only the schema definition is available (113). No write operation has ever been executed against a live instance; field semantics follow Plane's official documentation.
x-observationlive-probe-401-403vendor-generated-schemaPlane interfaces may change after an upgrade: re-export the schema and overwrite to synchronize it; no code changes are required.
cli/openapi.jsonSDK
SDK
cli/sdk/index.mjsPlaneClientrequest(method, path, {query, body})PLANE_API_KEYcli/sdk/index.mjsPlaneClientrequest(method, path, {query, body})PLANE_API_KEY