236 Commits
Author SHA1 Message Date
Willie 0bd79a438e feat: add hub persistence to config for CLI and Web UI
Hub sources are now saved in config.yaml (both global and project),
replacing the Web UI's localStorage-based approach. This allows CLI
and UI to share the same hub list.

- Add HubConfig/HubEntry types and helper methods (resolve, add, remove)
- Add CLI subcommands: hub add/list/remove/default
- Search --hub now resolves saved labels (e.g. --hub team)
- Add REST API endpoints for hub CRUD (GET/PUT/POST/DELETE /api/hub/saved)
- Migrate SearchPage from localStorage to server API calls
v0.12.1
2026-02-13 14:21:37 +08:00
Willie af8eae9005 fix: skip config loading for audit path mode
When `skillshare audit <path>` targets an existing file or directory,
config is not needed. Previously config.Load() ran unconditionally,
causing "config not found" errors in CI environments without a
skillshare config. Now path mode bypasses config loading entirely.
2026-02-13 14:21:37 +08:00
Willie 30fb64ddea feat(ui): add tag badges and client-side filter to search results
Display #tag accent badges on hub search result cards and add an
inline filter input that matches against name, description, and tags.
Filter resets automatically on new searches.
2026-02-13 14:21:37 +08:00
Willie b8e85874f3 feat: add fuzzy filter and tag display to search results
- Fuzzy match on skill name, substring match on description and tags
- Display tags (#tag) in both list mode and interactive selector
- Always show "Search again" option when filtering
2026-02-13 14:21:37 +08:00
Willie d0a1a8f890 feat: default --hub flag to community skillshare-hub when no URL given
`skillshare search --hub` now defaults to the community skillshare-hub
index instead of requiring a URL, making hub search more convenient.
2026-02-13 14:21:37 +08:00
Willie 5c6f7d5434 docs: clarify hub sharing steps and add audit CI mentions
- HTTP Server section: explicit two-step workflow (generate → upload)
- Git Repository section: add raw URL and local clone examples
- Community Hub: mention CI runs skillshare audit on PRs (hub-index guide + search command)
2026-02-13 14:21:37 +08:00
Willie d6f18d91d8 docs: add v0.12.0 changelog and hub section to README
- Add 0.12.0 entry to CHANGELOG with hub feature summary
- Add Skill Hub section to README with usage examples
- Add hub commands to Daily Commands table
- Link community hub repo (runkids/skillshare-hub) with CI audit note
- Update Recent Updates table and nav links
v0.12.0
2026-02-13 14:21:37 +08:00
Willie 6253099d7d fix: correct hub help text, gofmt alignment, and missing tags type
- Fix --index-url → --hub in hub index help text
- Fix gofmt struct field alignment in SearchResult after adding Tags
- Add missing tags field to frontend SearchResult TypeScript interface
2026-02-13 14:21:37 +08:00
Willie 88847ea3ae feat: add skill field to hub schema for multi-skill repo support
Hub JSON entries can now specify a `skill` field to target a specific
skill within a multi-skill repo. CLI auto-passes -s flag, Web UI
skips the picker modal when skill is specified.

Also adds Community Hub section to search docs with link to
runkids/skillshare-hub.
2026-02-13 14:21:37 +08:00
Willie 0aa60cd2e5 feat: add tags field to hub index and update docs
Add optional tags []string to SkillEntry and search index, enabling
classification and filtering of skills in hub catalogs. Tags are
read from SKILL.md frontmatter (comma-separated) during hub index
generation and included in search haystack for keyword matching.

Rewrite community-hub spec to reflect hand-curated hub.json model
(contributors edit JSON directly via PR, no skills/ directory).
Update website docs with tags schema, web dashboard screenshots,
and hub management instructions.
2026-02-13 14:21:37 +08:00
Willie 19141990fa refactor(ui): extract hub management into modal dialog
Move hub add/delete operations from inline UI into a dedicated
HubManagerModal component. SearchPage now shows a dropdown selector
with a "Manage" button, separating frequent (select) from infrequent
(add/delete) operations. Fix dropdown overflow by adding
!overflow-visible to the hub selector Card.
2026-02-13 14:21:37 +08:00
Willie cd81a01f99 docs: add hub index guide, command reference, and rename to skillshare-hub.json
Rename default output from index.json to skillshare-hub.json for
uniqueness. Add website docs for hub command and hub index guide.
Update search command docs with --index-url section. Add hub and
hub-index to sidebar.
2026-02-13 14:21:37 +08:00
Willie d2854ed621 feat(ui): add private index search with multi-index management
Add /api/hub/index endpoint and index_url support to /api/search.
SearchPage now has GitHub/Private Index mode tabs with localStorage
persistence. Built-in "Current Skills" index plus user-managed
custom indexes with URL dedup and add/delete flow.
2026-02-13 14:21:37 +08:00
Willie e44a727c4f feat(hub): add hub index CLI command and integration tests
Add `skillshare hub index` subcommand with --full, --source, --output
flags and mode-aware source resolution. Register hub in command map
and usage help.

Integration tests cover: index generation, custom output path, empty
source, full mode, minimal metadata suppression, help text, and
search --index-url with local files (including equals syntax and
browse-all).
2026-02-13 14:21:37 +08:00
Willie 0ff683167a feat(search): add --index-url for private index search
SearchFromIndexURL consumes hub-generated index.json (local or HTTP),
with sourcePath resolution, relative path detection (including Windows),
and limit enforcement. The search CLI routes to index search when
--index-url is provided, with conditional spinner text and scoped
GitHub-specific error handling.
2026-02-13 14:21:37 +08:00
Willie da7b9eac51 feat(hub): add index generation with layered output
BuildIndex scans a source directory and produces a hub index.json.
Default output is minimal (name, description, source only).
Full mode (--full) adds metadata: flatName, relPath, type, repoUrl,
version, installedAt, isInRepo.

Key behaviors:
- Fail fast on missing source directory (no silent empty index)
- Deterministic sort by name ascending
- YAML block scalar indicators (|, >) skipped in description parsing
- Redundant fields suppressed: flatName==name, relPath==source, isInRepo==false
- All metadata fields use omitempty for clean JSON output
2026-02-13 14:21:37 +08:00
Willie c2f737377a chore(test): add more source test 2026-02-13 14:21:37 +08:00
Willie f209d72fbc fix: prevent table overflow on supported-targets page
Long code paths (e.g. Xcode target paths) broke layout by pushing
the table beyond its container. Override white-space on td code to
allow wrapping, and add overflow-x: auto as a safety net.
2026-02-13 14:21:37 +08:00
Willie bf1a12545f docs: update built-in skill references to v0.11.7
Catch up skill references with features added in v0.11.4–0.11.7:
- SKILL.md: bump version, add init-rules command, inline ui -g/-p hint
- init.md: add --skill/--no-skill flags, update non-interactive examples
- install.md: add --into and --skip-audit flags with examples
- audit.md: rewrite with --threshold, --json, --init-rules, path scanning,
  LOW/INFO severity, custom rules (three-layer merge), risk scoring
- targets.md: note 46+ built-in targets
- status.md: note upgrade --skill is opt-in
- TROUBLESHOOTING.md: add audit rules and nested skill tips
- Remove ui.md — AI only needs ui -g/-p from command table
v0.11.8
2026-02-13 14:21:37 +08:00
Willie d8699762ad fix: use deep skill count in init and prevent null files in git status API
- init: replace shallow os.ReadDir count with DiscoverSourceSkills()
  to correctly count nested skills by SKILL.md presence
- handler_git: guard against nil slice from GetDirtyFiles() overwriting
  the initialized empty slice, which serialized as JSON null
- GitSyncPage: add optional chaining on status.files for defense
2026-02-13 14:21:36 +08:00
Willie dde62dd733 docs: update target count to 45+, add project/global paths to table
- Update target counts across README, website docs, and homepage
- Rebuild ASCII box diagram with new targets (COMATE, Cortex, Xcode Claude, Xcode Codex)
- Replace single-column paths table with global + project path columns
- Fix stale paths (droid, copilot, etc.) to match actual targets.yaml
v0.11.7
2026-02-13 14:21:36 +08:00
Willie 192ccc7955 feat: add Cortex Code (Snowflake) target
Project .cortex/skills, global ~/.snowflake/cortex/skills.
2026-02-13 14:21:36 +08:00
Willie 59b6067e6d feat: add Letta project-mode support (.skills/)
Letta previously only had global path. Add project_name and
project_path per docs.letta.com/letta-code/skills.
2026-02-13 14:21:36 +08:00
Willie bf37442952 feat: add Xcode Codex and Xcode Claude Agent targets
Add macOS-specific Xcode Coding Intelligence targets:
- xcode-codex: global ~/Library/Developer/Xcode/CodingAssistant/codex/skills
- xcode-claude: global ~/Library/Developer/Xcode/CodingAssistant/ClaudeAgentConfig/skills

Update tests: droid now shares .agents/skills group, cursor replaces
claude-code as the single-path test case since xcode-claude shares
.claude/skills.
2026-02-13 14:21:36 +08:00
Willie 5b964eda62 feat: add COMATE target, switch Droid to .agents/skills
- Add COMATE with ~/.comate/skills (global) and .comate/skills (project)
- Update Droid from .factory/skills to universal .agents/skills
2026-02-13 14:21:36 +08:00
Willie ac58c5e71e docs: reorganize sidebar, add project migration, fix metadata format
- Guides: split 10 flat items into 3 sub-categories (Skills, Sharing, Advanced)
- Workflows: move Troubleshooting Workflow into Troubleshooting category
- Migration: add project mode sections (committed skills, global→project, team options)
- Configuration: add audit section, project config format, custom audit rules
- Navbar: add Guides and Targets quick links
- Fix .skillshare.yaml → .skillshare-meta.json across all docs (wrong filename/format)
- Bump font sizes site-wide for readability (base 16→17px, components proportional)
2026-02-13 14:21:36 +08:00
Willie 11e18dce00 fix: use git reset for clean history on init --remote, skip project auto-detect for global flags
- tryPullAfterRemoteSetup: replace git pull/merge with git reset --hard
  to avoid merge commits and ff-only/conflict issues when pulling from
  remote into a freshly initialized repo
- Add hasGlobalOnlyInitFlags() so init --remote works correctly even
  when cwd has .skillshare/config.yaml (project mode auto-detection)
- Update cross-machine-sync doc to reflect reset behavior
v0.11.6
2026-02-13 14:21:36 +08:00
Willie f4be50bdd7 fix: shorten target multi-select labels for readability
Move path display to detection phase output. Multi-select options
now show only name + status instead of name + full path + status,
preventing an unreadable long line when all targets are selected.
2026-02-13 14:21:36 +08:00
Willie 3830543309 feat: auto-commit and auto-pull on init, improve git UX
Init now creates an initial commit (including .gitignore) so that
push/pull work immediately after setup. When a remote is configured,
init fetches and auto-pulls existing skills from the remote.

- Always create initial commit in doGitInit (fixes stale untracked
  .gitignore blocking pull)
- Add ensureGitIdentity: set repo-local fallback when git user.name
  is not configured, with hint to set global config
- Add tryPullAfterRemoteSetup: fetch remote after adding origin,
  auto-pull if remote has content and local is empty
- Add hintGitRemoteError: context-aware hints for SSH, URL, and
  network errors in push/pull
- Show Pro tip only when built-in skill is installed
- Sandbox: add --bare mode (skip auto-init), --volumes for down
  (full reset), and sandbox-reset / sandbox:reset targets
- Docs: update init flow diagram, cross-machine-sync guide,
  push/pull prerequisites, getting-started, troubleshooting
2026-02-13 14:21:36 +08:00
Willie d9fd9cc573 docs: add v0.11.5 changelog, remove stale moltbot target, fix target count
- Add CHANGELOG v0.11.5 covering --into flag, nested skill support,
  IBM Bob target, JS/TS highlighting, and project init grouping
- Remove deprecated moltbot entry from targets.yaml (renamed to openclaw)
- Fix target name cmdcode → commandcode in supported-targets table
- Update target count from 44+ to 43+ across docs (42 global + replit)
v0.11.5
2026-02-13 14:21:36 +08:00
Willie 9ee5324689 feat: enhance security audit thresholds, logging, and UI 2026-02-13 14:21:36 +08:00
Willie af43a57ae2 feat: add JavaScript/TypeScript syntax highlighting in file viewer
Install @codemirror/lang-javascript and support .js, .ts, .jsx, .tsx,
.mjs, .mts, .cjs, .cts with proper language modes (including JSX and
TypeScript flags).
2026-02-13 14:21:36 +08:00
Willie e0c9499c14 fix: parse YAML block scalars in frontmatter and use CodeMirror for all file types
Two related UI fixes for the skill detail page:

1. YAML block scalar parsing: description fields using >-, >, |, |-
   syntax showed the raw indicator instead of the parsed value. Fix
   both frontend (parseScalarValue) and backend (ParseFrontmatterField)
   to recognize block indicators and read indented continuation lines.

2. File viewer: non-markdown files (.py, .sh, etc.) rendered as plain
   <pre> without line numbers or highlighting. Now all non-markdown
   files use CodeMirror, with Python syntax highlighting via
   @codemirror/lang-python.
2026-02-13 14:21:36 +08:00
Willie 3a132ab72e fix: update nested skills by full relative path in Web UI
The Update button on SkillDetailPage passed only the skill basename
(e.g. "ascii-box-check") instead of the full relative path
("utils/ascii-box-check"), causing "not found as tracked repo or
updatable skill" errors for nested skills.

- Frontend: use skill.relPath instead of skill.name for non-repo skills
- Backend: rewrite getServerUpdatableSkills with filepath.WalkDir so
  Update All also discovers nested skills
2026-02-13 14:21:36 +08:00
Willie a1a3bafe9e docs: document --into flag and add nested skills to playground
Update 5 website docs to cover the new --into install flag:
- commands/install.md: options table, quick examples, common scenarios
- guides/organizing-skills.md: new "Install Directly into Folders" section
- guides/project-setup.md: --into example in Step 3
- reference/file-structure.md: nested skill in source directory tree
- concepts/project-skills.md: --into in project directory structure

Reorganize playground demo skills into nested subdirectories
(security/, devops/, demos/, guides/) so users see the feature
out of the box.
2026-02-13 14:21:36 +08:00
Willie aa43f94892 feat: add --into flag for skill install command
Allow installing skills into subdirectories for organized folder
structures. Works with all install modes (direct, discovery, tracked)
in both global and project mode.

- Add Into field to InstallOptions and IntoPath() validation
- Update 4 dest-path construction points in CLI with destWithInto()
- Update InstallTrackedRepo for --into prefix in dest and gitignore
- Rewrite ReconcileProjectSkills to use filepath.WalkDir (recursive)
- Add --into to Web UI install handler, API client, and form
- Add 5 integration tests covering local, multi-level, validation,
  project mode, and no-source rejection
2026-02-13 14:21:36 +08:00
Willie 3873960d84 feat: support nested skills in uninstall command
Previously `skillshare uninstall vue-best-practices` failed when the
skill lived under an organizational folder (e.g. frontend/vue/).
Now both global and project mode fall back to a basename search across
nested directories, matching the behavior already in check/update.

- Add resolveNestedSkillDir() with ambiguity detection
- Use as fallback in resolveUninstallTarget (global) and
  cmdUninstallProject (project)
- Also matches _name variant for nested tracked repos
- Add integration tests for basename and full-path uninstall
2026-02-13 14:21:36 +08:00
Willie 57e7b68131 feat: group shared-path agents in project init UI
Multiple agents (Amp, Codex, Copilot, Gemini, Goose, Kimi, OpenCode,
Replit) all map to .agents/skills in project mode. Previously init -p
showed each as a separate selectable entry pointing to the same directory,
which was redundant and confusing.

Now targets sharing a project path are collapsed into a single group entry
(e.g. "agents") with member names shown in parentheses. Discover uses
path-based dedup so an existing "amp" entry correctly prevents the
"agents" group from appearing as new. --select accepts both canonical
and member names for backward compatibility.

- Add project_name/project_path to agents meta-target in targets.yaml
- Add GroupedProjectTargets() in config package with unit tests
- Rewrite detect/list/prompt/discover in init_project.go
- Add agents target to playground demo project
2026-02-13 14:21:36 +08:00
Willie de6a4b49b5 docs: mention folder organization in README
Add bullet point in "Why skillshare" and a tip in "How It Works"
linking to the organizing guide and runkids/my-skills example.
2026-02-13 14:21:36 +08:00
Willie f50847eb6c feat: support nested skills in check/update and add organizing guide
GetTrackedRepos() and GetUpdatableSkills() now walk subdirectories
recursively so skills organized in folders (e.g. frontend/vue/) are
detected by check and update commands. Previously only direct children
of the source directory were scanned.

Also adds:
- Short name resolution for `update` (e.g. `update vue-best-practices`
  resolves to `frontend/vue/vue-best-practices`)
- Fix ReadMeta nil check in updateSkillOrRepo to ensure fallback fires
- Remove logo from `check`, replace with mode-aware header
- New docs guide: Organizing Skills with Folders
- Rename screenshot to organizing-skills-comparison.png
2026-02-13 14:21:36 +08:00
Willie d536de4311 docs: fix ASCII box alignment in audit, init, and project-setup
- audit.md: fix path line (62→63) and Warning/Failed lines (39→40)
- init.md: fix all │ lines in init -p flow diagram (68→67)
- project-setup.md: same flow diagram fix as init.md
2026-02-13 14:21:36 +08:00
Willie 8d17b75e95 feat: add IBM Bob target and update Goose to universal project path
- Add IBM Bob agent (global: ~/.bob/skills, project: .bob/skills)
- Change Goose project_path from .goose/skills to .agents/skills
  to align with universal agent directory convention
- Update supported target count from 43+ to 44+ across docs
2026-02-13 14:21:34 +08:00
Willie b7d14fb622 docs: link builtin audit rules source in command reference 2026-02-11 10:37:28 +08:00
Willie 7fe3bf09e0 docs: fix incorrect CLI command in changelog
audit-rules is not a standalone command; the correct flag is
skillshare audit --init-rules
2026-02-11 10:29:23 +08:00
Willie 06bc3588f7 docs: add changelog for v0.11.4 v0.11.4 2026-02-11 10:17:58 +08:00
Willie 2c982848c5 feat: classify HIGH audit findings as warnings and refresh docs/playground 2026-02-11 10:10:09 +08:00
Willie bf6f60467f docs: update website for audit rules UI, built-in skill opt-in, and missing pages
- init.md: add step 5 (built-in skill prompt) to What Happens diagram
- first-sync.md: add tip about built-in skill prompt during init
- audit.md: add Custom Rules Editor section for /audit/rules page
- ui.md: add Audit, Audit Rules, Trash, Log to Dashboard Pages table
  and audit/log REST API endpoints
- file-structure.md: add audit-rules.yaml to overview tree
2026-02-11 04:43:58 +08:00
Willie 927bad707e feat: add audit rules Web UI page with create/edit support
Add REST API (GET/PUT/POST /api/audit/rules) for managing custom
audit-rules.yaml through the web dashboard. Extract template and
validation logic from CLI into reusable audit package functions
(ValidateRulesYAML, InitRulesFile, DefaultRulesTemplate). Frontend
provides CodeMirror YAML editor with dirty tracking, file creation
flow, and mode-aware path display. Sidebar nav gains overflow scroll.
2026-02-11 04:36:58 +08:00
Willie fbcec80788 feat: externalize audit rules to YAML with user customization
Move 17 hardcoded audit rules from Go structs to embedded rules.yaml,
enabling community PRs on rule definitions without recompilation.

Add user-customizable audit rules at two levels:
- Global: ~/.config/skillshare/audit-rules.yaml
- Project: .skillshare/audit-rules.yaml

Merge semantics: built-in → global → project. Users can append new
rules, override existing ones by id, or disable them (enabled: false).

Replace hardcoded localhostURL check with generic exclude regex field
on rules. Add --init-rules flag to scaffold a starter rules file.

Public API (ScanSkill, ScanContent, Finding, Result) unchanged —
callers require zero modifications.
2026-02-11 03:40:54 +08:00
Willie 98db20a9a0 test: add !online build tag to offline integration tests
Prevent test-docker and test-docker-online from running the same 36
offline integration tests. Each offline test file now has
`//go:build !online` so the two sets are mutually exclusive:
- default (no tag): 36 offline tests only
- -tags online: online tests only
2026-02-11 03:40:54 +08:00