# Skills Hub — Full Product & Technical Specification Website: https://skills.ninthfeast.com/ English Page: https://skills.ninthfeast.com/en/ Download (macOS App): https://static.ninthfeast.com/app/SkillsHub.zip Open Source Repository: https://github.com/di-ba-yan/skills-hub.git Author: lhqs Contact: lhqs.gu@gmail.com Target Platform: macOS 14.0+ (Sonoma and later), Swift 6.0+, SwiftUI native app, zero third-party dependencies, App Sandbox disabled for direct `~/./skills` symlink management. ## What Problem Does Skills Hub Solve? AI coding agents each store reusable `SKILL.md` skills in different local directories (`~/.claude/skills`, `~/.codex/skills`, `~/.gemini/skills`, etc.). Maintaining copies across multiple agents causes version drift, duplicated edits, and accidental deletion of built-in directories like `~/.codex/skills/.system`. Skills Hub establishes a **Single Source of Truth (SSOT)** at `~/skills///SKILL.md` and creates flat symbolic links into every enabled agent directory. ## Key Capabilities 1. **Stateless Symlink Engine (`lstat` / `readlink`)** - Reads live symlink status (`linked`, `linkedElsewhere`, `conflictEntity`, `notLinked`) directly from the filesystem. - 100% compatible with manual `ln -s` terminal workflows. - Enforces `S_IFLNK` check before removal; never deletes physical directories. 2. **Supported Global AI Agent Targets** - Claude Code: `~/.claude/skills` - Codex: `~/.codex/skills` (automatically protects built-in `.system` directory) - Pi Agent: `~/.pi/agent/skills` - Antigravity: `~/.agents/skills` - OpenCode: `~/.config/opencode/skills` - Gemini CLI: `~/.gemini/skills` - GitHub Copilot: `~/.copilot/skills` - WorkBuddy: `~/.workbuddy/skills` - Qoder: `~/.qoder/skills` - Custom Agents: User-configurable custom target directories in Environment & Settings. 3. **Project-Level Mounting & Git Exclude** - Mounts selected skills or groups to `/.agents/skills/`. - Automatically creates `/.claude/skills` -> `../.agents/skills` compatibility symlink when absent. - One-click append of `.agents/skills` and `.claude/skills` to `/.git/info/exclude` without polluting team `.gitignore`. 4. **Skill Registry (`skills.sh`) & One-Click Install** - Browse `All Time`, `Trending (24h)`, and `Hot` leaderboards or search by keyword. - Preview remote `SKILL.md` with native GFM Markdown rendering before installing. - Installs via `git clone --depth 1` into `~/skills//` and lets you immediately link to target agents. 5. **Official Plugin Toggles & Git Sync** - Safely edits `~/.codex/config.toml` (preserving comments and unrelated config) and `~/.claude/settings.json` (`enabledPlugins`). - Built-in Git status, `git init`, stage-all & commit, `git push`, and new-machine `git clone` recovery for `~/skills/`. 6. **Native macOS Experience** - Three-column `NavigationSplitView` main window + `MenuBarExtra` quick toggle panel. - Real-time filesystem watching via `DispatchSource.makeFileSystemObjectSource` with debounced refresh. - Native `SKILL.md` Markdown renderer with headings, lists, blockquotes, code blocks with one-click copy, GFM tables, and raw source toggle. ## Quick Build & Install (From Source) Requirements: macOS 14.0+, Swift 6.0+ (Xcode Command Line Tools). ```bash make test # Run SkillsHubSelfTest unit test suites make app # Build Release & package dist/SkillsHub.app make run # Build and launch dist/SkillsHub.app make install # Install SkillsHub.app to /Applications ``` ## Frequently Asked Questions - **Does Skills Hub modify or delete my existing skill folders?** No. Before removing any link, Skills Hub verifies `S_IFLNK`. If a real directory exists at the target path, it marks it as an Entity Conflict and locks the toggle until you inspect it in Finder. - **How does it handle Codex's `.system` directory?** `~/.codex/skills/.system` is explicitly ignored and protected by `SymlinkManager` and `SkillScanner`. - **Can I use Skills Hub alongside manual `ln -s` commands?** Yes. Because Skills Hub is stateless and inspects the filesystem directly via `lstat` and `readlink`, manual terminal symlinks are immediately recognized. - **How do I migrate existing skills scattered across agents?** You can move them manually into `~/skills///` or copy the built-in AI Agent Migration Prompt from Environment & Settings to let Claude Code, Codex, or Antigravity archive and relink them safely.