feat: 新增Wiki/Label/Notification命令 + 批量处理命令+Snippet/自然语言do创新 + 11个智能Skill + 14个编排与科研Skill #349

Closed
ylly wants to merge 0 commits from ylly/gitlink-cli:master into master
First-time contributor

本 PR 基于 gitlink-cli 扩展了完整的智能化能力,覆盖 4 个子任务:

  • 任务一:新增 3 个命令模块(13 命令)+ 4 个创新功能(snippet/do/彩色化/批量)
  • 任务二:新增 11 个原创智能 Skill(新人引导/分拣/文档维护/代码审查等)
  • 任务三:新增 7 个端到端编排 Skill(社区运营/质量看门/AI医生等)
  • 任务四:新增 7 个科研辅助 Skill(洞悉/图谱/合规/画像/推荐等)
本 PR 基于 gitlink-cli 扩展了完整的智能化能力,覆盖 4 个子任务: - 任务一:新增 3 个命令模块(13 命令)+ 4 个创新功能(snippet/do/彩色化/批量) - 任务二:新增 11 个原创智能 Skill(新人引导/分拣/文档维护/代码审查等) - 任务三:新增 7 个端到端编排 Skill(社区运营/质量看门/AI医生等) - 任务四:新增 7 个科研辅助 Skill(洞悉/图谱/合规/画像/推荐等)
ylly added 78 commits 2026-07-07 15:29:52 +08:00
1e32e12145 feat: add notification module + fix issue --label bug
- Add notification +list, +view, +read, +delete commands
- Add notification unit tests
- Register notification module in register.go
- Fix issue +create ignoring --label flag

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
dee04432d2 fix: use ctx.Owner instead of global cmdutil.Owner in notification
Tests set Owner on RuntimeContext, not on the global cmdutil variable.
This fixes all 4 notification test failures.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
263c20801a fix: update notification test paths to include .json suffix
The HTTP client automatically appends .json to API paths.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
7a82eef766 fix: always include message field in wiki update request body
The gateway API requires the message field to be present (even as empty
string). Previously update omitted it when --message was not provided,
causing HTTP 500 errors. Also removed dead code in callWikiAPI and added
a test for update without message.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2760c47115 fix: use PUT method for wiki update and align with reference implementation
The update API requires PUT, not POST. Previous commit 7a85c6d incorrectly
changed it to POST which caused HTTP 500 errors. Also added shared test
helpers to common package and rewrote wiki tests to match reference files.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
7f53548244 fix: use correct issue_tag_ids field for issue create --label
The GitLink v1 API expects issue_tag_ids (array of integers), not label_id.
This fixes the bug where --label was silently ignored when creating issues.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
ed7a2bbcd6 feat: support multiple labels in issue create (--label id1,id2)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
c8b4eb2ea0 feat: add --label support to issue update command
Support setting or clearing labels on existing issues:
- --label 327264,327265  set labels
- --label ""            clear all labels

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
97f9f63645 fix: use --label clear to remove labels from issue
Empty string doesn't work as CLI flag value. Use 'clear' keyword instead:
- --label 327264,327265  set labels
- --label clear          remove all labels

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
49415faf54 fix: use correct API endpoint for notification read
GitLink uses POST /users/{owner}/messages/read with ids array,
not PATCH on individual message. Fixed code and test accordingly.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
97ddd456dd fix: add type field to notification read request body
API requires both type and ids fields for marking notifications as read.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
ecc6bcca2b fix: use correct API endpoint for notification delete
DELETE /users/{owner}/messages with {type, ids} body,
not DELETE on individual message path.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
3a79c72813 feat(skills): 新增文档智能维护和新人引导两个 Skill
- gitlink-docs-assistant(ZxR):扫描仓库检测缺失文档,AI 自动生成 CONTRIBUTING/CHANGELOG 并写入 Wiki,支持同步更新
- gitlink-onboarding(ylly):识别 good-first-issue、自动打标签、生成个性化引导评论和项目入门指南
- 每个 Skill 含 SKILL.md + 使用示例 + Claude Code 真实验证记录 + 截图证据

