Skip to content

feat(agent-skill): track installed version in .version file#303

Open
theFong wants to merge 1 commit intomainfrom
feat/agent-skill-version-tracking
Open

feat(agent-skill): track installed version in .version file#303
theFong wants to merge 1 commit intomainfrom
feat/agent-skill-version-tracking

Conversation

@theFong
Copy link
Member

@theFong theFong commented Mar 3, 2026

Summary

  • Resolves the commit SHA via the GitHub API during agent skill installation
  • Writes a .version file (branch + commit) to each install directory
  • Updated both the Go installer and the shell script installer
  • Version tracking is best-effort — if the API call fails, installation still succeeds

Test plan

  • Run brev agent-skill install and verify .version file is created
  • Verify .version contains branch=main and commit=
  • Test with BREV_SKILL_BRANCH override
  • Test shell script installer
  • Verify install succeeds if GitHub API is unreachable

Resolve the commit SHA from the GitHub API during skill installation
and write a .version file (branch + commit) to each install directory.
This enables checking which version is installed and detecting updates.
@theFong theFong requested a review from a team as a code owner March 3, 2026 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant