daily-report by i9wa4/dotfiles
npx skills add https://github.com/i9wa4/dotfiles --skill daily-report汇总 @i9wa4 的 GitHub 和 Jira 活动并发布为 GitHub Issue。
使用专用脚本获取活动。默认获取从当前时间(UTC 计算)起 24 小时内的活动。
${CLAUDE_CONFIG_DIR}/skills/daily-report/scripts/get-activities.sh
# 默认:24 小时前到现在(仅限通过 ghq list 获取的本地仓库)
${CLAUDE_CONFIG_DIR}/skills/daily-report/scripts/get-activities.sh --no-url
# 指定小时数:N 小时前到现在
${CLAUDE_CONFIG_DIR}/skills/daily-report/scripts/get-activities.sh --hours 48 --no-url
# 直接指定日期时间(ISO8601,UTC)
${CLAUDE_CONFIG_DIR}/skills/daily-report/scripts/get-activities.sh --from 2025-12-16T15:00:00Z --to 2025-12-17T15:00:00Z --no-url
| 选项 | 描述 |
|---|---|
| --no-url | 输出不带 URL(防止提及通知) |
| --hours N |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 获取从 N 小时前到现在的活动 |
| --from | 开始日期时间(ISO8601,例如 2025-12-17T00:00:00Z) |
| --to | 结束日期时间(ISO8601,例如 2025-12-17T23:59:59Z) |
| --hostname | GitHub Enterprise Server 主机名 |
| --exclude-owner | 按所有者排除仓库(逗号分隔,默认:i9wa4) |
| --include-personal | 包含个人仓库(覆盖 --exclude-owner) |
### repository-owner/repository-name
- [Issue] Issue title
- [IssueComment] Issue title
- [PullRequest] PR title
- [PullRequestComment] PR title
- [ReviewedPR] PR title (PRs reviewed by me, excludes my own PRs)
注意:使用 --no-url 选项可省略 URL 并防止提及通知。注意:个人仓库(i9wa4/*)默认被排除。
使用 acli 获取 Jira 活动。
# 今日活动
acli jira workitem search \
--jql "updated >= startOfDay() AND (assignee = currentUser() OR reporter = currentUser()) ORDER BY updated DESC" \
--fields "key,summary,status"
# 特定日期范围
acli jira workitem search \
--jql "updated >= 'YYYY-MM-DD' AND updated < 'YYYY-MM-DD' AND (assignee = currentUser() OR reporter = currentUser()) ORDER BY updated DESC" \
--fields "key,summary,status"
通过 Slack 私信获取今日的 Google 日历会议。
所需环境变量:
export SLACK_GCAL_DM_URL="https://app.slack.com/client/E.../D..."
export SLACK_MCP_XOXC_TOKEN="xoxc-..."
export SLACK_MCP_XOXD_TOKEN="xoxd-..."
# 从 URL 提取频道 ID
CHANNEL=$(echo "$SLACK_GCAL_DM_URL" | sed -n 's|.*/client/[^/]*/\([^/]*\).*|\1|p')
# 获取消息
FILE=$(mkoutput --dir tmp --label output)
curl -s -X POST "https://slack.com/api/conversations.history" \
-H "Authorization: Bearer $SLACK_MCP_XOXC_TOKEN" \
-H "Cookie: d=$SLACK_MCP_XOXD_TOKEN" \
-d "channel=${CHANNEL}" \
-d "limit=200" > "$FILE"
# 过滤过去 24 小时的消息
NOW=$(date +%s)
YESTERDAY=$((NOW - 86400))
jq -r --argjson yesterday "$YESTERDAY" \
'.messages[] | select(.ts | tonumber > $yesterday)' "$FILE"
在 24 小时的消息中查找 "Today" 摘要消息。此消息在附件数组中包含当天的所有会议。
关键标识:
*Today*-<!date^... 开头会议使用 Unix 时间戳格式:<!date^UNIX_TIMESTAMP^{time}|...>
将时间戳转换为本地时间:
date -r UNIX_TIMESTAMP "+%H:%M"
从附件中提取:
|Meeting Name>*)格式为:- 会议名称 (HH:MM-HH:MM)
创建文件:
FILE=$(mkoutput --dir tmp --label "daily-$(whoami)")
注意:将命令块保留在 "Today's AI Activities" 部分。执行命令并将结果粘贴到命令块下方。
模板:
---
title: "YYYY-MM-DD $(whoami)"
labels:
- name: "日報"
color: "0887b9"
---
## 1. Reflection
## 2. Today's Activities
### 2.1. GitHub
整理 gh-furik 输出。按以下方式分类:
#### 2.1.1. 创建的 Issue
- [repo-name] Issue title
#### 2.1.2. 创建的 PR
- [repo-name] PR title
- [repo-name] PR title (merged)
- 添加缩进的补充注释
#### 2.1.3. 评审的 PR
- [repo-name] PR title
#### 2.1.4. 评论的 Issue/PR
- [repo-name] Issue/PR title
### 2.2. Jira
- [KEY-123] Issue summary (status)
### 2.3. Meetings
- Meeting name
- Supplementary comments
显示草稿并等待用户编辑。用户添加反思内容。
使用 gh issue create 发布:
gh issue create --title "YYYY-MM-DD $(whoami)" --label "日報" --body "$(cat <<'EOF'
[body]
EOF
)"
发布后显示 Issue URL。
(# 123) 带空格,而不是 (#123)。不带空格时,GitHub 会自动链接到错误的仓库。将脚本输出分类如下:
| 输出类型 | 分类 |
|---|---|
| Issue | 创建的 Issue |
| PullRequest | 创建的 PR |
| ReviewedPR | 评审的 PR |
| IssueComment | 评论的 Issue/PR |
| PullRequestComment | 评论的 Issue/PR |
注意:将同一 Issue/PR 上的多个评论合并为一个。注意:ReviewedPR 仅包含由他人创建的 PR(排除我自己的 PR)。
每周安装次数
105
仓库
GitHub 星标数
9
首次出现
2026 年 1 月 24 日
安全审计
安装于
opencode103
gemini-cli103
codex103
cursor102
github-copilot102
kimi-cli101
Azure RBAC 权限管理工具:查找最小角色、创建自定义角色与自动化分配
142,000 周安装