Token导航 LogoToken导航

Agent Skill · 运维和基础设施

github-sync(GitHub sync 搜索)

用于围绕 GitHub 仓库、Issue、Pull Request、分支、提交和代码协作流程提供辅助能力。它适合让 Agent 查询项目状态、整理变更、辅助创建或检查协作事项,并把仓库中的信息转成可执行的下一步。使用时需要区分只读查询和写入操作;涉及创建 PR、修改 Issue、推送分支或访问私有仓库时,应确认 token 权限、目标仓库范围和用户授权。

github-sync 是运维和基础设施类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证为 MIT,第三方扫描已通过,按安装量在运维和基础设施类的 2,449 个 Skill 里排第 1,613。

总安装 465周安装 19GitHub Stars 127下载 149核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:github-sync(GitHub sync 搜索)
来源仓库:https://github.com/anton-abyzov/specweave
仓库路径:skills/github-sync
安装命令:
npx skills add https://github.com/anton-abyzov/specweave --skill github-sync
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/anton-abyzov/specweave --skill github-sync

这个 Skill 是做什么的

运维和基础设施类 Skill 处理部署、监控、日志和云资源,多数需要较高的执行权限。

保持本地环境与 GitHub 仓库数据一致的同步工具。自动检测差异并推送变更内容。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。减少手动拉取推送的操作负担。网络中断可能导致同步失败需重试机制。

github-sync 属于运维和基础设施类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/github-sync

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/anton-abyzov/specweave --skill github-sync;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

github-sync 怎么安装?

在终端执行 npx skills add https://github.com/anton-abyzov/specweave --skill github-sync。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

github-sync 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

github-sync 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

github-sync 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

github-sync 用的人多吗?

公开数据是累计安装 465 次,近一周安装 19 次,下载 149 次,GitHub 127 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

github-sync 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理运维和基础设施类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

运维和基础设施类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
brainstorming

头脑风暴 · Codex、Claude

3,148,776173,131操作浏览器MIT通过
copywriting

文案写作 · Codex、Claude

1,996,72425,583需要联网MIT通过
openclaw-secure-linux-cloud

OpenClaw secure linux cloud 命令行 · Codex、Claude

1,853,08840接触敏感数据未明确未通过
xget

xget 命令行 · Codex、Claude

1,799,28040执行命令未明确未通过
requesting-code-review

代码审查请求 · Codex、Claude

1,590,144173,103权限未标注MIT通过
github-sync

GitHub sync 搜索 · 本页

465127接触敏感数据MIT通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

GitHub Sync - Two-way Spec ↔ Project Synchronization

Purpose: Seamlessly synchronize SpecWeave specs with GitHub Projects for team visibility and project management.

Default Behavior: Two-way sync (push & pull) - Changes in either system are automatically synchronized

⚠️ IMPORTANT: This skill provides HELP and GUIDANCE about GitHub sync. For actual syncing, users should use the /sw-github:sync-spec command directly. This skill should NOT auto-activate when the command is being invoked.

When to Activate

✅ Do activate when:

  • User asks: "How do I set up GitHub sync?"
  • User asks: "What GitHub credentials do I need?"
  • User asks: "How does the GitHub integration work?"
  • User needs help configuring GitHub integration

❌ Do NOT activate when:

  • User invokes /sw-github:sync-spec command (command handles it)
  • Command is already running (avoid duplicate invocation)
  • Task completion hook is syncing (automatic process)

Integration: Works with /sw-github:sync-spec command


CORRECT Architecture

CRITICAL: SpecWeave syncs SPECS to GitHub, NOT increments!

✅ CORRECT:
.specweave/docs/internal/specs/spec-001.md  ↔  GitHub Project
├─ User Story US-001                        ↔  GitHub Issue #1
├─ User Story US-002                        ↔  GitHub Issue #2
└─ User Story US-003                        ↔  GitHub Issue #3

❌ WRONG (OLD, REMOVED!):
.specweave/increments/0001-feature  ↔  GitHub Issue (DEPRECATED!)

Why Specs, Not Increments?

  • ✅ Specs = Permanent (living docs, feature-level knowledge base)
  • ❌ Increments = Temporary (implementation snapshots, can be deleted after done)
  • ✅ GitHub should mirror PERMANENT work, not temporary iterations

How GitHub Sync Works

1. Spec → GitHub Project (Export)

Trigger: When spec is created or updated

Actions:

  1. Create GitHub Project with:

