agentleFS
armyofagentsarmyofagents/Army-of-Agents/skills/release/SKILL.md

release

Skill9 starsChanged 2 months agoMITView on GitHub

Coordinate a full AoA release across engineering, website publishing, and social announcement. Use when CTO/CEO requests "do a release" or "release vX.Y.Z". Runs pre-flight checks, generates changelog via release-changelog, executes npm release, creates cross-project follow-up tasks, and posts a release wrap-up.

  • Reads credentials
  • Installs packages
  • Commits and pushes

193 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use changelog-style, docs-consistency-check and 9 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.
  • 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

  • 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

    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

  • 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

  • parcadeiSkill

    agent-context-isolation

    Agent Context Isolation

    Also in 3 projects that use this

  • +3 more from Grinv

The file

Show its rules and text

We split this skill into the rules it gives an agent

30 rules. 0 are common, 23 are distinctive, and 7 are very specific to this project.

  • 0

    Common

    Most of the 179 edited versions we read keep these.

  • 23

    Distinctive

    This author's own choices. Worth a look.

  • 7

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run the full AoA release process as an organizational workflow, not just an npm publish.

    line 13
  2. Distinctive:

    Use this skill when leadership asks for:

    line 29
  3. Distinctive:

    Before proceeding, verify all of the following:

    line 38
  4. Distinctive:

    If running via AoA, you have issue context for posting status updates.

    line 45
  5. Distinctive:

    If any precondition fails, stop and report the blocker.

    line 47
  6. Very specific:

    The golden rule: If a git tag v{version} already exists, the release is fully promoted.

    line 76
  7. Distinctive:

    If the version exists on npm but there's no git tag, the canary was published but not yet promoted — resume from smoke test.

    line 78
  8. Distinctive:

    Run pre-flight in the App repo root:

    line 90
  9. Distinctive:

    If requested bump is lower than required minimum, escalate bump and explain why.

    line 116
  10. Distinctive:

    Do not publish until reviewer confirms.

    line 134
  11. Distinctive:

    Idempotency check: Before publishing, check if this version already exists on npm:

    line 143
  12. Distinctive:

    If a git tag exists → the release is already fully promoted.

    line 154
  13. Distinctive:

    If the version exists on npm but no git tag → canary was published but not yet promoted.

    line 155
  14. Distinctive:

    If neither exists → proceed with canary publish.

    line 157
  15. Very specific:

    Use release.sh with the --canary flag (see script changes below):

    line 161
  16. Distinctive:

    After publish, verify the canary is accessible:

    line 175
  17. Very specific:

    Script changes required: Add --canary support to scripts/release.sh:

    line 188
  18. Very specific:

    When --canary: pass --tag canary to changeset publish

    line 190
  19. Very specific:

    When --canary: skip the git commit and tag step (Step 7)

    line 191
  20. Very specific:

    When NOT --canary: behavior is unchanged (backwards compatible)

    line 192
  21. Distinctive:

    Run the canary in a clean Docker environment to verify the scoped CLI package works end-to-end.

    line 198
  22. Distinctive:

    Use the existing Docker smoke test infrastructure with the canary version:

    line 203
  23. Distinctive:

    Do NOT promote the canary.

    line 228
  24. Distinctive:

    Idempotency check: Before creating tasks, search for existing ones:

    line 277
  25. Distinctive:

    If matching tasks already exist (check title contains the version), skip creation and link the existing tasks instead.

    line 284
  26. Distinctive:

    Create at least two tasks in AoA (only if they don't already exist):

    line 287
  27. Very specific:

    Keep issue in_progress until canary is promoted AND website + social tasks are done.

    line 343
  28. Distinctive:

    If waiting on another team, keep open with clear owner and next action.

    line 346
  29. Distinctive:

    If blocked, update the release issue explicitly with:

    line 386
  30. Distinctive:

    Never silently fail mid-release.

    line 392

“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

Release Coordination Skill

Run the full AoA release process as an organizational workflow, not just an npm publish.

This skill coordinates:

  • User-facing changelog generation (release-changelog skill)
  • Canary publish to npm (scripts/release.sh --canary)
  • Docker smoke test of the canary (scripts/docker-onboard-smoke.sh)
  • Promotion to latest after canary is verified
  • Website publishing task creation
  • CMO announcement task creation
  • Final release summary with links

Trigger

Use this skill when leadership asks for:

  • "do a release"
  • "release {patch|minor|major}"
  • "release vX.Y.Z"

Preconditions

Before proceeding, verify all of the following:

  1. skills/release-changelog/SKILL.md exists and is usable.
  2. The release-changelog dependency work is complete/reviewed before running this flow.
  3. App repo working tree is clean.
  4. There are commits since the last release tag.
  5. You have release permissions (npm whoami succeeds for real publish).
  6. If running via AoA, you have issue context for posting status updates.

If any precondition fails, stop and report the blocker.


Inputs

Collect these inputs up front:

  • Release request source issue (if in AoA)
  • Requested bump (patch|minor|major) or explicit version (vX.Y.Z)
  • Whether this run is dry-run or live publish
  • Company/project context for follow-up issue creation

Step 0 — Idempotency Guards

Each step in this skill is designed to be safely re-runnable. Before executing any step, check whether it has already been completed:

StepHow to CheckIf Already Done
Changelogreleases/v{version}.md existsRead it, ask reviewer to confirm or update. Do NOT regenerate without asking.
Canary publishnpm view @armyofagents/cli@{version} succeedsSkip canary publish. Proceed to smoke test.
Smoke testManual or scripted verificationIf canary already verified, proceed to promote.
Promotegit tag v{version} existsSkip promotion entirely. A tag means the version is already promoted to latest.
Website taskSearch AoA issues for "Publish release notes for v{version}"Skip creation. Link the existing task.
CMO taskSearch AoA issues for "release announcement tweet for v{version}"Skip creation. Link the existing task.

The golden rule: If a git tag v{version} already exists, the release is fully promoted. Only post-publish tasks (website, CMO, wrap-up) should proceed. If the version exists on npm but there's no git tag, the canary was published but not yet promoted — resume from smoke test.

Iterating on changelogs: You can re-run this skill with an existing changelog to refine it before the npm publish step. The release-changelog skill has its own idempotency check and will ask the reviewer what to do with an existing file. This is the expected workflow for iterating on release notes.


Step 1 - Pre-flight and Version Decision

Run pre-flight in the App repo root:

LAST_TAG=$(git tag --sort=-version:refname | head -1)
git diff --quiet && git diff --cached --quiet
git log "${LAST_TAG}..HEAD" --oneline --no-merges | head -50

Then detect minimum required bump:

# migrations
git diff --name-only "${LAST_TAG}..HEAD" -- packages/db/src/migrations/

# schema deltas
git diff "${LAST_TAG}..HEAD" -- packages/db/src/schema/

# breaking commit conventions
git log "${LAST_TAG}..HEAD" --format="%s" | rg -n 'BREAKING CHANGE|BREAKING:|^[a-z]+!:' || true

Bump policy:

  • Destructive migration/API removal/major changeset/breaking commit -> major
  • Additive migrations or clear new features -> at least minor
  • Fixes-only -> patch

If requested bump is lower than required minimum, escalate bump and explain why.


Step 2 - Generate Changelog Draft

First, check if releases/v{version}.md already exists. If it does, the release-changelog skill will detect this and ask the reviewer whether to keep, regenerate, or update it. Do not silently overwrite an existing changelog.

Invoke the release-changelog skill and produce:

  • releases/v{version}.md
  • Sections ordered as: Breaking Changes (if any), Highlights, Improvements, Fixes, Upgrade Guide (if any)

Required behavior:

  • Present the draft for human review.
  • Flag ambiguous categorization items.
  • Flag bump mismatches before publish.
  • Do not publish until reviewer confirms.

Step 3 — Publish Canary

The canary is the gatekeeper: every release goes to npm as a canary first. The latest tag is never touched until the canary passes smoke testing.

Idempotency check: Before publishing, check if this version already exists on npm:

# Check if canary is already published
npm view @armyofagents/cli@{version} version 2>/dev/null && echo "ALREADY_PUBLISHED" || echo "NOT_PUBLISHED"

# Also check git tag
git tag -l "v{version}"
  • If a git tag exists → the release is already fully promoted. Skip to Step 6.
  • If the version exists on npm but no git tag → canary was published but not yet promoted. Skip to Step 4 (smoke test).
  • If neither exists → proceed with canary publish.

Publishing the canary

Use release.sh with the --canary flag (see script changes below):

# Dry run first
./scripts/release.sh {patch|minor|major} --canary --dry-run

# Publish canary (after dry-run review)
./scripts/release.sh {patch|minor|major} --canary

This publishes all packages to npm with the canary dist-tag. The latest tag is not updated. Users running the scoped CLI package still get the previous stable version.

After publish, verify the canary is accessible:

npm view @armyofagents/cli@canary version
# Should show the new version

How --canary works in release.sh:

  • Steps 1-5 are the same (preflight, changeset, version, build, CLI bundle)
  • Step 6 uses npx changeset publish --tag canary instead of npx changeset publish
  • Step 7 does NOT commit or tag — the commit and tag happen later in the promote step, only after smoke testing passes

Script changes required: Add --canary support to scripts/release.sh:

  • Parse --canary flag alongside --dry-run
  • When --canary: pass --tag canary to changeset publish
  • When --canary: skip the git commit and tag step (Step 7)
  • When NOT --canary: behavior is unchanged (backwards compatible)

Step 4 — Smoke Test the Canary

Run the canary in a clean Docker environment to verify the scoped CLI package works end-to-end.

Automated smoke test

Use the existing Docker smoke test infrastructure with the canary version:

AOA_CLI_VERSION=canary ./scripts/docker-onboard-smoke.sh

This builds a clean Ubuntu container, installs @armyofagents/cli@canary via npx, and runs the onboarding flow. The UI is accessible at http://localhost:3131.

What to verify

At minimum, confirm:

  1. Container starts — no npm install errors, no missing dependencies
  2. Onboarding completes — the wizard runs through without crashes
  3. Server boots — UI is accessible at the expected port
  4. Basic operations — can create a company, view the dashboard

For a more thorough check (stretch goal — can be automated later):

  1. Browser automation — script Playwright/Puppeteer to walk through onboard in the Docker container's browser and verify key pages render

If smoke test fails

  • Do NOT promote the canary.
  • Fix the issue, publish a new canary (re-run Step 3 — idempotency guards allow this since there's no git tag yet).
  • Re-run the smoke test.

If smoke test passes

Proceed to Step 5 (promote).


Step 5 — Promote Canary to Latest

Once the canary passes smoke testing, promote it to latest so that the scoped CLI package picks up the new version.

Promote on npm

./scripts/release.sh --promote {release-version}

The script discovers every non-private @armyofagents/* pnpm workspace and promotes each package's current version. Do not maintain a package list by hand: public workspaces do not all share one version. The legacy Private workspaces are outside AoA's npm publish graph.

Promotion also creates the release commit, repository-level v{version} tag, and GitHub release. Push the commit and tag after the script succeeds:

git push
git push origin "v{version}"

Verify promotion

npm view @armyofagents/cli@latest version
# Should now show the new version

# Final sanity check
npx --yes --package @armyofagents/cli@latest aoa --version

Step 6 - Create Cross-Project Follow-up Tasks

Idempotency check: Before creating tasks, search for existing ones:

GET /api/companies/{companyId}/issues?q=release+notes+v{version}
GET /api/companies/{companyId}/issues?q=announcement+tweet+v{version}

If matching tasks already exist (check title contains the version), skip creation and link the existing tasks instead. Do not create duplicates.

Create at least two tasks in AoA (only if they don't already exist):

  1. Website task: publish changelog for v{version}
  2. CMO task: draft announcement tweet for v{version}

When creating tasks:

  • Set parentId to the release issue id.
  • Carry over goalId from the parent issue when present.
  • Include billingCode for cross-team work when required by company policy.
  • Mark website task high priority if release has breaking changes.

Suggested payloads:

POST /api/companies/{companyId}/issues
{
  "projectId": "{websiteProjectId}",
  "parentId": "{releaseIssueId}",
  "goalId": "{goalId-or-null}",
  "billingCode": "{billingCode-or-null}",
  "title": "Publish release notes for v{version}",
  "priority": "medium",
  "status": "todo",
  "description": "Publish /changelog entry for v{version}. Include full markdown from releases/v{version}.md and prominent upgrade guide if breaking changes exist."
}
POST /api/companies/{companyId}/issues
{
  "projectId": "{workspaceProjectId}",
  "parentId": "{releaseIssueId}",
  "goalId": "{goalId-or-null}",
  "billingCode": "{billingCode-or-null}",
  "title": "Draft release announcement tweet for v{version}",
  "priority": "medium",
  "status": "todo",
  "description": "Draft launch tweet with top 1-2 highlights, version number, and changelog URL. If breaking changes exist, include an explicit upgrade-guide callout."
}

Step 7 - Wrap Up the Release Issue

Post a concise markdown update linking:

  • Release issue
  • Changelog file (releases/v{version}.md)
  • npm package URL (both @canary and @latest after promotion)
  • Canary smoke test result (pass/fail, what was tested)
  • Website task
  • CMO task
  • Final changelog URL (once website publishes)
  • Tweet URL (once published)

Completion rules:

  • Keep issue in_progress until canary is promoted AND website + social tasks are done.
  • Mark done only when all required artifacts are published and linked.
  • If waiting on another team, keep open with clear owner and next action.

Release Flow Summary

The full release lifecycle is now:

1. Generate changelog      → releases/v{version}.md (review + iterate)
2. Publish canary           → npm @canary dist-tag (latest untouched)
3. Smoke test canary        → Docker clean install verification
4. Promote to latest        → npm @latest dist-tag + git tag + commit
5. Create follow-up tasks   → website changelog + CMO tweet
6. Wrap up                  → link everything, close issue

At any point you can re-enter the flow — idempotency guards detect which steps are already done and skip them. The changelog can be iterated before or after canary publish. The canary can be re-published if the smoke test reveals issues (just fix + re-run Step 3). Only after smoke testing passes does latest get updated.


AoA API Notes (When Running in Agent Context)

Use:

  • GET /api/companies/{companyId}/projects to resolve website/workspace project IDs.
  • POST /api/companies/{companyId}/issues to create follow-up tasks.
  • PATCH /api/issues/{issueId} with comments for release progress.

For issue-modifying calls, include:

  • Authorization: Bearer $AOA_API_KEY
  • X-AoA-Run-Id: $AOA_RUN_ID

Failure Handling

If blocked, update the release issue explicitly with:

  • what failed
  • exact blocker
  • who must act next
  • whether any release artifacts were partially published

Never silently fail mid-release.

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.