release-workflow
Skill0 starsChanged 12 days agoMITView on GitHub
Installs a project-type-aware GitHub Actions release workflow (.github/workflows/release.yml) into a local repo. Detects npm, MCP server, NuGet, Python, Go (plain, GoReleaser or with an npm wrapper), agent plugin, single skill and VERSION-file projects plus the default branch, then tags, publishes to the registry and creates a GitHub release. Use when the user wants automated releases or publishing for a repo. Never commits.
- Reads credentials
3 other projects use a version of this.
Adopted by
Most recently taken up by
- SUDARSHANCHAUDHARI/DroidForgetheir own version, first seen Nov 1, 2026
- crux-cli/cruxtheir own version, first seen Oct 13, 2026
- fxstein/ai-todotheir own version, first seen Jan 31, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- fxstein/ai-todo★ 16same name
- SUDARSHANCHAUDHARI/DroidForge★ 1same name
- crux-cli/crux★ 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 repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- gh-auditSkill
- gh-normalizeSkill
- gh-onboardSkill
- profile-bioSkill
- profile-readmeSkill
- readme-standardSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 3 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Run only when the user explicitly asks.
- Very specific: line 61
add (default): write release.yml if it doesn't exist.
- Very specific: line 83
Private repos: remove --provenance from npm templates.
- Distinctive: line 84
Existing publishers: if another workflow already publishes, suggest removing one of them to avoid double publishing.
- Very specific: line 98
Write only .github/workflows/release.yml in the target repo.
- Distinctive: line 102
Every template refuses to release from anything but the default branch: a manual run must start on it, and a pushed tag must point to a …
“Common” is measured: kept by at least 6 in 10 of the 3 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.
Files
release-workflow
Writes .github/workflows/release.yml for one local repo. After the user commits it, the repo
releases itself: tag, registry publish where there is one, and a GitHub release with notes.
Run only when the user explicitly asks.
Usage
release-workflow [--repo-dir <path>] [--type <type>] [--branch <name>] [--audit] [--force]--repo-dir defaults to the current directory. --type and --branch default to detection.
1. Detect
The script lives in this skill's folder, but you run it while the target repo is the working
directory. Resolve scripts/add-release-workflow.sh against this skill's directory to an absolute
path first and use that ($SCRIPT below).
bash "$SCRIPT" <repo-dir> --detectDetection order (first match wins):
| Type | Signal | Trigger | Publishes to |
goreleaser | go.mod + .goreleaser.yaml | tag push v* | GoReleaser (GitHub release + its publishers) |
go-npm | go.mod + npm/package.json wrapper | tag push v* | GitHub release binaries + npm wrapper |
go | go.mod | tag push v* | GitHub release with 6 cross-compiled binaries + checksums |
mcp | public package.json with @modelcontextprotocol/sdk or server.json | version bump or tag push | npm (provenance) + MCP Registry if server.json |
npm | public package.json with a version | version bump or tag push | npm (provenance) |
plugin | .claude-plugin/plugin.json | bump of its version | GitHub release only; cross-checks .codex-plugin and skills/*/SKILL.md versions |
nuget | packable *.csproj | <Version> bump or tag push | nuget.org |
python | pyproject.toml | version bump or tag push | PyPI (trusted publishing) |
skill | one SKILL.md (root or skills/<name>/) | frontmatter version bump | GitHub release only |
generic | VERSION file | change of VERSION | GitHub release only |
npm (private) | package.json with "private": true | version bump | GitHub release only |
The release branch is the remote default branch (origin/HEAD), then the current branch, then
main. Show the detection output to the user. If nothing is detected, ask for --type or suggest
a VERSION file.
2. Mode
--audit: no writes. Report whetherrelease.ymlexists, whether it matches the detected type, and whether other workflows already publish (the script warns about them). Check existing workflows for unsafe patterns: commit text pasted intorun:(for example--notes "${{ steps.x.outputs.notes }}"), hardcodedmainon a repo whose default branch differs, publishing without a tag/version check.- add (default): write
release.ymlif it doesn't exist. --force: overwrite the existing file after the user confirms.
Preview first when useful: bash "$SCRIPT" <repo-dir> --stdout.
3. Apply
bash "$SCRIPT" <repo-dir> [--type <type>] [--branch <name>] [--force]The script writes one file and never commits, pushes or calls the GitHub API.
4. Tell the user what the workflow needs
- Version field: npm/mcp →
package.jsonversion; nuget →<Version>; python →[project] version(dynamic versions: release by tag push); plugin →.claude-plugin/plugin.jsonversion(keep.codex-plugin/plugin.jsonand every SKILL.mdmetadata.versionequal); skill → frontmatter version; generic →VERSION; Go → tags only. - Secrets / publisher setup: npm →
NPM_TOKENor npm trusted publishing; nuget →NUGET_API_KEY; python → a PyPI trusted publisher with environmentpypi; MCP Registry →mcpNameinpackage.jsonand aserver.json. - Private repos: remove
--provenancefrom npm templates. - Existing publishers: if another workflow already publishes, suggest removing one of them to avoid double publishing.
5. Summary
RELEASE-WORKFLOW <repo>
type: <type> branch: <branch> release.yml: written | skipped | audit
next: bump the version (or push a tag) after committing the workflowRules
- One local repo per run. Batch installs across remote repos are out of scope.
- Write only
.github/workflows/release.ymlin the target repo. Never commit or push without explicit user approval. - Templates never paste commit messages into shell commands; notes come from
--generate-notesor a notes file. - Every template refuses to release from anything but the default branch: a manual run must start on it, and a pushed tag must point to a commit reachable from it.
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.