- Title: [SPEC-001] Core Framework & Architecture - Description: Spec overview + progress - Columns: Backlog, In Progress, Done - Linked to repository

  1. Store project ID in spec metadata: #.specweave/docs/internal/specs/spec-001.md (frontmatter) --- externalLinks: github: projectId: 123 projectUrl: https://github.com/users/anton-abyzov/projects/123 syncedAt: 2025-11-11T10:00:00Z ---
  2. Create GitHub Issues for each user story:

- Title: [US-001] As a developer, I want to install SpecWeave via NPM - Body: Acceptance criteria as checkboxes - Labels: user-story, spec:spec-001, priority:P1 - Linked to project

Example GitHub Project:

# [SPEC-001] Core Framework & Architecture

**Status**: In Progress (75% complete)
**Priority**: P0 (Critical)
**Feature Area**: Foundation & Plugin System

## Overview

The core framework and architecture spec covers SpecWeave's foundational capabilities:
- TypeScript-based CLI framework
- Plugin system architecture
- Cross-platform compatibility

## Progress

- ✅ US-001: NPM installation (Complete)
- ✅ US-002: Plugin system (Complete)
- ⏳ US-003: Context optimization (In Progress)
- ⏳ US-004: Intelligent agents (In Progress)

**Overall**: 2/4 user stories complete (50%)

---

🤖 Auto-synced by SpecWeave GitHub Plugin

2. User Story Progress Updates (Spec → GitHub)

Trigger: After each task completion (via post-task-completion hook)

Actions:

  1. Update GitHub Issue (for user story):

- Updates acceptance criteria checkboxes - Marks completed ACs with [x] - Updates issue description - Updates labels (in-progress, testing, ready-for-review)

  1. Update GitHub Project:

- Moves cards between columns (Backlog → In Progress → Done) - Updates project progress percentage - Posts progress comment

Example Issue Update:

**User Story**: US-001

As a developer, I want to install SpecWeave via NPM so that I can use it in my projects

## Acceptance Criteria

- [x] AC-001-01: `npm install -g specweave` works
- [x] AC-001-02: `specweave init` creates `.specweave/` structure
- [ ] AC-001-03: Version command shows current version (In Progress)

---

**Progress**: 2/3 ACs complete (67%)

🤖 Auto-updated by SpecWeave (2025-11-11)

3. Spec Completion (Close Project)

Trigger: All user stories in spec are complete

Actions:

  1. Close all GitHub Issues (user stories)
  2. Archive GitHub Project
  3. Post final comment: ✅ **Spec Completed** **Final Stats**: - 35 user stories completed (100%) - 4 increments implemented (0001, 0002, 0004, 0005) - Duration: 6 weeks **Deliverables**: - Core framework architecture - Plugin system - Cross-platform CLI Spec complete. Project archived. --- 🤖 Auto-closed by SpecWeave

4. GitHub Project → Spec (Import)

Use Case: Import existing GitHub Projects as SpecWeave specs

Command: /sw-github:import-project <project-number>

Actions:

  1. Fetch project via GitHub GraphQL API
  2. Create spec structure:

- Parse project title → spec title - Parse project body → spec overview - Map issues → user stories - Map labels → priority

  1. Generate spec.md with user stories and acceptance criteria
  2. Link project to spec in metadata

Configuration

Configure GitHub sync in .specweave/config.json:

{
  "plugins": {
    "enabled": ["specweave-github"],
    "settings": {
      "specweave-github": {
        "repo": "owner/repo",
        "autoSyncSpecs": true,
        "syncDirection": "two-way",
        "defaultLabels": ["specweave", "spec"],
        "syncFrequency": "on-change"
      }
    }
  }
}

GitHub CLI Requirements

This skill requires GitHub CLI (gh) to be installed and authenticated:

# Install GitHub CLI
brew install gh              # macOS
sudo apt install gh          # Ubuntu
choco install gh             # Windows

# Authenticate
gh auth login

# Verify
gh auth status

Manual Sync Operations

Sync Spec to GitHub

/sw-github:sync-spec spec-001

Creates or updates GitHub Project for spec-001.

Sync All Specs

/sw-github:sync-spec --all

Syncs all specs to GitHub Projects.

Import Project

/sw-github:import-project 123

Imports GitHub Project #123 as a SpecWeave spec.

Check Status

/sw-github:status spec-001

Shows sync status (project ID, last sync time, progress %).


Workflow Integration

Full Automated Workflow

# 1. Create spec (PM agent)
User: "Create spec for user authentication"
PM: Creates .specweave/docs/internal/specs/spec-005-user-auth.md

# 2. Auto-sync to GitHub (hook)
→ GitHub Project created automatically
→ Issues created for each user story

