MetaGuard · Pre-Release Gate: One-Click Readiness Check Before Skill Release

Introduction

Before pushing a Skill or npm package to GitHub, npm, or ClawHub, the common bottleneck is rarely “whether you know how to hit publish.” It’s the scattered pre-publish verification: whether security conclusions have been consolidated, whether the packed output is missing files or contains artifacts that shouldn’t be there, whether version numbers are consistently written across package.json, SKILL frontmatter, body text, CHANGELOG, and the CLI, and whether the name is already taken on all three platforms. Manually checking each item is time-consuming, and it’s easy to miss one when rushing a release.

Below I introduce the community Skill “Yotta Publish Guard” (coordinate @user_0d6b02f6/yotta-publish-guard, current version 0.4.5). It consolidates the steps above into an Agent-triggerable pre-publish check workflow. By default it targets YottaMeta as the publish owner, but you can override it to your own organization via parameters or environment variables.

What Is This

“Yotta Publish Guard” is a community Skill on SkillHub, categorized under dev-programming, published by user_0d6b02f6, with requires_api_key=false — installing the Skill itself does not require an API Key. It acts as a pre-publish gate layer within an Agent session: it does not make publish decisions on your behalf, nor does it hold credentials for any platform; publish authentication is still handled by each platform’s CLI according to local configuration.

Official page: SkillHub · Yotta Publish Guard.

Core Features

The following capabilities are all from the Skill’s official description, organized by module.

check: Aggregated Validation

Offers three modes — full / github / self — for comprehensive pre-publish checks, and can aggregate verdicts from related Skills such as “YuanAn” (security), “YuanShen” (audit), and “YuanXin” (compliance), presenting security and compliance conclusions in one place to avoid switching between multiple check workflows before publishing.

pack: npm Package Health Check

Performs package body checks around npm pack, focusing on whether artifacts like .pyc files that shouldn’t appear are included, and whether key files are actually packaged, to reduce “works locally but missing files after install” type issues.

versions: Five-Point Version Alignment

Verifies whether the version is consistent across five locations: package configuration, SKILL frontmatter, the version line in the SKILL body, CHANGELOG, and CLI. When bumping versions, it’s easy to miss one of these spots — this module addresses exactly that kind of alignment issue.

names: Three-Channel Name Duplication Check

Checks for name conflicts across three channels — npm, GitHub, and ClawHub — to reduce the probability of discovering a name collision only at publish time.

publish: Publish Command Wrapper

Wraps publish-related commands, supporting channel options like --channels, --github-only, etc. Defaults to dry-run; use --exec to actually execute, and --force to explicitly skip the push gate. The default ownership is YottaMeta, but it can be customized to any publish organization via CLI parameters or environment variables.

Installation & Activation

You need SkillHub CLI first. If not installed, follow the official installation docs to do a full install (recommended) or CLI-only:

command -v skillhub && skillhub --version
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

When installing this Skill, you must use --dir to point to your current Agent’s skills directory; otherwise the default ./skills/ may not be recognized. Common paths for Cursor are ~/.cursor/skills/; for Claude Code, ~/.claude/skills/; for Codex, ~/.codex/skills/ or project-level .agents/skills/. After selecting the appropriate directory for your environment, run:

skillhub install user_0d6b02f6/yotta-publish-guard --dir ~/.cursor/skills/

The SkillHub page also states: please install @user_0d6b02f6/yotta-publish-guard following the SkillHub installation guide. After installation, restart or refresh skill loading per your Agent’s conventions.

Typical Usage

In your Agent, trigger this Skill before publishing or after updating a Skill and preparing to push — just describe your intent in natural language. Official trigger phrases include: 元守, publish guard, pre-publish check, publish-guard, pre-push check, name duplication check, version alignment, and more.

You can specify goals step by step or all at once, for example:

  1. Run a full pre-publish check (corresponds to check’s full mode, and optionally aggregate YuanAn/YuanShen/YuanXin conclusions).
  2. Execute the pack health check to confirm the npm pack result is clean and key files are present.
  3. Verify the five-point version alignment.
  4. Run a name duplication check across the three channels for your intended name.
  5. Use the publish wrapper to dry-run first to review channels and parameters, then --exec to confirm; for non-default ownership, specify the organization via CLI or environment variables.

Specific subcommands and parameters are subject to the SKILL.md in the Skill package and the instructions provided by the Agent at runtime; this article does not fabricate command-line examples not present in official materials.

Applicable Scenarios & Caveats

Who it’s for: Developers who maintain Skills or npm packages, publish across multiple channels (GitHub / npm / ClawHub), and want to systematically aggregate security checks, verify package integrity, align versions, and check name availability before pushing.

Explicit boundaries (official “Do NOT trigger”):

  • Does not make publish decisions or perform manual reviews on behalf of the user.
  • When the network is unavailable, it only provides degraded notifications — it does not fabricate duplication check or validation results.
  • Does not perform Skill body content or scaffolding development (for scaffolding, refer to “YuanZao” yotta-skill-creator; body content still requires manual development).
  • Does not hold or read any platform credentials.

SkillHub-side statistics (based on available data): rating 100000, 1656 downloads. If your local Agent cannot access the external network, the names check and some check capabilities may only produce degraded notifications — you should still manually verify critical items before publishing.

Closing

“Yotta Publish Guard” consolidates scattered pre-publish checks into five clear lines: check, pack, versions, names, and publish. The default dry-run publish wrapper also reduces the risk of accidental pushes. If you frequently manually align versions and names before multi-channel publishing, you can install this Skill from SkillHub and have your Agent run a pre-publish guard workflow before pushing to GitHub / npm / ClawHub.

Official URL: https://www.skillhub.cn/skills/user_0d6b02f6/yotta-publish-guard

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye