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
- Distinctive: line 14
Before you start, ensure the local repository reflects the latest remote state.
- Very specific: line 20
If a releasing/* branch exists, report the operator's next action and stop:
- Very specific: line 23
After a release from main published, merge the pull request from releasing/x.y.z into main and delete that branch.
- Very specific: line 25
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.
- Distinctive: line 46
When the operator wants the next release from main:
- Very specific: line 48
Run from the repository root, with <main-ref> as the up-to-date main ref, normally origin/main:
- Very specific: line 55
Read the last two or three versions in docs/release-notes/index.md and match their style: short, user-facing, one line per change.
- Very specific: line 61
Place each uncategorized item in the group you believe fits, or propose deleting it when it does not belong in user-facing notes, for …
- Distinctive: line 73
When the operator wants a patch:
- Very specific: line 75
If no patching/* branch exists, ask for an X.Y release line or accept latest.
- Very specific: line 80
Read the source tag date. List merged main pull requests labeled bug whose merge time is after that date.
- Distinctive: line 85
After explicit approval, dispatch:
- Very specific: line 91
If patching/x.y.z already exists, do not dispatch Start patch.
- Very specific: line 97
After the notes are approved, dispatch Prepare release with --ref patching/x.y.z.
- Distinctive: line 112
Ask the operator to confirm, or to say what to change.
- Distinctive: line 116
Treat only an explicit go-ahead as approval, such as "looks good", "approved", "continue", "go ahead", or "dispatch".
≈ “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.
Files
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/*andreleasing/*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
mainpublished, merge the pull request fromreleasing/x.y.zintomainand delete that branch. - After a patch published, merge the notes pull request from
patch-notes/x.y.zintomain, then deletepatching/x.y.zandreleasing/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 withdependencies,featuresEnhancements,fixes, anduncategorizedarrays. Each item hasmessage, optionalprId, and optional booleanbreaking. Prepare release rejects leftoveruncategorizeditems, empty notes, and amessagethat 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:
Run from the repository root, with
<main-ref>as the up-to-datemainref, normallyorigin/main:GITHUB_REPOSITORY=elastic/apm-agent-android .github/scripts/release/draft-release-notes.sh <main-ref>- Read the last two or three versions in
docs/release-notes/index.mdand match their style: short, user-facing, one line per change. - 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.
- Place each
uncategorizeditem 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. - Mark an item
breaking: truewhen 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. - Continue with the approval loop.
Patch release
When the operator wants a patch:
- If no
patching/*branch exists, ask for anX.Yrelease line or acceptlatest. - Resolve
latestto the line of the highest release tag. Resolve the source withversion.sh highest-tag <line>and the version withversion.sh next-patch <tag>. - Read the source tag date. List merged
mainpull requests labeledbugwhose merge time is after that date. Add any pull requests the operator names. - Show the source tag, patch version, and proposed cherry-pick candidates. Explain briefly why each candidate belongs.
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>'- If
patching/x.y.zalready 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. - For an existing patch branch, offer to draft notes from that branch with
RELEASE_REF_NAME=patching/x.y.zset fordraft-release-notes.shand 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:
- 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
breakingflag and its reason. - The release version that follows.
- Anything still marked as proposed and not yet confirmed.
- The release notes as readable Markdown, not JSON: a list per group,
one line per item as
- Ask the operator to confirm, or to say what to change.
- 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
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> EOFReport 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"
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
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.

