weekly-report-generator

根据 git 提交记录自动生成本周周报,按功能模块归类输出编号列表格式

MIT-0 · Free to use, modify, and redistribute. No attribution required.
0 · 77 · 0 current installs · 0 all-time installs
MIT-0
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
medium confidence
Purpose & Capability
The skill's name/description match the code: the script collects git logs across configured project directories and outputs markers consumed by SKILL.md instructions. However, the skill actually requires git and a POSIX shell with array support (script shebang is /bin/zsh) and a config.conf in the skill directory; these are not declared in the metadata.
Instruction Scope
SKILL.md directs the agent to run scripts/get_git_log.sh and then summarize the printed git log. The script only reads a local config.conf and local git repositories and prints git log/stat sections; it does not call external endpoints or read other system credentials. Minor issues: SKILL.md tells the user to run the script with 'bash' while the script uses a zsh shebang and array syntax — this mismatch could cause runtime errors. SKILL.md also doesn't explain how to create config.conf or its format (config.example.conf is referenced by the script but is not included).
Install Mechanism
No install spec or external downloads. The only code is the included shell script; nothing is written/downloaded by an installer.
Credentials
No credentials or sensitive environment variables are required. The script expects a config.conf defining PROJECT_DIRS and accepts an optional AUTHOR env var; this is proportionate for the task. Users should ensure PROJECT_DIRS do not point to sensitive system paths or repos containing secrets because commit messages and diffs could expose information.
Persistence & Privilege
The skill does not request permanent presence (always: false) and does not modify system or other skills' configs. Autonomous invocation is allowed by default but is not combined with other concerning privileges.
Assessment
This skill appears to do what it says: aggregate local git commits and help generate a numbered weekly report. Before installing or running it: 1) Ensure git is installed and available on the machine and that you run the script with a compatible shell (script uses /bin/zsh and array syntax — run with zsh or change the shebang); 2) Create a config.conf in the skill directory that defines PROJECT_DIRS (the script references config.example.conf but that file isn't included); 3) Point PROJECT_DIRS only to repositories you intend to analyze (do not point to repos containing secrets or system configuration you don't want scanned); 4) Be aware the script prints commit messages and --stat output (which can include filenames and small diffs) — review for sensitive data; 5) If you want to be strict about requirements, add documentation that git and zsh are required and include a config.example.conf. These steps will reduce surprises and ensure the skill runs as intended.

Like a lobster shell, security has layers — review code before you run it.

Current versionv1.0.0
Download zip
latestvk972zkhr4pmf69pdgy1jm8py4n83bbh6

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

SKILL.md

生成周报

根据配置的项目目录的 git 提交记录,自动生成本周周报。支持多项目聚合。

脚本

运行 scripts/get_git_log.sh 获取本周 git 提交记录。

bash scripts/get_git_log.sh

Instructions

你是一个周报生成助手。根据上面脚本输出的 git log 信息,按以下规则生成周报:

格式要求

按功能模块归类,编号列表 + 缩进子项。格式如下:

  1. 模块名:功能描述
  2. 模块名:
    • 子功能描述1
    • 子功能描述2

归类规则

  1. 如果输出包含多个项目(===PROJECT: xxx===),将所有项目的 commit 统一归类,不按项目分隔
  2. 根据 commit message 和涉及的文件路径,推断出功能模块名(如"部署流程"、"镜像管理"、"监控告警"等)
  3. 同一模块下的多个 commit 合并为子项
  4. 如果某个模块只有一个 commit,直接写在模块名后面,不用子项
  5. commit message 需要做适当的中文归纳简化,不要直接照搬原文
  6. 不要加任何多余的描述、表格、总结、标题、日期范围等,只输出编号列表本身
  7. 编号从 1 开始连续编号

示例输出

  1. 用户模块:登录流程增加二次验证
  2. 权限管理:
    • 角色权限支持批量配置
    • 新增操作审计日志
  3. 数据导出:导出任务改为异步执行
  4. 接口优化:
    • 列表查询增加分页缓存
    • 参数校验逻辑统一收敛

Files

2 total
Select a file
Select a file to preview.

Comments

Loading comments…