Skip to content

Commit bef0e5c

Browse files
authored
Merge pull request #529 from computerlovetech/docs-528-iterate-upgrade
docs: recommend `agr upgrade` for iterating on in-repo skills
2 parents d7a8e83 + 5b2f7d4 commit bef0e5c

2 files changed

Lines changed: 16 additions & 5 deletions

File tree

skills/agr-cli/SKILL.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,11 @@ mkdir -p skills && mv my-skill skills/
125125
agr add ./skills/my-skill # records {path = "./skills/my-skill", type = "skill"} in agr.toml
126126
```
127127

128-
Iterate: edit `skills/my-skill/SKILL.md`, then
129-
`agr add ./skills/my-skill --overwrite` to reinstall into each configured tool.
128+
Iterate: edit `skills/my-skill/SKILL.md`, then `agr upgrade my-skill` to
129+
reinstall the fresh on-disk copy into each configured tool and refresh
130+
`agr.lock`. (`agr add ./skills/my-skill --overwrite` also works, but reach for
131+
it when you've changed the dependency's path or are re-adding it — for plain
132+
edits to an already-registered skill, `agr upgrade` is shorter and lock-aware.)
130133

131134
Teammates pick it up with `agr sync` after pulling. The local `path` dependency
132135
travels with the repo, so contributors don't need network access to use it.

skills/agr-cli/references/in-repo-skills.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,19 @@ for every tool in `tools`.
8484
Edit `skills/my-skill/SKILL.md`, then reinstall:
8585

8686
```bash
87-
agr add ./skills/my-skill --overwrite
87+
agr upgrade my-skill
8888
```
8989

90-
Or just `agr sync` — but `--overwrite` is more explicit when you've made local
91-
edits.
90+
`agr upgrade` reinstalls a fresh on-disk copy of the local skill into every
91+
configured tool and refreshes `agr.lock` — the canonical re-sync after editing
92+
an already-registered in-repo skill.
93+
94+
Alternatives:
95+
96+
- `agr add ./skills/my-skill --overwrite` — path-based; reach for it when the
97+
skill's path changed or you're re-adding it, not for plain edits.
98+
- `agr sync` — only installs what's missing, so it won't pick up edits to an
99+
already-installed skill. Use `agr upgrade` to force the refresh.
92100

93101
To test ephemerally (no permanent install) on a path:
94102

0 commit comments

Comments
 (0)