feat(workflows): 新增科研团队洞察端到端工作流(research-team-insight) #249
Loading…
Reference in New Issue
No description provided.
Delete Branch "luwanzhou/gitlink-cli:feat/research-team-insight"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
合并请求描述
新增
research-team-insight端到端科研工作流(Go 实现,复用主仓库go.mod),从"成员名单"或"研究方向"出发,串联search +users → api GET ×N + user +info → 聚合分析 → Go 内联 SVG 渲染 → 报告归档,自动产出团队可视化报告(自包含 HTML)、洞察报告(Markdown)与命令执行日志。相关Issue
关联Issue编号:#(请补充)
变更内容
1. 工作流核心(Go,纯标准库,零第三方依赖)
scripts/insight.go(536 行)— 编排主程序:成员解析、画像采集(5 类统计 + 用户信息)、聚合分析、命令日志scripts/render.go(348 行)— Markdown 洞察报告 + HTML/SVG 可视化渲染(能力雷达叠加图 + 能力矩阵 + 共有/独有方向 + 协作网络图)scripts/insight_test.go(168 行)— 7 个单元测试,全部离线运行2. 三种运行模式
--members— 指定成员 login(逗号分隔)--config— 团队配置 JSON 文件--keyword— 按研究方向自动发现成员(search +users)3. 可视化产物(自包含 HTML,浏览器直接打开)
4. 关键特性
go.mod,可被主仓库 CI 直接覆盖(go build/golangci-lint/go test)--no-fetch --data-root支持离线复现,产物一致mirror_projects_count > 100).CMD包装自动兼容command_log.json可审计5. 真实验证
examples/demo_outputs/(HTML / Markdown / 命令日志 / 原始数据)质量门
go build ./...go vet ./...go test7/7gofmt -l变更文件(30 个,+2769 行)
核心代码
scripts/insight.go— 新增scripts/render.go— 新增scripts/insight_test.go— 新增配置与脚本
config/team.example.json— 新增scripts/run_demo.ps1— 新增文档
README.md— 新增docs/architecture.md— 新增docs/assets/architecture.svg— 新增docs/runbook.md— 新增示例产出
examples/demo_outputs/team-report.html— 新增examples/demo_outputs/team-insight.md— 新增examples/demo_outputs/command_log.json— 新增examples/demo_outputs/data/{yystopf,jiangtx,wangyue111}/*.json— 新增(18 个)复现
A Go workflow (subtopic 3) that composes existing gitlink-cli commands into a reproducible research-team insight pipeline: [search +users] -> profile statistics x N (+ user +info) -> aggregate (ability matrix / discipline coverage / roles / languages) -> render team report (self-contained HTML, inline SVG: ability radar overlay + collaboration network graph) -> archive (team-insight.md + command_log.json) Implemented in Go to match the main repo's stack (shared go.mod, covered by go build / vet / test / gofmt); standard library only, no third-party deps. Handles Windows .cmd CLI shims, retries transient TLS timeouts, and auto-flags mirror-inflated accounts in the report. Includes unit tests, docs (architecture + runbook + SVG diagram), run_demo.ps1, sample config, and real demo outputs (3 GitLink members, 19 command invocations). Reuses the gitlink-research-profile skill's portrait model. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>