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.
npx claudepluginhub ooiyeefei/ccc --plugin product-management# 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** ...
/syncDisplays deprecation notice that sync is a no-op and recommends Dolt commands: bd dolt push, pull, commit, show for manual synchronization.
/syncSynchronizes task status with git commits by analyzing history, patterns, and references for discrepancies, updating bidirectionally. Supports --check and --date/--project options.
/syncSynchronizes task status with git commits by analyzing history, patterns, and references for discrepancies, updating bidirectionally. Supports --check and --date/--project options.
/syncPulls latest git changes and syncs documentation files (prompt_plan.md, spec.md, CLAUDE.md, rules/) based on code diffs. Supports --no-pull, --check-only flags and optional work description.
/syncTriggers plan-sync for task <id> to update downstream task specs after implementation drift. Supports optional --dry-run flag.
/syncRebuilds project_truth.md, orchestrator_state.md, and execution_context.md from all state files and user-confirmed progress, then writes them back.
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 deduplication