agentleFS
shazhou-wwshazhou-ww/silvermoon/.agents/skills/publish/SKILL.md

publish

Skill3 starsChanged 45 days agoMITView on GitHub

Publish the allowlisted npm package from this repository through the protected stable or canary GitHub Actions trusted-publishing channel. Use only when the user explicitly invokes /publish with a release key and channel or version intent.

  • Installs packages
  • Commits and pushes

73 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use clips, outliers 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.
  • MelvynxSkill

    clips

    Turns one long video (YouTube link, podcast, webinar, livestream, or a local file) into finished vertical shorts. Use when the user says long to short, repurpose, long video to shorts, clips from my video, podcast clips, cut my YouTube video into shorts, or gives a long video link. Finds clips that stand alone (one idea, 20 to 60 seconds), scores them, cuts them and edits each one with short-editing (split-screen paper look, captions, cuts, hook, boards, 1080x1920), and writes new scripts in the studio-script format from the ideas too spread out to clip. Reads YouTube captions and chapters with yt-dlp, or transcribes a local file with the short-editing engine (whisper.cpp, free, offline).

    Also in 4 projects that use this

  • criscatalystSkill

    outliers

    YouTube outlier detection. Given a topic, finds the highest-performing recent videos on that topic — ranked by views ÷ channel median (so a 10x outlier means the video did 10 times the channel's normal performance). Reads each video's transcript and generates 3 personalized title variants per outlier, adapted to the user's niche and voice from their ~/CLAUDE.md. Trigger when the user says "find outliers", "/outliers", "show me viral videos in <topic>", or asks what's working on YouTube right now for a topic.

    Also in 4 projects that use this

  • khadinakbarlabsSkill

    keywords

    Research and prioritize SEO keywords, search intent, topic clusters, competitor keyword gaps and keyword-to-page mappings. Use when asked what to rank for, keyword opportunities, long-tail keywords, a content calendar, or a keyword plan. Uses owned Apify keyword/SERP Actors with approved budgets, or supplied exports offline. Does not invent volume or organic difficulty.

    Also in 3 projects that use this

  • MicrosoftSkill

    create

    Also in 4 projects that use this

  • justinseger015-ctrlSkill

    edit

    Edit a video using the video-editing orchestrator. Detects format, routes to correct editing skill, and executes the full process. Use when user says: /edit, edit video, edit clip, edit this, make it polished, finish editing, polish this video.

    Also in 3 projects that use this

  • LangChainSkill

    render

    Turn an SVG design into a PNG and look at it. Use after you write or change a design, but only if execute is one of your tools.

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

17 rules. 0 are common, 8 are distinctive, and 9 are very specific to this project.

  • 0

    Common

    Most of the 62 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 9

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never publish directly from the development machine.

    line 15
  2. Very specific:

    Run this workflow only after the user explicitly invokes /publish.

    line 19
  3. Very specific:

    Read the repository instructions and docs/npm-package-releases.md before changing the manifest, creating a tag, rerunning a workflow, or …

    line 21
  4. Very specific:

    Treat bin/prepare-npm-release.ts as the allowlist and release-key authority and bin/verify-npm-release.ts as the post-publication evidence …

    line 25
  5. Very specific:

    Before creating a tag, require the workflow to use a GitHub-hosted runner, id-token: write, Node 22.14.0 or newer, npm CLI 11.5.1 or newer, …

    line 38
  6. Distinctive:

    Read the package manifest, current npm versions, existing release tags, and the latest package-specific release tag.

    line 50
  7. Distinctive:

    Stop if the target npm version or exact release tag already exists.

    line 56
  8. Very specific:

    Update the package's version in package.json and synchronize exact-version installation examples and version assertions that belong to the …

    line 65
  9. Distinctive:

    Do not add unrelated feature work to a release-only change.

    line 67
  10. Very specific:

    Commit the validated version change on main, push it through the normal non-force path, refresh origin/main, and verify the full commit is …

    line 80
  11. Very specific:

    Run silvermoon whats-next <idea> --json after the validated release commit is published to primary.

    line 89
  12. Very specific:

    When the release commit and repository validation satisfy the idea's implementation expectations, record implementationAcceptedRevision for …

    line 94
  13. Distinctive:

    Run the release planner locally against the exact candidate:

    line 111
  14. Distinctive:

    Create the immutable tag at the refreshed primary branch and push only that tag:

    line 119
  15. Distinctive:

    Follow the run to completion with GitHub CLI or the Actions API.

    line 150
  16. Very specific:

    If post-publication verification fails transiently, rerun only the failed workflow job.

    line 169
  17. Distinctive:

    If the registry shows the exact version even though workflow reporting is ambiguous, treat npm as immutable published state and investigate …

    line 176

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

Publish npm package

Publish the allowlisted package through this repository's protected GitHub Actions workflow. Stable releases are tag-triggered; canaries are manually dispatched on demand from the exact origin/main head, whose protected deploy-key push creates an immutable canary tag and triggers publication. Never publish directly from the development machine.

Safety boundary

  • Run this workflow only after the user explicitly invokes /publish. Natural language discussion about versions or releases is not an invocation.
  • Read the repository instructions and docs/npm-package-releases.md before changing the manifest, creating a tag, rerunning a workflow, or troubleshooting a release.
  • Treat bin/prepare-npm-release.ts as the allowlist and release-key authority and bin/verify-npm-release.ts as the post-publication evidence gate. Do not derive a package path from user text.
  • Publish only through .github/workflows/publish-npm.yml. Never run npm publish locally and never create or request NPM_TOKEN or NODE_AUTH_TOKEN.
  • Release versions and npm/<release-key>/v<version> tags are immutable. Never move, delete, or recreate a release tag to repair source or validation. Canary versions and their release tags are also immutable.
  • Canary publication is manual-only. Do not add a daily schedule or automatic publication trigger; dispatch it only for an explicit canary release request.
  • Preserve unrelated worktree changes. Stop if they prevent an isolated, reviewable release commit.
  • Before creating a tag, require the workflow to use a GitHub-hosted runner, id-token: write, Node 22.14.0 or newer, npm CLI 11.5.1 or newer, and actions/setup-node with registry-url: https://registry.npmjs.org. Treat these as release source requirements, not npm account workarounds.

Resolve the release

  1. Resolve the release key from the invocation. When omitted and exactly one package is allowlisted, use that key; otherwise ask for the key.
  2. Resolve one explicit intent: the canary channel, major, minor, patch, or an exact canonical SemVer. A canary uses the committed next stable manifest line and derives its immutable prerelease version in CI.
  3. Read the package manifest, current npm versions, existing release tags, and the latest package-specific release tag. Calculate the target from the highest relevant stable version rather than assuming the working manifest is already published.
  4. Fetch origin/main and tags. Require the release worktree to be reconciled with current origin/main before preparing the release.
  5. Stop if the target npm version or exact release tag already exists. Report the immutable existing release rather than attempting to replace it.

For canary, require a clean worktree and local HEAD equal to refreshed origin/main. Confirm the committed manifest identifies the intended next stable line and that this stable version is not already published.

Prepare and publish the release commit

  1. Update the package's version in package.json and synchronize exact-version installation examples and version assertions that belong to the same release.
  2. Do not add unrelated feature work to a release-only change. If unreleased implementation is already integrated on main, the version commit may contain only release metadata and release-skill maintenance.
  3. Run:

    pnpm install --frozen-lockfile
    pnpm check
    git diff --check
  4. Confirm the packed candidate has the requested package name and version and contains only the allowlisted files.
  5. Commit the validated version change on main, push it through the normal non-force path, refresh origin/main, and verify the full commit is reachable from that branch. Do not tag an unpublished local commit or side branch.

Silvermoon phase handoff

Apply this section when the release is a deployment criterion of an active Silvermoon idea. Independent package releases skip it.

  1. Run silvermoon whats-next <idea> --json after the validated release commit is published to primary.
  2. Require the selected idea to be the approved current revision and the action to be implement-idea. If guidance reports worktree, sync, or another higher priority action, resolve that first and reobserve.
  3. When the release commit and repository validation satisfy the idea's implementation expectations, record implementationAcceptedRevision for that exact idea revision in a separate status-only commit. Validate and publish it through ordinary non-force Git.
  4. Requery the exact idea and require deploy-idea before creating the release tag. Never create the tag while the release idea still derives implementing.

The package version commit remains the release candidate. The later status-only acceptance commit advances Silvermoon state and may become the tagged primary commit because it leaves package contents unchanged.

Create the release instruction

  1. Fetch origin/main and tags again immediately before tagging.
  2. Require a clean worktree, local HEAD equal to origin/main, an absent target tag, and an absent npm target version.
  3. Run the release planner locally against the exact candidate:

    node bin/prepare-npm-release.ts \
      --tag npm/<release-key>/v<version> \
      --commit <full-origin-main-commit>
  4. Create the immutable tag at the refreshed primary branch and push only that tag:

    git tag npm/<release-key>/v<version> origin/main
    git push origin refs/tags/npm/<release-key>/v<version>

The tag is the release instruction. Do not run a second publication command.

For a canary, do not create a version commit or GitHub Release. Dispatch the trusted workflow from main only on demand; there is no scheduled publication:

gh workflow run publish-npm.yml --ref main

The planning job derives <next-stable>-canary.<run-number>.g<12-hex-commit>, creates that immutable release tag at the exact main commit, and its dedicated deploy-key push triggers the publication job from the tag. If that tag already exists after an interrupted run, the planner explicitly dispatches it instead. The package version changes only inside the isolated staging tree and publishes only to the npm canary dist-tag. It creates no tag when that exact main commit is already the current canary.

Verify GitHub Actions and npm

  1. Locate the Publish npm package run whose ref is the exact release tag for a tagged release or main for a canary, and whose commit is the intended origin/main commit. Do not mistake an older run for this publication.
  2. Follow the run to completion with GitHub CLI or the Actions API. If the npm environment requires a human reviewer, report that exact pending gate and wait rather than bypassing it.
  3. Require the workflow conclusion to be success. Capture its run URL and immutable database ID.
  4. Require the Verify published package step to emit VERIFY_NPM_RELEASE_OK. This proves the exact version, dist-tag, registry gitHead, integrity, tarball bytes and file count, both tarball READMEs, npm publish and SLSA provenance, tagged commit, and commit-pinned jsDelivr assets all match the single candidate tarball. A latest release additionally proves the npm package-level README; prerelease channels do not replace that latest package page state.
  5. Report the package version, release commit, tag, workflow URL and database ID, registry integrity, provenance invocation URL, and jsDelivr asset URLs.

Failure handling

  • For a transient infrastructure or registry failure before publication, rerun the same workflow run without changing the tag.
  • If post-publication verification fails transiently, rerun only the failed workflow job. The planner observes the existing version, the publish step remains skipped, and verify-npm-release.ts must still prove the exact candidate before the run can succeed.
  • For source, manifest, or validation defects, leave the failed version and tag immutable. Fix the source on main, choose a new version, and create a new tag only after validation.
  • If the registry shows the exact version even though workflow reporting is ambiguous, treat npm as immutable published state and investigate before any rerun.
  • Authentication, tag protection, environment approval, branch protection, or failed validation are real blockers. Never bypass them with force pushes, local publication, or credentials routed through chat.

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.