Skip to content

v0.13.0 - #27

Merged
runkids merged 16 commits into
mainfrom
v0.13.0
Feb 16, 2026
Merged

runkids merged 16 commits into
mainfrom
v0.13.0

Conversation

@runkids

@runkids runkids commented Feb 16, 2026 •

Copy link
Copy Markdown
Owner

skillshare v0.13.0 Release Notes

Release date: 2026-02-16

TL;DR

v0.13.0 is a platform and architecture release:

  1. Skill-level target control — SKILL.md targets field restricts which targets a skill syncs to
  2. XDG compliance — proper directory layout on Linux/macOS, correct %AppData% paths on Windows, automatic migration
  3. Unified target names — project mode uses the same short names as global (claude, not claude-code)
  4. Lighter binary — UI assets downloaded at runtime instead of embedded, reducing binary size significantly
  5. Smarter install — fuzzy subdirectory matching for monorepo skill installs

What's New

1) Skill-level targets field

Control which targets receive a specific skill via SKILL.md frontmatter:

---
name: cursor-rules
targets: [cursor]
---

This skill will only sync to Cursor, even if Claude and other targets are configured. Combined with per-target include/exclude filters from v0.12.6, you now have fine-grained control at both the skill and target level.

This feature (along with v0.12.6's target filters) was inspired by Discussion #22 — a user wanted to install different versions of the same skill from one repo and route each to its own target. With skill-level targets + per-target include/exclude, this is now fully supported.

CLI validation: skillshare check warns about unknown target names in the targets field.

2) Target filter CLI + Web UI

Edit target include/exclude filters without touching config.yaml:

skillshare target claude --add-include 'core-*'
skillshare target cursor --add-exclude '*-experimental'
skillshare target codex --remove-include 'legacy-*'

The Web UI Targets page also has an inline filter editor.

3) XDG Base Directory support

skillshare now follows the XDG Base Directory Specification:

Data macOS/Linux Windows
Config + skills ~/.config/skillshare/ %AppData%\skillshare\
Backups + trash ~/.local/share/skillshare/ %AppData%\skillshare\
Logs ~/.local/state/skillshare/ %AppData%\skillshare\
UI cache ~/.cache/skillshare/ %AppData%\skillshare\

Override with XDG_CONFIG_HOME, XDG_DATA_HOME, XDG_STATE_HOME.

Migration is automatic — on first run, existing backups/trash/logs are moved to the new locations. Windows installs at ~\.config\skillshare\ are migrated to %AppData%\skillshare\ with config source path rewrite.

4) Unified project target names

Project mode now uses the same short names as global mode:

Before (v0.12.x) After (v0.13.0)
claude-code claude
gemini-cli gemini
opencode-commands opencode
... ...

Old names still work as aliases for backward compatibility. If your .skillshare/config.yaml uses old names, everything continues to function — but new init -p will use the short names.

5) Runtime UI download

The skillshare binary no longer bundles frontend assets. On first skillshare ui launch, assets are downloaded from the matching GitHub Release and cached at ~/.cache/skillshare/ui/<version>/.

  • skillshare ui --clear-cache — reset cached assets
  • skillshare upgrade — pre-downloads UI assets for the new version

This reduces the binary from ~5MB to ~3MB.

6) Fuzzy subdirectory resolution for monorepo installs

When installing a skill from a monorepo:

skillshare install runkids/my-skills/vue-best-practices

If vue-best-practices/ doesn't exist at the repo root, skillshare now scans all SKILL.md files and matches by directory basename. If multiple skills share the same name, an ambiguity error is shown with the full paths.

7) Improved list display

Skills are now grouped by directory with tree-style formatting:

frontend/
  ├── react-best-practices
  ├── vue-best-practices
  └── css-guidelines
backend/
  └── api-patterns

Use --verbose/-v for detailed output with metadata.

Breaking Changes

All breaking changes have automatic migration — no manual action required for most users.

Change Impact Migration
XDG data/state split Backups/trash/logs move to new dirs Auto-migrated on first run
Windows path relocation ~\.config\ → %AppData%\ Auto-migrated on first run
Project target names claude-code → claude, etc. Old names work as aliases
No embedded UI Binary doesn't include frontend Auto-downloaded on skillshare ui

Verification

All changes covered by unit tests + integration tests. Run make check to verify.

…pport

- CLI: `target <name> --add-include/--add-exclude/--remove-include/--remove-exclude`
- SKILL.md `targets` frontmatter restricts sync to specified targets
- Cross-mode matching (e.g. "claude" matches "claude-code" project target)
- Web UI: inline filter editor on Targets page, target badges on Skills pages
- API: PATCH /api/targets/{name} for filter updates
- Fix drift detection in doctor/status/handler to account for skill-level targets
- `check` warns about unknown target names in skill-level targets field
- Docs: update skill-format, target command, configuration, creating-skills
…ackward compat

