[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M73NTJDJJNPMQ6S3Z1CDAMP7":3,"skill-same:01M73NTJDJJNPMQ6S3Z1CDAMP7":76},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M73NTJDJJNPMQ6S3Z1CDAMP7","appflowy-api",null,"AppFlowy Cloud\u002FGoTrue API 的认证与调用流程（获取 token、workspace\u002F文档\u002F数据库\u002F搜索等）。在本仓库用 Python 编写或调试 AppFlowy API 客户端、脚本、自动化或排查接口问题时使用。","bg-szy\u002FTOP-SKILLS","bg-szy","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F106576190?v=4","01M73A4E8KPV67SFXRY8XZGNBX","ShuZhiyong","01M73A4E96MQ294MHM74TZBVQD",6,"MIT","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fappflowy-api\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fappflowy-api\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: appflowy-api\ndescription: \"AppFlowy Cloud\u002FGoTrue API 的认证与调用流程（获取 token、workspace\u002F文档\u002F数据库\u002F搜索等）。在本仓库用 Python 编写或调试 AppFlowy API 客户端、脚本、自动化或排查接口问题时使用。\"\n---\n\n# AppFlowy API\n\n## 概述\n本 skill 用于自托管 AppFlowy 环境的 API 调用与自动化，覆盖登录鉴权、文档\u002F视图\u002F数据库操作、搜索、协作数据（collab）等常见场景。默认**不读取 `.env`**，仅在显式传入 `--env \u003Cpath>` 时读取。\n\n本 skill 当前适配 AppFlowy Cloud `0.12.3`。`doctor.py` 会通过 `\u002Fapi\u002Fhealth` 检测版本并在不匹配时给出警告。\n\n## 快速开始\n1. 准备 base URL 与 GoTrue URL（可选 `--env \u003Cpath>` 读取 `.env`）。\n2. 使用账号密码获取 `access_token`。\n3. 携带必要请求头调用 AppFlowy API。\n\n```bash\n# 获取 token\ncurl -sS -X POST \"http:\u002F\u002F10.60.0.189\u002Fgotrue\u002Ftoken?grant_type=password\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"email\":\"\u003Cemail>\",\"password\":\"\u003Cpassword>\"}'\n```\n\n```bash\n# 调用 API（示例：搜索）\ncurl -sS \"http:\u002F\u002F10.60.0.189\u002Fapi\u002Fsearch\u002F\u003Cworkspace_id>?query=test\" \\\n  -H \"Authorization: Bearer \u003Caccess_token>\" \\\n  -H \"client-version: 0.12.3\" \\\n  -H \"client-timestamp: 1700000000000\" \\\n  -H \"device-id: \u003Cuuid>\"\n```\n\n## 统一入口（推荐）\n统一入口脚本用于封装命令风格，适合自动化与外部集成：\n\n```bash\npython skills\u002Fappflowy-api\u002Fscripts\u002Fappflowy_skill.py list\npython skills\u002Fappflowy-api\u002Fscripts\u002Fappflowy_skill.py help apply-grid\npython skills\u002Fappflowy-api\u002Fscripts\u002Fappflowy_skill.py help database-query\npython skills\u002Fappflowy-api\u002Fscripts\u002Fappflowy_skill.py help page-get-tree\npython skills\u002Fappflowy-api\u002Fscripts\u002Fappflowy_skill.py help page-get-blocks\npython skills\u002Fappflowy-api\u002Fscripts\u002Fappflowy_skill.py help page-delete-blocks\npython skills\u002Fappflowy-api\u002Fscripts\u002Fappflowy_skill.py help rename-db-field\npython skills\u002Fappflowy-api\u002Fscripts\u002Fappflowy_skill.py help delete-db-field\npython skills\u002Fappflowy-api\u002Fscripts\u002Fappflowy_skill.py help bulk-upsert-rows\npython skills\u002Fappflowy-api\u002Fscripts\u002Fappflowy_skill.py help schema-diff\npython skills\u002Fappflowy-api\u002Fscripts\u002Fappflowy_skill.py help schema-migration-plan\npython skills\u002Fappflowy-api\u002Fscripts\u002Fappflowy_skill.py help apply-schema-migration\npython skills\u002Fappflowy-api\u002Fscripts\u002Fappflowy_skill.py help render-template\npython skills\u002Fappflowy-api\u002Fscripts\u002Fappflowy_skill.py help repair-runner\npython skills\u002Fappflowy-api\u002Fscripts\u002Fappflowy_skill.py help snapshot-collab\npython skills\u002Fappflowy-api\u002Fscripts\u002Fappflowy_skill.py help rollback-collab\n```\n\n## 配置优先级\n解析优先级（从高到低）：\n1. 命令行参数：`--base-url`、`--gotrue-url`、`--client-version`、`--device-id`\n2. 配置文件：`--config \u003Cpath>`（JSON，示例见 `skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json`）\n3. 环境变量：`APPFLOWY_BASE_URL`、`API_EXTERNAL_URL`、`APPFLOWY_GOTRUE_BASE_URL`\n4. `.env` 文件：仅在传入 `--env \u003Cpath>` 时读取\n\n## 常用脚本\n```bash\n# 获取 token\npython skills\u002Fappflowy-api\u002Fscripts\u002Fget_token.py --email \u003Cemail> --password \u003Cpassword>\n```\n\n```bash\n# 自检（不会自动读取 .env）\npython skills\u002Fappflowy-api\u002Fscripts\u002Fdoctor.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword>\n```\n\n```bash\n# 生成“用户管理系统”文档（UTF-8 模板，表格顺序为正序）\npython skills\u002Fappflowy-api\u002Fscripts\u002Fcreate_user_management_doc.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword>\n```\n\n```bash\n# 就地修正文档（通用模板脚本）\npython skills\u002Fappflowy-api\u002Fscripts\u002Fupdate_user_management_doc.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --view-id \u003Cview_id>\n```\n\n```bash\n# 通用模板：按模板更新 Grid（默认就地修改）\npython skills\u002Fappflowy-api\u002Fscripts\u002Fapply_grid_template.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --view-id \u003Cview_id> --template-file \u003Ctemplate.json>\npython skills\u002Fappflowy-api\u002Fscripts\u002Fapply_grid_template.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --view-id \u003Cview_id> --template-file skills\u002Fappflowy-api\u002Freferences\u002Ftemplates\u002Fgrid_plan.with_vars.example.json --vars-file skills\u002Fappflowy-api\u002Freferences\u002Ftemplates\u002Fgrid_plan.vars.example.json\n```\n\n```bash\n# 删除行（通过 collab 从 row_orders 移除，支持多个 row_id）\npython skills\u002Fappflowy-api\u002Fscripts\u002Fdelete_rows.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --database-id \u003Cdatabase_id> --row-ids \u003Crow_id_1,row_id_2>\n```\n\n```bash\n# 查询数据库（支持 filter\u002Fsort\u002Flimit\u002Foffset；推荐 query-file）\npython skills\u002Fappflowy-api\u002Fscripts\u002Fdatabase_query.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --database-id \u003Cdatabase_id> --query-file \u003Cquery.json>\n```\n\n```json\n{\n  \"filter\": [\n    { \"field\": \"Status\", \"op\": \"eq\", \"value\": \"To Do\" }\n  ],\n  \"sort\": [\n    { \"field\": \"Last modified\", \"direction\": \"desc\" }\n  ],\n  \"limit\": 20,\n  \"offset\": 0\n}\n```\n\n```bash\n# 读取页面树（支持 root_view_id 与 depth）\npython skills\u002Fappflowy-api\u002Fscripts\u002Fpage_tree.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --depth 3 --compact\n```\n\n```bash\n# 读取页面 block 树（默认树形；--flat 扁平输出；--raw 原始 collab）\npython skills\u002Fappflowy-api\u002Fscripts\u002Fpage_blocks.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --view-id \u003Cview_id> --flat\n```\n\n```bash\n# 删除页面 block（先 dry-run，确认后执行）\npython skills\u002Fappflowy-api\u002Fscripts\u002Fdelete_page_blocks.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --view-id \u003Cview_id> --block-id \u003Cblock_id> --dry-run\npython skills\u002Fappflowy-api\u002Fscripts\u002Fdelete_page_blocks.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --view-id \u003Cview_id> --block-id \u003Cblock_id>\n```\n\n```bash\n# 字段改名（支持按 field_id \u002F field_name）\npython skills\u002Fappflowy-api\u002Fscripts\u002Frename_db_field.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --database-id \u003Cdatabase_id> --field-id \u003Cfield_id> --new-name \u003Cnew_name> --dry-run\npython skills\u002Fappflowy-api\u002Fscripts\u002Frename_db_field.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --database-id \u003Cdatabase_id> --field-id \u003Cfield_id> --new-name \u003Cnew_name>\n```\n\n```bash\n# 字段删除（默认 dry-run；执行必须 --execute --yes；禁止删除主字段）\npython skills\u002Fappflowy-api\u002Fscripts\u002Fdelete_db_field.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --database-id \u003Cdatabase_id> --field-id \u003Cfield_id>\npython skills\u002Fappflowy-api\u002Fscripts\u002Fdelete_db_field.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --database-id \u003Cdatabase_id> --field-id \u003Cfield_id> --execute --yes\n```\n\n```bash\n# 批量 upsert 行（支持 dry-run，输出新增\u002F更新\u002F失败摘要）\npython skills\u002Fappflowy-api\u002Fscripts\u002Fbulk_upsert_rows.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --database-id \u003Cdatabase_id> --rows-file \u003Crows.json> --pre-hash-prefix \u003Cprefix> --dry-run\npython skills\u002Fappflowy-api\u002Fscripts\u002Fbulk_upsert_rows.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --database-id \u003Cdatabase_id> --rows-file \u003Crows.json> --pre-hash-prefix \u003Cprefix>\n```\n\n```bash\n# v0.3 M1：schema diff（当前库 vs 目标模板\u002F目标库）\npython skills\u002Fappflowy-api\u002Fscripts\u002Fschema_diff.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --database-id \u003Cdatabase_id> --target-template-file skills\u002Fappflowy-api\u002Freferences\u002Ftemplates\u002Ffitness_plan.example.json\npython skills\u002Fappflowy-api\u002Fscripts\u002Fschema_diff.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --database-id \u003Cdatabase_id> --target-database-id \u003Ctarget_database_id>\n```\n\n```bash\n# v0.3 M1：migration plan（仅生成计划，不执行）\npython skills\u002Fappflowy-api\u002Fscripts\u002Fschema_migration_plan.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --database-id \u003Cdatabase_id> --target-template-file skills\u002Fappflowy-api\u002Freferences\u002Ftemplates\u002Ffitness_plan.example.json\npython skills\u002Fappflowy-api\u002Fscripts\u002Fschema_migration_plan.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --database-id \u003Cdatabase_id> --target-database-id \u003Ctarget_database_id> --rename-apply-threshold 0.80\n```\n\n```bash\n# v0.3 M2：apply schema migration（默认 dry-run）\npython skills\u002Fappflowy-api\u002Fscripts\u002Fapply_schema_migration.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --database-id \u003Cdatabase_id> --target-template-file skills\u002Fappflowy-api\u002Freferences\u002Ftemplates\u002Ffitness_plan.example.json\npython skills\u002Fappflowy-api\u002Fscripts\u002Fapply_schema_migration.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --database-id \u003Cdatabase_id> --plan-file \u003Cmigration_plan.json>\n```\n\n```bash\n# v0.3 M2：执行 migration（高风险需显式放行）\npython skills\u002Fappflowy-api\u002Fscripts\u002Fapply_schema_migration.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --database-id \u003Cdatabase_id> --plan-file \u003Cmigration_plan.json> --execute --yes --allow-high-risk --allow-delete-fields\n```\n\n```bash\n# v0.3 M3：模板渲染（变量注入）\npython skills\u002Fappflowy-api\u002Fscripts\u002Frender_template.py --template-file skills\u002Fappflowy-api\u002Freferences\u002Ftemplates\u002Fgrid_plan.with_vars.example.json --vars-file skills\u002Fappflowy-api\u002Freferences\u002Ftemplates\u002Fgrid_plan.vars.example.json --output-file .tmp\u002Fgrid_plan.rendered.json\n```\n\n```bash\n# v0.3 M3：修复器框架（默认 dry-run）\npython skills\u002Fappflowy-api\u002Fscripts\u002Frepair_runner.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --database-id \u003Cdatabase_id> --template-file skills\u002Fappflowy-api\u002Freferences\u002Ftemplates\u002Ffitness_plan.example.json\npython skills\u002Fappflowy-api\u002Fscripts\u002Frepair_runner.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --database-id \u003Cdatabase_id> --template-file .tmp\u002Fgrid_plan.rendered.json --repair ensure-template-fields --repair repair-select-options --execute --yes\n```\n\n```bash\n# v0.3 M4：collab 快照与回滚\npython skills\u002Fappflowy-api\u002Fscripts\u002Fsnapshot_collab.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --database-id \u003Cdatabase_id>\npython skills\u002Fappflowy-api\u002Fscripts\u002Frollback_collab.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --snapshot-file \u003Csnapshot.json>\npython skills\u002Fappflowy-api\u002Fscripts\u002Frollback_collab.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --snapshot-file \u003Csnapshot.json> --execute --yes\n```\n\n```json\n{\n  \"rows\": [\n    {\n      \"key\": \"task_1\",\n      \"cells\": { \"Description\": \"example\", \"Status\": \"To Do\" }\n    },\n    {\n      \"pre_hash\": \"biz:task_2\",\n      \"cells\": { \"Description\": \"example2\", \"Status\": \"Doing\" }\n    }\n  ]\n}\n```\n\n## 子内容规则（子任务 \u002F 子项 \u002F 子 Grid）\n1. `子任务`（Checklist\u002FTodo 列）：适用于**简单描述**的子内容，不需要额外字段。\n2. `子项`（Relation 列）：当子内容与父级**字段结构一致**时，通过关联行管理。\n3. `子 Grid`：当子内容需要**独立字段结构**时，新建 Grid 并在父级引用或说明。\n\n## Grid 默认空行处理\n新建 Grid 时可能自动生成 3 条空行。脚本在写入数据前会清理默认空行，避免空行混入真实计划。\n\n## Select 写入规则（重要）\n1. `SingleSelect`\u002F`MultiSelect` 行值写入时应使用**选项名称**（例如：`\"状态\": \"进行中\"`、`\"标签\": [\"核心\", \"风险\"]`）。\n2. 不要把 `selected_option_ids` 直接作为 `SingleSelect`\u002F`MultiSelect` 行值提交给 REST row API，否则容易触发 `HTTP 400`。\n3. `selected_option_ids` 仅适用于 `Checklist`（子任务）字段结构。\n\n## 必需请求头\n所有 AppFlowy API 请求均需携带：\n1. `Authorization: Bearer \u003Caccess_token>`\n2. `client-version: \u003CAppFlowy 版本>`（建议与部署版本一致）\n3. `client-timestamp: \u003CUnix 毫秒>`\n4. `device-id: \u003CUUID>`\n\n## 错误处理与排障\n1. HTTP 200 但响应体包含 `success=false` 或 `error` 视为业务失败。\n2. 控制台提示无法连接时，优先检查宿主机 `80\u002F443` 可达性与防火墙规则。\n3. 容器间调用优先使用内部地址（如 `http:\u002F\u002Fgotrue:9999`、`http:\u002F\u002Fappflowy_cloud:8000`）。\n4. 删除行时，`\u002Fdatabase\u002F{database_id}\u002Frow` 没有 `DELETE` 路由；应使用 `delete_rows.py` 通过 collab 更新 `row_orders` 完成删除。\n5. `database-query` 的 `--query-file` 支持 UTF-8\u002FUTF-8 BOM（Windows PowerShell 导出的 UTF-8 也可读取）。\n6. 字段改名\u002F字段删除当前通过 collab 更新实现；其中字段删除默认 dry-run，执行必须显式传入 `--execute --yes`。\n7. M3 统一输出协议：高风险\u002F批量命令返回 `change_report`（`before\u002Fplan\u002Fafter\u002Fsummary` 四段）。\n8. v0.3 M1 新增 `schema-diff` 与 `schema-migration-plan`，两者均输出 `change_report`。\n9. `schema-diff` 中的 `rename_candidates` 是“建议项”，后续执行仍应优先以 `field_id` 二次确认。\n10. v0.3 M2 新增 `apply-schema-migration`，默认 dry-run；执行需要 `--execute --yes`，并对高风险操作要求额外确认参数。\n11. `apply-schema-migration` 在执行前后自动输出 before\u002Fafter diff 摘要；若 plan 文件缺少 target schema，会提示 after diff 不可用。\n12. `apply-schema-migration` 的 `--plan-file` 支持 UTF-8 \u002F UTF-8 BOM \u002F UTF-16 编码，兼容 PowerShell 重定向文件。\n13. v0.3 M3 新增 `render-template`，支持 `--vars\u002F--vars-file`、默认值与必填校验。\n14. v0.3 M3 新增 `repair-runner`，将空行清理 \u002F 字段结构补齐 \u002F select 选项修复抽象为可组合规则。\n15. `render-template` 与 `repair-runner` 执行后会生成 `audit_log`，默认输出到 `.tmp\u002Faudit_logs\u002F`。\n16. v0.3 M4 新增 `snapshot-collab` 与 `rollback-collab`，支持 database\u002Fdoc 对象快照与回滚。\n17. `rollback-collab` 默认 `auto` 策略：database 走 `schema-database`，其余对象走 `state-update`。\n\n## 资源\n1. `skills\u002Fappflowy-api\u002Fscripts\u002F`：Python\u002FNode 脚本与通用库。\n2. `skills\u002Fappflowy-api\u002Freferences\u002F`：API 参考与模板文件。\n3. `skills\u002Fappflowy-api\u002Freferences\u002Ftemplates\u002F`：UTF-8 模板，避免乱码与字段顺序问题。\n4. `skills\u002Fappflowy-api\u002Freferences\u002Fv0.2_m1_regression.md`：v0.2 M1 真实联调记录。\n5. `skills\u002Fappflowy-api\u002Freferences\u002Fv0.2_m2_regression.md`：v0.2 M2 真实联调记录。\n6. `skills\u002Fappflowy-api\u002Freferences\u002Fv0.2_m3_regression.md`：v0.2 M3 真实联调记录。\n7. `skills\u002Fappflowy-api\u002Freferences\u002Fv0.2_regression_suite.md`：v0.2 回归脚本清单。\n8. `skills\u002Fappflowy-api\u002Freferences\u002Fv0.2_m4_regression.md`：v0.2 M4 真实回归记录。\n9. `skills\u002Fappflowy-api\u002Freferences\u002Fv0.3_m1_regression.md`：v0.3 M1 真实联调记录。\n10. `skills\u002Fappflowy-api\u002Freferences\u002Fv0.3_m2_regression.md`：v0.3 M2 真实联调记录。\n11. `skills\u002Fappflowy-api\u002Freferences\u002Fv0.3_m3_regression.md`：v0.3 M3 真实联调记录。\n12. `skills\u002Fappflowy-api\u002Freferences\u002Fv0.3_m4_regression.md`：v0.3 M4 真实联调记录。\n13. `skills\u002Fappflowy-api\u002Freferences\u002Fsnapshot_rollback_protocol.md`：快照回滚协议。\n14. `skills\u002Fappflowy-api\u002Freferences\u002Fv0.3_release_notes.md`：v0.3.0 发布说明。\n15. `skills\u002Fappflowy-api\u002Fexamples\u002F`：示例命令与用法。\n","# AppFlowy API\n\n## 概述\n本 skill 用于自托管 AppFlowy 环境的 API 调用与自动化，覆盖登录鉴权、文档\u002F视图\u002F数据库操作、搜索、协作数据（collab）等常见场景。默认**不读取 `.env`**，仅在显式传入 `--env \u003Cpath>` 时读取。\n\n本 skill 当前适配 AppFlowy Cloud `0.12.3`。`doctor.py` 会通过 `\u002Fapi\u002Fhealth` 检测版本并在不匹配时给出警告。\n\n## 快速开始\n1. 准备 base URL 与 GoTrue URL（可选 `--env \u003Cpath>` 读取 `.env`）。\n2. 使用账号密码获取 `access_token`。\n3. 携带必要请求头调用 AppFlowy API。\n\n```bash\n# 获取 token\ncurl -sS -X POST \"http:\u002F\u002F10.60.0.189\u002Fgotrue\u002Ftoken?grant_type=password\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"email\":\"\u003Cemail>\",\"password\":\"\u003Cpassword>\"}'\n```\n\n```bash\n# 调用 API（示例：搜索）\ncurl -sS \"http:\u002F\u002F10.60.0.189\u002Fapi\u002Fsearch\u002F\u003Cworkspace_id>?query=test\" \\\n  -H \"Authorization: Bearer \u003Caccess_token>\" \\\n  -H \"client-version: 0.12.3\" \\\n  -H \"client-timestamp: 1700000000000\" \\\n  -H \"device-id: \u003Cuuid>\"\n```\n\n## 统一入口（推荐）\n统一入口脚本用于封装命令风格，适合自动化与外部集成：\n\n```bash\npython skills\u002Fappflowy-api\u002Fscripts\u002Fappflowy_skill.py list\npython skills\u002Fappflowy-api\u002Fscripts\u002Fappflowy_skill.py help apply-grid\npython skills\u002Fappflowy-api\u002Fscripts\u002Fappflowy_skill.py help database-query\npython skills\u002Fappflowy-api\u002Fscripts\u002Fappflowy_skill.py help page-get-tree\npython skills\u002Fappflowy-api\u002Fscripts\u002Fappflowy_skill.py help page-get-blocks\npython skills\u002Fappflowy-api\u002Fscripts\u002Fappflowy_skill.py help page-delete-blocks\npython skills\u002Fappflowy-api\u002Fscripts\u002Fappflowy_skill.py help rename-db-field\npython skills\u002Fappflowy-api\u002Fscripts\u002Fappflowy_skill.py help delete-db-field\npython skills\u002Fappflowy-api\u002Fscripts\u002Fappflowy_skill.py help bulk-upsert-rows\npython skills\u002Fappflowy-api\u002Fscripts\u002Fappflowy_skill.py help schema-diff\npython skills\u002Fappflowy-api\u002Fscripts\u002Fappflowy_skill.py help schema-migration-plan\npython skills\u002Fappflowy-api\u002Fscripts\u002Fappflowy_skill.py help apply-schema-migration\npython skills\u002Fappflowy-api\u002Fscripts\u002Fappflowy_skill.py help render-template\npython skills\u002Fappflowy-api\u002Fscripts\u002Fappflowy_skill.py help repair-runner\npython skills\u002Fappflowy-api\u002Fscripts\u002Fappflowy_skill.py help snapshot-collab\npython skills\u002Fappflowy-api\u002Fscripts\u002Fappflowy_skill.py help rollback-collab\n```\n\n## 配置优先级\n解析优先级（从高到低）：\n1. 命令行参数：`--base-url`、`--gotrue-url`、`--client-version`、`--device-id`\n2. 配置文件：`--config \u003Cpath>`（JSON，示例见 `skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json`）\n3. 环境变量：`APPFLOWY_BASE_URL`、`API_EXTERNAL_URL`、`APPFLOWY_GOTRUE_BASE_URL`\n4. `.env` 文件：仅在传入 `--env \u003Cpath>` 时读取\n\n## 常用脚本\n```bash\n# 获取 token\npython skills\u002Fappflowy-api\u002Fscripts\u002Fget_token.py --email \u003Cemail> --password \u003Cpassword>\n```\n\n```bash\n# 自检（不会自动读取 .env）\npython skills\u002Fappflowy-api\u002Fscripts\u002Fdoctor.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword>\n```\n\n```bash\n# 生成“用户管理系统”文档（UTF-8 模板，表格顺序为正序）\npython skills\u002Fappflowy-api\u002Fscripts\u002Fcreate_user_management_doc.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword>\n```\n\n```bash\n# 就地修正文档（通用模板脚本）\npython skills\u002Fappflowy-api\u002Fscripts\u002Fupdate_user_management_doc.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --view-id \u003Cview_id>\n```\n\n```bash\n# 通用模板：按模板更新 Grid（默认就地修改）\npython skills\u002Fappflowy-api\u002Fscripts\u002Fapply_grid_template.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --view-id \u003Cview_id> --template-file \u003Ctemplate.json>\npython skills\u002Fappflowy-api\u002Fscripts\u002Fapply_grid_template.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --view-id \u003Cview_id> --template-file skills\u002Fappflowy-api\u002Freferences\u002Ftemplates\u002Fgrid_plan.with_vars.example.json --vars-file skills\u002Fappflowy-api\u002Freferences\u002Ftemplates\u002Fgrid_plan.vars.example.json\n```\n\n```bash\n# 删除行（通过 collab 从 row_orders 移除，支持多个 row_id）\npython skills\u002Fappflowy-api\u002Fscripts\u002Fdelete_rows.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --database-id \u003Cdatabase_id> --row-ids \u003Crow_id_1,row_id_2>\n```\n\n```bash\n# 查询数据库（支持 filter\u002Fsort\u002Flimit\u002Foffset；推荐 query-file）\npython skills\u002Fappflowy-api\u002Fscripts\u002Fdatabase_query.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --database-id \u003Cdatabase_id> --query-file \u003Cquery.json>\n```\n\n```json\n{\n  \"filter\": [\n    { \"field\": \"Status\", \"op\": \"eq\", \"value\": \"To Do\" }\n  ],\n  \"sort\": [\n    { \"field\": \"Last modified\", \"direction\": \"desc\" }\n  ],\n  \"limit\": 20,\n  \"offset\": 0\n}\n```\n\n```bash\n# 读取页面树（支持 root_view_id 与 depth）\npython skills\u002Fappflowy-api\u002Fscripts\u002Fpage_tree.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --depth 3 --compact\n```\n\n```bash\n# 读取页面 block 树（默认树形；--flat 扁平输出；--raw 原始 collab）\npython skills\u002Fappflowy-api\u002Fscripts\u002Fpage_blocks.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --view-id \u003Cview_id> --flat\n```\n\n```bash\n# 删除页面 block（先 dry-run，确认后执行）\npython skills\u002Fappflowy-api\u002Fscripts\u002Fdelete_page_blocks.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --view-id \u003Cview_id> --block-id \u003Cblock_id> --dry-run\npython skills\u002Fappflowy-api\u002Fscripts\u002Fdelete_page_blocks.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --view-id \u003Cview_id> --block-id \u003Cblock_id>\n```\n\n```bash\n# 字段改名（支持按 field_id \u002F field_name）\npython skills\u002Fappflowy-api\u002Fscripts\u002Frename_db_field.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --database-id \u003Cdatabase_id> --field-id \u003Cfield_id> --new-name \u003Cnew_name> --dry-run\npython skills\u002Fappflowy-api\u002Fscripts\u002Frename_db_field.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --database-id \u003Cdatabase_id> --field-id \u003Cfield_id> --new-name \u003Cnew_name>\n```\n\n```bash\n# 字段删除（默认 dry-run；执行必须 --execute --yes；禁止删除主字段）\npython skills\u002Fappflowy-api\u002Fscripts\u002Fdelete_db_field.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --database-id \u003Cdatabase_id> --field-id \u003Cfield_id>\npython skills\u002Fappflowy-api\u002Fscripts\u002Fdelete_db_field.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --database-id \u003Cdatabase_id> --field-id \u003Cfield_id> --execute --yes\n```\n\n```bash\n# 批量 upsert 行（支持 dry-run，输出新增\u002F更新\u002F失败摘要）\npython skills\u002Fappflowy-api\u002Fscripts\u002Fbulk_upsert_rows.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --database-id \u003Cdatabase_id> --rows-file \u003Crows.json> --pre-hash-prefix \u003Cprefix> --dry-run\npython skills\u002Fappflowy-api\u002Fscripts\u002Fbulk_upsert_rows.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --database-id \u003Cdatabase_id> --rows-file \u003Crows.json> --pre-hash-prefix \u003Cprefix>\n```\n\n```bash\n# v0.3 M1：schema diff（当前库 vs 目标模板\u002F目标库）\npython skills\u002Fappflowy-api\u002Fscripts\u002Fschema_diff.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --database-id \u003Cdatabase_id> --target-template-file skills\u002Fappflowy-api\u002Freferences\u002Ftemplates\u002Ffitness_plan.example.json\npython skills\u002Fappflowy-api\u002Fscripts\u002Fschema_diff.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --database-id \u003Cdatabase_id> --target-database-id \u003Ctarget_database_id>\n```\n\n```bash\n# v0.3 M1：migration plan（仅生成计划，不执行）\npython skills\u002Fappflowy-api\u002Fscripts\u002Fschema_migration_plan.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --database-id \u003Cdatabase_id> --target-template-file skills\u002Fappflowy-api\u002Freferences\u002Ftemplates\u002Ffitness_plan.example.json\npython skills\u002Fappflowy-api\u002Fscripts\u002Fschema_migration_plan.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --database-id \u003Cdatabase_id> --target-database-id \u003Ctarget_database_id> --rename-apply-threshold 0.80\n```\n\n```bash\n# v0.3 M2：apply schema migration（默认 dry-run）\npython skills\u002Fappflowy-api\u002Fscripts\u002Fapply_schema_migration.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --database-id \u003Cdatabase_id> --target-template-file skills\u002Fappflowy-api\u002Freferences\u002Ftemplates\u002Ffitness_plan.example.json\npython skills\u002Fappflowy-api\u002Fscripts\u002Fapply_schema_migration.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --database-id \u003Cdatabase_id> --plan-file \u003Cmigration_plan.json>\n```\n\n```bash\n# v0.3 M2：执行 migration（高风险需显式放行）\npython skills\u002Fappflowy-api\u002Fscripts\u002Fapply_schema_migration.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --database-id \u003Cdatabase_id> --plan-file \u003Cmigration_plan.json> --execute --yes --allow-high-risk --allow-delete-fields\n```\n\n```bash\n# v0.3 M3：模板渲染（变量注入）\npython skills\u002Fappflowy-api\u002Fscripts\u002Frender_template.py --template-file skills\u002Fappflowy-api\u002Freferences\u002Ftemplates\u002Fgrid_plan.with_vars.example.json --vars-file skills\u002Fappflowy-api\u002Freferences\u002Ftemplates\u002Fgrid_plan.vars.example.json --output-file .tmp\u002Fgrid_plan.rendered.json\n```\n\n```bash\n# v0.3 M3：修复器框架（默认 dry-run）\npython skills\u002Fappflowy-api\u002Fscripts\u002Frepair_runner.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --database-id \u003Cdatabase_id> --template-file skills\u002Fappflowy-api\u002Freferences\u002Ftemplates\u002Ffitness_plan.example.json\npython skills\u002Fappflowy-api\u002Fscripts\u002Frepair_runner.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --database-id \u003Cdatabase_id> --template-file .tmp\u002Fgrid_plan.rendered.json --repair ensure-template-fields --repair repair-select-options --execute --yes\n```\n\n```bash\n# v0.3 M4：collab 快照与回滚\npython skills\u002Fappflowy-api\u002Fscripts\u002Fsnapshot_collab.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --workspace-id \u003Cworkspace_id> --database-id \u003Cdatabase_id>\npython skills\u002Fappflowy-api\u002Fscripts\u002Frollback_collab.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --snapshot-file \u003Csnapshot.json>\npython skills\u002Fappflowy-api\u002Fscripts\u002Frollback_collab.py --config skills\u002Fappflowy-api\u002Freferences\u002Fconfig.example.json --email \u003Cemail> --password \u003Cpassword> --snapshot-file \u003Csnapshot.json> --execute --yes\n```\n\n```json\n{\n  \"rows\": [\n    {\n      \"key\": \"task_1\",\n      \"cells\": { \"Description\": \"example\", \"Status\": \"To Do\" }\n    },\n    {\n      \"pre_hash\": \"biz:task_2\",\n      \"cells\": { \"Description\": \"example2\", \"Status\": \"Doing\" }\n    }\n  ]\n}\n```\n\n## 子内容规则（子任务 \u002F 子项 \u002F 子 Grid）\n1. `子任务`（Checklist\u002FTodo 列）：适用于**简单描述**的子内容，不需要额外字段。\n2. `子项`（Relation 列）：当子内容与父级**字段结构一致**时，通过关联行管理。\n3. `子 Grid`：当子内容需要**独立字段结构**时，新建 Grid 并在父级引用或说明。\n\n## Grid 默认空行处理\n新建 Grid 时可能自动生成 3 条空行。脚本在写入数据前会清理默认空行，避免空行混入真实计划。\n\n## Select 写入规则（重要）\n1. `SingleSelect`\u002F`MultiSelect` 行值写入时应使用**选项名称**（例如：`\"状态\": \"进行中\"`、`\"标签\": [\"核心\", \"风险\"]`）。\n2. 不要把 `selected_option_ids` 直接作为 `SingleSelect`\u002F`MultiSelect` 行值提交给 REST row API，否则容易触发 `HTTP 400`。\n3. `selected_option_ids` 仅适用于 `Checklist`（子任务）字段结构。\n\n## 必需请求头\n所有 AppFlowy API 请求均需携带：\n1. `Authorization: Bearer \u003Caccess_token>`\n2. `client-version: \u003CAppFlowy 版本>`（建议与部署版本一致）\n3. `client-timestamp: \u003CUnix 毫秒>`\n4. `device-id: \u003CUUID>`\n\n## 错误处理与排障\n1. HTTP 200 但响应体包含 `success=false` 或 `error` 视为业务失败。\n2. 控制台提示无法连接时，优先检查宿主机 `80\u002F443` 可达性与防火墙规则。\n3. 容器间调用优先使用内部地址（如 `http:\u002F\u002Fgotrue:9999`、`http:\u002F\u002Fappflowy_cloud:8000`）。\n4. 删除行时，`\u002Fdatabase\u002F{database_id}\u002Frow` 没有 `DELETE` 路由；应使用 `delete_rows.py` 通过 collab 更新 `row_orders` 完成删除。\n5. `database-query` 的 `--query-file` 支持 UTF-8\u002FUTF-8 BOM（Windows PowerShell 导出的 UTF-8 也可读取）。\n6. 字段改名\u002F字段删除当前通过 collab 更新实现；其中字段删除默认 dry-run，执行必须显式传入 `--execute --yes`。\n7. M3 统一输出协议：高风险\u002F批量命令返回 `change_report`（`before\u002Fplan\u002Fafter\u002Fsummary` 四段）。\n8. v0.3 M1 新增 `schema-diff` 与 `schema-migration-plan`，两者均输出 `change_report`。\n9. `schema-diff` 中的 `rename_candidates` 是“建议项”，后续执行仍应优先以 `field_id` 二次确认。\n10. v0.3 M2 新增 `apply-schema-migration`，默认 dry-run；执行需要 `--execute --yes`，并对高风险操作要求额外确认参数。\n11. `apply-schema-migration` 在执行前后自动输出 before\u002Fafter diff 摘要；若 plan 文件缺少 target schema，会提示 after diff 不可用。\n12. `apply-schema-migration` 的 `--plan-file` 支持 UTF-8 \u002F UTF-8 BOM \u002F UTF-16 编码，兼容 PowerShell 重定向文件。\n13. v0.3 M3 新增 `render-template`，支持 `--vars\u002F--vars-file`、默认值与必填校验。\n14. v0.3 M3 新增 `repair-runner`，将空行清理 \u002F 字段结构补齐 \u002F select 选项修复抽象为可组合规则。\n15. `render-template` 与 `repair-runner` 执行后会生成 `audit_log`，默认输出到 `.tmp\u002Faudit_logs\u002F`。\n16. v0.3 M4 新增 `snapshot-collab` 与 `rollback-collab`，支持 database\u002Fdoc 对象快照与回滚。\n17. `rollback-collab` 默认 `auto` 策略：database 走 `schema-database`，其余对象走 `state-update`。\n\n## 资源\n1. `skills\u002Fappflowy-api\u002Fscripts\u002F`：Python\u002FNode 脚本与通用库。\n2. `skills\u002Fappflowy-api\u002Freferences\u002F`：API 参考与模板文件。\n3. `skills\u002Fappflowy-api\u002Freferences\u002Ftemplates\u002F`：UTF-8 模板，避免乱码与字段顺序问题。\n4. `skills\u002Fappflowy-api\u002Freferences\u002Fv0.2_m1_regression.md`：v0.2 M1 真实联调记录。\n5. `skills\u002Fappflowy-api\u002Freferences\u002Fv0.2_m2_regression.md`：v0.2 M2 真实联调记录。\n6. `skills\u002Fappflowy-api\u002Freferences\u002Fv0.2_m3_regression.md`：v0.2 M3 真实联调记录。\n7. `skills\u002Fappflowy-api\u002Freferences\u002Fv0.2_regression_suite.md`：v0.2 回归脚本清单。\n8. `skills\u002Fappflowy-api\u002Freferences\u002Fv0.2_m4_regression.md`：v0.2 M4 真实回归记录。\n9. `skills\u002Fappflowy-api\u002Freferences\u002Fv0.3_m1_regression.md`：v0.3 M1 真实联调记录。\n10. `skills\u002Fappflowy-api\u002Freferences\u002Fv0.3_m2_regression.md`：v0.3 M2 真实联调记录。\n11. `skills\u002Fappflowy-api\u002Freferences\u002Fv0.3_m3_regression.md`：v0.3 M3 真实联调记录。\n12. `skills\u002Fappflowy-api\u002Freferences\u002Fv0.3_m4_regression.md`：v0.3 M4 真实联调记录。\n13. `skills\u002Fappflowy-api\u002Freferences\u002Fsnapshot_rollback_protocol.md`：快照回滚协议。\n14. `skills\u002Fappflowy-api\u002Freferences\u002Fv0.3_release_notes.md`：v0.3.0 发布说明。\n15. `skills\u002Fappflowy-api\u002Fexamples\u002F`：示例命令与用法。\n",{"name":5,"description":7},"master","63f17866001c5ca854bf2fa0b678ce277133de5b","skills\u002Fmarketplace\u002Fappflowy-api",0,"https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS","https:\u002F\u002Fbg-szy.github.io\u002FTOP-SKILLS\u002F","https:\u002F\u002Fgithub.com\u002Fbg-szy","https:\u002F\u002Fwww.ecust.edu.cn\u002F","a student of East China University of Science and Technology","2026-11-15 03:38:02",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add bg-szy\u002FTOP-SKILLS --skill appflowy-api",{"tool":41,"command":42},"bunx","bunx skills add bg-szy\u002FTOP-SKILLS --skill appflowy-api",{"tool":44,"command":45},"pnpm","pnpm dlx skills add bg-szy\u002FTOP-SKILLS --skill appflowy-api","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fappflowy-api\u002FSKILL.md",true,[49,55,59,63,67,71],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"APPFLOWY_SKILL_CAPABILITY_MATRIX_AND_ROADMAP.md","REFERENCE","参考文档",32346,"https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fappflowy-api\u002FAPPFLOWY_SKILL_CAPABILITY_MATRIX_AND_ROADMAP.md",{"path":56,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":58,"sourceHtmlUrl":16},"LICENSE","许可证",1063,{"path":60,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":61,"sourceHtmlUrl":62},"README.md",12494,"https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fappflowy-api\u002FREADME.md",{"path":64,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":65,"sourceHtmlUrl":66},"skill-report.json",152629,"https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fappflowy-api\u002Fskill-report.json",{"path":68,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":69,"sourceHtmlUrl":70},"skill.json",376,"https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fappflowy-api\u002Fskill.json",{"path":72,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":14,"sourceHtmlUrl":75},"VERSION","OTHER","其他","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fappflowy-api\u002FVERSION",[77,85,92,99,106,113],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":84},"01M7DXW9N826PKXK174PVW3038","serpmaven","Scrape Google search results (SERP) to JSON with SERP Maven (serpmaven) - a real Chrome browser on a residential proxy with sticky sessions. Run it as a CLI, a Python library, a local HTTP search API (`serve`), an MCP server or a Docker image; set the proxy login, workers, pages and cost tracking. Use when the user wants Google results, rank tracking, a self-hosted SERP API, or live Google search for an AI agent.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fserpmaven\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":84},"01M7DXVHSTWDV65475QEQ915M7","revnu-landing-page-audit","Find out why a landing page isn't turning visitors into signups, demos or sales. Audits one page against what the ad, post or search that sends people there promised, then checks the first screen, proof, call to action, friction and mobile. Returns at most 7 prioritized fixes, plus what is fine and what could not be checked; rewrites specific lines and fixes the page in the repo when asked. Never promises a conversion lift. Works without a Revnu account. Use when the user says or asks: \"audit my landing page\", \"why isn't this page converting\", \"review my homepage\", \"my ads get clicks but no signups\", \"people bounce from the pricing page\", \"CRO review\", \"improve conversion rate\", \"is my hero section clear\", \"roast my landing page\", \"rewrite my headline\", \"what's wrong with this page\", \"landing page feedback\", \"make the signup page convert better\". Not for SEO or AI-search audits, page speed engineering on its own, or building a new page from scratch.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-landing-page-audit\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":84},"01M7DXV8X2D7B3VTD4HHYYHTGR","revnu-growth-context","Write down once who buys, what they're stuck on, what it costs, what proof you have and what you've already tried, so every growth task starts from facts instead of a questionnaire. Creates or updates .agents\u002Frevnu-growth.md from the repo, the live site and the user, and imports an existing product-marketing.md. Use when the user says \"set up our marketing context\", \"who is our ideal customer\", \"write our ICP\", \"describe the product for marketing\", \"positioning doc\", \"what's our brand voice\", \"remember this about our customers\", \"log what we tried\", \"what have we learned from marketing\", \"we changed pricing, update the context\", \"update our growth notes\", \"summarize the business for the agent\", \"import my product-marketing.md\", \"start a growth doc\", or before a first marketing, SEO, outreach or launch task when no context file exists. Works without a Revnu account.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-growth-context\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":84},"01M7DXV0DGJ1G0A60PAHC6J3C5","revnu-get-listed","Get onto the third-party pages AI answers and search cite when buyers ask for the best tool in your category: \"best X\" roundups, directories, review sites, GitHub awesome lists, community threads and comparison pages. Finds which ones are cited, ranks them by fit and effort, and drafts each submission, PR or pitch by the target's own rules. Use when the user says \"get us listed\", \"which directories should we submit to\", \"how do we get into best-of lists\", \"why does ChatGPT recommend competitors and not us\", \"get mentioned in AI answers\", \"submit to awesome lists\", \"get on G2\", \"where are our competitors listed\", \"pitch listicle authors\", \"find backlink opportunities\", \"launch directories\", \"get into roundups\", \"Product Hunt alternatives\", \"where should we be listed\", \"get cited by Perplexity\". Never submits, pays or posts without a yes. Works without a Revnu account.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-get-listed\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":84},"01M7DXTSPMGT9D6DSS0HP9BSTA","revnu-ai-readiness-audit","Audit whether your website gives ChatGPT, Perplexity, Claude, Gemini and Google's AI Overviews something worth quoting, and fix the pages that don't. Use when the user says or asks \"is my site ready for AI search\", \"audit my site for AI answers\", \"AEO audit\", \"GEO audit\", \"why doesn't ChatGPT quote our pricing\", \"make our pages citable by AI\", \"do I need llms.txt\", \"does schema help with ChatGPT\", \"check our structured data\", \"is our content visible without JavaScript\", \"AI SEO audit\", \"optimize our homepage for AI answers\", \"LLM SEO check\", \"why does AI get our product wrong\", \"fix our site for AI Overviews\". Checks fetchability and indexability, answers in the raw HTML, entity facts, schema (including JS-injected markup), headings, dates and llms.txt, then gives at most 10 prioritised fixes and edits the repo when asked. Works without a Revnu account.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-ai-readiness-audit\u002FSKILL.md",[],[],{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":84},"01M7DXSZHCVTRS620GC3S97JZV","proxy-troubleshooting","Diagnose residential proxy failures, with NodeMaven's gateway as the reference - 407 with correct credentials, 406, 410, 500, a connection that hangs, ERR_TUNNEL_CONNECTION_FAILED in a browser, Playwright or Puppeteer ignoring proxy credentials, a sticky session that changes IP, geo-targeting that is silently ignored, passwords with special characters, and unexpected traffic from headless Chrome. Use when a proxy connection fails, returns the wrong location, or costs more traffic than expected.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fproxy-troubleshooting\u002FSKILL.md",[],[]]