Skill Monitor logo

Skill Monitor

Community
bd-dxg
skill-monitor

用 GitHub URL 持续监控远程仓库目录下的文件(如 skill、脚本、配置文件),不依赖 npx skills 安装。当用户提到"监控这个仓库/目录"、"检查有没有更新"、"帮我跟踪这个 URL 的变更"、"看看这个 skill 更新了什么"、"不想用 npx 安装"、或要求对比 GitHub 上某个文件的当前版本与本地版本差异时,都应使用此 skill。发现更新时生成变更摘要,由用户决定是否更新。

Add to TypingMind

Overview

Publisherbd-dxg
Repositoryskills
Skill nameskill-monitor
Stars
32
Forks
4
Bundled files
2
LicenseAGPL-3.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by bd-dxg on GitHub. Read the source before you install it.

Installation

Install the Skill Monitor AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/bd-dxg/skills/tree/main/skill-monitor
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/bd-dxg/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skill-monitor .claude/skills/skill-monitor
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Skill Monitor in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Skill Monitor on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Skill Monitor is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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>
      <Enabled>true</Enabled>
    </LogonTrigger>
    <CalendarTrigger>
      <StartBoundary>$(Get-Date -Format yyyy-MM-dd)T09:00:00</StartBoundary>
      <Enabled>true</Enabled>
      <ScheduleByDay>
        <DaysInterval>1</DaysInterval>
      </ScheduleByDay>
    </CalendarTrigger>
  </Triggers>
  <Settings>
    <StartWhenAvailable>true</StartWhenAvailable>
    <DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries>
    <StopIfGoingOnBatteries>false</StopIfGoingOnBatteries>
    <ExecutionTimeLimit>PT15M</ExecutionTimeLimit>
  </Settings>
  <Actions Context="Author">
    <Exec>
      <Command>powershell.exe</Command>
      <Arguments>-NoProfile -ExecutionPolicy Bypass -File "$scriptPath"</Arguments>
    </Exec>
  </Actions>
</Task>
"@
$xmlFile = "$env:TEMP\skill-monitor-task.xml"
$xml | Out-File -FilePath $xmlFile -Encoding UTF8

# 2. 注册任务(先删除旧任务防止冲突)
schtasks /delete /tn "skill-monitor-check" /f 2>$null
schtasks /create /tn "skill-monitor-check" /xml "$xmlFile" /f

# 3. 验证
schtasks /query /tn "skill-monitor-check" /v /fo list | Select-String "触发器|09:00|Logon|PT30M|StartWhenAvailable"

说明:

  • LogonTrigger + Delay PT30M:开机登录后延迟 30 分钟执行,给网络就绪留时间(脚本内部还会重试最多 5 分钟)
  • CalendarTrigger 09:00:常规每日检查
  • StartWhenAvailable:电脑关机错过计划时间,下次开机后尽快补跑
  • ExecutionTimeLimit PT15M:任务最长运行 15 分钟,防止卡住

手动触发(随时检查一次):

powershell
powershell -NoProfile -ExecutionPolicy Bypass -File "$env:USERPROFILE\.agents\skills\skill-monitor\scripts\check-updates.ps1"

或直接在对话中说"检查更新",agent 代为执行并汇报结果。

注意事项

  • GitHub API 匿名限速 60 次/小时,每天检查一次足够;监控目录文件较多时注意调用次数(contents API 每层一次调用)
  • 优先用 gh api(已认证,限速高);gh 未登录时用 curl 匿名
  • git diff --no-index 可用于本地与新版文件的差异提取(对比结束记得删除临时文件)
  • 所有路径使用 Windows 风格(C:/Users/...),脚本与 agent 操作保持一致
  • 生成的摘要和汇报一律使用简体中文
  • 保持 monitor.json 为唯一事实来源:所有 sha 更新必须同步写回该文件

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Skill Monitor AI skill do?

用 GitHub URL 持续监控远程仓库目录下的文件(如 skill、脚本、配置文件),不依赖 npx skills 安装。当用户提到"监控这个仓库/目录"、"检查有没有更新"、"帮我跟踪这个 URL 的变更"、"看看这个 skill 更新了什么"、"不想用 npx 安装"、或要求对比 GitHub 上某个文件的当前版本与本地版本差异时,都应使用此 skill。发现更新时生成变更摘要,由用户决定是否更新。

Why use Skill Monitor on TypingMind?

Because you install it once and use it with any model. Skill Monitor is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Skill Monitor in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/bd-dxg/skills/tree/main/skill-monitor. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Skill Monitor?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Skill Monitor?

As many as you like. As long as a model supports skills, you can use Skill Monitor with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Skill Monitor AI skill free?

Yes. It is published on GitHub by bd-dxg under the AGPL-3.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