Two-way synchronization between SpecWeave specs and GitHub Projects (push & pull by default). Activates ONLY when user asks questions about GitHub integration or needs help configuring GitHub sync. Does NOT activate for slash commands. For syncing, use /sw-github:sync-spec command instead.
Inherits all available tools
Additional assets for this skill
This skill inherits all available tools. When active, it can use any tool Claude has access to.
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.
✅ Do activate when:
❌ Do NOT activate when:
/sw-github:sync-spec command (command handles it)Integration: Works with /sw-github:sync-spec command
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?
Trigger: When spec is created or updated
Actions:
Create GitHub Project with:
[SPEC-001] Core Framework & ArchitectureStore 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
---
Create GitHub Issues for each user story:
[US-001] As a developer, I want to install SpecWeave via NPMuser-story, spec:spec-001, priority:P1Example 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
Trigger: After each task completion (via post-task-completion hook)
Actions:
Update GitHub Issue (for user story):
[x]in-progress, testing, ready-for-review)Update GitHub Project:
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)
Trigger: All user stories in spec are complete
Actions:
✅ **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
Use Case: Import existing GitHub Projects as SpecWeave specs
Command: /sw-github:import-project <project-number>
Actions:
Fetch project via GitHub GraphQL API
Create spec structure:
Generate spec.md with user stories and acceptance criteria
Link project to spec in metadata
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"
}
}
}
}
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
/sw-github:sync-spec spec-001
Creates or updates GitHub Project for spec-001.
/sw-github:sync-spec --all
Syncs all specs to GitHub Projects.
/sw-github:import-project 123
Imports GitHub Project #123 as a SpecWeave spec.
/sw-github:status spec-001
Shows sync status (project ID, last sync time, progress %).
# 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
For Developers:
For Project Managers:
For Stakeholders:
What if project and spec diverge?
The spec is always the source of truth. GitHub Projects are a mirror for visibility.
Sync conflicts (rare):
Resolution:
/sw-github:sync-spec spec-001 --force to overwrite project from specWhat gets synced?
Security:
For SpecWeave Users:
For Teams:
For Organizations:
Project not created?
gh auth status.specweave/config.jsonSync failing?
gh api rate_limitProgress not updating?
autoSyncSpecs: true in config.specweave/logs/hooks-debug.log/sw-github:sync-spec spec-001Create .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')}}
Sync only specific specs:
{
"plugins": {
"settings": {
"specweave-github": {
"syncSpecs": [
"spec-001-core-framework",
"spec-005-user-authentication"
]
}
}
}
}
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-*"]
}
}
}
}
}
}
/sw-github:sync-spec, /sw-github:import-project, /sw-github:statusVersion: 2.0.0 (Spec-based architecture) Plugin: specweave-github Last Updated: 2025-11-11