/tapd-openapi:tapd-openapifrom TAPD
TAPD OpenAPI skill,用于需求、缺陷、任务、迭代、Wiki、评论、工时、附件等 TAPD 平台操作。当用户提到「TAPD」「需求」「story」「缺陷」「bug」「任务」「task」「迭代」「iteration」「sprint」「工时」「timesheet」「Wiki」「评论」「comment」「附件」或需要在 TAPD 中查询、创建、更新、统计相关内容时,使用此 skill。支持需求管理、缺陷管理、任务管理、迭代管理、Wiki 管理(含全文搜索)、评论管理、工时花费管理、附件管理及用户信息查询等功能。
Ships in TAPD. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
TAPD_API_ENDPOINT - API 地址, 如果 TAPD_API_ENDPOINT 已配置,则优先使用 TAPD_API_ENDPOINT 的替换文档中的 ${TAPD_API_ENDPOINT}TAPD_WORKSPACE_IDS - 项目 ID 列表,逗号分隔,优先级高于 TAPD_WORKSPACE_IDTAPD_WORKSPACE_ID - 单个项目 ID(兼容旧配置)TAPD_TOKEN - 认证 Token(Bearer 方式)调用前必须先确定实际使用的 workspace 列表:
# 优先取 TAPD_WORKSPACE_IDS,回退到 TAPD_WORKSPACE_ID
if [ -n "$TAPD_WORKSPACE_IDS" ]; then
WS_LIST=$(echo "$TAPD_WORKSPACE_IDS" | tr ',' ' ')
else
WS_LIST="$TAPD_WORKSPACE_ID"
fi
WS_LIST 只有一个 ID,按单 workspace 正常请求即可workspace_id=31372104 和 workspace_id=68119668# GET
curl -s -H "Authorization: Bearer $TAPD_TOKEN" \
"${TAPD_API_ENDPOINT}/${path}?workspace_id=${ws_id}"
# POST
curl -s -X POST -H "Authorization: Bearer $TAPD_TOKEN" \
-H "Content-Type: application/json" \
"${TAPD_API_ENDPOINT}/${path}" \
-d '{"workspace_id":"'"${ws_id}"'","key":"value"}'
API 文档位于 ~/.codebuddy/skills/tapd-openapi/references/ 目录。
1. 列出所有服务:
ls ~/.codebuddy/skills/tapd-openapi/references/
2. 列出服务下的 API:
ls ~/.codebuddy/skills/tapd-openapi/references/stories/
3. 查看 API 详情:
cat ~/.codebuddy/skills/tapd-openapi/references/stories/liststories.md
| 服务 | 说明 | 常用 API 文件 |
|---|---|---|
| stories | 需求管理 | liststories, countstories, addstory, updatestory, getrelatedbugs, getstoryfieldsinfo |
| bugs | 缺陷管理 | listbugs, countbugs, addbug, updatebug, getbugfieldsinfo |
| iterations | 迭代管理 | listiterations |
| tasks | 任务管理 | listtasks, counttasks, addtask, updatetask |
| comments | 评论管理 | listcomments, countcomments, addcomment |
| wikis | Wiki 管理 | listwikis, countwikis, addwiki, updatewiki, searchwiki(见下方) |
| timesheets | 工时花费 | listtimesheets, counttimesheets, addtimesheet, updatetimesheet |
| attachments | 附件管理 | listattachments, downloadattachment, getimage, downloaddocument |
| users | 用户信息 | getuserinfo, listworkspaces |
ls 查看全部ls ~/.codebuddy/skills/tapd-openapi/references/{服务}/ 找到具体操作cat 读取 API 文档,获取请求方法、路径、参数workspace_id 必传TAPD API 不支持 Wiki 全文搜索,通过本地脚本实现。详见:
cat ~/.codebuddy/skills/tapd-openapi/references/wikis/searchwiki.md
README.md (opens in a new tab)hooks/hooks.json (opens in a new tab)references/attachments/downloadattachment.md (opens in a new tab)references/attachments/downloaddocument.md (opens in a new tab)references/attachments/getimage.md (opens in a new tab)references/attachments/listattachments.md (opens in a new tab)references/bugs/addbug.md (opens in a new tab)references/bugs/countbugs.md (opens in a new tab)references/bugs/getbugfieldsinfo.md (opens in a new tab)references/bugs/listbugs.md (opens in a new tab)references/bugs/updatebug.md (opens in a new tab)references/comments/addcomment.md (opens in a new tab)references/comments/countcomments.md (opens in a new tab)references/comments/listcomments.md (opens in a new tab)references/iterations/listiterations.md (opens in a new tab)references/stories/addstory.md (opens in a new tab)references/stories/countstories.md (opens in a new tab)references/stories/getrelatedbugs.md (opens in a new tab)references/stories/getstoryfieldsinfo.md (opens in a new tab)references/stories/liststories.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub tunoc2c/workbuddy-skill-official --plugin tapd-openapi