Add a skill from GitHub and update it
Start from an agent project that pins the skill test-driven-development at the tag v4.0.0 of superpowers, as a project written before v7.0.2 came out does. Move the skill to that newer release, and add a second skill that follows its repository's default branch. The commands run in the agent project.
Move a skill to a new release
Add the skill again by the URL of the new release. Pandra updates its table in place and prints the change as a diff, the old value on a - line and the new one on a + line:
pandra add https://github.com/obra/superpowers/tree/v7.0.2/skills/test-driven-developmentUpdated `[skills.test-driven-development]`
source https://github.com/obra/superpowers/skills/test-driven-development
- ref tag v4.0.0
- commit 95c6e1633630
+ ref tag v7.0.2
+ commit 22f0b463e7a5
Updated pandra.lockFollow a branch
Without a ref, such as the tag v7.0.2 in the URL of step 1, a skill follows the repository's default branch, and pandra.lock pins the commit it found:
pandra add github.com/obra/superpowers/skills/brainstormingAdded `[skills.brainstorming]` to pandra.toml and updated pandra.lock.
pinned skill brainstorming from https://github.com/obra/superpowers/skills/brainstorming (commit 22f0b463e7a5)[skills.brainstorming]
git = "https://github.com/obra/superpowers"
path = "skills/brainstorming"Take the branch's newest commit
The pinned commit stays until you upgrade. pandra lock --upgrade moves every skill that follows a branch to the branch's newest commit, and pandra lock --upgrade brainstorming moves only that skill:
pandra lock --upgradeWhen the branch has moved, Pandra prints each pin it changed; <new commit> stands for the branch's newest commit:
Updated pandra.lock
pinned again skill brainstorming
source https://github.com/obra/superpowers/skills/brainstorming
- commit 22f0b463e7a5
+ commit <new commit>When nothing moved, it prints pandra.lock is up to date. Commit pandra.lock with pandra.toml, so others build the same skills.