Commit Graph
148 Commits
Author SHA1 Message Date
Willie 5df04bdc36 chore: gitignore internal/server/dist/ and auto-create placeholder on build
Build artifacts (favicon, logos, index.html) were tracked in git to
satisfy go:embed, causing noisy diffs after `make ui-build`. Now the
entire dist/ is gitignored and `make build` auto-creates a minimal
placeholder index.html when dist is missing, so fresh clones still
compile without a frontend build step.

CI workflows updated to use `make build` instead of bare `go build`
to pick up the placeholder logic.
2026-02-08 16:12:43 +08:00
Willie 6185849328 fix: handle Windows junctions in sync and diff v0.10.1 2026-02-08 15:14:16 +08:00
Willie 61b741dca2 chore: modify icon 2026-02-08 05:19:33 +08:00
Willie 092fb14f8a feat: add web dashboard with embedded React SPA (skillshare ui)
Single-binary web UI for visual skill management — React 19 + Vite
frontend embedded via go:embed, Go net/http REST API backend (30+
endpoints). Includes dashboard, skills browser, targets, sync, collect,
search, install, config editor, backup/restore, and git sync pages.

Also adds Bitbucket/GitLab URL parsing for install, git operations
library, skill version checking, CI frontend build steps, Docker
sandbox support, and website docs for the ui command.
v0.10.0
2026-02-08 05:08:30 +08:00
Willie 3ec3c3060a ci: add docker sandbox CI jobs and release test gate
- Add workflow_call trigger to test.yaml for reusable workflow support
- Add docker-sandbox-offline and docker-sandbox-online CI jobs
- Gate release.yaml behind test.yaml so all tests must pass before
  GoReleaser runs
2026-02-07 23:13:08 +08:00
Willie 080e29e0ff feat: add docker sandbox test/playground workflows and docs v0.9.3 2026-02-07 21:55:20 +08:00
Willie bf41422659 fix(install): naming behavior and docs 2026-02-07 21:08:36 +08:00
Willie 78924f08ea fix(backup): replace filepath.Walk with os.ReadDir to handle Windows junctions
filepath.Walk fails on Windows NTFS junctions with "Incorrect function"
because os.Lstat returns nil info, bypassing all junction-detection logic
and crashing the entire backup for that target. This means one unreadable
junction prevents ALL local skills from being backed up.

Replace with os.ReadDir + os.Lstat so junctions are identified and skipped
before any read attempt. Also add Windows CI and unit tests for copyDir.

Fixes runkids/skillshare#7
v0.9.2
2026-02-07 00:35:11 +08:00
Willie 5c0fede93b chore(docs): fix docs link 2026-02-06 00:29:28 +08:00
Willie 63421c4257 feat: add project mode support to search command
Enable --project/-p and --global/-g flags for `skillshare search`,
allowing interactive search results to install directly to project-level
.skillshare/skills/. Auto-detects project mode when .skillshare/config.yaml
exists, and auto-runs `init -p` if needed.
v0.9.1
2026-02-05 16:19:44 +08:00
Willie 46d1ee5816 docs(skill): update built-in skill to v0.9.0 with project mode support
Add project mode documentation across all reference files:
- SKILL.md: bump version, add project triggers, two-mode diagram
- init.md: add project init flags and usage
- sync.md: add auto-detection, project collect, global-only push/pull
- install.md: add -p flag for install/update/uninstall/new
- status.md: add auto-detection for status/list
- targets.md: add project targets, config.yaml format
- backup.md: note global-only limitation
- TROUBLESHOOTING.md: add project mode diagnostics and recovery
v0.9.0
2026-02-05 14:24:28 +08:00
Willie 010b707356 chore(docs): update docs 2026-02-05 14:15:05 +08:00
Willie 6650a8c670 style: fix docs formatting 2026-02-05 13:41:27 +08:00
Willie 0162bddfde feat: add per-target sync mode support for project mode
Allow project targets to set mode individually (merge or symlink),
mirroring global behavior. Default remains merge.

