Skip to content
Development
Command

/github-push

Push local progress to GitHub Issues (like git push). Updates issue with task completion checklist.

From plugin
specweave
15673 skills20 agents73 commands
Install
> /plugin marketplace add anton-abyzov/specweave
> /plugin install sw@specweave

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/github-push

Context preview

What this command does when you run it.

Push local progress to GitHub Issues (like git push). Updates issue with task completion checklist.

Command definition

github-push.md
description: Push local progress to GitHub Issues (like git push). Updates issue with task completion checklist.

GitHub Push Command

**Usage**: `sw-github:push [increment-id]`

**Purpose**: Push local progress to GitHub Issues (like `git push`)

---

Quick Start

# Push current/active increment
sw-github:push

# Push specific increment
sw-github:push 0005

---

What Gets Pushed

| Field | Source | |-------|--------| | **Task Checklist** | Updated from tasks.md completion | | **Comment** | Auto-generated progress update | | **Labels** | Status labels updated | | **State** | Closed if 100% complete |

---

Command Behavior

When user runs this command:

1. Check Permission Gate

const config = JSON.parse(await fs.readFile('.specweave/config.json', 'utf-8'));
const canUpdateExternal = config?.sync?.settings?.canUpdateExternalItems ?? false;

if (!canUpdateExternal) {
  console.log(`
Permission Denied: GitHub writes disabled

To enable: Set sync.settings.canUpdateExternalItems = true

Or use read-only: sw-github:pull ${incrementId}
`);
  return;
}

2. Calculate Progress

const tasksContent = await fs.readFile(
  `.specweave/increments/${incrementId}/tasks.md`, 'utf-8'
);

const totalTasks = (tasksContent.match(/### T-\d+/g) || []).length;
const completedTasks = (tasksContent.match(/\[x\] completed/gi) || []).length;
const percentage = Math.round((completedTasks / totalTasks) * 100);

3. Invoke Push Sync

Use Skill tool: Skill({ skill: "sw-github:github-sync", args: "Push progress to GitHub for increment {increment-id}.

Issue: #{issueNumber}
Progress: {completedTasks}/{totalTasks} ({percentage}%)

Steps:
1. Update issue body task checklist
2. Add progress comment
3. Update labels if needed
4. Close issue if 100% complete (if canUpdateStatus)
5. Update sync timestamp"

4. Display Result

Pushed to GitHub

Issue: #123
Repository: owner/repo

Progress: 6/10 tasks (60%)

Updates:
  Task checklist: 6/10 checked
  Comment: Progress update posted
  Labels: +in-progress

URL: https://github.com/owner/repo/issues/123

---

Examples

Example 1: Simple Push

User: sw-github:push

Claude:
Pushing to GitHub...
  Increment: 0005-payment-integration
  Issue: #123

Progress: 8/10 tasks (80%)
Checklist updated, comment posted.

Push complete!

Example 2: 100% Complete

User: sw-github:push 0005

Claude:
Pushing to GitHub...

Progress: 10/10 tasks (100%)

Updates:
  Task checklist: 10/10 checked
  Comment: "All tasks complete!"
  Issue: CLOSED

Ready for next: sw:done 0005

---

Related Commands

| Command | Purpose | |---------|---------| | `sw-github:pull` | Pull changes from GitHub | | `sw-github:sync` | Two-way sync (pull + push) | | `sw-github:status` | Check sync status | | `sw-github:close` | Close issue with summary |

Read more
Ships withspecweave

Spec-first AI development: describe a feature → AI creates spec + plan + tasks, builds autonomously, syncs to GitHub/JIRA. Domain-expert skills for PM, Architect, Frontend, QA learn your patterns permanently. Claude Code, Codex, Cursor, Copilot & more.

Get the whole plugin