agentleFS
hyperstructurehyperstructure/fctl/.claude/skills/release/SKILL.md

release

Skill9 starsChanged 12 days agoMITView on GitHub

Release a new version of fctl through the Release workflow, which publishes the archives to GitHub and fctl.sh/releases and the standalone control plane's image to GHCR, updates the CHANGELOG and redeploys app.fctl.sh; hyperstructure/sandbox then publishes the release's sandbox image to GHCR, and hyperstructure/homebrew-tap updates its Homebrew formula to the release. Only for people and agents with release access (write access to Actions on hyperstructure/fctl). Use when asked to release, publish or ship fctl, to preview what the next release contains, or to fix a failed release.

193 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use create-agent-adapter, changelog-style and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    create-agent-adapter

    Technical guide for creating a new Paperclip agent adapter. Use when building a new adapter package, adding support for a new AI coding tool (e.g. a new CLI agent, API-based agent, or custom process), or when modifying the adapter system. Covers the required interfaces, module structure, registration points, and conventions derived from the existing claude-local and codex-local adapters.

    Also in 6 projects that use this

  • GrinvSkill

    changelog-style

    Turn a commit range into CHANGELOG.md entries following common-changelog style. Use when finishing a PR (adding to the [Unreleased] section) or cutting a release (moving [Unreleased] under a new version heading).

    Also in 4 projects that use this

  • Microsoft AzureSkill

    component-release

    Prepares and validates GPT-RAG MCP component releases. Use for versions, dependency locks, changelog entries, release branches, tags, GitHub Releases, and platform pin coordination.

    Also in 4 projects that use this

  • GrinvSkill

    docs-consistency-check

    Check README/manifest.json/server.json/CHANGELOG.md/AGENTS.md and docs/*.md for drift against the actual registered tools and source. Use after adding, renaming, or removing a tool, or as part of a live-audit pass.

    Also in 4 projects that use this

  • Microsoft AzureSkill

    documentation-consistency

    Keeps AI Landing Zone contributor, user, and operator documentation aligned with shipped Bicep behavior. Use for parameters, defaults, outputs, topology, deployment flow, operations, or releases.

    Also in 8 projects that use this

  • m13vSkill

    test-release

    Use when the user says "test the release", "smoke test", "verify the build works", "test staging", "test the new version", or after promoting a release to staging/beta/stable. Smoke-tests the shipped Fazm production app via Sparkle auto-update on local + MacStadium, sends test queries via distributed notifications, checks logs. Does NOT build anything.

    Also in 3 projects that use this

  • +3 more from Grinv

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 0 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 179 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read the notes as a user would.

    line 35
  2. Very specific:

    Follow it with gh run watch or in the Actions tab.

    line 93
  3. Very specific:

    When the bump itself failed, its run in the tap says why (gh run list -R hyperstructure/homebrew-tap --workflow autobump.yml).

    line 171
  4. Very specific:

    Never move or delete a published tag or its files on fctl.sh: installed CLIs and hosts download releases by version.

    line 176

“Common” is measured: kept by at least 6 in 10 of the 179 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Releasing fctl

Releases are made from main by the Release workflow (.github/workflows/release.yml). Never edit the version, write CHANGELOG.md or push tags by hand: the workflow does all three, and a ruleset lets only its deploy key create v* tags.

Starting the workflow needs write access to Actions. Agents in fctl sessions have read access only, so if you are one, ask a person to start it (or to give you access) and stop there.

1. Before

  • CI passed on the newest commit of main, and everything meant for the release is merged.
  • Preview the version and notes:

    git switch main && git pull
    cargo xtask release --dry-run

    or run the workflow with dry_run from main (every run starts from main: its jobs use the production environment); its summary shows the same. The version follows the commits since the last tag: a breaking change bumps the minor version (the major one from 1.0), a feat the minor version, anything else the patch. Override it only for a reason, with bump=patch|minor|major.

  • Read the notes as a user would. A badly worded title cannot be changed on main, but you can edit the GitHub release text and CHANGELOG.md afterwards (a docs: pull request).

2. Release

gh workflow run release.yml --ref main -f bump=auto

or GitHub → Actions → Release → Run workflow. With the GitHub App API: POST /repos/hyperstructure/fctl/actions/workflows/release.yml/dispatches with {"ref": "main", "inputs": {"bump": "auto"}}.

It runs in five steps, and a sixth beside them:

  1. Version and notes: cargo xtask release sets the version in Cargo.toml and Cargo.lock, adds the notes to CHANGELOG.md, commits chore(release): vX.Y.Z, tags it, and pushes both to main at once with RELEASE_DEPLOY_KEY, the deploy key that the rulesets on main and v* tags let through (a main that moved meanwhile rejects the push; start it again). Like any push to main, that starts CI, which redeploys app.fctl.sh.
  2. Build: a job for each binary, all at once (cargo xtask dist build): fctl for macOS and Linux (arm64 and x86_64) and the Linux agents.
  3. Publish: makes the archives from those binaries (cargo xtask dist package), creates the GitHub release with the notes, publishes the files to https://fctl.sh/releases (moving latest), and installs it with the installer as a check.
  4. Homebrew tap: starts the brew bump workflow of hyperstructure/homebrew-tap with the version. That workflow waits until livecheck finds the release on fctl.sh, then opens a pull request, fctl X.Y.Z, with the formula's new URLs and checksums for every platform, and merges it once the tap's checks pass on it.
  5. Sandbox image, beside Homebrew tap: runs the Image workflow of hyperstructure/sandbox with the version and waits for it, failing when it fails. GitHub keeps one run of that workflow waiting, so a newer one cancels it while it waits; the job then starts it again, up to three times. It builds the release's sandbox image from that repository's main, checks it, and publishes ghcr.io/hyperstructure/sandbox:X.Y.Z for arm64 and amd64, moving X.Y and latest. Hosts of the new version pull it; until it is there, their sessions start from latest. The job's summary links the run.
  6. Standalone image, beside Build and Publish: the Standalone image workflow (.github/workflows/standalone-image.yml) builds the control plane without Cloudflare (deploy/standalone) at the tag, runs a session through it, and only then publishes ghcr.io/hyperstructure/fctl-control:X.Y.Z for arm64 and amd64, moving X.Y and latest when the release is the newest they cover.

Homebrew tap and Sandbox image start those repositories' workflows with tokens of the organization's fctl-actions GitHub App, whose key is FCTL_ACTIONS_PRIVATE_KEY in the production environment: each token covers one repository, with Actions write alone.

Follow it with gh run watch or in the Actions tab. Build and Publish take about 10 minutes, and the sandbox image about 7 more; the standalone image, which runs a session before it publishes, ends the run after about 20.

3. After

  • curl -fsS https://fctl.sh/releases/latest prints the new version, and fctl self update --check sees it.
  • The GitHub release and CHANGELOG.md on main have the notes.
  • https://app.fctl.sh/api/v1/health reports the version once CI is done.
  • docker buildx imagetools inspect ghcr.io/hyperstructure/fctl-control:X.Y.Z lists linux/amd64 and linux/arm64.
  • Once the Sandbox image job passed, docker buildx imagetools inspect ghcr.io/hyperstructure/sandbox:X.Y.Z lists linux/amd64 and linux/arm64 (gh run list -R hyperstructure/sandbox --workflow image.yml shows the runs).
  • Within about 15 minutes, hyperstructure/homebrew-tap has merged a pull request, fctl X.Y.Z, and brew upgrade fctl installs the release (gh pr list -R hyperstructure/homebrew-tap --state all). Its brew bump run waits for the pull request's checks and merges it once they pass; if one fails, the pull request stays open and the run fails.
  • Hosts update themselves within minutes of the archives' publication, unless their host.toml turns that off: those, and Homebrew's, update with fctl self update (or brew upgrade fctl); either restarts the host service, and running sessions keep going.

When something fails

  • Before the release commit (version and notes failed): fix the cause in a pull request, merge it, start the workflow again.
  • After the tag was pushed (a build or publish failed): if it was the infrastructure, run the failed jobs again (gh run rerun <run-id> --failed, or "Re-run failed jobs" on the run's page); Publish uses the binaries the Build jobs made, which are kept for 7 days, and packs the same archives again byte for byte, so it uploads the files already published. Homebrew tap and Sandbox image are skipped when Publish fails, and run after it once it passes. Or rebuild the tag from the start with gh workflow run release.yml --ref main -f tag=vX.Y.Z. If the code is broken, fix it and release a patch.
  • The standalone image (its Build and run a session job failed, or its Publish job did): nothing is published until a session has run through the image. If it was the infrastructure, run the failed jobs again, or publish the image on its own: gh workflow run standalone-image.yml --ref main -f tag=vX.Y.Z. A rebuild of the tag publishes it again too, under the same tags. If the image is broken, fix it in a pull request (one that changes deploy/standalone runs the same session) and release a patch. If the workflow is at fault, fix it in a pull request, then publish the image on its own: a re-run uses the workflows of the commit its run started from, so it fails the same way.
  • The fctl-actions app (Homebrew tap or Sandbox image failed at "Create a token for the fctl-actions app"): the release itself is out, and the tap's daily run and the sandbox's hourly run catch up, hours late at times. The error says why: FCTL_ACTIONS_PRIVATE_KEY is missing from the production environment, or its key was deleted; the app isn't installed on the repository ("Not Found"); or it lacks Actions read and write ("The permissions requested are not granted to this installation"). A person with admin access in the organization fixes the app or its installation, or generates a key in the app's settings and replaces the secret (gh secret set FCTL_ACTIONS_PRIVATE_KEY --env production -R hyperstructure/fctl < key.pem), then runs the failed jobs again.
  • The sandbox image (the Sandbox image job failed after it started a run): the run its summary links says why, and hyperstructure/sandbox's publish skill says what to do. The image is built from that repository's main, so fixing it takes a pull request there, not an fctl release; once merged, it publishes the newest release's image by itself. If it was the infrastructure, run the failed job again, which starts a new run; one that finds the image current publishes nothing. To build the image without the job: gh workflow run image.yml -R hyperstructure/sandbox -f version=X.Y.Z.
  • The Homebrew tap (the Homebrew tap job failed, or the tap has no pull request for the release): the release itself is out, and the tap's daily run proposes it anyway. Run the failed job again, or start the bump with gh workflow run autobump.yml -R hyperstructure/homebrew-tap -f version=X.Y.Z. When the bump itself failed, its run in the tap says why (gh run list -R hyperstructure/homebrew-tap --workflow autobump.yml). A pull request it opened but didn't merge (a check failed, or it didn't finish in 45 minutes) stays open, and later runs leave it be: fix it there, and a code owner merges it.
  • Never move or delete a published tag or its files on fctl.sh: installed CLIs and hosts download releases by version.

Other repositories

  • hyperstructure/design releases are tags as well; see its AGENTS.md and release skill.
  • hyperstructure/fctl-site deploys from main and has no releases.
  • hyperstructure/sandbox publishes the sandbox image from main, for every fctl release; see its AGENTS.md and publish skill.
  • hyperstructure/homebrew-tap has the Homebrew formula, which its brew bump workflow updates in a pull request for every fctl release and merges once its checks pass.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.