- Add Mode field to ProjectTargetEntry with YAML marshal/unmarshal
- Add mode branching in project sync (reuses syncMergeMode/syncSymlinkMode)
- Support --mode flag in target info for project targets
- Mode-aware unlink in target remove
- Unify project sync UI with global sync output format
- Update docs to reflect per-target mode support
2026-02-05 13:20:12 +08:00
Willie b83300ac05 feat: project level skills 2026-02-05 11:20:53 +08:00
Willie 1bbfb66a87 chore: update website links to new domain 2026-02-02 21:40:55 +08:00
Willie 7e8cab232d docs(skill): improve built-in skillshare skill v0.8.2
- Expand description triggers for better AI activation
- Streamline SKILL.md structure (-20% lines, categorized commands)
- Consolidate AI usage notes (non-interactive mode, safety)
- Enhance all reference docs with tables and clearer examples
- Add source formats documentation for install command
- Improve Windows error message in run.sh
2026-02-02 10:05:44 +08:00
Willie 087ac0bbfb feat(website): add SEO essentials - sitemap, robots.txt, social card
- Enable sitemap plugin in docusaurus.config.ts
- Add robots.txt with sitemap reference
- Add social-card.png for Open Graph sharing
- Remove unused Docusaurus default files (markdown-page, placeholder images)
2026-02-01 23:16:57 +08:00
Willie 6cba953efa fix(website): responsive footer padding and README link corrections
- Add horizontal padding to footer on mobile/tablet (< 996px)
- Fix broken docs links in README:
  - /docs/guides/team-edition → /docs/guides/team-sharing
  - /docs/guides/cross-machine → /docs/guides/cross-machine-sync
  - /docs/faq → /docs/troubleshooting/faq
2026-02-01 23:02:31 +08:00
Willie 9cef926a68 docs(website): refactor docs 2026-02-01 22:52:11 +08:00
Willie 4b914b0636 docs(website): add Docusaurus docs synced from docs/
- Sync all docs content from docs/ to website/docs/
- Copy demo images from .github/assets to static/img/
- Convert image paths to Docusaurus format (/img/)
- Add complete command reference with screenshots
- Include FAQ, team edition, cross-machine guides
2026-02-01 21:22:41 +08:00
Willie 671ea9723a fix(install.sh): use redirect to avoid API rate limit
Use GitHub releases/latest redirect to get version tag instead of API.
Falls back to API if redirect fails.
2026-02-01 08:39:32 +08:00
Willie d084e59c8d fix(upgrade): gracefully handle rate limit, use cached version
- Skip CLI upgrade silently when API rate limited and no cache
- Use cached version to upgrade when API fails but cache exists
- Extract BuildDownloadURL for direct URL construction without API
- Add GetCachedVersion to expose cached latest version
v0.8.1
2026-02-01 08:33:54 +08:00
Willie e922f31f5a fix(install): preserve nested structure for orchestrator skills
- Fix bug where child skills were flattened to root instead of nesting under parent
- Add two-stage UX: "Install entire pack" or "Select individual skills"
- Root skill installs first, children marked as "included in parent"
- Add tests for orchestrator nesting and individual child installation
2026-02-01 08:27:20 +08:00
Willie 0355d36130 refactor(skill): optimize skillshare skill for conciseness
- Reduce SKILL.md from 109 to 78 lines (-28%)
- Add search command to description and documentation
- Simplify all reference files (total -180 lines)
- Add new command documentation to install.md
- Bump version to 0.8.1
2026-02-01 00:31:56 +08:00
Willie 2909030980 chore(docs): modify docs 2026-02-01 00:22:49 +08:00
Willie df1c6faa12 docs(readme): show recent version highlights (0.6-0.8) 2026-01-31 23:09:30 +08:00
Willie a739902ac2 feat!: rename pull <target> to collect, simplify pull for git-only
BREAKING CHANGE: Command restructure for clearer symmetry

- Local sync: sync/collect (Source ↔ Targets)
- Remote sync: push/pull (Source ↔ Git Remote)

