Commit Graph
37 Commits
Author SHA1 Message Date
Willie Hung fb077539da feat: add version check notification after commands
- Check GitHub releases API for new versions (24h cache)
- Display colorful update notification when update available
- Skip check for dev builds
- Cache stored at ~/.skillshare/version-check.json
2026-01-23 14:03:53 +08:00
Willie Hung 936a200198 feat: upgrade install/update UI with PTerm
- Add PTerm library for modern CLI output
- Add internal/ui/pterm.go with spinner, box, progress bar utilities
- Add internal/git/info.go for git diff/commit info retrieval
- Update install.go with header boxes, spinners, progress bars
- Update update.go with header boxes, spinners, change summaries
- Fallback to plain text for non-TTY environments
2026-01-23 13:50:57 +08:00
Willie Hung 0a4ab1c4a8 feat: --force now discards local changes before update
Previously --force only skipped the warning. Now it runs
git restore . to discard uncommitted changes before git pull,
ensuring a clean sync with remote.
2026-01-21 13:15:09 +08:00
Willie Hung e12617df6e fix: run brew update before upgrade for Homebrew installs
Ensures users get the latest version by syncing the tap first.
2026-01-21 13:06:38 +08:00
Willie Hung 1756d8034c feat: block update on repos with uncommitted changes
Prevents accidental data loss by checking for uncommitted changes
before running git pull on tracked repos. Use --force to override.
2026-01-21 12:56:29 +08:00
Willie Hung f60d46c4f5 feat: remove ss symlink, add alias docs
- Remove automatic ss symlink creation from install.sh and upgrade
- Add optional alias setup instructions to README
- Update skill version to 0.6.4
2026-01-21 01:11:30 +08:00
Willie Hung f2aa06e729 feat: discover mode, version display, ss shorthand
New features:
- Discover mode: ss init --discover to add new agents
- Version display: status/doctor show CLI and skill versions
- Shorthand: ss command (symlink to skillshare)
- 5 new agents: clawdbot, droid, kilocode, roo, windsurf

Improvements:
- Interactive arrow-key selection for init targets
- upgrade --cli creates ss symlink for existing installs
- Better error messages with --discover suggestion
2026-01-21 00:54:55 +08:00
Willie Hung 1033aba2d9 feat: show CLI and skill version in status and doctor 2026-01-21 00:46:45 +08:00
Willie Hung 17c6e93212 feat: show skill version in status and doctor
- status: always display local skill version
- doctor: add skill version check
- Fix upgrade command hint (update -> upgrade --skill)
2026-01-21 00:42:12 +08:00
Willie Hung d43afa5269 feat: add discover mode for init command
- Add --discover flag to detect new agents
- Add --select flag for non-interactive mode (AI use)
- Use survey.MultiSelect for interactive target selection
- Update init.md with discover flags documentation
- Add 8 test cases for discover functionality
2026-01-21 00:42:05 +08:00
Willie Hung fd4387460a feat: Team Edition - tracked repos, nested skills, collision detection
## New Features
- Tracked repositories: `install --track` to clone team skill repos
- Nested skills: organize in folders, auto-flatten on sync (work/api → work__api)
- Name collision detection: warns when multiple skills share same SKILL.md name
- Auto-pruning: orphaned symlinks cleaned on sync
- Custom naming: `--name` flag for tracked repos

## Changes
- Require target path to exist when adding targets
- Add sync reminder after adding target
- Improve pruning messages (broken vs orphan symlinks)
- Add `{team}:{name}` naming convention recommendation

## Files
- New: update.go, gitignore.go, frontmatter.go
- Updated: sync.go, install.go, uninstall.go, validate.go
- Docs: README.md, SKILL.md
2026-01-20 01:56:07 +08:00
Willie Hung aaae299f9e feat: require target path to exist and show sync reminder
- Change TargetPath validation to return error when path doesn't exist
  instead of just a warning
- Add sync reminder message after successful target add
- Add TestTargetPath unit tests and integration test for non-existent path
2026-01-19 22:18:08 +08:00
Willie Hung ffc9c50237 fix: download entire skillshare skill directory instead of just SKILL.md
Use install.Install() to clone the entire skill directory including
references/ and scripts/ subdirectories.
2026-01-16 22:28:27 +08:00
Willie Hung 4af34fe695 feat: rename update to upgrade with CLI self-update support
- Rename `update` command to `upgrade`
- Add CLI binary self-update from GitHub releases
- Add `--cli` and `--skill` flags to upgrade specific components
- Detect Homebrew installation and use `brew install` instead
- Refactor SKILL.md with progressive disclosure pattern
- Split references into separate files (status, sync, install, etc.)
- Move run.sh to skills/skillshare/scripts/
- Fix --update flag to auto-reinstall when git pull not possible

BREAKING CHANGE: `skillshare update` is now `skillshare upgrade`
2026-01-16 22:12:03 +08:00
Willie Hung fd2c69dbc5 feat: check remote skill version instead of CLI version 2026-01-16 03:40:16 +08:00
Willie Hung 0c7d8be08d feat: check skill version in status command
- Add version field to SKILL.md frontmatter
- Show update prompt when CLI version > skill version
- Suggest `skillshare update && skillshare sync`
2026-01-16 03:23:46 +08:00
Willie Hung 96585a7626 fix: show informative messages when remote already exists
- Show message when remote is already configured with same URL
- Show warning and hint when trying to set different remote
- Show warning when git is not initialized
- Add tests for all edge cases
2026-01-16 03:00:19 +08:00
Willie Hung 4bda08c6e0 fix: allow init --remote on already initialized config
When config exists and --remote is provided, only add the git remote
instead of returning an error. This enables adding remote to existing
setups without re-initialization.
2026-01-16 02:56:36 +08:00
Willie Hung 14b4809c62 feat: add cross-machine sync with push/pull commands
- Add `skillshare push` command (git add, commit, push)
- Add `skillshare pull --remote` flag (git pull + sync all)
- Add `--remote` flag to init for setting up git remote
- Add interactive remote setup prompt during init
- Update README with cross-machine sync workflow
- Update SKILL.md with new commands and AI behavior guide
2026-01-16 02:51:40 +08:00
Willie Hung 0b5b1dd48b fix: skip duplicate check for merge mode targets
Merge mode allows local skills by design. Only check for duplicates
in symlink mode targets where local copies are unexpected.
2026-01-16 02:00:40 +08:00
Willie Hung fe4c762fa6 fix: correct misleading duplicate skills fix suggestion 2026-01-16 01:57:12 +08:00
Willie Hung 6f2b51d75d fix: track warnings separately from errors in doctor summary
Doctor now distinguishes between errors (broken symlinks, missing source)
and warnings (uncommitted git changes, duplicate skills). Summary shows
"N warning(s)" instead of "All checks passed!" when warnings exist.
2026-01-16 01:44:48 +08:00
Willie Hung 13470262d0 docs: highlight skillshare's unique advantages in README
- Add "Why skillshare?" comparison table vs competitors
- Emphasize bidirectional sync, backup/restore, diagnostics
- Add Key Features section with core differentiators
2026-01-16 01:39:58 +08:00
Willie Hung ccdc34d0cf feat: enhance doctor command with comprehensive checks
Add new diagnostic checks:
- Git status: uncommitted changes, remote configuration
- Skill validation: detect skills without SKILL.md
- Broken symlinks: find invalid symlinks in targets
- Duplicate skills: warn about same skill in multiple locations
- Backup status: show last backup time
- Version check: notify if newer version available
2026-01-16 01:32:12 +08:00
Willie Hung 2b9565afc3 feat: add interactive multi-select for skill discovery
Replace text-based number input with survey's MultiSelect widget:
- Use arrow keys to navigate
- Space to toggle selection
- Enter to confirm

