← Back to Skills Marketplace
disyli

CodeBuddy 每日工作日报生成

by disyli · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
116
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install codebuddy-daily-report
Description
Generate a daily work report by automatically discovering all git repositories the user worked on, collecting commit logs across all branches, and summarizin...
README (SKILL.md)

Daily Work Report Generator

Overview

This skill automatically discovers all git repositories the user committed to, collects commit history across ALL branches, gathers CodeBuddy Agent session overviews, and generates a structured daily work report. It works cross-platform (macOS, Linux, Windows) with zero configuration required. Supports generating reports for any date (today, yesterday, or a specific date).

Step-by-Step Workflow

Step 1: Run the data collection script

Execute the bundled Python script to collect all raw data:

# Today (default)
python "SKILL_DIR/scripts/collect.py"

# Yesterday
python "SKILL_DIR/scripts/collect.py" --yesterday

# Specific date
python "SKILL_DIR/scripts/collect.py" --date 2026-03-20

# N days ago
python "SKILL_DIR/scripts/collect.py" --days-ago 3

Replace SKILL_DIR with the actual path to this skill's directory (e.g., ~/.codebuddy/skills/daily-report).

Date selection rules:

  • If the user says "今天" / "today" → no extra flags (default)
  • If the user says "昨天" / "yesterday" → use --yesterday
  • If the user says a specific date → use --date YYYY-MM-DD
  • If the user says "前天" / "the day before yesterday" → use --days-ago 2
  • If the user says "N天前" → use --days-ago N

The script will:

  • Auto-detect the operating system
  • Find common development directories
  • Discover all git repos with commits on the target date (across ALL branches)
  • Collect CodeBuddy Agent session overviews modified on the target date
  • Output structured JSON to stdout

If the user has a custom config file at SKILL_DIR/references/config.yaml, the script will also read extra search directories and preferences from it.

Step 2: Parse the JSON output

The script outputs JSON with this structure:

{
  "date": "2026-03-25",
  "system": "Darwin",
  "git_author": "username",
  "repos": [
    {
      "path": "/path/to/repo",
      "name": "repo-name",
      "commits": [
        {
          "hash": "abc1234",
          "message": "feat: add login page",
          "branch": "feature/login",
          "time": "2026-03-25 14:30:00"
        }
      ],
      "diff_stats": "+150 -30 across 8 files"
    }
  ],
  "agent_sessions": [
    {
      "session_id": "abc123",
      "overview_content": "...",
      "modified_time": "2026-03-25 16:00:00"
    }
  ],
  "errors": []
}

Step 3: Generate the daily report

Using the collected data, generate a well-structured daily report in the user's language (default: Chinese if the user speaks Chinese, otherwise English).

Follow this structure:

Report Template

# 工作日报 - {date}

## 📊 今日概览
- 活跃仓库: {count} 个
- 总提交数: {count} 次
- 代码变更: +{additions} -{deletions}

## 🔧 项目详情

### {repo-name-1}
**分支**: {branch-names}

| 时间 | 提交说明 |
|------|---------|
| HH:MM | commit message |

**代码统计**: +{add} -{del}, {files} 个文件

### {repo-name-2}
...

## 🤖 AI 辅助工作
{Summary of Agent session overviews, grouped by project}

## 📝 今日总结
{A 2-3 sentence high-level summary of the day's work}

Step 4: Save the report

Save the generated report to the user's workspace or a location they specify. Default filename: daily-report-{YYYY-MM-DD}.md

Important Notes

  • The script requires only Python 3.6+ standard library and git CLI — no pip install needed.
  • If the script finds no commits, inform the user and suggest checking if git author name is correct.
  • If the user wants to customize search directories, guide them to edit references/config.yaml.
  • Always present the report in the user's preferred language.
  • When summarizing Agent sessions, focus on what was accomplished, not implementation details.
  • Group related commits across repos into coherent work items when possible.
Usage Guidance
This skill appears to do what it says: it will scan your HOME (including hidden directories) to find git repositories and will read CodeBuddy's application data to collect session overviews, then produce a report. Before installing or running it, review scripts/collect.py (you have the source), and confirm you are comfortable with a broad filesystem scan. If you have sensitive files or credentials in repos or hidden folders, consider running the script in a restricted environment (temporary account, VM, or container), or edit references/config.yaml to narrow search paths and exclude directories. Also verify there are no unexpected network calls in the code (we saw none in the provided portion) and that the generated report will be stored locally or to a location you control.
Capability Analysis
Type: OpenClaw Skill Name: codebuddy-daily-report Version: 1.0.0 The skill bundle is a legitimate utility for generating daily work reports by aggregating git commit history and local AI agent session logs. The core logic in `scripts/collect.py` performs a cross-platform search for git repositories and reads CodeBuddy session overviews, outputting the data as JSON for the agent to summarize. The script uses safe subprocess calls, contains no network activity or obfuscation, and its behavior strictly aligns with the documentation in `SKILL.md` and `README.md`.
Capability Assessment
Purpose & Capability
The skill claims to discover all git repos, collect commits across all branches, and gather CodeBuddy Agent session overviews — and the bundled script implements exactly that (filesystem walk, git log --all, reading a platform-specific CodeBuddy data directory). Asking to scan HOME and look for agent session files is consistent with the stated goal, though scanning the entire home (including hidden directories) is broad by design.
Instruction Scope
SKILL.md instructs the agent to run scripts/collect.py and parse its JSON output; the script walks the filesystem from HOME (and additional drives on Windows), resolves repos, runs git commands, and reads CodeBuddy's app-data directory. That scope aligns with the report goal, but it means the skill will touch many files (hidden directories, repo contents, and CodeBuddy session files) beyond just commit metadata — user should be aware it inspects the filesystem broadly.
Install Mechanism
No install spec is provided (instruction-only plus bundled script). Nothing is downloaded or executed from a remote URL by the skill itself; the README suggests an optional git clone for manual install, which is standard and not performed automatically by the skill package.
Credentials
The skill requires no secrets or external credentials. The script reads common environment variables (XDG_CONFIG_HOME, APPDATA, USER/USERNAME) only to locate directories — these are proportionate to its cross-platform discovery behavior.
Persistence & Privilege
The skill is not marked always:true and does not request permanent platform-level privileges. It reads the user's filesystem and CodeBuddy app-data but does not modify other skills or global agent configurations.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install codebuddy-daily-report
  3. After installation, invoke the skill by name or use /codebuddy-daily-report
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of the Daily Work Report Generator skill. - Automatically finds all git repositories with commits for a given date across all branches. - Collects CodeBuddy Agent session summaries for the target date. - Generates a structured daily report (in English or Chinese) summarizing commits, code changes, and agent sessions. - Supports custom date selection using --date, --yesterday, or --days-ago flags. - No configuration required; advanced settings available via config file.
Metadata
Slug codebuddy-daily-report
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is CodeBuddy 每日工作日报生成?

Generate a daily work report by automatically discovering all git repositories the user worked on, collecting commit logs across all branches, and summarizin... It is an AI Agent Skill for Claude Code / OpenClaw, with 116 downloads so far.

How do I install CodeBuddy 每日工作日报生成?

Run "/install codebuddy-daily-report" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is CodeBuddy 每日工作日报生成 free?

Yes, CodeBuddy 每日工作日报生成 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does CodeBuddy 每日工作日报生成 support?

CodeBuddy 每日工作日报生成 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created CodeBuddy 每日工作日报生成?

It is built and maintained by disyli (@disyli); the current version is v1.0.0.

💬 Comments