Changes:
- Add `collect` command (was `pull <target>`)
- Simplify `pull` to git remote only (was `pull --remote`)
- Add spinner effects to pull and push commands
- Update all documentation and skill references
- Add CHANGELOG.md
- Update help examples with practical workflows

Migration:
  pull claude     → collect claude
  pull --all      → collect --all
  pull --remote   → pull
v0.8.0
2026-01-31 20:52:09 +08:00
Willie 32014986ec fix(diff,sync): improve diff clarity and fix sync --force for merge mode
diff improvements:
- Use sync.DiscoverSourceSkills for proper tracked repo handling
- Remove "Diff:" prefix, show target name directly
- Clearer descriptions: "missing", "local copy (sync --force to replace)", "local only"
- Add action hints explaining what sync/pull commands will do

sync --force fix:
- Now properly replaces local copies with symlinks in merge mode
- Previously --force only worked for symlink mode conflicts

help improvements:
- Add GIT REMOTE section grouping push and pull --remote together
- Remove logo from status command (high-frequency operation)

docs: update sync.md with new diff output format and symbols table
2026-01-31 20:22:51 +08:00
Willie e4565005b5 refactor: reduce cyclomatic complexity across CLI commands
Extract options structs and helper functions to reduce complexity:
- cmdInit: 49 → 5 (extract parseInitArgs, validateInitOptions, etc.)
- cmdUninstall: 39 → 12 (extract parseUninstallArgs, resolveUninstallTarget)
- cmdList: 33 → 12 (extract parseListArgs, buildSkillEntries)
- cmdInstall: 28 → 6 (extract parseInstallArgs, dispatchInstall)
- search.Search: 29 → ~5 (extract fetchCodeSearchResults, processSearchItems)
- main: 24 → 9 (command map pattern replaces switch)
- targetRemove: 21 → 7 (extract parseTargetRemoveArgs, backupTargets)
- updateAllTrackedRepos: 20 → ~10 (extract updateTrackedRepoQuick)
- cmdPush: 19 → 10 (extract parsePushArgs, checkGitRepo)

Overall: 19 functions > 15 reduced to 11 (42% improvement)
2026-01-31 19:53:28 +08:00
Willie 743055a0b4 chore: remove badge from README
Removed downloads badge from README.
2026-01-31 19:02:08 +08:00
Willie Hung ffd019ed8f chore(readme): add GitHub stars badge and call-to-action
Encourage users to star the repo with a social-style badge
at the top and a subtle note in the Contributing section.
2026-01-31 17:54:36 +08:00
Willie Hung 1ae5921611 chore(readme): adjust align 2026-01-31 16:53:39 +08:00
Willie Hung 0f7ba6ff8d fix(windows): improve junction error messages and path comparison
- Add detailed error messages when junction/symlink creation fails
  - Pre-flight checks for source existence and target conflicts
  - Capture mklink /J stderr output
  - Show both junction and symlink failure reasons

- Add case-insensitive path comparison for Windows (NTFS)
  - New PathsEqual() and PathHasPrefix() in utils/path.go
  - Fix 8 path comparisons that could fail due to case differences
  - Affects sync, pull, target remove, diff, and doctor commands
