agentleFS
ElasticKnown publisherelastic/apm-agent-android/skills/android-release-wizard/SKILL.md

android-release-wizard

Skill43 starsChanged 3 months agoApache-2.0View on GitHub

Guide an EDOT Android main or patch release from current GitHub state. Propose patch candidates or release notes, refine them with the operator, and dispatch the appropriate workflow only after explicit approval. Use when the operator asks to prepare, start, or continue an Android SDK release.

The file

Show its rules and text

We split this skill into the rules it gives an agent

16 rules. About 0 are common, 6 are distinctive, and 10 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 10

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before you start, ensure the local repository reflects the latest remote state.

    line 14
  2. Very specific:

    If a releasing/* branch exists, report the operator's next action and stop:

    line 20
  3. Very specific:

    After a release from main published, merge the pull request from releasing/x.y.z into main and delete that branch.

    line 23
  4. Very specific:

    After a patch published, merge the notes pull request from patch-notes/x.y.z into main, then delete patching/x.y.z and releasing/x.y.z.

    line 25
  5. Distinctive:

    When the operator wants the next release from main:

    line 46
  6. Very specific:

    Run from the repository root, with <main-ref> as the up-to-date main ref, normally origin/main:

    line 48
  7. Very specific:

    Read the last two or three versions in docs/release-notes/index.md and match their style: short, user-facing, one line per change.

    line 55
  8. Very specific:

    Place each uncategorized item in the group you believe fits, or propose deleting it when it does not belong in user-facing notes, for …

    line 61
  9. Distinctive:

    When the operator wants a patch:

    line 73
  10. Very specific:

    If no patching/* branch exists, ask for an X.Y release line or accept latest.

    line 75
  11. Very specific:

    Read the source tag date. List merged main pull requests labeled bug whose merge time is after that date.

    line 80
  12. Distinctive:

    After explicit approval, dispatch:

    line 85
  13. Very specific:

    If patching/x.y.z already exists, do not dispatch Start patch.

    line 91
  14. Very specific:

    After the notes are approved, dispatch Prepare release with --ref patching/x.y.z.

    line 97
  15. Distinctive:

    Ask the operator to confirm, or to say what to change.

    line 112
  16. Distinctive:

    Treat only an explicit go-ahead as approval, such as "looks good", "approved", "continue", "go ahead", or "dispatch".

    line 116

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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

Android release wizard

Work in the conversation only. Do not edit files, push, merge, publish, or tag. Do not run the dispatch until the operator explicitly approves.

The ideal run is one round: the operator reads your proposal and says "go ahead". Do the work up front so that is possible.

Before you start, ensure the local repository reflects the latest remote state. If this skill or the release scripts changed, continue from the updated versions. Then read GitHub state:

  • List patching/* and releasing/* branches.
  • List open pull requests whose base is one of those branches.
  • If a releasing/* branch exists, report the operator's next action and stop:
    • While its preparation pull request is open, review and merge it.
    • After a release from main published, merge the pull request from releasing/x.y.z into main and delete that branch.
    • After a patch published, merge the notes pull request from patch-notes/x.y.z into main, then delete patching/x.y.z and releasing/x.y.z.

Inputs

Prepare release takes one input. Every proposal round shows it in readable form so the operator sees exactly what will run.

  • release_notes: JSON with dependencies, featuresEnhancements, fixes, and uncategorized arrays. Each item has message, optional prId, and optional boolean breaking. Prepare release rejects leftover uncategorized items, empty notes, and a message that starts with [Breaking]; the flag adds that prefix when the notes are rendered.

The version follows from the notes. Any breaking: true item produces a major release; otherwise the main flow produces the next minor. A patch cannot contain a breaking item.

Main release

When the operator wants the next release from main:

  1. Run from the repository root, with <main-ref> as the up-to-date main ref, normally origin/main:

    GITHUB_REPOSITORY=elastic/apm-agent-android .github/scripts/release/draft-release-notes.sh <main-ref>
  2. Read the last two or three versions in docs/release-notes/index.md and match their style: short, user-facing, one line per change.
  3. For each pull request, write the message you believe belongs in the notes: what changed for users of the SDK. Read the pull request description and, when the title is not enough, its diff. Keep the title only when it already reads like a release note.
  4. Place each uncategorized item in the group you believe fits, or propose deleting it when it does not belong in user-facing notes, for example release bookkeeping or CI-only changes. Mark each such decision as proposed and say why in a few words.
  5. Mark an item breaking: true when it looks breaking and state the reason. Show the release version that follows from the complete notes. If the operator asks for a major release and no item is breaking, explain that a major requires a breaking item and ask which change is breaking.
  6. Continue with the approval loop.

Patch release

When the operator wants a patch:

  1. If no patching/* branch exists, ask for an X.Y release line or accept latest.
  2. Resolve latest to the line of the highest release tag. Resolve the source with version.sh highest-tag <line> and the version with version.sh next-patch <tag>.
  3. Read the source tag date. List merged main pull requests labeled bug whose merge time is after that date. Add any pull requests the operator names.
  4. Show the source tag, patch version, and proposed cherry-pick candidates. Explain briefly why each candidate belongs.
  5. After explicit approval, dispatch:

    gh workflow run start-patch.yml -R elastic/apm-agent-android --ref main -f line='<X.Y>' -f pull_requests='<numbers>'
  6. If patching/x.y.z already exists, do not dispatch Start patch. List new candidates and explain that each selected fix must be cherry-picked by hand through a pull request into that branch.
  7. For an existing patch branch, offer to draft notes from that branch with RELEASE_REF_NAME=patching/x.y.z set for draft-release-notes.sh and the branch as <ref>, so the range starts at the branch's source tag. After the notes are approved, dispatch Prepare release with --ref patching/x.y.z.

Refine until approved

Repeat until the operator explicitly approves:

  1. Show the summary of every input as it stands:
    • The release notes as readable Markdown, not JSON: a list per group, one line per item as message (#prId), with breaking items marked and listed first.
    • Items proposed for deletion, each with its reason.
    • Each proposed breaking flag and its reason.
    • The release version that follows.
    • Anything still marked as proposed and not yet confirmed.
  2. Ask the operator to confirm, or to say what to change.
  3. Apply the requested changes in the conversation. Use the operator's wording as given.

Treat only an explicit go-ahead as approval, such as "looks good", "approved", "continue", "go ahead", or "dispatch". A go-ahead confirms every proposal shown in that summary. Treat a question, a comment, partial feedback, or silence as more feedback. When unsure whether the operator approved, ask.

Dispatch

  1. Record the time, then dispatch from the selected ref with the approved JSON on standard input through a quoted heredoc, so no character in the notes is interpreted by the shell:

    since=$(date -u +%Y-%m-%dT%H:%M:%SZ)
    gh workflow run prepare-release.yml -R elastic/apm-agent-android --ref '<main-or-patching/x.y.z>' -F release_notes=@- <<'EOF'
    <json>
    EOF
  2. Report the URL of the run created after that time. The run can take a few seconds to appear; repeat the command until it prints a URL:

    gh run list -R elastic/apm-agent-android --workflow prepare-release.yml --event workflow_dispatch --limit 5 --json url,createdAt --jq ".[] | select(.createdAt > \"$since\") | .url"

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.