Status

Show sync status — auth, config, last sync, pending changes

imink 6df8201 770 B Updated

File contents

Sync Status

Show the current sync status.

Steps

1. Find Config

Look for config at $HOME/.any-sync.json first, then .any-sync.json in the current directory. If neither exists, tell the user to run /any-sync:start first.

2. Run Status

npx @any-sync/cli status "<config-path>" ".any-sync.lock"

3. Display Results

Parse the JSON output and display in a readable format:

  • Authentication: method (token/gh/none) and GitHub username
  • Config: path and validity
  • Per mapping:
    • Name and repo
    • Last sync time (relative, e.g., "2 hours ago")
    • Number of tracked files
    • Pending changes (list modified and new files)

imink/any-sync/tree/main/packages/claude-plugin/skills/status commit 6df820158d

Frequently asked questions

npx skillmds@latest add imink/status