Co-Authored-By: Claude <noreply@anthropic.com>
c7a709d3d7 feat(skills): 新增 Issue 智能分拣 Skill (gitlink-issue-triage)
- SKILL.md:3 个工作流(自动分类打标签 / 自动分配+通知 / 批量分拣+报告)
- examples/issue-triage-workflow.md:3 个场景使用示例
- examples/verification.md:源码核对 + 在 ylly/gitlink-cli 实跑验证
  - 真实给 Issue #7 打上"缺陷"标签
  - 发现并记录两条平台限制:assigners 个人仓库为空、notification 跨用户 403

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
aa7f645158 test(skills): issue-triage 补充真实验证截图 + 修正 PATCH 说明
- SKILL.md:澄清 PATCH 404 真实原因是 Git Bash MSYS2 路径转换(非 .json),补充 MSYS_NO_PATHCONV=1 方案;修正 assigners 空时 owner 兜底无效
- verification.md:2.4 改为实证记录(Git Bash 路径转换 + MSYS 解决 + owner_id 兜底无效),PATCH 状态更新为已跑通,截图清单对齐实际文件
- 补充 8 张验证截图(ylly 环境 PowerShell/Git Bash 实跑)

Co-Authored-By: Claude <noreply@anthropic.com>
ce22a736e7 docs(workflows): 新增 zhangqing 任务三 ①⑤⑦ 工作流交付
- ① 社区运营自动化:含 v0.2.0-beta.1 发版执行报告
- ⑤ 贡献者成长体系:排行榜 + 三级徽章授予方案
- ⑦ 新人全流程保姆:onboarding 5 步执行报告
- 含可复现脚本 reproduce.sh 和避坑指引
19ce89394f docs(workflows): zhangqing 任务三报告补充 Skill 蓝图对照 + Agent 对话触发语
按 PDF 正确做法补强交付:
- 01/05/07 三份报告各加「Skill 蓝图对照」段,逐动作引用 SKILL.md 行号
- README 加 Skill 作为设计蓝图的总览表
- 新增 agent-dialogue-triggers.md:给评委的 Agent 对话触发语(Skill 驱动 Agent 的演示入口)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0552bf2c7f docs: add QA gatekeeper demo marker (zxr-qa-gate-0629-1725)
用于验证 GitLink 智能运营平台——代码质量看门人工作流
65f9ad643c docs(workflows): 补提 beta.2 发版 payload 作为复现参考
展示 release +create 无 --body-file 时,用 api POST --body-file 的实际 payload 长什么样。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1bb7051fa4 Merge pull request #5: chore: add code quality gatekeeper test comment to README
Code quality gatekeeper: Grade A - documentation-only change, safe to merge.
82ff856e46 docs(workflows): 移除 zhangqing 任务三脚本产物,改走编排 Skill 路线
按任务三"全部是 Markdown 文档(编排 Skill),不写 Go 代码、不写 shell 脚本"的核心原则:
- 删除 reproduce.sh 及 payload-v0.2.0-beta.2.json
- 同步修订 README.md 与 agent-dialogue-triggers.md 中对脚本的引用
远端 GitLink 已发布的 Release/Issue/Label/评论不受影响(脚本写入早在 2026-06-29 落地)。
下一步用编排 Skill(SKILL.md)串联任务二子 Skill 实现 ①⑤⑦ 工作流。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
49d85907b0 chore: 清理远端测试污染+旧脚本任务三,改走编排Skill路线
- README.md: 删除末尾测试污染(pipeline test乱码 + ZxR测试PR段 + 质量门禁测试注释)
- 删除 examples/workflows/zhangqing-task3/ (旧脚本式任务三,改走标准编排Skill目录)

Co-Authored-By: Claude <noreply@anthropic.com>
wbtiger closed this pull request 2026-07-14 22:56:41 +08:00
wbtiger reopened this pull request 2026-07-14 23:02:05 +08:00
wbtiger closed this pull request 2026-07-14 23:05:14 +08:00

Pull request closed

Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Gitlink/gitlink-cli#349
No description provided.