agentleFS
az-coder-123az-coder-123/azdroid/.agents/skills/deploy-release/SKILL.md

deploy-release

Skill8 starsChanged 40 days agoMITView on GitHub

Automates the complete Azdroid release and deployment lifecycle when the user requests "thực hiện deploy", "deploy", "release", "build release", or "phát hành". Executes the canonical ./scripts/deploy.sh pipeline, enforcing version bumping, release notes drafting, README link updates (anti-404 rule), quality verification, packaging, and GitHub publishing.

  • Commits and pushes

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. zhihong1469/plumb-link★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository3 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    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:

    After macOS initiates a release tag, complete the Windows build on a Windows machine:

    line 41
  2. Distinctive:

    After the deployment script completes, AI assistants can verify the live release:

    line 86

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “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

Azdroid Release & Deployment Runbook

This skill automates the complete 7-step release and deployment pipeline for Azdroid.

⚡️ Primary Command for AI Assistants

Whenever a user requests to deploy or publish a release (e.g., "thực hiện deploy", "deploy", "release", "phát hành"):

  1. Inspect recent commits to determine semantic version bump (patch, minor, or major):
    git log --oneline $(git describe --tags --abbrev=0 2>/dev/null || echo "")..HEAD
    • patch: Bug fixes, minor documentation updates.
    • minor: New features, new tools, performance enhancements.
    • major: Breaking architectural changes, protocol rewrites.
  2. Execute the Canonical Deployment Script (macOS):
    ./scripts/deploy.sh <patch|minor|major>
    • For preview/test runs without pushing to GitHub:
      ./scripts/deploy.sh <patch|minor|major> --dry-run
    • For building and committing locally without remote push:
      ./scripts/deploy.sh <patch|minor|major> --no-push
  3. Execute the Canonical Deployment Pipeline (Windows PC): After macOS initiates a release tag, complete the Windows build on a Windows machine:
    powershell -ExecutionPolicy Bypass -File scripts\deploy.ps1
    • For dry-run: powershell -ExecutionPolicy Bypass -File scripts\deploy.ps1 -DryRun
    • With sandbox verification: powershell -ExecutionPolicy Bypass -File scripts\deploy.ps1 -TestSandbox

🛡️ Mandatory Rules & Invariants (Enforced by Pipeline)

  1. Version Alignment Invariant:
    • Both pubspec.yaml (version: X.Y.Z+N) and lib/core/constants/app_constants.dart (static const String appVersion = 'X.Y.Z';) must be updated in tandem.
    • Verified by flutter test test/unit/app_version_test.dart.
  2. Anti-404 Windows Badge Rule:
    • On README.md, if the new release is macOS-only, the Windows download badge must remain pinned to the latest release tag that actually contains a Windows binary (.../releases/download/v<pinned>/Azdroid-v<pinned>-Windows-x64.zip).
    • NEVER link Windows to /releases/latest/download/... when the latest release lacks a Windows asset (GitHub will return HTTP 404).
  3. Zero Claims Without Code:
    • Release notes in docs/releases/v<version>.md must only document verified features present in code. Never state unverified tool counts, latency numbers, or unreleased platforms.
  4. Zero-Warning Quality Gate:
    • The pipeline strictly runs dart format ., flutter analyze (must return "No issues found!"), and flutter test (100% pass) before committing or packaging.

📋 The 7-Step Pipeline (Under the Hood)

The ./scripts/deploy.sh script automates these stages sequentially:

StepPhaseKey Actions
1Pre-flight ChecksVerifies toolchain (flutter, dart, git, gh, ditto, curl), ensures branch main and clean git working tree.
2Version SynchronizationComputes semantic version and build number (+1), updates pubspec.yaml and app_constants.dart, verifies with unit test.
3Release NotesGenerates docs/releases/v<version>.md structured into New, Improved, Fixed, Known Limitations, and Checksum.
4README & Docs SyncUpdates macOS download badge and install command to v<version>, updates docs/platform-support.md date.
5Quality GateFormats Dart code, executes flutter analyze (zero issues), and runs all tests (flutter test).
6Source CommitCommits all prepared source files with chore(release): prepare v<version>.
7Packaging & GitHub ReleaseCalls scripts/build_release.sh, smoke tests bundled adb and azdroid-mcp, packs ZIPs, commits RELEASE/, pushes to main, and creates GitHub Release via gh release create.

🔍 Post-Deployment Verification

After the deployment script completes, AI assistants can verify the live release:

# 1. Verify GitHub Release asset availability
gh release view v<version> --json assets,url --jq '.url, .assets[].name'

# 2. Verify download URLs return HTTP 200 (no 404)
curl -sIL https://github.com/az-coder-123/azdroid/releases/latest/download/Azdroid-v<version>-macOS.zip | grep -i '^http'

# 3. Verify clean git state
git status

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.