Token导航 LogoToken导航TokenDH.com
运维和基础设施敏感数据github未标认证来源可访问clear审计通过

github-syncGitHub sync 搜索

Agent Skill

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

总安装

465

周安装

19

GitHub Stars

127

下载量

149
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 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

简介

保持本地环境与 GitHub 仓库数据一致的同步工具。

  • 自动检测差异并推送变更内容。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。
  • 减少手动拉取推送的操作负担。
  • 网络中断可能导致同步失败需重试机制。
  • github-sync 属于运维和基础设施类 Skill,可作为该场景下的辅助能力补充。

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

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

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