awesome-copilot-sync
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAwesome-Copilot Sync Skill
Awesome-Copilot 同步Skill
Purpose
用途
This skill monitors the github/awesome-copilot repository for new releases and changes, comparing against the last time amplihack's integration was synchronized. It detects drift early so the awesome-copilot MCP server config, native agents, and marketplace registration stay current.
该Skill用于监控github/awesome-copilot仓库的新版本和变更,与amplihack集成上次同步的时间进行对比。它能提前检测出差异,确保awesome-copilot MCP服务器配置、原生Agent和市场注册保持最新状态。
When to Use This Skill
适用场景
- Periodic audits: Check if the awesome-copilot integration is up to date
- Before updates: Verify if upstream changes require local adjustments
- CI/CD gates: Include in release checks to flag stale integrations
- Manual checks: User asks "is awesome-copilot up to date?"
- 定期审计:检查awesome-copilot集成是否为最新版本
- 更新前验证:确认上游变更是否需要本地调整
- CI/CD关卡:纳入发布检查,标记过时的集成
- 手动检查:用户询问“awesome-copilot是否为最新版本?”
How It Works
工作原理
- Queries the GitHub API for recent commits on github/awesome-copilot
- Compares the latest commit timestamp against a local state file
- Reports one of three statuses:
- CURRENT: No new commits since last check
- DRIFT_DETECTED: New upstream commits found since last sync
- ERROR: Could not reach GitHub API or parse response
- 通过GitHub API查询github/awesome-copilot的近期提交
- 将最新提交时间戳与本地状态文件进行对比
- 报告以下三种状态之一:
- CURRENT:自上次检查后无新提交
- DRIFT_DETECTED:自上次同步后发现上游有新提交
- ERROR:无法连接GitHub API或解析响应
Usage
使用方法
Standalone Script
独立脚本
bash
python .claude/skills/awesome-copilot-sync/check_drift.pybash
python .claude/skills/awesome-copilot-sync/check_drift.pyOutput Format
输出格式
awesome-copilot sync status: CURRENT
Last checked: 2026-02-16T10:30:00Z
Latest upstream commit: 2026-02-15T08:00:00Zor
awesome-copilot sync status: DRIFT_DETECTED
Last checked: 2026-02-10T10:30:00Z
Latest upstream commit: 2026-02-16T14:00:00Z
New commits since last check: 5awesome-copilot sync status: CURRENT
Last checked: 2026-02-16T10:30:00Z
Latest upstream commit: 2026-02-15T08:00:00Z或
awesome-copilot sync status: DRIFT_DETECTED
Last checked: 2026-02-10T10:30:00Z
Latest upstream commit: 2026-02-16T14:00:00Z
New commits since last check: 5State File
状态文件
The sync state is stored at :
~/.amplihack/awesome-copilot-sync-state.jsonjson
{
"last_checked": "2026-02-16T10:30:00Z",
"latest_commit_sha": "abc123",
"latest_commit_date": "2026-02-15T08:00:00Z"
}同步状态存储在 :
~/.amplihack/awesome-copilot-sync-state.jsonjson
{
"last_checked": "2026-02-16T10:30:00Z",
"latest_commit_sha": "abc123",
"latest_commit_date": "2026-02-15T08:00:00Z"
}Dependencies
依赖项
- CLI (GitHub CLI) -- used for authenticated API access
gh - No Python package dependencies beyond the standard library
- CLI(GitHub CLI)—— 用于认证API访问
gh - 除Python标准库外,无其他Python包依赖