Install
openclaw skills install gitlab-team-report生成 GitLab 团队周报,支持按产品功能分类 MR、按成员和仓库汇总贡献、输出 Markdown/HTML、生成图表和历史周报首页,并可选上传到飞书文档。用于用户提到“GitLab 周报”“团队周报”“统计本周 MR/commit”“按功能归类开发工作”“生成 HTML 周报”“上传周报到飞书”等场景。 Generate GitLab weekly team reports with MR categorization, contributor and repository summaries, Markdown/HTML output, charts, historical report index pages, and optional Feishu publishing. Use when users ask for “GitLab weekly report”, “team engineering summary”, “summarize merge requests and commits”, “group work by product area”, “generate an HTML report”, or “publish the report to Feishu”.
openclaw skills install gitlab-team-report生成适合团队复盘、周会同步和对外汇报的 GitLab 周报。
config/config.json;如果不存在,先从 config/config.example.json 复制一份再填写。scripts/generate-report.sh 生成周报主文件。scripts/generate-charts.py;如果环境缺少 matplotlib,接受 Mermaid 回退方案。scripts/upload-to-feishu.sh 或 scripts/upload-to-feishu.js。weekly_report.md 与 weekly_report.htmlstats.json、图表和 reports/index.htmlscripts/generate-report.sh:命令入口scripts/generate-report.py:主逻辑scripts/generate-charts.py:图表生成scripts/upload-to-feishu.sh / scripts/upload-to-feishu.js:飞书上传config/config.example.json:配置示例config/classification.rules.example.json:分类规则示例templates/report.template.md:报告模板优先使用以下文件:
config/config.jsonconfig/classification.rules.json如果规则文件不存在,就从对应的 *.example.json 复制后再修改。
优先调整顺序:
repo_rules:适合仓库名、路径、项目归属明显的场景keyword_rules:适合 title / label / branch 关键词补充判断default_category:兜底分类cd /path/to/gitlab-weekly-report
cp config/config.example.json config/config.json
cp config/classification.rules.example.json config/classification.rules.json
./scripts/generate-report.sh \
-c config/config.json \
-s 2026-03-14 \
-e 2026-03-19
可选参数:
| 参数 | 说明 |
|---|---|
-c, --config | 配置文件 |
-s, --start-date | 开始日期 |
-e, --end-date | 结束日期 |
-o, --output | 输出目录 |
--no-charts | 跳过图表生成 |
reports/
├── index.html
├── latest -> 2026-03-14_to_2026-03-19/
└── 2026-03-14_to_2026-03-19/
├── weekly_report.md
├── weekly_report.html
├── stats.json
└── charts/
必需:
python3jq推荐:
matplotlibpandasrequests安装:
pip3 install -r requirements.txt
SKILL.md 聚焦流程和决策,不要把大段样例配置塞进来。matplotlib 阻塞周报生成。