From product-management
Syncs local .pm/requests/ cache with GitHub Issues labeled pm:feature-request by fetching via GitHub CLI, creating/updating markdown files, cleaning stale entries, updating cache timestamp, and reporting summary.
How this command is triggered — by the user, by Claude, or both
Slash command
/product-management:syncThis command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
# GitHub Sync Sync local `.pm/requests/` cache with GitHub Issues for deduplication. ## Prerequisites Check GitHub CLI: If not authenticated: "Run `gh auth login` first." ## Process 1. **Fetch All PM Issues** 2. **Create/Update Local Cache** - Create `.pm/requests/` directory if not exists - For each issue, create/update `.pm/requests/[issue-number].md`: 3. **Clean Up Stale Entries** - Remove local files for issues that no longer exist - Update state for closed issues 4. **Update Timestamp** - Update `.pm/cache/last-updated.json`: 5. **Report Summary** ...
Sync local .pm/requests/ cache with GitHub Issues for deduplication.
Check GitHub CLI:
gh auth status
If not authenticated: "Run gh auth login first."
Fetch All PM Issues
gh issue list --label "pm:feature-request" --state all --json number,title,body,labels,state,createdAt,updatedAt --limit 200
Create/Update Local Cache
.pm/requests/ directory if not exists.pm/requests/[issue-number].md:---
github_issue: [number]
title: "[title]"
state: [open/closed]
labels: [list]
created: [date]
updated: [date]
synced: [now]
---
[Issue body content]
Clean Up Stale Entries
Update Timestamp
.pm/cache/last-updated.json:{
"github_sync": "[ISO timestamp]",
"issues_count": [N]
}
Report Summary
GitHub Sync Complete
- Issues synced: [N]
- New: [N]
- Updated: [N]
- Removed: [N]
- Last sync: [timestamp]
/pm:gaps for accurate deduplicationnpx claudepluginhub ooiyeefei/ccc --plugin ccc-skills/epic-syncSyncs GitHub epic issue bodies, labels, and local coordination snapshots into a deterministic SQLite cache.
/sync-issues-to-linearSyncs open GitHub issues from the current repo to Linear tasks, mapping title, body, labels, assignees, milestones, and states while handling duplicates via externalId.
/pickup-githubExecutes GitHub workflows for picking up board issues: fetches open issues, detects collisions, updates status labels, creates PRs with issue linkage, and transitions labels to in-review.
/sync-githubSyncs local SonIA kanban board to GitHub Issues using gh CLI, updating .claude/alfred-github-sync.json and docs/project/github-sync.md. Optional owner/repo.
/issue-syncDetects issue references (Fixes #123, etc.) in git commits, artifacts, and code, then updates GitHub/gh or Gitea issues (close, progress/blocker comments). Supports --commit, --scan-recent, --artifact, --dry-run.
/sync-linear-to-issuesSyncs Linear tasks to GitHub issues via gh CLI, mapping titles, descriptions, labels, assignees, states, priorities, comments, attachments, and adding Linear references.