Feishu Weekly Report Generator
Generate professional weekly work reports for Feishu users.
Features
- Automatic Data Collection: Gather work data from git commits, calendar events, task completions
- AI-Powered Summary: Generate professional weekly summaries using AI
- Feishu Compatible: Output in Feishu document format (markdown)
- Customizable Templates: Multiple report styles available
Quick Start
Generate Weekly Report
node scripts/generate-weekly.mjs
With Options
# Specify date range
node scripts/generate-weekly.mjs --start 2026-03-10 --end 2026-03-14
# Specify output file
node scripts/generate-weekly.mjs --output my-weekly-report.md
# Include git commits
node scripts/generate-weekly.mjs --git ~/my-project
# Full options
node scripts/generate-weekly.mjs --start 2026-03-10 --end 2026-03-14 --git ~/projects --output weekly.md
Report Structure
The generated report includes:
- 本周工作总结 - Summary of week's work
- 已完成工作 - Completed tasks with details
- 进行中工作 - Work in progress
- 下周计划 - Next week's plan
- 遇到的问题 - Issues and blockers
- 需要的支持 - Support needed
Templates
Available templates in references/templates/:
standard.md- Standard weekly report formatdetailed.md- Detailed format with more sectionsminimal.md- Minimal format for quick reports
Feishu Integration
After generating the report:
- Copy the markdown content
- Paste into Feishu document
- Format will be preserved
Or use Feishu API to directly create document (requires Feishu bot token).
Options
| Option | Description | Default |
|---|---|---|
--start | Start date (YYYY-MM-DD) | Last Monday |
--end | End date (YYYY-MM-DD) | Last Friday |
--git | Git repository path | None |
--template | Template to use | standard |
--output | Output file path | weekly-report-YYYY-MM-DD.md |
--name | User name | Git user.name or 'User' |
--department | Department name | Optional |
Examples
Basic Usage
node scripts/generate-weekly.mjs
With Git Integration
node scripts/generate-weekly.mjs --git ~/projects/my-app --name "张三" --department "技术部"
Custom Date Range
node scripts/generate-weekly.mjs --start 2026-03-01 --end 2026-03-07 --output march-week1.md