Install
Run the install script:
bash scripts/install.sh --root <path>
The install script will:
- Automatically install
fzf - Write
SKILL_LINK_ROOT - Install the shortcut command
skill-link - Write to the rc file of the current shell
- Under bash it will detect whether
.bashrcis loaded by the login configuration; if not loaded, automatically appendsource
SKILL_LINK_ROOT must contain:
skills/rules/
Interactive mode
skill-link
- Enter keywords to search
Tabmulti-select←/→switch target PathEnterlink or unlink
Non-interactive mode
skill-link --list --target cursor
skill-link --target cursor agents-chat-bridge chinese-language.mdc
Agent workflow
- The Agent first determines the target Path based on the editor currently in use.
- Determination rules: Cursor uses
cursor, Claude Code usesclaude-code, Codex usescodex。 - Only when the current editor cannot be determined, use
AskQuestionto let the user choose the target Path. - Run
skill-link --list --target <path>to get the candidates and status. - Use
AskQuestionto display the candidates, andallow_multiple: true。 - Run
skill-link --target <path> <name...>。
The switch behavior executed for the selected items:
- Currently linked to the same source: unlink
- Not currently installed: create a symlink
- The target already exists and is not the same symlink: error out and stop
Environment variables
SKILL_LINK_ROOT: root directory of the local skill/rule source
The target Path is fixed to:
~/.cursor~/.claude~/.codex