Skip to content
Security
Agent

companion-template-sync

Pull newest GitHub Actions versions from companion repos back into `.companions/templates/`. Dependabot updates each companion repo's rendered workflows directly, but templates aren't scanned (see `companions.md`) — this workflow reverse-syncs those bumps so the next

From plugin
jwx
2.4k9 skills9 agents

Claude Code

> /plugin marketplace add lestrrat-go/jwx
> /plugin install jwx-dev-v4@jwx-v4

Agent definition

companion-template-sync.md

Companion Template Action Sync

Pull newest GitHub Actions versions from companion repos back into `.companions/templates/`. Dependabot updates each companion repo's rendered workflows directly, but templates aren't scanned (see `companions.md`) — this workflow reverse-syncs those bumps so the next `/jwx-companion-bulk sync` doesn't regress them.

When to run

  • User asks to bump template actions / "sync templates with dependabot"
  • Periodically, when template actions feel stale

Procedure

1. **Sync every companion clone** under `.companions/repo/<name>/` to its origin default branch (fast-forward only). Every clone — this is a pre-read rule from memory.

2. **Scan `uses:` lines** across all companion workflow files:

   Grep pattern: uses:\s*\S+/\S+@
   path: .companions/repo
   glob: **/.github/**/*.yml

Output goes to `.tmp/` if large.

3. **Pick newest version per action**, across all companion usages (ignore benchmarks' loose `@vN` tags — they're a different pin style). Tie-break by the version comment after `#`. Apply the single newest version everywhere.

4. **Diff against templates** in `.companions/templates/*.yml`. Edit templates so every `uses: owner/repo@<sha> # <ver>` matches the newest observed version (both SHA and comment).

5. **Worktree + PR** against `develop/v4`:

  • branch: `chore-bump-companion-template-actions`
  • commit: `bump <action> to <ver> in companion templates`
  • PR body: bullet list of file + action + old→new version

Notes

  • Only reverse-sync versions *observed in companions*. Don't query the GitHub

API for newer releases — that's dependabot's job in the companion repos.

  • If no companion has been bumped past the template yet, there's nothing to

do.

  • The `benchmarks` companion uses loose `@v6`/`@v9` tags for ci.yml/lint.yml

(separate template variants scoped via `skip:`/`only:` in `.companions/templates.yaml`). Skip those when picking the newest pinned SHA.

Read more
@lestrrat-go
Ships withjwx

Go module implementing various JWx (JWA/JWE/JWK/JWS/JWT, otherwise known as JOSE) technologies. If you are using this module in your product or your company, please add your product and/or company name in the Wiki! It really helps keeping up our motivation.

2.4k2 skills9 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
2.4k
Star history of lestrrat-go/jwx on GitHub, a chart by star-history.com

Other agents on jwx.

companions

companions

Agent

Extension modules under `github.com/jwx-go/*` (asmbase64, compsig, ed448, es256k, examples, jwkfetch, jwxfilter, jwxmigrate,…

@lestrrat-go@lestrrat-goInstall Agent
internals

internals

Agent

<!-- Agent-consumed file. Keep terse, unambiguous, machine-parseable. -->

@lestrrat-go@lestrrat-goInstall Agent
packages

packages

Agent

<!-- Agent-consumed file. Keep terse, unambiguous, machine-parseable. -->

@lestrrat-go@lestrrat-goInstall Agent
release

release

Agent

How to release a new version on a `develop/v*` → `v*` line (e.g. v3.1.0). Assumes all code and changelog entries are already on…

@lestrrat-go@lestrrat-goInstall Agent

More agents from other plugins.

dependency-review

dependency-review

Agent

<!-- SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. --> <!--…

@nvidia@nvidiaInstall Agent
0-preflight

0-preflight

Agent

Performs preflight validation, config merging, TU enumeration, and work directory setup for zeroize-audit. Produces…

skills10d8.2k
@trailofbits@trailofbitsInstall Agent
autopilot

autopilot

Agent

Autonomous hunt loop agent. Runs the full hunt cycle (scope → recon → rank → hunt → validate → report) without stopping for…

@awarexone@awarexoneInstall Agent
autopilot

autopilot

Agent

Autonomous hunt loop agent. Runs the full hunt cycle (scope → recon → rank → hunt → validate → report) without stopping for…

@shuvonsec@shuvonsecInstall Agent

Questions about companion-template-sync.

Which coding agents can use companion-template-sync?
companion-template-sync installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.