skill-monitor
用 GitHub URL 持续监控远程仓库目录下的文件(如 skill、脚本、配置文件),不依赖 npx skills 安装。当用户提到"监控这个仓库/目录"、"检查有没有更新"、"帮我跟踪这个 URL 的变更"、"看看这个 skill 更新了什么"、"不想用 npx 安装"、或要求对比 GitHub…
Skill by bd-dxg
Chalk Labs
Need help deploying skill-monitor?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/bd-dxg-skill-monitor
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 4
api.github.com· found in codecodeload.github.com· found in install commandgithub.com· found in coderaw.githubusercontent.com· found in code
Files it touches
~/.claude/skills/skill-monitor
What's inside
- Skill name
skill-monitor- Description
- 用 GitHub URL 持续监控远程仓库目录下的文件(如 skill、脚本、配置文件),不依赖 npx skills 安装。当用户提到"监控这个仓库/目录"、"检查有没有更新"、"帮我跟踪这个 URL 的变更"、"看看这个 skill 更新了什么"、"不想用 npx 安装"、或要求对比 GitHub 上某个文件的当前版本与本地版本差异时,都应使用此 skill。发现更新时生成变更摘要,由用户决定是否更新。
- License
- AGPL-3.0
- Instructions
- 178 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
- Instructions call the network
Files (2)
- SKILL.md
- check-updates.ps1 · scripts/
SKILL.md (first lines)
# Skill Monitor
监控 GitHub 仓库中某个目录下的所有文件,定期检查更新,生成变更摘要,由用户决定是否更新。
解决的核心问题:不使用 `npx skills`(可能因系统环境问题安装/更新失败),改为维护一份 URL 监控清单,自动跟踪上游文件的变更。
## 数据目录结构(~/.skill-monitor/)
```
~/.skill-monitor/
├── monitor.json # 监控清单(唯一事实来源)
├── reports/ # 变更摘要报告(按日期分目录)
│ └── 2026-02-10/
│ └── <watch-id>.md
└── backups/ # 更新前的旧版本备份
└── <watch-id>/
└── 20260210-1430/
```
`monitor.json` 结构:
```json
{
"watches": [
{
"id": "unique-id",
"repo": "owner/repo",
"path": "skills/some-skill",
"ref": "main",
"local_dir": "C:/Users/<user>/.agents/skills/some-skill",
"files": {
"SKILL.md": "<blob sha>",
"references/schema.md": "<blob sha>"
}
}
]
}
```
- `path` 为空表示仓库根目录
- `files` 记录目录下每个文件相对路径对应的 **blob sha**(GitHub contents API 返回),这是判断更新的依据
- 本地目标目录 `local_dir` 与远端目录一一对应,文件布局保持一致
## 核心操作
### 1. 添加监控(用户提供 URL 时)
用户给一个 GitHub 目录 URL(如 `https://github.com/owner/repo/tree/main/skills/foo`)或文件 URL,按以下步骤:
1. **解析 URL** → 得到 `repo`(owner/repo)、`path`(目录路径)、`ref`(分支/标签,默认 main)
2. **询问用户本地保存位置**(如果意图是安装 skill,默认建议 `~/.agents/skills/<目录名>`)
3. **用 GitHub API 递归列出目录下所有文件及 blob sha**:
```bash
gh api "repos/{owner}/{repo}/contents/{path}?ref={ref}" --paginate
```
(contents API 单层返回,子目录需递归;优先用 `gh api`,未登录时回退 `curl -s https://api.github.com/...`)
4. **下载所有文件**到 `local_dir`(raw 地址:`https://raw.githubusercontent.com/{repo}/{ref}/{path}/{file}`)
5. **写入 monitor.json**:追加 watch 条目,`files` 记录每个文件的 sha
6. 汇报:已监控 N 个文件,来源 URL,本地路径
### 2. 检查更新(用户说"检查更新"或运行脚本)
1. 读取 `monitor.json`,对每条 watch:
- 用 GitHub API 重新列出目录文件,获取最新 sha
- 与 `files` 中记录的 sha 对比 → 找出 **修改 / 新增 / 删除** 的文件
2. 对每个变化的文件,下载新版本到临时目录
3. **生成变更摘要**(不保存原始 diff,只生成人类可读摘要)到 `reports/<日期>/<watch-id>.md`:
```markdown
# 更新摘要:<watch-id>(<日期>)
来源: https://github.com/<repo>/tree/<ref>/<path>
本地: <local_dir>
## 变更列表
- [修改] SKILL.md(+12 −5 行)
- [新增] references/schema.md
- [删除] scripts/legacy.ps1
## 变更详情
### SKILL.md
- 关键改动点:...(用 git diff --no-index 对比本地与新版,节选要点)
- 变更行示例:<少量关键行>
```
4. **暂不更新** `files` 的 sha 记录(等用户决定更新后一并更新),但把"待更新文件"标记记录在报告里,避免重复生成相同报告
5. 向用户汇报摘要,询问是否更新
> 注:手动检查时直接运行脚本最省事(见下),脚本输出报告后由 agent 读取并向用户汇报。
### 3. 执行更新(用户确认后)
用户说"更新" / "应用更新" 后:
1. **备份**:把 `local_dir` 下待更新的旧文件复制到 `~/.skill-monitor/backups/<watch-id>/<时间戳>/`
2. **下载新版本**覆盖到 `local_dir`(删除的远端文件:先询问用户再删除本地对应文件)
3. **更新 monitor.json** 中该 watch 的 `files` sha 为最新值
4. 汇报更新结果;如需回滚,指出备份位置即可
## 计划任务自动检查
`scripts/check-updates.ps1` 实现自动检查(读取清单 → 网络就绪探测 → API 对比 → 生成摘要报告 → 更新 sha 记录)。注意:**脚本每次运行后直接更新 sha 记录**(它无人值守,无法等用户决策),因此同一文件的更新只报告一次;用户看到报告后如需更新,走上面的"执行更新"流程。
**配置文件(可手动修改)**:`~/.skill-monitor/monitor.json`
注册计划任务(**需要用户在 PowerShell 中手动执行**,当前用户级,无需管理员)。推荐双触发器:登录时延迟 30 分钟(覆盖开机没网)+ 每日 09:00;任务设置含"错过计划后尽快运行"。
使用 XML 方式(兼容所有 Windows 版本,`-Delay` 参数可能在旧版 Windows 不可用):
```powershell
# 1. 先生成 XML 配置文件
$scriptPath = "$env:USERPROFILE\.agents\skills\skill-monitor\scripts\check-updates.ps1"
$xml = @"
<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.4" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<RegistrationInfo>
<Date>$(Get-Date -Format yyyy-MM-dd)T00:00:00</Date>
<Author>User</Author>
</RegistrationInfo>
<Triggers>
<LogonTrigger>
<Delay>PT30M</Delay>From bd-dxg/my-pi, AGPL-3.0.
Signals
- Stars
- 88
- Forks
- 14
- Open issues
- 0
- Last commit (this folder)
- Sep 2, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- AGPL-3.0
- Repository
- github.com/bd-dxg/my-pi
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get skill-monitor running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
skill-monitor. Agent Mart. https://agentmart.dev/skills/bd-dxg-skill-monitor (last updated 2026-10-24)