mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-20 20:34:19 +00:00
- Add version command page and fix commands index (missing check, trash, hub) - Document target aliases and XDG base directory layout - Rewrite all 9 section index pages with "What do you want to do?" tables - Standardize all 24 command docs with "When to Use" and "See Also" sections - Enhance intro with role-based paths (individual / team / migration) - Add "What Just Happened?" explainer to first-sync getting-started page - Add practical context callouts (:::tip) to all concept pages - Add See Also cross-references to all guide and workflow pages 59 files changed, 547 insertions(+), 163 deletions(-)
95 lines
2.1 KiB
Markdown
95 lines
2.1 KiB
Markdown
---
|
|
sidebar_position: 2
|
|
---
|
|
|
|
# diff
|
|
|
|
Show differences between source and targets.
|
|
|
|
```bash
|
|
skillshare diff # All targets
|
|
skillshare diff claude # Specific target
|
|
```
|
|
|
|

|
|
|
|
## When to Use
|
|
|
|
- See exactly what's different between source and a target before syncing
|
|
- Find skills that exist only in a target (local-only, not yet collected)
|
|
- Identify local copies that could be replaced by symlinks
|
|
|
|
## Example Output
|
|
|
|
```
|
|
claude
|
|
+ missing-skill missing
|
|
~ local-copy local copy (sync --force to replace)
|
|
- local-only local only
|
|
|
|
Run 'sync' to add missing, 'sync --force' to replace local copies
|
|
Run 'collect claude' to import local-only skills to source
|
|
```
|
|
|
|
## Symbols
|
|
|
|
| Symbol | Meaning | Action |
|
|
|--------|---------|--------|
|
|
| `+` | In source, missing in target | `sync` will add it |
|
|
| `~` | In both, but target has local copy (not symlink) | `sync --force` to replace |
|
|
| `-` | Only in target, not in source | `collect` to import |
|
|
|
|
## What Diff Shows
|
|
|
|
### Merge Mode Targets
|
|
|
|
For targets using merge mode (default):
|
|
- Lists skills in that target's expected set (after `include`/`exclude`) not yet synced
|
|
- Shows skills that exist as local copies instead of symlinks
|
|
- Identifies local-only skills in target
|
|
|
|
### Symlink Mode Targets
|
|
|
|
For targets using symlink mode:
|
|
- Simply checks if symlink points to correct source
|
|
- Shows "Fully synced" or warns about wrong symlink
|
|
|
|
## Use Cases
|
|
|
|
### Before Sync
|
|
|
|
Check what will change:
|
|
|
|
```bash
|
|
skillshare diff
|
|
# See what sync will do, then:
|
|
skillshare sync
|
|
```
|
|
|
|
### Finding Local Skills
|
|
|
|
Discover skills you created directly in a target:
|
|
|
|
```bash
|
|
skillshare diff claude
|
|
# Shows: - my-local-skill local only
|
|
|
|
skillshare collect claude # Import to source
|
|
```
|
|
|
|
### Troubleshooting
|
|
|
|
When sync status shows issues:
|
|
|
|
```bash
|
|
skillshare status # Shows "needs sync"
|
|
skillshare diff claude # See exactly what's different
|
|
skillshare sync # Fix it
|
|
```
|
|
|
|
## See Also
|
|
|
|
- [sync](/docs/commands/sync) — Sync to targets
|
|
- [collect](/docs/commands/collect) — Import local skills
|
|
- [status](/docs/commands/status) — Quick overview
|