v0.7.2
2026-01-31 16:50:39 +08:00
Willie Hung 83bd7d45ef feat(targets): add 6 new agents to supported targets
Add AdaL, Augment, iFlow, OpenClaude, Trae CN, and Mistral Vibe.
Total supported agents: 43.
v0.7.1
2026-01-31 16:34:36 +08:00
Willie Hung 1aab744b04 feat(search): add skillshare search command
- Search GitHub for skills containing SKILL.md files
- Sort results by repository stars (most popular first)
- Interactive selector with "Search again" option
- Auto-detect gh CLI token for authentication
- Filter out forked repositories
- Support --json, --list, --limit flags
v0.7.0
2026-01-31 15:29:49 +08:00
Willie Hung 31a7b66edf fix(upgrade): handle Windows executable locking during self-upgrade
Windows locks running executables, preventing direct replacement.
Solution: rename running exe to .old, then rename new exe in place.
Cleanup of .old files happens on next startup.
v0.6.31
2026-01-31 12:43:44 +08:00
Willie Hung bf286f1d88 fix(upgrade): add Windows zip support
- Handle .zip format for Windows releases (vs .tar.gz for others)
- Add extractFromZip() and refactor extraction logic
- Update test to use --force flag for upgrade flow
v0.6.30
2026-01-31 03:40:34 +08:00
Willie Hung 829a8f8911 fix(upgrade): skip skill confirmation when already installed
- Show "Already up to date ✓" with └─ when skill exists
- Remove unnecessary confirmation prompt
- Use --force to explicitly upgrade existing skill
v0.6.29
2026-01-31 03:18:47 +08:00
Willie Hung f5798fc0ea fix(upgrade): add GitHub token support and improve rate limit handling
Refactored GitHub API logic into shared internal/version/github.go:
- Support GITHUB_TOKEN and GH_TOKEN environment variables
- Clear error message when rate limit exceeded with fix instructions
- Removed duplicate API code from upgrade.go and check.go
v0.6.28
2026-01-31 03:10:55 +08:00
Willie Hung 4419a63401 feat(upgrade): redesign upgrade command with tree-style UI
- Use tree structure (▸ → ├─ → └─) for upgrade progress
- Show CLI version and status in structured format
- Show skill status before download
- Use TreeSpinner for async operations
v0.6.27
2026-01-31 02:58:06 +08:00
Willie Hung 02730e4387 fix(upgrade): add logo and show version earlier
- Add logo with version to upgrade command
- Show current version before checking GitHub API
2026-01-31 02:56:20 +08:00
Willie Hung 3bb6edc12a feat(ui): redesign install command with tree-style output
- Add tree structure UI (▸ → ├─ → └─) for install progress
- Add SkillBox component for displaying skill details
- Customize survey multi-select with cleaner icons (✓, ▸)
- Unify UI across all install modes (discovery, track, subdir, direct)
- Show version number in logo for install commands
- Add logo to doctor and status commands
- Quiet git clone output for cleaner experience
v0.6.26
2026-01-31 02:51:00 +08:00
Willie Hung 1619d1d8d0 docs: add platform, Go Report Card, and Downloads badges 2026-01-31 02:05:32 +08:00
Willie Hung 83849bd557 fix(backup): handle Windows junctions in copyDir
On Windows, filepath.Walk may fail when encountering junctions with
"Incorrect function" error. This fix:
- Gracefully handles walk errors for symlinks/junctions
- Uses SkipDir to avoid entering junction directories
- Double-checks with Lstat for Windows reparse points
2026-01-31 01:57:58 +08:00
Willie Hung 96af2d8191 docs: add Windows notes and update paths
- Show Windows path in "How It Works" diagram
- Add note about NTFS junctions (no admin required)
- Add Windows FAQ entry
- Use "linked" instead of "symlinks" for cross-platform accuracy
v0.6.25
2026-01-31 01:26:37 +08:00
Willie Hung 75dbeb083a feat(ui): use pterm spinner for download progress
Replace plain text with animated spinner from pterm library:
- init: show spinner while downloading skillshare skill
- upgrade: show spinner while downloading skill

The spinner displays elapsed time and success/failure status.
2026-01-31 01:24:31 +08:00
Willie Hung 0ed6948711 fix(init): show progress when downloading skillshare skill
Add header and status messages before downloading the default
skillshare skill during init, so users know what's happening.
2026-01-31 01:19:40 +08:00
Willie Hung a869838c2b feat(windows): use junction instead of symlink, show git progress
Windows symlinks require admin or Developer Mode. This commit:
- Add platform-specific link creation (junction on Windows, symlink on Unix)
- Show git clone progress instead of quiet mode for better UX
- Update doctor to test link support using the new createLink function
2026-01-31 01:18:14 +08:00
Willie Hung 606949b320 feat(install): add Windows PowerShell installer
- Add install.ps1 for one-line Windows installation
- Update README with Windows install instructions
- Update install.sh to point Windows users to PowerShell script
2026-01-31 00:59:00 +08:00