Skip to content
Back to skills

Release

ASecurity

Pre-release audit, GPG tag signing, and download-URL update for a target repo. Runs audits autonomously; pauses at the human-only signing step.

  • 2 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added October 19, 2026
testinggoshellbashgitsecurity

Works with

  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 11, 2026

npx -y skills add MinhHaDuong/ImperialDragonHarness --skill release --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Release?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Release
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/minhhaduong-release/badge)](https://www.skillsdirectory.com/skills/minhhaduong-release)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
metadata:
  category: publication
name: release
description: "Pre-release audit, GPG tag signing, and download-URL update for a target repo. Runs audits autonomously; pauses at the human-only signing step."
user-invocable: true
argument-hint: "[new-tag-name]"
---

# Release $ARGUMENTS

For helper commands, set `IDH_ROOT="${IDH_ROOT:-$(p="<loaded-SKILL.md>"; [ -d "$p" ] || p=$(dirname "$p"); cd -P "$p/../.." && pwd -P)}"` in the same shell call. Replace `<loaded-SKILL.md>` with the absolute path the runtime supplied for this skill, its SKILL.md or its directory; a pre-set `IDH_ROOT` wins. This follows a projected skill symlink to the canonical checkout; do not derive the helper root from the project cwd.

Encode the release checklist as a repeatable flow: run audits autonomously,
pause at the human-only step (GPG signing), then verify and summarise. The
skill **never signs** a tag — that is the human's sole responsibility.

## When to use

- Invoke from the **target repo's working directory**, on its **main
  branch**, with **all feature work already merged**.
- **Cross-repo prerequisite**: the caller must ensure cwd is the target
  project before loading the release skill. The skill is cwd-based — it never
  takes a repo or path argument. For cross-repo flows, change into the
  target project directory and fetch from the forge before the call.

## 1. Pre-flight gate

- Run the target repo's `make check`. **HALT** on failure — print the failing
  output and stop. A release never ships on a red suite.
- Scan open tickets for the `needs-human` tag. If any are tagged, **HALT**,
  list them, and stop — these are blocking human-judgment items that must be
  resolved before a release. Degrade gracefully with a warning if there is no
  `tickets/` directory or no `erg` binary available (the gate is informational
  in that case, not blocking).
- **Research-artifact citability (WARN, graceful).** If the release ships a
  research artifact — `CITATION.cff`, a manuscript, or a `data/` tree — check
  that the **code and data** have a persistent identifier (a real DOI), not
  only the paper. Flag — do **not** HALT — when `CITATION.cff` carries a
  placeholder DOI (`10.XXXXX`-style), when the sole code/data pointer is a
  mutable forge URL, or when no Zenodo/DOI deposit is referenced. Rationale:
  disseminating the paper is not disseminating the work — "errors must be
  locatable" needs a citable deposit, and a paper-only release silently omits
  the artifact (deposit a snapshot, cite the Zenodo **concept** DOI). WARN not
  HALT, because the deposit may be deliberately deferred; the point is to make
  that a conscious choice, not an oversight. Skip silently if the release is
  not a research artifact.

## 2. Parallel audits

Launch **three background agents in parallel** (single message, all as
background agents), as read-and-audit reviewers for security, UX and doc/test coherence. Choose the model of each launched worker per launch, from the `route` skill grid
(`skills/route/SKILL.md`); seats that must be independent follow
`skills/route/references/decorrelation.md` ("The launch line").
Wait for all to return, then consolidate.

**Agent A — security audit.** Review the release surface for:
- supply chain (dependencies, pinned versions, fetched scripts),
- permissions (file modes, capabilities, token scopes),
- injection (unsanitised input reaching a shell, eval, or template),
- signing (tag-signing path, key handling, attestation of downloads).

**Agent B — UX dry-run.** Read the target repo's `tickets/0152` for the
audience definitions and install paths, and walk each one. If `0152` is
absent, degrade to generic heuristics: a clean install from scratch, plus a
first-use walkthrough of the primary command.

**Agent C — foundations coherence.** Follow the target repo's
`FOUNDATIONS-PROCESS.md` if present (sweep stated contracts across
constitution/rationale/spec/process docs; verify the disjoint union against
guard tests — stated-without-guard needs a test, guarded-without-statement
needs a sentence; flag inter-doc tensions). If absent, degrade to a light
pass: do the stated-vs-guarded comparison on whatever convention docs and
test suites the repo has.

Each agent files a ticket via `tickets/erg new` for every finding that meets the
severity floor of `rules/workflow.md` (blocks a merge, corrupts state, or bites
the science), with a severity of HIGH / MEDIUM / LOW in the title or body;
findings below the floor go in the consolidated summary only. If there is no
`tickets/` directory, the agent prints its findings to output instead of filing.

After all three return, print a **consolidated summary**: count of findings by
severity, grouped by agent.

## 3. Resolve HIGH findings

If any finding is **HIGH**, print the list, **STOP**, and await a human
"continue". A release does not proceed past an open HIGH finding without
explicit human go-ahead.

## 4. Update the download URL

- Determine the new tag: the **skill argument** if given, else the current
  **UTC date** in `YYYY-MM-DD` form.
- Verify the tag does not already exist: `git tag -l <tag>` must be empty. If
  it exists, STOP — a release tag is never reused.
- Run the helper on `README.md` (and on `src/go/assets/integration.md` if that
  file is present):

  ```bash
  "$IDH_ROOT/skills/release/rewrite-download-url" README.md <tag>
  ```

  The helper rewrites the tag-like segment inside raw-download / release URLs
  to the new tag and prints a match count; it exits non-zero (with a
  diagnostic) if **no** such URL is found, so a missing URL surfaces
  immediately. An already-current URL is a normal match: the helper prints its
  count and exits 0 (idempotent no-op).
- Commit the change on a release branch, never on main: `release(<tag>): update download URL to <tag>`. Land it with the merge skill, sync local main and sign from that main, so the `HEAD` in step 5 is the merged commit.

## 5. GPG signing pause (human-only)

Print **exactly** this command, then end the turn:

```
git tag -s <tag> HEAD && git push --tags
```

The human signs the tag with their GPG key and pushes it, then replies to
resume. The skill never runs this step itself.

## 6. Verify the tag

On resume, confirm the signature:

```bash
git verify-tag <tag>
```

If verification fails, print the error and **STOP** — an unverifiable tag is
not a release.

## 7. Blog post (stub)

File a **deferred** ticket via `tickets/erg new` titled
`Write release blog post for <tag>`. This is a documented placeholder — there
is no blog implementation until blog infrastructure exists.

## 8. Summary

Print: the tag, the findings count (by severity), whether the download URL was
updated, and whether the tag verified.

## Language and identity

- Forge-agnostic: "merge request" not the forge-specific term, "ticket" not
  the tracker-specific term, "forge" for the hosting service.
- No forge-CLI commands in this prose.
- The Imperial Dragon is not a bird — no avian analogies. Scale, power,
  taxonomy.

Files in this skill

  • SKILL.md6.4 KB
  • rewrite-download-url1.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in testing →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.