Commit Graph
85 Commits
Author SHA1 Message Date
Willie Hung 3a3f0ef6f2 fix: remove ANSI codes from update notification content
ANSI color codes in box content caused pterm to miscalculate width,
resulting in misaligned right border. Use plain text content and
let pterm handle the box styling.
2026-01-24 01:55:03 +08:00
Willie Hung 84c75b51b4 fix: skip version check after upgrade command
The upgrade command replaces the binary but the current process still
runs the old version. Skip version check notification after upgrade
to avoid showing stale update prompts.
v0.6.14
2026-01-24 01:43:15 +08:00
Willie Hung 8617fe235d feat: support discovery mode for git subdirectories
When installing from a git subdirectory (e.g., user/repo/path/to/skills),
automatically scan for multiple skills within that subdirectory. If found,
enter discovery mode to let users select which skills to install.

- Add DiscoverFromGitSubdir() for subdirectory scanning
- Add includeRoot parameter to discoverSkills() to include root SKILL.md
- Add handleGitSubdirInstall() for subdir discovery flow
- Display "root" label for root-level skills in selection UI
- Auto-install if only one skill found, prompt selection if multiple
2026-01-24 01:39:12 +08:00
Willie Hung 806e14096d feat: handle force push when updating tracked repos
When using --force flag, use git fetch + reset --hard instead of
git pull. This handles cases where remote history was rewritten
(force push).
v0.6.13
2026-01-24 00:07:27 +08:00
Willie Hung 10be270dcd fix: clear stale version cache when current >= cached latest
If user manually updates (not via skillshare upgrade), the cache
may still show an older "latest" version. Now clears cache when
current version >= cached latest to trigger fresh fetch.
v0.6.12
2026-01-23 21:19:33 +08:00
Willie Hung fa6757664f feat: clear version cache after successful upgrade 2026-01-23 21:17:35 +08:00
Willie Hung f9f4e595e0 fix: add padding to SummaryBox for consistent border width v0.6.11 2026-01-23 21:14:09 +08:00
Willie Hung 6fad4335d2 fix: Box padding and semver comparison
- Add padding to Box function for consistent border width
- Fix version comparison to handle semver properly (0.6.10 > 0.6.8)
2026-01-23 21:13:22 +08:00
Willie Hung dda075cffb fix: disable color in git status output for consistent box rendering v0.6.10 2026-01-23 21:04:38 +08:00
Willie Hung 6dfe1c0c1f fix: pad WarningBox lines for consistent border width 2026-01-23 21:03:03 +08:00
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
v0.6.9
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.
v0.6.8
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.
v0.6.7
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.
v0.6.6
2026-01-21 12:56:29 +08:00
Willie Hung ad6715539e fix: GetTrackedRepos now correctly checks for '_' prefix
The function was checking for '@' prefix instead of '_', causing
`skillshare update --all` to find no tracked repositories.
v0.6.5
2026-01-21 11:39:39 +08:00
Willie Hung ae194a8bb2 chore: update demo 2026-01-21 10:11:13 +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
v0.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
v0.6.3
2026-01-21 00:54:55 +08:00
Willie Hung 1033aba2d9 feat: show CLI and skill version in status and doctor v0.6.2 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 8bcf5b6a13 feat: add 5 new agents to DefaultTargets
- clawdbot, droid, kilocode, roo, windsurf
- Fix amp path to ~/.config/agents/skills
- Update docs/targets.md with new agents list
2026-01-21 00:41:57 +08:00
Willie Hung 08de85e390 docs: restructure README and add comprehensive docs/
- Slim README from 777 to 214 lines for better readability
- Adjust value prop: emphasize sync, bidirectional, team over AI-native
- Split detailed content into docs/ directory:
  - install.md: init, install, update, upgrade, uninstall
  - sync.md: sync, pull, push, backup, restore with diagrams
  - targets.md: target management with flowcharts
  - cross-machine.md: multi-machine sync setup
  - team-edition.md: tracked repos, nested skills, team sharing
  - configuration.md: config file reference
  - faq.md: doctor command, FAQ, troubleshooting
- Add docs/README.md as documentation index
- Remove /docs/ from .gitignore
2026-01-20 22:50:52 +08:00
Willie Hung 8a5cd8cea9 docs: simplify skillshare skill docs and bump to v0.7.0
- Condense SKILL.md with cleaner command pattern table
- Add GitHub shorthand (owner/repo) format examples
- Document upgrade command in status.md
- Clarify source path concept in init.md
- Reorganize install.md with update command section
v0.6.1
2026-01-20 21:39:20 +08:00
Willie Hung 64669e62ba docs: add release link to What's New section 2026-01-20 02:38:44 +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
v0.6.0
2026-01-20 01:56:07 +08:00
Willie Hung ca38929364 chore: add .worktrees to gitignore 2026-01-19 23:58:59 +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
v0.5.3
2026-01-19 22:18:08 +08:00
Willie Hung 5e15e6bc8a fix: update opencode target path from skill to skills
Opencode unified their path structure to use "skills" (plural).
See: https://opencode.ai/docs/skills/
v0.5.2
2026-01-19 21:06:22 +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.
v0.5.1
2026-01-16 22:28:27 +08:00
Willie Hung 2250736c77 docs: add skill name example for --update flag 2026-01-16 22:20:02 +08:00
Willie Hung 729369c4d0 fix: add --skill flag to upgrade tests to avoid GitHub API rate limits in CI v0.5.0 2026-01-16 22:16: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 cf14445c7e feat: add npx-style zero-install runner
Add run.sh that downloads and caches skillshare binary for execution
without requiring global installation. The binary is cached in
~/.cache/skillshare/ and auto-updates every 24 hours.

Update skillshare skill to use runner function for zero-install support.
2026-01-16 20:25:31 +08:00
Willie Hung fd2c69dbc5 feat: check remote skill version instead of CLI version v0.4.2 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`
v0.4.1
2026-01-16 03:23:46 +08:00
Willie Hung a577c53d6c fix: quote argument-hint to fix YAML parsing 2026-01-16 03:19:58 +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
v0.4.0
2026-01-16 03:00:19 +08:00
Willie Hung a4c863bb51 test: add tests for init --remote on existing config
Verify that --remote flag works when config already exists:
- Adds git remote successfully
- Dry-run shows what would be done without changes
2026-01-16 02:57:25 +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 c9e71fb16e test: add integration tests for pull --remote flag
Add 5 tests covering:
- No git repo error handling
- No remote configured error
- Uncommitted changes detection
- Dry-run mode preview
- Actual pull with sync to targets
2026-01-16 02:55:14 +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.
v0.3.4
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 a4ec283d29 docs: streamline README and elevate target management
- Consolidate redundant "why skillshare" sections into concise block
- Add Target Management subsection to Commands table
- Create dedicated Target Management reference section
- Remove duplicate content under Configuration
2026-01-16 01:50:28 +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.
v0.3.3
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