Project targets now use the same short names as global targets (e.g.,
"claude" instead of "claude-code"). Old project_name values are preserved
as aliases so existing configs continue to work.

- Add Aliases field to targetSpec (deprecated, remove once safe)
- Update 11 targets in targets.yaml: project_name = global_name
- LookupProjectTarget falls back to alias lookup
- Fix 3 callers that bypassed LookupProjectTarget
- Extend MatchesTargetName and KnownTargetNames with alias support
- Add TestLookupProjectTarget_Alias
- Update all integration tests, docs, CLI help, and FAQ
When installing from a monorepo where skills live in a nested directory
(e.g. skills/vue-best-practices/), specifying just the skill name as
subdir (owner/repo/vue-best-practices) would fail because the exact
path doesn't exist at the repo root. Now resolveSubdir scans all
SKILL.md files and matches by basename, falling back gracefully with
an ambiguity error when multiple candidates share the same name.
Add config.BaseDir() as single source of truth for base directory
resolution. Replace all hardcoded ~/.config/skillshare paths.

Path resolution priority:
  1. SKILLSHARE_CONFIG env var (unchanged)
  2. $XDG_CONFIG_HOME/skillshare (any platform)
  3. %AppData%/skillshare (Windows only)
  4. ~/.config/skillshare (Linux, macOS fallback)

- Add config.BaseDir() with XDG_CONFIG_HOME + Windows %AppData% support
- Update BackupDir(), TrashDir(), init default source to use BaseDir()
- Show resolved base directory in doctor output
- Add unit tests and integration tests for XDG override
- Document XDG_CONFIG_HOME and update Windows paths in docs
Bump version 0.11.7 → 0.13.0 and document new features:
- Target-level skill filtering (--add-include/--add-exclude)
- Skill-level targets frontmatter field
- Unified project target names (with alias backward compat)
- XDG Base Directory support ($XDG_CONFIG_HOME)
- Fuzzy subdirectory resolution for monorepo installs
- Improved list UX (grouped display, --verbose/-v)
- diff project mode support
- check targets field validation
- Target count 46+ → 48+
Replace the embedded SPA (go:embed + build tags) with runtime download
from GitHub Releases. The binary no longer bundles UI assets — they are
downloaded on first `skillshare ui` launch and cached at
~/.cache/skillshare/ui/<version>/.

- Delete embed.go / embed_dev.go; add spa_disk.go with placeholder handler
- Simplify ensureUIAvailable(): cache check before dev-mode fallback
- Pre-download UI assets in `skillshare upgrade` (best-effort)
- Remove Node stages from production and CI Dockerfiles
- Keep Node stage in sandbox for playground UI cache pre-population
- Remove ui-embed-check CI job and -tags dev build flag
- Update Makefile, mise.toml, GoReleaser, release workflow
Separate backups/trash into XDG_DATA_HOME and logs into XDG_STATE_HOME
instead of keeping everything under XDG_CONFIG_HOME. Add automatic
migration at startup to move existing data to the new locations.

Fix Windows path resolution: DataDir() and StateDir() now fall back to
%AppData% on Windows (matching BaseDir()), preventing incorrect use of
~/.local/share and ~/.local/state paths.

Add MigrateWindowsLegacyDir() to move pre-v0.13.0 data from
~\.config\skillshare\ to %AppData%\skillshare\ on Windows.

Update doctor, oplog, backup, trash, and all tests/docs accordingly.
@runkids runkids changed the title V0.13.0 v0.13.0 Feb 16, 2026
@gemini-code-assist

Copy link
Copy Markdown

Summary of Changes

Hello @runkids, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This release focuses on significant architectural and usability improvements, primarily by adopting XDG Base Directory standards for better file system organization and introducing more granular control over skill distribution. Users will benefit from a smaller binary, more flexible skill installation from monorepos, and enhanced management of target-specific filters, both via the command line and the Web UI. The changes also unify target naming conventions and improve the display of listed skills, making the tool more intuitive and powerful.

