Repository navigation
Install the agent skill with flux install claude, omp or codex - #19
Merged
Merged
Conversation
The binary embeds skill/SKILL.md and installs it where each agent reads personal skills, so brew and go install users get the skill and can refresh it after upgrading. A changed SKILL.md is backed up first; a symlinked skill folder or file is refused.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Goal
Install the Flux skill with flux install claude, omp or codex
brew install eyra/tap/flux-cliandgo installinstall only the binary, not the agent skill. Before this change, onlyinstall.shcopiedskill/SKILL.md, and only to~/.claude/skills/flux, and an installed skill went stale when the binary was upgraded. With this change, the binary carries its own skill and can install it for Claude Code, omp and Codex.Spec:
docs/specs/install-command.md. This PR is step 1;install.shis switched over in a follow-up afterv0.5.0is released, so thatcurl … | bashnever calls a command the latest release doesn't have.Changes
New command
flux install claude|omp|codex. It writes the skill, embedded in the binary fromskill/SKILL.md, to:claude~/.claude/skills/flux/SKILL.mdCLAUDE_CONFIG_DIRomp~/.omp/agent/skills/flux/SKILL.mdPI_CODING_AGENT_DIRcodex~/.agents/skills/flux/SKILL.mdIf the existing
SKILL.mdis identical, nothing is written. If it differs, it is first renamed toSKILL.md.bak-<time>, asinstall.shdoes now. If the skill folder orSKILL.mdis a symlink, the command writes nothing and fails, so a symlink pointing at a checkout of this repo is never overwritten.--jsonprints{"ok":"true","path":…}, adding"backup"when a backup was made.The help text and the README explain that
flux install codexalso covers omp, because omp reads~/.agents/skills.The Homebrew cask gets
caveatstelling users to run the commands, and to rerun them afterbrew upgrade.Verification
go vet ./...andgo test ./...pass. The new tests cover every target with and without its override, the no-backup and backup paths, and refusing symlinks.goreleaser check(v2.18.3) validates the config with the caskcaveats.fluxappears in thestream-jsoninitskills. WithCLAUDE_CONFIG_DIRset, the skill is read from there and~/.claudeis ignored.fluxis listed once, even with identical copies in~/.omp/agent/skillsand~/.agents/skills.app-serverskills/listreturnsfluxwith scopeuserandenabled: true.