agentleFS
valkyrianlabsvalkyrianlabs/payload-markdown-docs/.claude/skills/vl-release/SKILL.md

vl-release

Skill4 starsChanged 5 days agoMITView on GitHub

Release workflow and setup for repositories released with vl-release (`vlr`). Use when adopting vl-release in a repository (release.toml, `vlr init`), whenever a change affects users, operators, security, compatibility, packaging, deployment or other substantial behavior (to keep the staged release docs in .release/ current), and before touching versions, release history, packaging or release CI.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Add build/ and release/ to .gitignore.

    line 45
  2. Very specific:

    Run vlr check until it passes, then vlr version check.

    line 46
  3. Very specific:

    Run vlr install-local-skill to record this repository's specifics in PROJECT.md.

    line 47
  4. Very specific:

    Before considering substantial work complete, run vlr check.

    line 66
  5. Distinctive:

    Never edit version numbers by hand.

    line 75

≈ “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
<!-- vl-release:generated -- regenerate with `vlr install-skill`; local edits are overwritten -->

vl-release

vl-release (also vlr) is the ValkyrianLabs release toolkit installed on this machine. A repository opts in with a release.toml at its Git root; every vlr project command reads it. The full references ship with the tool and work offline:

vlr help config     # release.toml reference (every key, version target kinds, package contracts)
vlr help staging    # staged release docs: formats, rules, how prepare promotes them
vlr help ci         # the release CI transaction and workflow conventions

1. Find this repository's specifics

  • PROJECT.md next to this file exists → read it now. It is generated from this repository's release.toml and names the exact files, version targets, channels and checks used here.
  • No PROJECT.md, but release.toml exists → run vlr install-local-skill, then read it.
  • No release.toml → this repository has not adopted vl-release yet. Do not invent a release process; follow section 2 when asked to set releases up.

2. Setting up a repository (mandatory for a new repository)

  1. vlr init scaffolds release.toml and the .release/ staging files (it never overwrites).
  2. Fill in release.toml from vlr help config, based on what the repository actually contains:
    • [version]: the canonical version file, plus a target for every other file that carries the version (meson.build, package.json, pyproject.toml, generated version constants via regex, a Homebrew formula). Never leave a version file unmanaged.
    • [debian] only if the repository builds .deb packages (debian/control exists), with one [[debian.packages]] contract per binary package: the paths it must ship, and paths that must never ship.
    • [npm] only if the repository publishes an npm package (package.json without "private": true), with a tarball contract (package/... paths it must and must never ship), [[npm.aliases]] only when the same build must also be published under another name, and [[npm.packages]] for further, independently built packages (each its own package_dir, whose package.json is a version target).
    • Publication ([publish.apt], [[publish.npm]], [homebrew], [source_archive]): ask the user for repository URLs, registries, taps and which channels to enable; do not guess publication targets.
  3. Add build/ and release/ to .gitignore.
  4. Run vlr check until it passes, then vlr version check.
  5. Run vlr install-local-skill to record this repository's specifics in PROJECT.md.
  6. For release CI, read vlr help ci; this repository's workflows should call vlr commands rather than re-implementing release logic in YAML.

3. While you work: keep the staged release docs current

For any material change (user-visible behavior, operations/deployment, security, compatibility, packaging, or a substantial internal change) update in the same change:

  • .release/RELEASE_NOTES_NEXT.md: the user-facing release notes. Line 1 is # <release title> without a version number; the rest is the Markdown body.
  • .release/CHANGELOG_NEXT.md (when Debian packaging is enabled): concise technical - bullets. vlr prepare renders the Debian stanza; write no boilerplate.

Consolidate: rewrite and merge entries so they describe the resulting behavior; never append a log of commits, fix-ups or abandoned attempts. Remove entries for reverted changes. No placeholders. Purely internal refactors with no observable effect need no entry. (vlr help staging has the exact formats.)

Before considering substantial work complete, run vlr check.

4. Never edit the published history by hand

RELEASE_NOTES.md and debian/changelog record published releases. Only vlr prepare (in release CI) adds to them, and only vlr finalize persists that after publication succeeded.

5. Versions

Never edit version numbers by hand; every configured target is kept in sync:

vlr version check
vlr version bump patch|minor|major     # or: vlr version set X.Y.Z

6. Releasing

vlr status                          # version, release phase, staged-doc state
vlr cut patch|minor|major --push    # bump, commit, tag, push; the tag push starts release CI

vlr cut X.Y.Z --push releases an explicit version, including the version already in the version file when it has never been released.

Release CI checks out the tag, runs vlr prepare (promoting the staged docs in the CI work tree only), builds and validates artifacts from that prepared tree, publishes and verifies, and only after every publication succeeded runs vlr finalize, which commits the promoted history and the cleared _NEXT files back to the release branch. A failed release leaves the repository's staged docs untouched and can simply be re-run; publication never replaces bytes that are already published.

Commands

CommandPurpose
vlr check [--release]Validate the repository (strict release gate with --release)
vlr status [--json]Version, release phase, staged-doc state
vlr prepare --dry-runPreview the rendered history entries without writing
vlr release-title --staged / vlr release-body --stagedPreview the GitHub release title/body
vlr install-skill / vlr install-local-skillUpdate this skill / regenerate PROJECT.md
vlr doctorCheck the local toolchain
vlr help config|staging|ciOffline references

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.