Installation
Prerequisites
Section titled “Prerequisites”skillshub is built with Rust. Before installing, make sure you have the Rust toolchain available on your system.
If you do not already have Rust and Cargo installed, use rustup to set them up:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shAfter installation, ensure cargo is on your PATH by restarting your shell or running:
source "$HOME/.cargo/env"You can verify the toolchain is ready with:
cargo --versionInstalling via Cargo
Section titled “Installing via Cargo”The fastest way to install skillshub is directly from crates.io using Cargo:
cargo install skillshubThis downloads the latest published release, compiles it, and places the binary in ~/.cargo/bin/. As long as that directory is on your PATH, you are good to go.
Verifying the Installation
Section titled “Verifying the Installation”Confirm that skillshub was installed correctly:
skillshub --versionYou should see output similar to:
skillshub 0.1.0Building from Source
Section titled “Building from Source”If you want the latest development version or need to make modifications, you can build skillshub from its source repository.
Clone the Repository
Section titled “Clone the Repository”git clone https://github.com/EYH0602/skillshub.gitcd skillshubBuild a Release Binary
Section titled “Build a Release Binary”cargo build --releaseThe compiled binary will be located at target/release/skillshub. You can copy it to a directory on your PATH:
cp target/release/skillshub ~/.cargo/bin/Running Tests
Section titled “Running Tests”To make sure everything works on your system, run the test suite before installing:
cargo testShell Completions
Section titled “Shell Completions”skillshub can generate tab-completion scripts for your shell. This gives you autocompletion for commands, flags, and installed skill names.
skillshub completions bash > ~/.local/share/bash-completion/completions/skillshubskillshub completions zsh > ~/.local/share/zsh/site-functions/_skillshubMake sure the directory is listed in your fpath. You can add the following to your ~/.zshrc if it is not already present:
fpath=(~/.local/share/zsh/site-functions $fpath)autoload -Uz compinit && compinitskillshub completions fish > ~/.config/fish/completions/skillshub.fishAfter generating the completion file for your shell, open a new terminal session or reload your shell configuration for the completions to take effect.