Skip to content
Business
Command

/sync

Sync local cache with GitHub Issues

From plugin
ccc
50218 skills4 agents18 commands
> /plugin marketplace add ooiyeefei/ccc

Command definition

sync.md
description: Sync local cache with GitHub Issues
allowed-tools: Read, Write, Bash

GitHub Sync

Sync local `.pm/requests/` cache with GitHub Issues for deduplication.

Prerequisites

Check GitHub CLI:

gh auth status

If not authenticated: "Run `gh auth login` first."

Process

1. **Fetch All PM Issues**

   gh issue list --label "pm:feature-request" --state all --json number,title,body,labels,state,createdAt,updatedAt --limit 200

2. **Create/Update Local Cache**

  • Create `.pm/requests/` directory if not exists
  • For each issue, create/update `.pm/requests/[issue-number].md`:
   ---
   github_issue: [number]
   title: "[title]"
   state: [open/closed]
   labels: [list]
   created: [date]
   updated: [date]
   synced: [now]
   ---

   [Issue body content]

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`:
   {
     "github_sync": "[ISO timestamp]",
     "issues_count": [N]
   }

5. **Report Summary**

   GitHub Sync Complete
   - Issues synced: [N]
   - New: [N]
   - Updated: [N]
   - Removed: [N]
   - Last sync: [timestamp]

When to Run

  • Automatically suggested on session start if >24 hours since last sync
  • Before running `/pm:gaps` for accurate deduplication
  • After creating issues outside of PM plugin
Read more
@ooiyeefei
Ships withccc

Custom plugins and skills for Claude Code.

50217 skills4 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
502
Star history of ooiyeefei/ccc on GitHub, a chart by star-history.com

Other commands on ccc.

streak-new

streak-new

Command

Create a new challenge with guided setup (learning, building, fitness, habit, creative, custom)

@ooiyeefei@ooiyeefeiInstall Command
streak-stats

streak-stats

Command

View progress statistics, streaks, and achievements for your challenge

@ooiyeefei@ooiyeefeiInstall Command
streak

streak

Command

Check in to your active challenge - log progress, get insights

@ooiyeefei@ooiyeefeiInstall Command

More commands from other plugins.

plan

plan

Command

Plan n8n Linear ticket implementation

n8n2d211k
@n8n-io@n8n-ioInstall Command