Daily Work Summary
Generate a markdown summary of git commits, GitHub activity, and Notion activity for the previous workday.
Behavior
- •Monday: Reports Friday's activity (skips weekend)
- •Tuesday-Friday: Reports yesterday's activity
Execution Steps
Step 1: Run the Python script with JSON output
bash
python3 scripts/daily_summary.py --paths ~/dev --format json
Step 2: Summarize the commits
For each commit in the JSON output:
- •Read the
difffield which contains the actual code changes - •Write a 1-2 sentence summary of what the commit actually does (not just repeating the commit message)
- •Focus on the functional change: what was added, fixed, or modified
Format the output as:
code
## Git Commits
### {repo_name}
- `{hash}` **{commit_message}** - {your 1-2 sentence summary of the diff}
Step 3: Include GitHub activity
Include the GitHub sections (PRs reviewed, review requests, comments) from the JSON output.
Step 4: Query Notion for activity (if Notion MCP tools are available)
After processing git/GitHub data, use the Notion MCP tools to find pages created or edited on the target date:
- •Use
Notion:notion-searchto search for recently modified pages - •Look for pages with "meeting" or "notes" in the title for meeting notes
- •Include any relevant Notion activity in the summary under a "## Notion Activity" section
Options
| Flag | Purpose |
|---|---|
--paths PATH [PATH ...] | Directories to search for git repos. Default: ~/Projects ~/Code ~/repos ~/dev . |
--author PATTERN | Filter commits by author email or name. Default: current git user |
--all-authors | Show commits from all authors, not just your own |
--format markdown|json | Output format. Default: markdown |
--skip-github | Skip GitHub API calls |
--depth N | Maximum directory depth to search for git repos. Default: 3 |
Examples
bash
# Default search paths python3 scripts/daily_summary.py # Specific project directory python3 scripts/daily_summary.py --paths ~/work/termpower # Filter to your commits only python3 scripts/daily_summary.py --author "simon@" # JSON output for further processing python3 scripts/daily_summary.py --format json # Search deeper for nested repos python3 scripts/daily_summary.py --depth 4
Requirements
- •git: For local commit history
- •gh CLI: For GitHub activity (optional). Install:
brew install ghthengh auth login - •Notion MCP: For Notion activity (optional). If not configured, skip Notion section.
If gh is not installed or authenticated, GitHub sections show a warning but git commits still work.
Output Sections
- •Branches Worked On: Branches that had commits on the target date
- •Git Commits: Grouped by repository, shows hash, message, and branch refs
- •GitHub Activity: Issues created/commented, PRs created/merged/reviewed, review requests, PR comments
- •Notion Activity: Pages created/edited, meeting notes (if Notion MCP available)
Customization
Modify --paths to match your directory structure. The script searches up to --depth levels deep from each path (default: 3).