install
Install or upgrade the agnostic-ai CLI on this machine, picking the route that fits the OS and what is already installed. Use when agnostic-ai is missing, when `agnostic-ai --version` fails, or before any other agnostic-ai skill runs.
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 27
- Forks
- 6
01 前言 Front Matter
- name
- install
- description
- Install or upgrade the agnostic-ai CLI on this machine, picking the route that fits the OS and what is already installed. Use when agnostic-ai is missing, when `agnostic-ai --version` fails, or before any other agnostic-ai skill runs.
03 SKILL.md 正文
install
Puts the agnostic-ai binary on PATH without asking the user to hunt for a release archive.
Steps
-
Run
agnostic-ai --version. If it prints a version, stop: it is installed. Report the version and offeragnostic-ai upgradeif the user asked for the newest. -
Detect the platform and pick the first route that applies:
Platform Route Command macOS / Linux with Homebrew Homebrew brew install --cask Chemaclass/tap/agnostic-aimacOS / Linux, no Homebrew install script curl -fsSL https://raw.githubusercontent.com/Chemaclass/agnostic-ai/main/scripts/install.sh | bashWindows install script irm https://raw.githubusercontent.com/Chemaclass/agnostic-ai/main/scripts/install.ps1 | iexAny platform with Node 18 or newer npm npm install -g agnostic-aiAny platform with Go Go go install github.com/chemaclass/agnostic-ai/cmd/agnostic-ai@latestCheck for a tool with
command -v brew/command -v npm/command -v go.npm is published and works. It sits below the install scripts because npm 11 prompts before running install scripts, which pushes the binary download to first run.
npx agnostic-airuns the CLI with no install at all.winget and Scoop are wired into the release pipeline but not published yet, so
winget install Chemaclass.agnostic-aiandscoop install agnostic-aiboth fail today. Do not offer them. -
Run the chosen command. Do not run more than one route. If it reports that no package matches, fall back to the install script for that platform, which reads straight from the repo.
-
Verify with
agnostic-ai --version. -
If the shell reports "command not found" right after a successful install, PATH has not been reloaded yet. Tell the user to open a new terminal. The install scripts print the directory they used.
Notes
- The install scripts verify the download against the release
checksums.txt. Do not replace them with a barecurlof the binary. - Already installed but out of date:
agnostic-ai upgradedetects the original install method and prints the matching command.agnostic-ai upgrade --runexecutes it.
04 同仓库更多 Skills
release
Cut a release and verify it. Use only when asked to release.
sample-skill
A sample skill for golden snapshot tests.
sample-command
A sample command for golden snapshot tests.
sample-skill
A sample skill for golden snapshot tests.
sample-command
A sample command for golden snapshot tests.
sample-skill
A sample skill for golden snapshot tests.