Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .agents/skills/check-this-repo/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@ repo.

## What it is safe to fix on its own

- **Re-run the installer**, `python3 scripts/skills_install.py`, from that same `main` checkout,
when `--report` exits non-zero.
- **Re-run the installer**, `python3 scripts/skills_install.py --snapshot-only`, from that same
`main` checkout, when `--report` exits non-zero. `--snapshot-only` refreshes the copy and leaves
the Claude Code registration alone, since a fetched checkout is not one that registration should
load from.
This is a per-machine, local-only change, nothing in it touches this repo's git history or
needs a review.

Expand Down
55 changes: 20 additions & 35 deletions .agents/skills/merge-and-release/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,37 +120,20 @@ skill covers all of it, scoped down by what the maintainer actually asks for.
Report a timeout separately from a completed run's own conclusion, the tag or
version it produced. A run that fails, times out, or never starts is reported, never silently
retried.
7. In the hub, when the chosen scope includes a release, bring this checkout to the merged
content without discarding or mixing in anything local. First assert `git status --porcelain
--untracked-files=all --ignored -- .agents/skills/ .claude-plugin/` is empty, and stop and
report rather than proceeding over any uncommitted content there, tracked, untracked, or
gitignored, since `skills_install.py` reads both paths: `shutil.copytree()` installs each
`.agents/skills/` skill directory for Codex/opencode, and `claude plugin marketplace add`
installs from `.claude-plugin/` for Claude Code, so a gitignored stray file under either rides
along the same as any other, and the plain porcelain form (silent on ignored paths) would pass
this preflight while one still rides into an install. Scoped to those two paths rather than
the whole tree, matching `skills_install.py`'s own `source_ref()` dirty check (`watched =
[SKILLS_SRC, CLAUDE_PLUGIN_DIR]`), since an ignored file elsewhere in the checkout (a build
cache, a lockfile) is not this preflight's concern and should not block the refresh on it.
Then `git fetch origin main`, `git checkout main`
(or `git checkout -b main origin/main` the first time this checkout carries no local `main` at
all, `checkout` rather than `switch` since the fleet's own `git` floor is undeclared and
`checkout` needs no minimum version for this), and `git merge --ff-only origin/main`.
`checkout` still refuses a `main` checked out in another worktree, and `--ff-only` refuses
anything but a clean fast-forward, so either stops and reports on top of what the preflight
already ruled out, per Repository Boundaries and Write Safety. `--ff-only` does not fail when
local `main` is already ahead of `origin/main`, since a strict superset needs no fast-forward
and reports up to date, so assert `git rev-parse main` equals `git rev-parse origin/main`
afterward and stop and report on a mismatch, a local-only commit this checkout never pushed is
exactly the case a bare "up to date" would hide. `skills_install.py` stamps and installs from
whatever this checkout's HEAD already is, so running it against a stale, unrefreshed, or
locally-diverged `main` skips the refresh silently. Only then run `python3 scripts/skills_install.py --report`, then
`python3 scripts/skills_install.py` to install, and confirm `--report`'s snapshot now reads
current. The two channels hold different things. The Codex and opencode copy keeps the
revision it was taken from, the promoted `main` here. The Claude Code channel loads the
registered checkout in place, the one `--report` names under `live`, and serves whatever it
holds at read time. Where that is this checkout, once step 8 returns it to `develop`, Claude
Code sessions on this machine load `develop`. `--report` exits on the snapshot alone. This step runs whether step 5
7. In the hub, when the chosen scope includes a release, refresh this machine's Codex and opencode
copy from the promoted `main` in a detached worktree of its own, never by switching an existing
checkout to `main`, since the checkout Claude Code loads in place would move with it. Run `git fetch origin main`, then `git worktree add --detach
<worktree> origin/main` at a new path in the fleet worktree layout, and from that worktree run
`python3 scripts/skills_install.py --snapshot-only`, then `python3 scripts/skills_install.py
--report`, and confirm its snapshot reads current. A fresh worktree holds nothing uncommitted
or ignored under `.agents/skills/` or `.claude-plugin/`, the two paths the installer reads, so
the copy holds exactly the promoted commit. `--snapshot-only` leaves the Claude Code
registration untouched, and that channel needs no refresh here: it loads the registered
checkout in place, the one `--report` names under `live`, and serves whatever it holds at read
time, so where that is the primary checkout on `develop`, Claude Code sessions on this machine
load `develop`. Then remove the worktree with
`git worktree remove <worktree>`, whatever the report said, and report a snapshot that does not
read current. `--report` exits on the snapshot alone. This step runs whether step 5
or 6 dispatched, skipped, or failed a release, since it is gated only on the chosen scope,
never on the release outcome. This refreshes only the machine running
this session, per skill-lifecycle, every other machine still refreshes on its own next run or
Expand All @@ -159,10 +142,12 @@ skill covers all of it, scoped down by what the maintainer actually asks for.
failure, an ambiguous run match, a timeout, a failed run, or a hub Skills refresh all still
reach this step, the merge in step 3 already landed by then. Two parts, both required, neither
optional:
- The promotion PR's own worktree: fetch and prune, remove the worktree, then fast-forward the
base clone to `develop`. Removing first, not after, matters: the base clone cannot check out
`develop` while the promotion worktree still has it checked out, one branch checked out in
two worktrees at once is refused outright. Never delete `develop`, it is the promotion PR's
- The promotion PR's own worktree: fetch and prune, remove the worktree, then bring the base
clone to current `develop`, checking `develop` out first only where it sits on another
branch, and fast-forwarding it with `git merge --ff-only origin/develop`. Where that checkout
is needed, removing first, not after, matters: the base clone cannot check out `develop`
while the promotion worktree still has it checked out, one branch checked out in two
worktrees at once is refused outright. Never delete `develop`, it is the promotion PR's
own head, and the repo's auto-delete-head-branches setting is kept off fleet-wide for exactly
this reason, so nothing does this automatically.
- A defensive sweep for anything drive-pr's own cleanup should already have removed but might
Expand Down
2 changes: 1 addition & 1 deletion .agents/skills/skill-lifecycle/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ A skill surfaces at a trigger moment. A rule that binds every action all the tim
5. **Apply the doc-packaging pattern below in the same change** when the skill packages a law doc or one of its sections.
6. **Regenerate and commit all trees together**: `python3 scripts/build_dist.py`, then, once authorized, commit the source and both generated trees in one commit, per `git-commit-conventions`. CI runs `--check` on every pull request and fails a desynced distribution. `python3 tests/test_build_dist.py` covers the generator itself.
7. **Record the surfacing**: annotate the `AGENTS.md` "Where the Rules Live" row when the skill packages a GOVERNANCE section, or its closing paragraph when the skill is new content, so the map stays the one place coverage is read from.
8. **Refresh the machines after promotion**: re-run `python3 scripts/skills_install.py` per machine, from a freshly fetched `main`, the cadence `docs/host-setup.md` "Fleet Skills Install" states. Until then each machine's Codex and opencode copy holds the previous skill set, which `--report` says, while Claude Code serves whatever the hub checkout holds.
8. **Refresh the machines after promotion**: re-run `python3 scripts/skills_install.py --snapshot-only` per machine, from a freshly fetched `main`, the cadence `docs/host-setup.md` "Fleet Skills Install" states. Until then each machine's Codex and opencode copy holds the previous skill set, which `--report` says, while Claude Code serves whatever the hub checkout holds.

## Changing or Retiring a Skill

Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
f5075baedbd8a74f
e44aa4df6a065a72
Original file line number Diff line number Diff line change
@@ -1 +1 @@
44482374472578a4
b9f81e4bef9bcdea
Original file line number Diff line number Diff line change
@@ -1 +1 @@
68cf8fa202007b97
22bb56c8d9fe6fec
6 changes: 4 additions & 2 deletions .claude-plugin/fleet-skills/skills/check-this-repo/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@ repo.

## What it is safe to fix on its own

- **Re-run the installer**, `python3 scripts/skills_install.py`, from that same `main` checkout,
when `--report` exits non-zero.
- **Re-run the installer**, `python3 scripts/skills_install.py --snapshot-only`, from that same
`main` checkout, when `--report` exits non-zero. `--snapshot-only` refreshes the copy and leaves
the Claude Code registration alone, since a fetched checkout is not one that registration should
load from.
This is a per-machine, local-only change, nothing in it touches this repo's git history or
needs a review.

Expand Down
55 changes: 20 additions & 35 deletions .claude-plugin/fleet-skills/skills/merge-and-release/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,37 +120,20 @@ skill covers all of it, scoped down by what the maintainer actually asks for.
Report a timeout separately from a completed run's own conclusion, the tag or
version it produced. A run that fails, times out, or never starts is reported, never silently
retried.
7. In the hub, when the chosen scope includes a release, bring this checkout to the merged
content without discarding or mixing in anything local. First assert `git status --porcelain
--untracked-files=all --ignored -- .agents/skills/ .claude-plugin/` is empty, and stop and
report rather than proceeding over any uncommitted content there, tracked, untracked, or
gitignored, since `skills_install.py` reads both paths: `shutil.copytree()` installs each
`.agents/skills/` skill directory for Codex/opencode, and `claude plugin marketplace add`
installs from `.claude-plugin/` for Claude Code, so a gitignored stray file under either rides
along the same as any other, and the plain porcelain form (silent on ignored paths) would pass
this preflight while one still rides into an install. Scoped to those two paths rather than
the whole tree, matching `skills_install.py`'s own `source_ref()` dirty check (`watched =
[SKILLS_SRC, CLAUDE_PLUGIN_DIR]`), since an ignored file elsewhere in the checkout (a build
cache, a lockfile) is not this preflight's concern and should not block the refresh on it.
Then `git fetch origin main`, `git checkout main`
(or `git checkout -b main origin/main` the first time this checkout carries no local `main` at
all, `checkout` rather than `switch` since the fleet's own `git` floor is undeclared and
`checkout` needs no minimum version for this), and `git merge --ff-only origin/main`.
`checkout` still refuses a `main` checked out in another worktree, and `--ff-only` refuses
anything but a clean fast-forward, so either stops and reports on top of what the preflight
already ruled out, per Repository Boundaries and Write Safety. `--ff-only` does not fail when
local `main` is already ahead of `origin/main`, since a strict superset needs no fast-forward
and reports up to date, so assert `git rev-parse main` equals `git rev-parse origin/main`
afterward and stop and report on a mismatch, a local-only commit this checkout never pushed is
exactly the case a bare "up to date" would hide. `skills_install.py` stamps and installs from
whatever this checkout's HEAD already is, so running it against a stale, unrefreshed, or
locally-diverged `main` skips the refresh silently. Only then run `python3 scripts/skills_install.py --report`, then
`python3 scripts/skills_install.py` to install, and confirm `--report`'s snapshot now reads
current. The two channels hold different things. The Codex and opencode copy keeps the
revision it was taken from, the promoted `main` here. The Claude Code channel loads the
registered checkout in place, the one `--report` names under `live`, and serves whatever it
holds at read time. Where that is this checkout, once step 8 returns it to `develop`, Claude
Code sessions on this machine load `develop`. `--report` exits on the snapshot alone. This step runs whether step 5
7. In the hub, when the chosen scope includes a release, refresh this machine's Codex and opencode
copy from the promoted `main` in a detached worktree of its own, never by switching an existing
checkout to `main`, since the checkout Claude Code loads in place would move with it. Run `git fetch origin main`, then `git worktree add --detach
<worktree> origin/main` at a new path in the fleet worktree layout, and from that worktree run
`python3 scripts/skills_install.py --snapshot-only`, then `python3 scripts/skills_install.py
--report`, and confirm its snapshot reads current. A fresh worktree holds nothing uncommitted
or ignored under `.agents/skills/` or `.claude-plugin/`, the two paths the installer reads, so
the copy holds exactly the promoted commit. `--snapshot-only` leaves the Claude Code
registration untouched, and that channel needs no refresh here: it loads the registered
checkout in place, the one `--report` names under `live`, and serves whatever it holds at read
time, so where that is the primary checkout on `develop`, Claude Code sessions on this machine
load `develop`. Then remove the worktree with
`git worktree remove <worktree>`, whatever the report said, and report a snapshot that does not
read current. `--report` exits on the snapshot alone. This step runs whether step 5
or 6 dispatched, skipped, or failed a release, since it is gated only on the chosen scope,
never on the release outcome. This refreshes only the machine running
this session, per skill-lifecycle, every other machine still refreshes on its own next run or
Expand All @@ -159,10 +142,12 @@ skill covers all of it, scoped down by what the maintainer actually asks for.
failure, an ambiguous run match, a timeout, a failed run, or a hub Skills refresh all still
reach this step, the merge in step 3 already landed by then. Two parts, both required, neither
optional:
- The promotion PR's own worktree: fetch and prune, remove the worktree, then fast-forward the
base clone to `develop`. Removing first, not after, matters: the base clone cannot check out
`develop` while the promotion worktree still has it checked out, one branch checked out in
two worktrees at once is refused outright. Never delete `develop`, it is the promotion PR's
- The promotion PR's own worktree: fetch and prune, remove the worktree, then bring the base
clone to current `develop`, checking `develop` out first only where it sits on another
branch, and fast-forwarding it with `git merge --ff-only origin/develop`. Where that checkout
is needed, removing first, not after, matters: the base clone cannot check out `develop`
while the promotion worktree still has it checked out, one branch checked out in two
worktrees at once is refused outright. Never delete `develop`, it is the promotion PR's
own head, and the repo's auto-delete-head-branches setting is kept off fleet-wide for exactly
this reason, so nothing does this automatically.
- A defensive sweep for anything drive-pr's own cleanup should already have removed but might
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ A skill surfaces at a trigger moment. A rule that binds every action all the tim
5. **Apply the doc-packaging pattern below in the same change** when the skill packages a law doc or one of its sections.
6. **Regenerate and commit all trees together**: `python3 scripts/build_dist.py`, then, once authorized, commit the source and both generated trees in one commit, per `git-commit-conventions`. CI runs `--check` on every pull request and fails a desynced distribution. `python3 tests/test_build_dist.py` covers the generator itself.
7. **Record the surfacing**: annotate the `AGENTS.md` "Where the Rules Live" row when the skill packages a GOVERNANCE section, or its closing paragraph when the skill is new content, so the map stays the one place coverage is read from.
8. **Refresh the machines after promotion**: re-run `python3 scripts/skills_install.py` per machine, from a freshly fetched `main`, the cadence `docs/host-setup.md` "Fleet Skills Install" states. Until then each machine's Codex and opencode copy holds the previous skill set, which `--report` says, while Claude Code serves whatever the hub checkout holds.
8. **Refresh the machines after promotion**: re-run `python3 scripts/skills_install.py --snapshot-only` per machine, from a freshly fetched `main`, the cadence `docs/host-setup.md` "Fleet Skills Install" states. Until then each machine's Codex and opencode copy holds the previous skill set, which `--report` says, while Claude Code serves whatever the hub checkout holds.

## Changing or Retiring a Skill

Expand Down
6 changes: 4 additions & 2 deletions .github/skills/check-this-repo/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@ repo.

## What it is safe to fix on its own

- **Re-run the installer**, `python3 scripts/skills_install.py`, from that same `main` checkout,
when `--report` exits non-zero.
- **Re-run the installer**, `python3 scripts/skills_install.py --snapshot-only`, from that same
`main` checkout, when `--report` exits non-zero. `--snapshot-only` refreshes the copy and leaves
the Claude Code registration alone, since a fetched checkout is not one that registration should
load from.
This is a per-machine, local-only change, nothing in it touches this repo's git history or
needs a review.

Expand Down
Loading
Loading