agentleFS
xingtu1996xingtu1996/xingtu-skills/skills/daily-report/SKILL.md

daily-report

Skill0 starsChanged 2 months agoMITView on GitHub

把当日工作整理成钉钉日报并落盘打包——固定格式(今日工作/明日工作/相关截图)+ 附稿目录 + zip。触发词:写日报/工作日报/日报/今天做了什么/日报附稿/日报打包/daily report/居家办公日报。

18 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use weekly-report.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Microsoft AzureSkill

    weekly-report

    **WORKFLOW SKILL** — Generate weekly executive reports for the azd team. Pulls PR/issue/release data from GitHub, reads changelogs, combines with team notes, and produces a polished markdown report.

    Also in 4 projects that use this

The file

Files
SKILL.md

工作日报——生成、归档、打包

一、触发场景

触发场景触发词示例
生成日报"写日报"、"帮我写份日报"、"今天的工作日报"、"日报生成"
归档打包"日报附稿"、"打成包"、"放到 DCDOC"、"日报提交"
补图重打包"截图配好了"、"重新打包"、"日报加上截图"

二、固定格式(钉钉日报,勿自造结构)

## 今日工作

**一、{项目名} —— {工作主题}**

1. {事项}:{一句话说明}
2. {事项}:{一句话说明}

**二、{项目名} —— {工作主题}**

1. ...

## 明日工作

1. {一句话}
2. {一句话}

## 相关截图

(待补充 / 见 `截图/` 目录:<截图说明>)

要点:

  • 项目加粗,事项编号;每条一行,不写过程写结果
  • 明日工作与今日工作不重复条目;同一件事(如"升级 + 回顾升级测试")合并成一条
  • 不写工时、不写客套;不承诺做不到的事

三、流程

Step 1 采集素材(不问就用)

按优先级取证,能查就别问:

  1. 当前会话上下文(用户口述 + 本次产出)
  2. 今日 git 提交:各仓 git log --since=midnight --author=$(git config user.name) --oneline
  3. 当日改动文件:git status / 产物目录 mtime 当天
  4. 仍缺的(明日计划、客户反馈)一次问全,别来回问

Step 2 术语核对(易错,必做)

类型真相源常见错写
项目名项目目录名 / AGENTS.md同名异写以真相源为准
人名干系人清单 / 项目 config同音异写需核实
需求名spec 目录名同音异写以 spec 目录名为准
工单号git 提交 / spec内部项目 ≠ 外部单号
平台名—GitLab ≠ GitHub(公司内网 GitLab 与公网 GitHub 是两个平台,别混写)

拿不准的关键术语问一次,别照抄口语错词;改过的术语在回复里说明改动依据。

Step 3 落盘

<项目>/doc/DCDOC/工作日报/{YYYYMMDD}-工作日报附稿/
├── 工作日报_{YYYYMMDD}.md
└── 截图/
  • 默认落盘项目:当前工作目录所属项目;用户指定则从其指定
  • doc/ 已 gitignore,不会推送
  • 一天一份,同日多次修订就地覆盖,不新建目录

Step 4 打包

⚠️ 中文文件名必须带 UTF-8 标志,macOS zip / ditto 都不写该标志 → Windows/钉钉后台解压乱码。用 Python:

cd "<...>/工作日报" && python3 - <<'PY'
import zipfile, os
root='{YYYYMMDD}-工作日报附稿'; out='工作日报_{YYYYMMDD}.zip'
with zipfile.ZipFile(out,'w',zipfile.ZIP_DEFLATED) as z:
    for dp,_,fs in os.walk(root):
        if not fs: z.writestr(dp+'/','')
        for f in fs:
            if f=='.DS_Store': continue
            z.write(os.path.join(dp,f), os.path.join(dp,f))
PY

验证:python3 -c "import zipfile;print([i.flag_bits & 0x800 for i in zipfile.ZipFile('工作日报_{YYYYMMDD}.zip').infolist()])" → 全 True。

Step 5 交付

  • 正文直接贴 Markdown 源码给用户复制到钉钉
  • 报告落盘绝对路径 + zip 路径(白盒,用户能直接打开)
  • 截图未配齐时明确说"配齐后重跑 Step 4 即可"

四、提交到钉钉(实测 2026-09-28)

走钉钉侧日报提交工具(dws report 族)。参数按当时环境解析,不写死任何人的姓名与 user id:

项值
模板空白日志类模板(单字段"内容",type=1 / contentType=markdown;模板 ID 以当次查询为准,勿硬编)
接收人用 dws aisearch person --query <姓名> --dimension name 解析出 user id(唯一命中才用;多人就在命令里传多个 id)
提交dws report entry submit --template-id <模板ID> --contents-file <payload.json> --to-user-ids "<id1,id2>" --format json

payload(写工作目录内相对路径,避免 shell 引号问题):

[{"key":"内容","sort":0,"content":"<Markdown 正文>","contentType":"markdown","type":1}]

正文用粗体 **标题** 而非 #(钉钉日志 Markdown 支持有限,历史实证只用了粗体 + ![图](url))。

三个硬限制(客户端能做的事,API 做不到)

限制后果应对
不支持附件submit 只有 contents + --to-user-ids,无附件参数zip 留本地归档;要发附件走钉盘 / 单聊(dingtalk-drive / dingtalk-chat)
无编辑接口entry 只有 get/stats/submit,提交后改不了截图必须配齐再提交,否则永久留"(截图稍后补充)"
标题不可指定平台生成"××的空白日志";客户端写会自动带日期("××的工作日志 YYYYMMDD")接受,或提交后在钉钉客户端手工改标题

提交后必须读回:dws report entry get --report-id <ID> 核对模板 + 内容。

五、坑

坑处置
zip 中文乱码见 Step 4,用 Python 打包并校验 flag
明日工作与今日重复合并同类项后再定稿
人名/项目名错写Step 2 核对表,宁可不写人名
把格式参考当内容用户贴的旧日报截图是格式模板,内容以当日素材为准(先确认)
<!-- public-sync: 2026-10-12 | 脱敏版本 | 源 ~/.agents/skills/daily-report -->

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.