agentleFS
89jobrien89jobrien/godmode/skills/rust-release-workflow-author/SKILL.md

rust-release-workflow-author

Skill1 starsChanged 56 days agoMITView on GitHub

Use when creating or editing a GitHub Actions release workflow for a Rust workspace with version bumps, tags, affected-crate selection, binary packaging, and GitHub releases. Symptoms - you need a manual release workflow, selective crate bumps, downstream-dependent bump logic, or a release asset pipeline for Rust binaries.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this when the repo needs a real release workflow rather than just CI.

    line 10
  2. Very specific:

    Prefer workflow_dispatch for explicit release control.

    line 40
  3. Very specific:

    Use cargo metadata to compute downstream dependents when shared workspace crates change.

    line 43
  4. Distinctive:

    Treat shared non-crate changes as workspace-wide unless the repo has a stricter contract.

    line 44
  5. Distinctive:

    Run release gates before any commit or tag is pushed.

    line 45
  6. Distinctive:

    Keep version bump, tag creation, push, build, and release publication in the same workflow.

    line 46
  7. Distinctive:

    Use a Bash heredoc for workflow file writes when workflow editors are blocked by tooling hooks.

    line 48

≈ “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

Rust Release Workflow Author

When to Use

Use this when the repo needs a real release workflow rather than just CI. This is for Rust workspaces that tag releases, update crate versions, build binaries, and publish GitHub releases.

Commands

# Read existing workflows first
# Use Glob tool: glob '.github/**/*'
sed -n '1,260p' .github/workflows/ci.yml
sed -n '1,260p' .github/workflows/nightly.yml 2>/dev/null || true

# Read a known-good reference workflow before authoring
sed -n '1,260p' ~/dev/minibox/.github/workflows/release.yml

# Inspect workspace packages
cargo metadata --no-deps --format-version 1
rg -n '^version\s*=|^name\s*=' Cargo.toml crates/*/Cargo.toml

# Write workflow via heredoc
# Use the Write tool to create .github/workflows/release.yml with the full content.
# (Bash heredoc cat-redirect is blocked; Write tool is the correct approach.)

# Validate YAML
ruby -e 'require "yaml"; YAML.load_file(".github/workflows/release.yml"); puts "yaml-ok"'

# Review the rendered file before stopping
sed -n '1,320p' .github/workflows/release.yml

Rules

  • Prefer workflow_dispatch for explicit release control.
  • Validate semver input and refuse duplicate tags.
  • Determine release scope from the diff since the last v* tag, not from guesswork.
  • Use cargo metadata to compute downstream dependents when shared workspace crates change.
  • Treat shared non-crate changes as workspace-wide unless the repo has a stricter contract.
  • Run release gates before any commit or tag is pushed.
  • Keep version bump, tag creation, push, build, and release publication in the same workflow.
  • Bump only affected publishable crates; exclude test-only workspace members.
  • Use a Bash heredoc for workflow file writes when workflow editors are blocked by tooling hooks.

Common Failures

SymptomFix
Workflow exists but bumps every crateAdd affected-crate selection before cargo set-version
Shared crate changed but downstream apps were not bumpedBuild reverse dependencies from cargo metadata and walk dependents transitively
Root-level config change was ignoredTreat non-crate shared changes as affecting all publishable workspace crates unless narrowed explicitly
Tag is created before validation finishesMove push/tag steps after release gates
Release asset step failsVerify built binary names and archive paths match the workflow inputs
Workflow edits are blocked by local tooling hooksWrite .github/workflows/*.yml with a heredoc and validate the final file locally

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.