agentleFS
hmj1026hmj1026/dhpk/skills/release-creator/SKILL.md

release-creator

Skill2 starsChanged 6 days agoMITView on GitHub

Cuts a new release of a software project or plugin, coordinating release configuration, version files, changelog, validation, and the fixed git/PR/tag/CI sequence. Not for: PHP package publication or ordinary commits. Output: a validated release preparation or publication result with the human merge gate preserved.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Stop with a blocked report when configuration is ambiguous, validation fails, the PR is not merged, or the tag-triggered workflow cannot be …

    line 25
  2. Very specific:

    Follow project RELEASE.md when present.

    line 37
  3. Very specific:

    Update every {VERSION_FILES} entry to <version> in lockstep.

    line 53
  4. Very specific:

    Add the release notes at the top of {CHANGELOG} using the exact heading format required by RELEASE.md/CI.

    line 54
  5. Very specific:

    Run {VALIDATE_CMD} and stop on failure.

    line 55
  6. Very specific:

    After the release edits and validation are complete, prepare the release PR.

    line 62
  7. Distinctive:

    Stop here for the human merge.

    line 75

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

Release Creator

Resolve project-specific release judgment first; delegate the fixed mechanics to the tested runner.

$SKILL_DIR denotes the physical directory containing this SKILL.md; $PROJECT_DIR denotes the consumer project root. These are resolved path notations, not ambient environment-variable requirements. Run the local runner from the consumer project after the existing execution approval boundary.

Output

Return a release report containing the resolved configuration, changed version files, changelog result, validation result, runner phase, and the current merge/tag/CI gate. Stop with a blocked report when configuration is ambiguous, validation fails, the PR is not merged, or the tag-triggered workflow cannot be identified; do not infer a release success from a local edit or an unassociated CI run.

When NOT to Use

  • PHP package/library publishing: use $library-author composer.
  • Ordinary feature or bug commits: use $git-smart-commit.
  • The integration branch or required tests are not ready.

1. Resolve release config

  1. Follow project RELEASE.md when present.
  2. Otherwise inspect the relevant manifests and references/release-presets.md.
  3. Confirm these values with the user before execution:
TokenMeaningTypical default
{VERSION_FILES}Lockstep version filespackage.json
{VALIDATE_CMD}Required validationnpm test
{BASE_BRANCH}Integration branchmain or develop
{RELEASE_BRANCH}Published branchmain
{TAG_PREFIX}Tag prefixv
{CHANGELOG}Changelog fileCHANGELOG.md
{RELEASE_WORKFLOW}Tag-triggered CI workflowrelease.yml

2. Author the release content

  • Update every {VERSION_FILES} entry to <version> in lockstep.
  • Add the release notes at the top of {CHANGELOG} using the exact heading format required by RELEASE.md/CI.
  • Run {VALIDATE_CMD} and stop on failure.
  • Confirm the workspace now contains only the intended release edits.

Config resolution, version editing, changelog synthesis, validation interpretation, and any human merge requirement remain judgment steps; the runner does not invent them.

3. Run the mechanical sequence

After the release edits and validation are complete, prepare the release PR. Pass every intended release file explicitly, unless the project's own release-preparation script (dhpk: prepare-release.js under the repository's release scripts) has a paths subcommand that prints its release scope (file/dir/deleted lines). With no file list, the runner then stages only the changed paths inside that scope. Either way it rejects unrelated worktree changes and does not stage the whole repository implicitly:

bash "$SKILL_DIR/scripts/release-runner.sh" \
  "prepare" "<version>" "{BASE_BRANCH}" "{RELEASE_BRANCH}" "{TAG_PREFIX}" "{RELEASE_WORKFLOW}" \
  {VERSION_FILES} {CHANGELOG}

Stop here for the human merge; never self-merge against policy. The release PR must use GitHub's Create a merge commit method. Squash and rebase merges can drop the generated-input commit ancestry; the publish runner rechecks the SOURCE+PACKAGE gate on merged main and stops before creating a tag if that identity cannot be proven. After GitHub reports the PR merged, publish the tag and watch its exact workflow run:

For this dhpk release contract, the publish runner automatically runs the SOURCE+PACKAGE gate after the human merge and before creating the tag. You may run the same command first for a diagnostic preflight, but publication must still go through the runner:

node "$PROJECT_DIR/scripts/release/publish-gate.js" --version "<version>"

The runner uses $PROJECT_DIR/scripts/release/publish-gate.js when present and refuses the tag if SOURCE or PACKAGE fails. A compatible project-specific combined gate may be selected with DHPK_RELEASE_PUBLISH_GATE_SCRIPT; projects without one retain the DHPK_RELEASE_PACKAGE_GATE_SCRIPT PACKAGE fallback.

bash "$SKILL_DIR/scripts/release-runner.sh" \
  "publish" "<version>" "{BASE_BRANCH}" "{RELEASE_BRANCH}" "{TAG_PREFIX}" "{RELEASE_WORKFLOW}"

The publish phase independently verifies the merged {BASE_BRANCH} → {RELEASE_BRANCH} PR before tagging: its GitHub mergeCommit.oid must equal the fetched release-branch HEAD, and that commit must have two parents. It then runs the combined gate (including the PACKAGE provenance check), creates an annotated immutable tag, polls for a workflow run associated with the new tag, fails if no matching run appears, and returns to {BASE_BRANCH} only after that run completes. The tag workflow resolves the merged release PR head SHA and passes it to sync-develop. That job succeeds only when release completed, origin/develop is still exactly that SHA, and its tree matches origin/main; only then does it align the ref with --force-with-lease. A moved develop, tree difference, or rejected lease is blocking and requires recovery in RELEASE.md. This skill never force-pushes develop.

Verification

  • Release config was resolved and confirmed.
  • All version files agree.
  • Changelog formatting matches project CI.
  • No unrelated worktree changes were included.
  • Validation passed.
  • Release PR followed the project merge policy.
  • Tag exists remotely and release CI passed.
  • Release workflow confirmed that origin/develop did not advance after the release PR.
  • sync-develop aligned origin/develop to origin/main with --force-with-lease.
  • Consumer update status is reported separately from publication status.

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.