agentleFS
fritzprixfritzprix/ak5/skills/release/SKILL.md

release

Skill2 starsChanged 43 days agoApache-2.0View on GitHub

Automate AK5 version bump and release workflows for PyPI. Use when releasing a new version of AK5 (patch, minor, or major), running pre-flight linting and test suites, compiling embedded Web UI assets, synchronizing lockfiles, and pushing release git tags for automated CI/CD deployment.

  • Deletes or force-pushes
  • 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 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, 4 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 179 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when preparing and publishing a new release of AK5 (Python package on PyPI, embedded Web UI, and TypeScript SDK).

    line 12
  2. Distinctive:

    If you prefer to perform each step manually or need granular debugging:

    line 58
  3. Distinctive:

    Update the version string in the following files:

    line 73
  4. Distinctive:

    After pushing the git tag, GitHub Actions automatically builds and publishes the package to PyPI:

    line 100

“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

AK5 Release Automation Skill

Use this skill when preparing and publishing a new release of AK5 (Python package on PyPI, embedded Web UI, and TypeScript SDK).


1. Release Types & Semantic Versioning

Choose the appropriate release bump based on SemVer 2.0 (MAJOR.MINOR.PATCH):

Release TypeCommandWhen to UseExample
patchpython3 scripts/release.py patch --pushBug fixes, documentation revisions, minor styling or security patches1.0.3 → 1.0.4
minorpython3 scripts/release.py minor --pushNew CLI commands, backwards-compatible API features, new MCP tools1.0.3 → 1.1.0
majorpython3 scripts/release.py major --pushBreaking API/schema changes, major architectural redesigns1.0.3 → 2.0.0

2. One-Command Automated Release

AK5 includes an automated release script that executes the complete quality and publishing pipeline:

# Preview version calculation without modifying files
python3 scripts/release.py patch --dry-run
python3 scripts/release.py minor --dry-run
python3 scripts/release.py major --dry-run

# Run full pipeline: test -> compile web UI -> bump versions -> lock -> build -> commit & push
python3 scripts/release.py patch --push

What the automation script executes:

  1. Pre-flight Quality Check: Runs uv run ruff check backend and uv run pytest backend/tests.
  2. Web UI Compilation: Executes scripts/build_web_ui.sh to compile Next.js static assets into backend/src/ak5/web_ui/.
  3. Monorepo Version Sync: Synchronizes version numbers in:
    • backend/pyproject.toml
    • frontend/package.json
    • packages/sdk/package.json
  4. Lockfile Synchronization: Executes uv lock to update uv.lock.
  5. Distribution Build: Runs uv build backend --out-dir dist.
  6. Isolated wheel smoke (hard gate): Runs scripts/smoke_uvx_wheel.sh — installs the wheel alone (like uvx), asserts greenlet/asyncio import, ak5.main:app, embedded UI, and CLI help. Release must not tag/push if this fails.
  7. Git Tag & Push: Commits changes, tags v<version>, and pushes both master and the tag to GitHub origin.

3. Manual Step-by-Step Procedure

If you prefer to perform each step manually or need granular debugging:

Step 1: Quality Checks

uv run ruff check backend
uv run pytest backend/tests

Step 2: Build Embedded Static Web Assets

chmod +x scripts/build_web_ui.sh
./scripts/build_web_ui.sh

Step 3: Bump Versions

Update the version string in the following files:

  • backend/pyproject.toml (version = "X.Y.Z")
  • frontend/package.json ("version": "X.Y.Z")
  • packages/sdk/package.json ("version": "X.Y.Z")

Step 4: Update Lockfile & Test Wheel Build

uv lock
rm -rf dist
uv build backend --out-dir dist
unzip -l dist/*.whl | grep web_ui  # Verify web UI is bundled

Step 5: Commit, Tag, and Push

VERSION="1.0.4"
git add backend/pyproject.toml frontend/package.json packages/sdk/package.json uv.lock
git commit -m "release: v${VERSION} — bump version to ${VERSION}"
git tag -a "v${VERSION}" -m "v${VERSION} release"
git push origin master
git push origin "v${VERSION}"

4. Post-Release Verification

After pushing the git tag, GitHub Actions automatically builds and publishes the package to PyPI:

Step 1: Monitor GitHub Actions Run

gh run list --workflow=release.yml -L 1

Step 2: Check PyPI Propagation

# Check latest registered version on PyPI
curl -s https://pypi.org/pypi/ak5/json | jq -r '.info.version'

Step 3: Zero-Install Smoke Test

# Verify the published version executes via uvx
uvx --refresh ak5@latest --version

# Verify the server extra (API + embedded dashboard) resolves
uvx --refresh --from 'ak5[server]@latest' ak5 serve --help

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.