Highlights

  • XDG Base Directory Compliance: Implemented full compliance with the XDG Base Directory Specification, relocating configuration, data (backups, trash), and state (logs) directories to their appropriate locations on Linux/macOS and Windows. Automatic migration is included for existing installations.
  • Skill-Level Target Filtering: Introduced a new targets field in SKILL.md frontmatter, allowing skill authors to specify which AI CLI targets a skill should sync to. Skills without this field will continue to sync to all targets.
  • Unified Project Target Names & Aliases: Standardized project target names to match global names (e.g., claude instead of claude-code). Old names are preserved as aliases for backward compatibility, ensuring a smooth transition.
  • Runtime UI Asset Download: Decoupled the Web UI assets from the main binary. UI assets are now downloaded on first launch of skillshare ui and cached locally, significantly reducing the binary size and simplifying Docker images. A --clear-cache option was added.
  • Enhanced Target Filter Management: Added CLI and Web UI capabilities to manage target-specific include/exclude filters. Users can now add or remove filter patterns directly via skillshare target <name> --add-include 'pattern' commands.
  • Fuzzy Subdirectory Resolution for Installs: Improved the install command to intelligently resolve skill subdirectories in monorepos. If an exact path isn't found, it will fuzzy-match by skill name, providing better flexibility for monorepo skill organization.
  • Improved list Command Display: The list command now groups skills by their directory structure, presenting them in a tree-style format for better readability and organization, especially for nested skills.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • .github/FUNDING.yml
    • Removed GitHub funding entry.
  • .goreleaser.yaml
    • Removed UI build checks from the before hook.
    • Added skillshare-ui-dist.tar.gz to checksums and release extra files.
  • CHANGELOG.md
    • Added v0.13.0 release notes, detailing new features, changes, fixes, and breaking changes.
  • Makefile
    • Removed UI embedding steps from build and ui-build targets.
    • Removed the dev tag from the ui-dev command.
  • README.md
    • Updated the 'Recent Updates' table with v0.13.0 highlights.
    • Updated Windows path references in 'How It Works' and 'Uninstall' sections to %AppData%.
  • RELEASE_NOTE_v0.13.0.md
    • Added a new file containing the detailed release notes for v0.13.0.
  • cmd/skillshare/check.go
    • Imported the ssync package.
    • Added a warnUnknownSkillTargets function to validate skill-level target names.
  • cmd/skillshare/doctor.go
    • Imported the backup package.
    • Added display of config, data, and state directories in doctor output.
    • Updated checkBackupStatus to use backup.BackupDir().
    • Added checkSkillTargetsField to validate skill-level targets.
    • Updated checkSyncDrift to filter skills by target.
  • cmd/skillshare/init.go
    • Updated the default source path to use config.BaseDir() for XDG compliance.
  • cmd/skillshare/init_project.go
    • Updated createProjectTargetDirs and reinitProjectWithDiscover to use config.LookupProjectTarget for target resolution.
  • cmd/skillshare/install.go
    • Modified promptMultiSelect to sort skills by path and display parent directories.
    • Added resolveSubdir function for fuzzy matching of skill subdirectories.
    • Updated DiscoverFromGitSubdir and installFromGitSubdir to utilize resolveSubdir.
  • cmd/skillshare/list.go
    • Added RelPath to skillEntry struct.
    • Implemented functions (extractGroupDir, groupSkillEntries, displayName, hasGroups) to support grouped display of skills.
    • Refactored displaySkillsVerbose and displaySkillsCompact to use the new grouped display logic.
  • cmd/skillshare/list_project.go
    • Added RelPath to projectSkillEntry struct.
    • Updated cmdListProject to include RelPath in skill entries.
    • Implemented displayProjectSkillsCompact and projectDisplayName for grouped display in project mode.
  • cmd/skillshare/main.go
    • Imported the config package.
    • Added calls to config.MigrateWindowsLegacyDir() and config.MigrateXDGDirs() for automatic directory migration.
    • Implemented reportMigrationResults to display migration outcomes.
  • cmd/skillshare/new.go
    • Added targets field as an optional example in the SKILL.md template.
  • cmd/skillshare/status.go
    • Updated printTargetsStatus to filter skills by target using sync.FilterSkillsByTarget.
  • cmd/skillshare/status_project.go
    • Updated printProjectTargetsStatus to filter skills by target using sync.FilterSkillsByTarget.
  • cmd/skillshare/sync.go
    • Updated PruneOrphanLinks to accept targetName and filter skills by target.
    • Updated SyncTargetMerge to filter discovered skills by target.
  • cmd/skillshare/target.go
    • Imported oplog and time packages.
    • Added new CLI options (--add-include, --add-exclude, --remove-include, --remove-exclude) for target filter management.
    • Implemented parseFilterFlags and applyFilterUpdates for filter processing.
    • Updated targetInfo to display filter lists and handle filter updates.
  • cmd/skillshare/target_helpers.go
    • Added a new file containing helper functions for target filter management (filterUpdateOpts, parseFilterFlags, applyFilterUpdates, containsPattern, removePattern, formatFilterList).
  • cmd/skillshare/target_helpers_test.go
    • Added a new file with unit tests for the target filter helper functions.
  • cmd/skillshare/target_project.go
    • Imported oplog and time packages.
    • Updated targetAddProject and targetInfoProject to use config.LookupProjectTarget.
    • Implemented filter management logic for project targets, similar to global targets.
  • cmd/skillshare/ui.go
    • Imported uidist and versionpkg packages.
    • Added a --clear-cache flag to the cmdUI command.
    • Implemented ensureUIAvailable to handle runtime UI asset downloads.
    • Updated startProjectUI and startGlobalUI to use ensureUIAvailable and pass the UI directory to the server.
  • cmd/skillshare/upgrade.go
    • Imported the uidist package.
    • Added logic to pre-download UI assets for the new version after a CLI upgrade.
  • docker-compose.sandbox.yml
    • Removed volume mount for internal/server/dist.
    • Removed -tags dev from go run commands, aligning with runtime UI download.
  • docker/ci/Dockerfile
    • Removed the Node.js build stage for frontend assets, simplifying the CI Dockerfile.
  • docker/production/Dockerfile
    • Removed the Node.js build stage for frontend assets, simplifying the production Dockerfile.
  • docker/sandbox/Dockerfile
    • Updated comments for the UI builder stage.
    • Changed the copy destination for pre-built frontend assets to /ui-dist.
  • docker/sandbox/entrypoint.sh
    • Modified the entrypoint script to populate the UI cache from /ui-dist for dev mode, instead of copying to internal/server/dist.
  • internal/backup/backup.go
    • Updated BackupDir to use config.DataDir() for XDG compliance.
  • internal/backup/backup_test.go
    • Added TestBackupDir_RespectsXDGDataHome to verify XDG compliance for backup directory.
  • internal/config/audit_threshold_test.go
    • Updated project target names from claude-code to claude in test configurations.
  • internal/config/basedir_test.go
    • Added a new file with tests for BaseDir and ConfigPath to verify XDG compliance and environment variable priority.
  • internal/config/config.go
    • Imported the runtime package.
    • Added BaseDir, DataDir, and StateDir functions for XDG Base Directory Specification compliance.
    • Updated ConfigPath to use BaseDir().
  • internal/config/config_xdg_test.go
    • Added a new file with tests for DataDir and StateDir to verify XDG compliance.
  • internal/config/migrate.go
    • Added a new file with functions (MigrationStatus, MigrationResult, MigrateWindowsLegacyDir, MigrateXDGDirs, migrateDir, migrateConfigSourcePath, remapPathPrefix) for automatic migration of legacy directories to XDG-compliant paths.
  • internal/config/migrate_test.go
    • Added a new file with unit tests for the migration logic.
  • internal/config/project.go
    • Updated comment for ProjectTargetEntry to reflect unified target names.
  • internal/config/project_reconcile_test.go
    • Updated project target names from claude-code to claude in test configurations.
  • internal/config/targets.go
    • Added an Aliases field to targetSpec for backward compatibility.
    • Updated LookupProjectTarget to check aliases.
    • Added MatchesTargetName and KnownTargetNames functions for target name matching and retrieval.
  • internal/config/targets.yaml
    • Updated project_name for several targets (e.g., claude-code to claude) and added aliases for backward compatibility.
  • internal/config/targets_match_test.go
    • Added a new file with unit tests for MatchesTargetName and KnownTargetNames.
  • internal/config/targets_test.go
    • Added TestLookupProjectTarget_Alias to verify alias resolution for project targets.
  • internal/install/install.go
    • Added resolveSubdir function for fuzzy matching of skill subdirectories.
    • Updated DiscoverFromGitSubdir and installFromGitSubdir to use resolveSubdir.
  • internal/install/install_test.go
    • Added TestResolveSubdir and its sub-tests to verify fuzzy subdirectory resolution.
  • internal/oplog/oplog.go
    • Updated LogDir to use config.StateDir() for global mode, ensuring XDG compliance.
  • internal/oplog/oplog_test.go
    • Updated tempConfigPath to set XDG_STATE_HOME for test isolation.
    • Added TestLogDir_Global and TestLogDir_Project to verify XDG compliance for log directories.
  • internal/server/embed.go
    • Removed the file, as UI assets are no longer embedded.
  • internal/server/embed_dev.go
    • Removed the file, as UI assets are no longer embedded.
  • internal/server/handler_git.go
    • Updated the PruneOrphanLinks call to pass the targetName argument.
  • internal/server/handler_skills.go
    • Added a Targets field to the skillItem struct.
    • Populated the Targets field in handleListSkills and handleGetSkill.
  • internal/server/handler_sync.go
    • Updated the PruneOrphanLinks call to pass the targetName argument.
  • internal/server/handler_targets.go
    • Updated handleListTargets to filter skills by target.
    • Added handleUpdateTarget for updating target include/exclude filters via API.
  • internal/server/logging_test.go
    • Updated New server instantiation to pass an empty string for uiDistDir.
  • internal/server/server.go
    • Added a uiDistDir field to the Server struct.
    • Updated New and NewProject constructors to accept uiDistDir.
    • Modified registerRoutes to use spaHandlerFromDisk or uiPlaceholderHandler based on uiDistDir.
  • internal/server/server_config_reload_test.go
    • Updated New server instantiation to pass an empty string for uiDistDir.
  • internal/server/spa_disk.go
    • Added a new file with uiPlaceholderHandler and spaHandlerFromDisk for serving UI from disk or displaying a placeholder.
  • internal/sync/filter.go
    • Imported the config package.
    • Added FilterSkillsByTarget function to filter skills based on their targets frontmatter field.
  • internal/sync/filter_target_test.go
    • Added a new file with unit tests for FilterSkillsByTarget.
  • internal/sync/sync.go
    • Added a Targets field to the DiscoveredSkill struct.
    • Updated DiscoverSourceSkills to parse targets from SKILL.md.
    • Modified SyncTargetMerge and PruneOrphanLinks to use FilterSkillsByTarget.
  • internal/testutil/testutil.go
    • Updated NewSandbox to create XDG-compliant backup, trash, and logs directories.
    • Updated SetupProjectDir to include claude as a known target.
  • internal/trash/trash.go
    • Updated TrashDir to use config.DataDir() for XDG compliance.
  • internal/trash/trash_xdg_test.go
    • Added a new file with TestTrashDir_RespectsXDGDataHome to verify XDG compliance for trash directory.
  • internal/uidist/uidist.go
    • Added a new file with functions for managing UI distribution assets (CacheDir, IsCached, Download, ClearCache, ClearVersion, cleanOldVersions, fetchChecksum, parseChecksum, downloadToTemp, fileSHA256, extractTarGz).
  • internal/uidist/uidist_test.go
    • Added a new file with unit tests for the uidist package functions.
  • internal/utils/frontmatter.go
    • Imported the yaml package.
    • Added ParseFrontmatterList to extract YAML list fields from frontmatter.
    • Added extractFrontmatterRaw to get raw frontmatter text.
  • internal/utils/frontmatter_list_test.go
    • Added a new file with unit tests for ParseFrontmatterList.
  • internal/version/check.go
    • Renamed getCacheDir to GetCacheDir and made it exported.
  • internal/version/github.go
    • Added BuildUIDistURL and BuildChecksumsURL functions for constructing UI asset download URLs.
  • mise.toml
    • Removed UI embedding steps from build and ui:build tasks.
    • Removed -tags dev from the ui:dev command.
  • skills/skillshare/SKILL.md
    • Updated version to 0.13.0.
    • Added new features to the description.
    • Updated example target names from claude-code to claude.
  • skills/skillshare/references/TROUBLESHOOTING.md
    • Added new troubleshooting entries for XDG config location, skill syncing issues (target filters, skill-level targets), and old project target names.
    • Updated example target names.
  • skills/skillshare/references/init.md
    • Updated source path description for global init to mention XDG compliance.
    • Updated example target names.
  • skills/skillshare/references/install.md
    • Added fuzzy subdirectory resolution to the description and examples.
    • Updated check command description.
  • skills/skillshare/references/status.md
    • Updated list command description to mention grouped display.
    • Updated example target names.
  • skills/skillshare/references/sync.md
    • Updated example target names.
  • skills/skillshare/references/targets.md
    • Updated target count.
    • Added new sections for Target Filters (CLI management, config format, pattern syntax, precedence) and Skill-Level Targets (frontmatter field, cross-mode matching, interaction with config filters).
    • Updated example target names.
  • skills/skillshare/references/trash.md
    • Updated trash location paths to XDG-compliant paths.
  • skills/skillshare/references/ui.md
    • Added --clear-cache option.
    • Updated Skills page description to mention grouped views.
    • Updated Docker usage note.
    • Added a new section on Runtime UI Download explaining caching and upgrade behavior.
    • Updated Homebrew note and Architecture to reflect runtime UI download.
  • skills/skillshare/references/uninstall.md
    • Updated trash location paths to XDG-compliant paths.
  • skills/skillshare/references/upgrade.md
    • Added a new section on Web UI Assets, explaining pre-download during upgrade.
  • tests/integration/audit_test.go
    • Updated project target names from claude-code to claude in test configurations.
  • tests/integration/backup_test.go
    • Updated backup directory paths to XDG-compliant paths.
  • tests/integration/collect_project_test.go
    • Updated project target names from claude-code to claude in test configurations.
  • tests/integration/doctor_test.go
    • Updated project target names from claude-code to claude in test configurations.
  • tests/integration/exclude_filter_test.go
    • Updated project target names from claude-code to claude in test configurations.
  • tests/integration/gitignore_project_test.go
    • Updated project target names from claude-code to claude in test configurations.
  • tests/integration/init_project_test.go
    • Updated project target names from claude-code to claude in test configurations.
  • tests/integration/install_into_test.go
    • Updated project target names from claude-code to claude in test configurations.
  • tests/integration/install_project_test.go
    • Updated project target names from claude-code to claude in test configurations.
  • tests/integration/install_test.go
    • Added TestInstall_SubdirFuzzyResolve and TestInstall_SubdirFuzzyResolve_Discovery to verify fuzzy subdirectory resolution.
  • tests/integration/list_project_test.go
    • Updated project target names from claude-code to claude in test configurations.
  • tests/integration/list_test.go
    • Added TestList_GroupedDisplay, TestList_GroupedDisplay_Verbose, and TestList_FlatDisplay_NoNesting to verify grouped display functionality.
  • tests/integration/log_test.go
    • Updated log directory paths to XDG-compliant paths.
  • tests/integration/mode_test.go
    • Updated project target names from claude-code to claude in test configurations.
  • tests/integration/restore_test.go
    • Updated backup directory paths to XDG-compliant paths.
  • tests/integration/skill_targets_test.go
    • Added a new file with integration tests for skill-level target filtering (TestSkillTargets_OnlySyncsToMatchingTarget, TestSkillTargets_CrossModeMatching, TestSkillTargets_MultipleTargetsListed, TestSkillTargets_DoctorNoDriftWarning, TestSkillTargets_StatusNoDriftWarning, TestSkillTargets_PrunesWhenTargetRestricted).
  • tests/integration/status_project_test.go
    • Updated project target names from claude-code to claude in test configurations.
  • tests/integration/sync_project_test.go
    • Updated project target names from claude-code to claude in test configurations.
  • tests/integration/target_filter_test.go
    • Added a new file with integration tests for target filter management (TestTargetFilter_AddInclude, TestTargetFilter_AddExclude, TestTargetFilter_RemoveInclude, TestTargetFilter_RemoveExclude, TestTargetFilter_InvalidPattern, TestTargetFilter_ShowsInInfo, TestTargetFilter_SyncAfterFilter, TestTargetFilter_Deduplicate, TestTargetFilter_HelpShowsFilterFlags, TestTargetFilter_Project_AddAndShow).
  • tests/integration/target_project_test.go
    • Updated project target names from claude-code to claude in test configurations.
  • tests/integration/trash_test.go
    • Updated trash directory paths to XDG-compliant paths.
  • tests/integration/ui_project_test.go
    • Updated project target names from claude-code to claude in test configurations.
  • tests/integration/ui_test.go
    • Imported the os package.
    • Added TestUI_ClearCache to verify the --clear-cache functionality.
  • tests/integration/uninstall_project_test.go
    • Updated project target names from claude-code to claude in test configurations.
  • tests/integration/uninstall_trash_test.go
    • Updated trash directory paths to XDG-compliant paths.
  • tests/integration/update_project_test.go
    • Updated project target names from claude-code to claude in test configurations.
  • tests/integration/xdg_test.go
    • Added a new file with integration tests for XDG compliance (runWithXDG, TestXDG_ConfigHome_OverridesDefaultPath, TestXDG_Doctor_ShowsBaseDirectory, TestXDG_StatusWorksWithXDGPath).
  • ui/src/api/client.ts
    • Added updateTarget API client function for patching target filters.
    • Added targets field to the Skill interface.
  • ui/src/components/FilterTagInput.tsx
    • Added a new file for a reusable FilterTagInput React component for managing filter patterns.
  • ui/src/pages/SkillDetailPage.tsx
    • Imported Target icon from lucide-react.
    • Added display of skill-level targets on the skill detail page.
  • ui/src/pages/SkillsPage.tsx
    • Imported Target icon from lucide-react.
    • Added ViewType to manage grid vs. grouped views.
    • Implemented grouped display logic for skills.
    • Added UI controls for toggling between grid and grouped views.
    • Added display of skill-level targets to skill postit cards.
  • ui/src/pages/TargetsPage.tsx
    • Imported Filter icon from lucide-react and FilterTagInput component.
    • Added state variables for managing filter editing and saving.
    • Implemented inline filter editor for targets, allowing users to add/remove include/exclude patterns.
    • Added logic to update target filters via API and display toast notifications.
  • website/docs/commands/backup.md
    • Updated backup location paths to XDG-compliant paths.
  • website/docs/commands/check.md
    • Added skill-level targets validation to the list of checks.
  • website/docs/commands/init.md
    • Updated example target names.
  • website/docs/commands/install.md
    • Updated discovery description to mention grouping.
    • Added fuzzy subdirectory resolution to examples and a tip.
  • website/docs/commands/list.md
    • Updated compact view description to mention grouped display.
    • Added example output for grouped display.
    • Updated verbose view example.
    • Clarified project list description.
  • website/docs/commands/log.md
    • Updated log file paths to XDG-compliant paths.
  • website/docs/commands/status.md
    • Updated example target names.
  • website/docs/commands/sync.md
    • Updated backup location paths to XDG-compliant paths.
  • website/docs/commands/target.md
    • Added new section for Target Filters (CLI management, pattern syntax, precedence) and updated options table, examples, and project mode description to reflect filter management.
    • Updated example target names.
  • website/docs/commands/trash.md
    • Updated trash location paths to XDG-compliant paths.
  • website/docs/commands/ui.md
    • Added --clear-cache option.
    • Updated Skills page description.
    • Updated Docker usage note.
    • Added Runtime UI Download section.
    • Updated Homebrew note and Architecture to reflect runtime UI download.
  • website/docs/commands/uninstall.md
    • Updated trash location paths to XDG-compliant paths.
  • website/docs/commands/upgrade.md
    • Added Web UI Assets section.
  • website/docs/concepts/project-skills.md
    • Updated example target names and descriptions.
  • website/docs/concepts/skill-format.md
    • Added new section for targets frontmatter field, explaining its usage, cross-mode matching, and interaction with config filters.
  • website/docs/concepts/tracked-repositories.md
    • Updated example target names.
  • website/docs/getting-started/quick-reference.md
    • Updated log and backup paths to XDG-compliant paths.
  • website/docs/guides/creating-skills.md
    • Added new section for target-specific skills using the targets frontmatter field.
  • website/docs/guides/organization-sharing.md
    • Updated example target names.
  • website/docs/guides/organizing-skills.md
    • Updated list command description and example to reflect grouped display.
  • website/docs/guides/project-setup.md
    • Updated example target names.
  • website/docs/intro.md
    • Updated Windows path for 'How It Works' section.
  • website/docs/reference/environment-variables.md
    • Added new sections for XDG_CONFIG_HOME, XDG_DATA_HOME, and XDG_STATE_HOME, explaining their purpose, defaults, and automatic migration.
    • Updated environment variables table.
  • website/docs/reference/file-structure.md
    • Updated file structure overview to reflect XDG compliance for config, data, and state directories.
    • Updated Windows paths.
  • website/docs/reference/index.md
    • Updated backup path to XDG-compliant path.
  • website/docs/targets/configuration.md
    • Added new sections for managing target filters via CLI and skill-level targets, explaining their interaction and evaluation order.
    • Updated example target names.
  • website/docs/troubleshooting/common-errors.md
    • Updated example target names.
  • website/docs/troubleshooting/faq.md
    • Updated backup and trash location paths to XDG-compliant paths.
    • Added a new FAQ entry about unified target names.
  • website/docs/troubleshooting/windows.md
    • Updated Windows paths to %AppData% for config files and separate installations.
  • website/docs/workflows/backup-restore.md
    • Updated backup location paths to XDG-compliant paths.
  • website/docs/workflows/project-workflow.md
    • Updated example target names.