# 3. Implement increments
/sw:increment "Add login flow"
→ Increment 0010 created (implements US-001, US-002)

# 4. Work on tasks
/sw:do
→ Task completed
→ Hook fires
→ Spec updated (AC marked complete)
→ GitHub Project updated automatically

# 5. Complete spec
→ All user stories done
→ GitHub Project archived automatically

Team Collaboration

For Developers:

  • Work in SpecWeave specs locally
  • Automatic GitHub Project updates keep team informed
  • No manual project management needed

For Project Managers:

  • View all specs as GitHub Projects
  • Track progress in GitHub Projects UI
  • Comment on issues to communicate with developers

For Stakeholders:

  • See progress in familiar GitHub interface
  • No need to understand SpecWeave structure
  • Clear visibility into feature development status

Conflict Resolution

What if project and spec diverge?

The spec is always the source of truth. GitHub Projects are a mirror for visibility.

Sync conflicts (rare):

  1. Spec status conflicts with project state
  2. Manual edits to project/issue body/title

Resolution:

  • Run /sw-github:sync-spec spec-001 --force to overwrite project from spec
  • Or manually update spec metadata to match project

Privacy & Security

What gets synced?

  • ✅ Spec title, overview, progress
  • ✅ User stories and acceptance criteria
  • ✅ User story completion status
  • ❌ Code diffs, file contents (never synced)
  • ❌ Internal notes, sensitive data

Security:

  • Uses GitHub token from environment (GITHUB_TOKEN or GH_TOKEN)
  • Respects repository permissions (read/write)
  • No data sent to third parties

Benefits

For SpecWeave Users:

  • ✅ No manual GitHub project management
  • ✅ Automatic team visibility
  • ✅ Single source of truth (spec docs)
  • ✅ GitHub integration without leaving IDE

For Teams:

  • ✅ Track SpecWeave work in GitHub Projects
  • ✅ Use milestones, labels, assignees as usual
  • ✅ Comment on issues to communicate with developers
  • ✅ View progress in real-time

For Organizations:

  • ✅ Unified project tracking across repos
  • ✅ GitHub-native workflow (familiar to all)
  • ✅ Audit trail (all syncs timestamped)
  • ✅ Integration with GitHub Actions, webhooks

Troubleshooting

Project not created?

  • Check GitHub CLI: gh auth status
  • Verify repo permissions (write access)
  • Check config: .specweave/config.json

Sync failing?

  • Check network connectivity
  • Verify project still exists (not deleted)
  • Check rate limits: gh api rate_limit

Progress not updating?

  • Check autoSyncSpecs: true in config
  • Verify hook execution: .specweave/logs/hooks-debug.log
  • Manually sync: /sw-github:sync-spec spec-001

Advanced Usage

Custom Project Templates

Create .specweave/github/project-template.md:

# [{{spec.id.toUpperCase()}}] {{spec.title}}

{{spec.overview}}

## SpecWeave Details

- **Spec**: [spec.md]({{spec.url}})
- **Priority**: {{spec.priority}}
- **Feature Area**: {{spec.featureArea}}

## User Stories

{{spec.userStories.map(us => `- ${us.id}: ${us.title}`).join('\n')}}

Selective Sync

Sync only specific specs:

{
  "plugins": {
    "settings": {
      "specweave-github": {
        "syncSpecs": [
          "spec-001-core-framework",
          "spec-005-user-authentication"
        ]
      }
    }
  }
}

Multi-Repo Sync

For monorepos with multiple GitHub repositories:

{
  "plugins": {
    "settings": {
      "specweave-github": {
        "repos": {
          "frontend": {
            "repo": "myorg/frontend",
            "specs": ["spec-001-*", "spec-002-*"]
          },
          "backend": {
            "repo": "myorg/backend",
            "specs": ["spec-003-*", "spec-004-*"]
          }
        }
      }
    }
  }
}

Related

  • github-issue-tracker: Track individual tasks as issue comments (DEPRECATED - use spec sync instead)
  • github-manager agent: AI agent for GitHub operations
  • Commands: /sw-github:sync-spec, /sw-github:import-project, /sw-github:status

Version: 2.0.0 (Spec-based architecture) Plugin: specweave-github Last Updated: 2025-11-11

平台分布

Claude Code

28.48%
按下载量换算42

Antigravity

26.9%
按下载量换算40

Cursor

17.15%
按下载量换算26

Gemini CLI

13.78%
按下载量换算21

OpenCode

8.1%
按下载量换算12

Codex

3.87%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

继续浏览同类 Skills