This provides a more intuitive UX similar to modern CLI tools.
2026-01-16 01:26:57 +08:00
Willie Hung 01bad709a1 feat: add GitHub shorthand for install command
Support owner/repo shorthand that expands to github.com/owner/repo:
- skillshare install anthropics/skills
- skillshare install anthropics/skills/skills/pdf

This matches the UX of npm, go get, and skild for faster installs.
2026-01-16 01:21:46 +08:00
Willie Hung 7cfdf540a3 fix: add dry-run warning message to update command
The update --dry-run flag was missing the warning banner that other
commands display, making it unclear that no changes would be made.
2026-01-16 01:03:41 +08:00
Willie Hung 4337bf7890 feat: add update command for built-in skill
- Add `skillshare update` to download latest skill from GitHub
- Download skill during init with fallback if offline
- Remove embedded template approach
- Add integration tests for update command
- Update README with update command docs
2026-01-16 00:52:31 +08:00
Willie Hung 6f5f5460fe feat: add uninstall and list commands
- uninstall: remove skills from source with confirmation prompt
- list: show installed skills with source info
- --verbose flag for detailed output
- integration tests for both commands
- README documentation
2026-01-15 23:36:55 +08:00
Willie Hung 0a410234fd feat: add skill installer and expand dry-run previews 2026-01-15 23:15:38 +08:00
Willie b93ad3ffe4 refactor: split main.go into separate command files
Split the 1585-line main.go into focused modules:
- main.go: entry point and command routing
- init.go: initialization command
- sync.go: sync command
- status.go: status command
- target.go: target management commands
- diff.go: diff command
- backup.go: backup and restore commands
- pull.go: pull command
- doctor.go: diagnostic command
- helpers.go: shared utility functions

No functional changes - purely structural refactoring for maintainability.
2026-01-14 22:16:24 +08:00
Willie f5e9d9644e docs: improve README with better structure and content
- Add badges (License, Go version, Release)
- Add ASCII flow diagram showing architecture
- Add Table of Contents for navigation
- Add "Why skillshare?" comparison table
- Add Use Cases section (Individual, Team, Open Source)
- Add FAQ section with common questions
- Add Contributing guide with development setup
- Reorganize sections for better readability
2026-01-14 22:12:56 +08:00
Willie 3a4bc02244 feat: improve init flow with explicit target selection
- Only auto-add target when user copies from it
- Ask user before adding other detected targets
- Detect CLI tools with parent directory (not initialized)
- Add "Sync Across Machines" section to README
2026-01-14 20:59:34 +08:00
Willie 95ca07be89 feat: add target info/mode commands, show mode in status/doctor
- Add `skillshare target <name>` to show target details
- Add `skillshare target <name> --mode <mode>` to change target mode
- Show sync mode [merge/symlink] in status and doctor output
- Show warning when configured mode doesn't match actual state
- Fix sync to properly convert between symlink and merge modes
- Simplify module name to `skillshare`
- Remove go install option from README (incompatible with simplified module)
2026-01-14 20:43:00 +08:00
Willie 98d0ddf189 feat: add diff, backup, doctor commands and backup mechanism
- Add `diff` command to show differences between source and target
- Add `backup` command for manual backup with recent backup list
- Add `doctor` command to diagnose configuration issues
- Add internal/backup package for backup functionality
- Fix diff command incorrectly showing "not linked" for symlink mode targets
- Update README with new commands documentation
2026-01-14 20:24:40 +08:00
Willie 75c0e4bead feat: add merge mode, make it default
- merge mode: symlink individual skills, preserve local skills
- symlink mode: entire directory becomes symlink
- safer default that won't move existing skills
2026-01-14 20:06:14 +08:00
Willie b3b7bcf0fc feat: initial release of skillshare
Share skills across AI CLI tools (Claude Code, Codex, Cursor, Gemini, OpenCode)
with a single source directory and symlinks.

Commands:
- init: Initialize with source directory, auto-detect CLI tools
- sync: Migrate existing skills and create symlinks
- status: Show target status
- target: Manage targets (add/remove/list)
2026-01-14 18:09:36 +08:00