Ignored Files
  • Ignored by pattern: .github/workflows/** (2)
    • .github/workflows/release.yaml
    • .github/workflows/test.yaml
Activity
  • No human activity has been recorded on this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This is a substantial release that introduces several major features and architectural improvements. The implementation of XDG compliance with automatic migration is well-handled, especially the logic to update the source path in the config file. The runtime UI download is a great change to reduce binary size, and the implementation in internal/uidist appears robust with checksum validation and path traversal protection. The unification of project target names with alias support for backward compatibility is a thoughtful improvement. I've identified a couple of areas with code duplication between different commands (doctor/check and list/list_project) that could be refactored for better maintainability. Overall, this is a high-quality and impactful set of changes.

Comment thread cmd/skillshare/doctor.go
Comment on lines +434 to +465
// checkSkillTargetsField validates that skill-level targets values are known target names
func checkSkillTargetsField(source string, result *doctorResult) {
discovered, err := sync.DiscoverSourceSkills(source)
if err != nil {
return
}

knownNames := config.KnownTargetNames()
knownSet := make(map[string]bool, len(knownNames))
for _, n := range knownNames {
knownSet[n] = true
}

var warnings []string
for _, skill := range discovered {
if skill.Targets == nil {
continue
}
for _, t := range skill.Targets {
if !knownSet[t] {
warnings = append(warnings, fmt.Sprintf("%s: unknown target %q", skill.RelPath, t))
}
}
}

if len(warnings) > 0 {
for _, w := range warnings {
ui.Warning("Skill targets: %s", w)
}
result.addWarning()
}
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This function checkSkillTargetsField is nearly identical to warnUnknownSkillTargets in cmd/skillshare/check.go. To improve maintainability and reduce code duplication, consider refactoring this logic into a shared helper function. The shared function could take the sourceDir and return the list of warnings, and then each call site could handle the output (e.g., printing warnings and/or updating the doctor result).

Comment thread cmd/skillshare/list_project.go Outdated
Comment on lines +96 to +172
// displayProjectSkillsCompact displays project skills in compact mode, grouped by directory.
// Reuses extractGroupDir() and displayName logic from list.go via projectSkillEntry → skillEntry adapter.
func displayProjectSkillsCompact(skills []projectSkillEntry) {
// Check if any grouping is needed
hasGrouping := false
for _, s := range skills {
if extractGroupDir(s.RelPath) != "" {
hasGrouping = true
break
}
}

if !hasGrouping {
// Flat display
maxNameLen := 0
for _, s := range skills {
if len(s.Name) > maxNameLen {
maxNameLen = len(s.Name)
}
}
for _, s := range skills {
suffix := getProjectSkillSuffix(s)
format := fmt.Sprintf(" %s→%s %%-%ds %s%%s%s\n", ui.Cyan, ui.Reset, maxNameLen, ui.Gray, ui.Reset)
fmt.Printf(format, s.Name, suffix)
}
return
}

// Group by parent directory
groups := make(map[string][]projectSkillEntry)
for _, s := range skills {
dir := extractGroupDir(s.RelPath)
groups[dir] = append(groups[dir], s)
}

var dirs []string
for k := range groups {
if k != "" {
dirs = append(dirs, k)
}
}
sort.Strings(dirs)
if _, ok := groups[""]; ok {
dirs = append(dirs, "")
}

for i, dir := range dirs {
if dir != "" {
if i > 0 {
fmt.Println()
}
fmt.Printf(" %s%s/%s\n", ui.Gray, dir, ui.Reset)
} else if i > 0 {
fmt.Println()
}

maxNameLen := 0
for _, s := range groups[dir] {
name := projectDisplayName(s, dir)
if len(name) > maxNameLen {
maxNameLen = len(name)
}
}

for _, s := range groups[dir] {
name := projectDisplayName(s, dir)
suffix := getProjectSkillSuffix(s)
if dir != "" {
format := fmt.Sprintf(" %s→%s %%-%ds %s%%s%s\n", ui.Cyan, ui.Reset, maxNameLen, ui.Gray, ui.Reset)
fmt.Printf(format, name, suffix)
} else {
format := fmt.Sprintf(" %s→%s %%-%ds %s%%s%s\n", ui.Cyan, ui.Reset, maxNameLen, ui.Gray, ui.Reset)
fmt.Printf(format, name, suffix)
}
}
}
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The logic for grouping skills by directory in displayProjectSkillsCompact is very similar to the helper functions (groupSkillEntries, displayName, etc.) in cmd/skillshare/list.go. To avoid code duplication, you could create a small adapter to convert []projectSkillEntry to []skillEntry and then reuse the grouping and display logic from list.go. This would make the display logic consistent and easier to maintain.

- Add CHANGELOG.md entry for v0.13.0 (Added/Changed/Fixed/Breaking)
- Add RELEASE_NOTE_v0.13.0.md for GitHub release
- README: update Recent Updates table, fix Windows paths to %AppData%
- upgrade.md: document UI asset pre-download
- install.md: document fuzzy subdirectory resolution for monorepos
- check.md: document targets field validation warnings
- intro.md, configuration.md, windows.md: fix remaining Windows paths
Ubuntu CI runners set XDG_CONFIG_HOME system-wide, causing
config.BaseDir() in subprocesses to resolve outside the sandbox.
Redirect XDG_CONFIG_HOME/DATA_HOME/STATE_HOME to sandbox paths
so every test exercises the XDG codepath with proper isolation.
- Extract findUnknownSkillTargets() into target_helpers.go, shared by
  check and doctor commands
- Reuse buildSkillEntries() + displaySkillsCompact() in project list,
  removing duplicate projectSkillEntry type and display functions
- Silence MigrationSkippedDestinationExists warning that fired on every
  run after a successful migration
…rver

Split ListenAndServe into Listen + Serve so port conflicts are detected
before the browser is opened.  Previously, openBrowser ran first and
could connect to an old skillshare ui process on the same port.
Show exact commands (cd ui && pnpm run dev, make ui-dev) instead of
a vague mention of Vite, so developers know how to start the frontend.
…m paths

Move GetCacheDir() from version package to config.CacheDir(), consistent
with BaseDir()/DataDir()/StateDir() pattern including Windows fallback.
Add XDG_CACHE_HOME and cache paths to website docs.
…p paths

All install methods now include the web dashboard via runtime download.
Remove outdated Homebrew-only limitation notes. Add XDG data/state/cache
directories to uninstall instructions.
@runkids
runkids merged commit 53b31df into main Feb 16, 2026
5 checks passed
@runkids
runkids deleted the v0.13.0 branch February 16, 2026 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant