agentleFS
anaidenkoanaidenko/claude-video-digest/.claude/skills/release/SKILL.md

release

Skill1 starsChanged 17 days agoMITView on GitHub

Use when cutting a new version of claude-video-digest (asked to release, ship, tag or publish a version, put it on npm, or create a GitHub Release), or when a version tag's Publish run failed and needs recovery.

  • Commits and pushes

193 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use create-agent-adapter, changelog-style and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    create-agent-adapter

    Technical guide for creating a new Paperclip agent adapter. Use when building a new adapter package, adding support for a new AI coding tool (e.g. a new CLI agent, API-based agent, or custom process), or when modifying the adapter system. Covers the required interfaces, module structure, registration points, and conventions derived from the existing claude-local and codex-local adapters.

    Also in 6 projects that use this

  • GrinvSkill

    changelog-style

    Turn a commit range into CHANGELOG.md entries following common-changelog style. Use when finishing a PR (adding to the [Unreleased] section) or cutting a release (moving [Unreleased] under a new version heading).

    Also in 4 projects that use this

  • GrinvSkill

    docs-consistency-check

    Check README/manifest.json/server.json/CHANGELOG.md/AGENTS.md and docs/*.md for drift against the actual registered tools and source. Use after adding, renaming, or removing a tool, or as part of a live-audit pass.

    Also in 4 projects that use this

  • Microsoft AzureSkill

    component-release

    Prepares and validates GPT-RAG MCP component releases. Use for versions, dependency locks, changelog entries, release branches, tags, GitHub Releases, and platform pin coordination.

    Also in 4 projects that use this

  • Microsoft AzureSkill

    documentation-consistency

    Keeps AI Landing Zone contributor, user, and operator documentation aligned with shipped Bicep behavior. Use for parameters, defaults, outputs, topology, deployment flow, operations, or releases.

    Also in 8 projects that use this

  • m13vSkill

    test-release

    Use when the user says "test the release", "smoke test", "verify the build works", "test staging", "test the new version", or after promoting a release to staging/beta/stable. Smoke-tests the shipped Fazm production app via Sparkle auto-update on local + MacStadium, sends test queries via distributed notifications, checks logs. Does NOT build anything.

    Also in 3 projects that use this

  • +3 more from Grinv

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 179 edited versions we read keep these.

  • 2

    Distinctive

    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
  1. Very specific:

    When npm view @anaidenko/claude-video-digest answers 404, the package does not exist yet: do First publish between steps 2 and 3.

    line 40
  2. Distinctive:

    Ask when the call is not obvious.

    line 49
  3. Very specific:

    If ## [Unreleased] exists, rename it to ## [X.Y.Z] — YYYY-MM-DD (today in UTC: date -u +%F).

    line 59
  4. Very specific:

    Use ### Added / ### Changed / ### Fixed, matching the entries below it in tone: what changed for the user, and what to do if anything.

    line 65
  5. Distinctive:

    Never move a tag once npm has its version.

    line 142
  6. Very specific:

    Every npm write on the maintainer's account asks for a 2FA code, which this session cannot enter.

    line 151
  7. Very specific:

    Check the release candidate: npx @anaidenko/claude-video-digest@next --help works.

    line 183

“Common” is measured: kept by at least 6 in 10 of the 179 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Release

A release is one commit plus one annotated tag on main. Pushing the tag runs publish.yml, which publishes @anaidenko/claude-video-digest to npm and then creates the GitHub Release. Marketplace users get it from npm too: the marketplace installs the package's latest, so the release reaches them once that run has published it.

Two actions here cannot be undone: the push, and (first release on npm only) the hand-published release candidate. An npm version is permanent, and whatever becomes latest goes to every installed copy. Ask before each of them, and show exactly what will go out. Everything else is local and can be undone.

1. Preflight

This repo has no CI on main, so the local run is the only gate. Stop and report if any of these fail:

git switch main && git status --porcelain        # must print nothing
git fetch origin && git status -sb               # not behind origin/main
npm run lint && npm run lint:py
npm test                                         # needs ffmpeg/ffprobe/python3 (npm run doctor)
./test/install-suite.sh && ./test/package-suite.sh
PREV="v$(node -p "require('./.claude-plugin/plugin.json').version")"
git log "$PREV"..HEAD --oneline                  # must not be empty

npm run test:docker repeats the suite on Linux; run it when the change touches the script's platform handling.

origin/main must already hold everything except the release commit. If HEAD is ahead, ask, then push main.

When npm view @anaidenko/claude-video-digest answers 404, the package does not exist yet: do First publish between steps 2 and 3.

2. Version and summary

  • Version, from the changes since $PREV. A fix is a patch. A new capability users can see is a minor. If a user's setup stops working unchanged (a flag or config key removed, a platform dropped), it is a major. Ask when the call is not obvious.
  • Summary: a short lowercase phrase naming the headline change for users, e.g. clickable, one-per-line output links. The tag and the Release title carry it.

3. CHANGELOG

The section becomes the GitHub Release notes verbatim, so it has to stand on its own for a user. Headings here are bracketed and dated in UTC.

  • If ## [Unreleased] exists, rename it to ## [X.Y.Z] — YYYY-MM-DD (today in UTC: date -u +%F). Then check it against git log "$PREV"..HEAD: add any user-visible change it is missing.
  • Otherwise write the section from that log. feat: and fix: commits are the material. docs: Record … commits are internal trap notes: leave them out.
  • Use ### Added / ### Changed / ### Fixed, matching the entries below it in tone: what changed for the user, and what to do if anything.

4. Bump, commit, tag

The version lives only in .claude-plugin/plugin.json. Never add one to package.json; publish.yml injects it at publish time.

node -e 'const f=".claude-plugin/plugin.json",fs=require("fs"),j=JSON.parse(fs.readFileSync(f));j.version="X.Y.Z";fs.writeFileSync(f,JSON.stringify(j,null,2)+"\n")'
git add .claude-plugin/plugin.json CHANGELOG.md
git diff --cached --stat                         # exactly these two files
git commit -m "chore(release): vX.Y.Z"
git tag -a vX.Y.Z -m "vX.Y.Z — <summary>"

publish.yml titles the Release with the tag's subject, and fails the run if the tag does not equal v + the plugin.json version.

5. Ask before pushing

Show the user:

  • the version and summary;
  • the CHANGELOG section;
  • git log origin/main..HEAD --oneline, which should be the single release commit;
  • that the push publishes X.Y.Z to npm permanently, creates the GitHub Release, and offers the update to every installed copy.

Push only after an explicit yes in this conversation.

6. Push and watch

git push --follow-tags          # never --tags: it pushes the tag without the commit
gh run list --workflow publish.yml --commit "$(git rev-parse HEAD)" --json databaseId,status
gh run watch <databaseId> --exit-status

The run can take a few seconds to appear: repeat the list until it does. Right after a push, an unfiltered --limit 1 can return the previous release's run.

7. Verify the result, not the log

npm view @anaidenko/claude-video-digest version                 # X.Y.Z; see the note below if it is missing
npm view @anaidenko/claude-video-digest@X.Y.Z dist.attestations # non-empty: provenance from CI
gh release view vX.Y.Z --json name,url

A missing version is not yet a failure. npm can answer "Your package is being processed" even to a CI publish, and on a young package the version took about 4 minutes to appear (1.2.0 of claude-video-digest, 2026-11-16). Poll npm view for up to 10 minutes before suspecting the run. Do not re-run it: the version is already taken.

A version published by hand has no attestations. That is expected for the first-publish rc.0, and a red flag for any other version.

Then report the Release and npm links, plus the update line for users: npx @anaidenko/claude-video-digest, or claude plugin marketplace update anaidenko && claude plugin update claude-video-digest@anaidenko.

The marketplace repo (anaidenko/claude-plugins) needs no change unless the plugin's description or npm package name changed.

When the Publish run fails

Failed stepCauseFix
Check the tag matches plugin.jsontagged without the bumpNothing was published: confirm with npm view …@X.Y.Z (404). Then git tag -d vX.Y.Z && git push origin :refs/tags/vX.Y.Z, add a fix commit (never amend a pushed one), and tag that commit.
Publish: 404, ENEEDAUTH, OIDC errorsthe trusted publisher is missing, does not allow npm publish, or expired (a new one lapses 2 days after creation without a successful publish)npmjs.com → package → Settings → Trusted publishing. Re-create it if it expired (First publish, step 3), then gh run rerun <id> --failed.
GitHub Release, npm already donegh run rerun <id> --failed: the npm job skips a version it already has.
Release notes are the generic fallbackthe CHANGELOG heading did not match ## [X.Y.Z]gh release edit vX.Y.Z --notes-file <file>
A bad version reached npmNever npm unpublish. Run npm deprecate @anaidenko/claude-video-digest@X.Y.Z "<why>" and ship a fix.

Never move a tag once npm has its version.

First publish (only when npm has no package)

A trusted publisher can be configured only for a package that exists. A new configuration expires unless a publish succeeds through it within 2 days. So a release candidate creates the package by hand, and the real version goes out through CI the same day, which validates the configuration.

Every npm write on the maintainer's account asks for a 2FA code, which this session cannot enter. Give the user each npm command to run in their own terminal, then check the result yourself with npm view.

This runs after step 2, so the version is known. publish.yml must already be on origin/main, because npm checks that it exists. Do not push the release commit early: it goes out together with its tag in step 6.

  1. Ask first. Show the user X.Y.Z-rc.0 and say it stays in npm's version list for good, marked as a pre-release.
  2. The user runs this from the clean, pushed HEAD:

    npm pkg set version=X.Y.Z-rc.0 && npm publish --tag next; git checkout package.json && git status --porcelain

    The rc is built from the pre-bump tree. Its plugin.json still says the previous version, which is harmless: it goes out under next, and the marketplace installs only latest. Never drop --tag next, though: without it the rc becomes latest and reaches every marketplace user.

    Expect a placeholder first. npm answers "Your package is being processed", and for about 2 minutes npm view … versions lists only 0.0.0-stage, tagged latest. That happens even with a plain npm publish, and the placeholder stays in the version list for good. Wait until the rc is listed, then have the user run npm deprecate @anaidenko/claude-video-digest@0.0.0-stage "registry placeholder". The trusted publisher's 2-day clock should not start before the rc is visible.

  3. The user creates the trusted publisher on npmjs.com → package → Settings → Trusted publishing → GitHub Actions. User anaidenko, repository claude-video-digest, workflow publish.yml, allow npm publish. Publishing access "Require two-factor authentication and disallow tokens" is compatible with it.
  4. Check the release candidate: npx @anaidenko/claude-video-digest@next --help works.
  5. Continue at step 3 now. The 2-day clock started at step 3 of this section, and only the CI publish of X.Y.Z stops it. If that run fails, fix it and re-run within the same window. Otherwise re-create the trusted publisher first.
  6. When reporting, tell the user to release again on a later UTC day, even if only a patch. npm's search index takes the download count once per publish, and the downloads API counts a day only after it ends (UTC). A package published only on its first day therefore keeps a count of 0, and search leaves it out even for its exact name. Waiting does not help; a new publish does. Check with curl -s 'https://registry.npmjs.org/-/v1/search?text=maintainer:anaidenko': if the package's downloads reads 0, it is still unlisted. For the full story, see anaidenko/claude-plugins CONTRIBUTING → Being found in npm search.

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.