Agent SkillsMochocyang/QMAI › qmai-release

qmai-release

GitHub

用于发布 QMAI 稳定版,涵盖版本元数据更新、多文件同步、CI缓存预热等待及带注解标签推送。严格遵循原子提交与校验流程,确保构建一致性。

.agents/skills/qmai-release/SKILL.md Mochocyang/QMAI

Trigger Scenarios

用户要求发布稳定版 执行版本升级 创建发布标签

Install

npx skills add Mochocyang/QMAI --skill qmai-release -g -y
More Options

Non-standard path

npx skills add https://github.com/Mochocyang/QMAI/tree/main/.agents/skills/qmai-release -g -y

Use without installing

npx skills use Mochocyang/QMAI@qmai-release

指定 Agent (Claude Code)

npx skills add Mochocyang/QMAI --skill qmai-release -a claude-code -g -y

安装 repo 全部 skill

npx skills add Mochocyang/QMAI --all -g -y

预览 repo 内 skill

npx skills add Mochocyang/QMAI --list

SKILL.md

Frontmatter
{
    "name": "qmai-release",
    "description": "Release a stable QMAI version by updating version metadata and changelog, pushing main, waiting for the same-commit main CI release-cache warmup, then creating and pushing an annotated version tag. Use when asked to bump, publish, or tag a QMAI stable release; do not use for prerelease builds or ordinary PR delivery."
}

QMAI Stable Release

Use this workflow only in the Mochocyang/QMAI repository. Preserve the user's authorization boundary: preparing a release does not authorize pushing, tagging, or publishing unless the user requested those external mutations.

Release invariants

  • Push the release commit to main by itself. Never push main and the version tag in one command or atomic push.
  • Wait for the CI workflow on the exact release commit to finish successfully before creating the tag. This allows the Linux, Windows, and macOS release-cache warmup to complete.
  • Never create the tag while required validation or the matching main CI run is failing, cancelled, missing, or still running.
  • Never overwrite, move, or force-push main or a release tag.
  • Stop if origin/main moves away from the release commit before tagging. Reconcile the new remote state instead of tagging an older commit.
  • Use an annotated tag named v<package-version> and verify that the remote tag resolves to the release commit.

Workflow

  1. Confirm the repository and release target.

    • Verify the remote is Mochocyang/QMAI.
    • Require a clean worktree before switching or pulling.
    • Fetch origin/main and tags, switch to main, and update with --ff-only.
    • Confirm the requested version is a stable semantic version and the tag does not already exist locally or remotely.
  2. Update the complete QMAI release surface.

    • package.json
    • root package version and root package entry in package-lock.json
    • src-tauri/Cargo.toml
    • the qmai package entry in src-tauri/Cargo.lock
    • src-tauri/tauri.conf.json
    • src/lib/changelog.ts
    • src/lib/changelog.spec.ts
    • Derive release notes from commits since the previous version tag. Do not invent features or copy stale notes.
  3. Validate before committing.

    • Confirm every version source has the exact requested version.
    • Run node scripts/release-notes.mjs <version> and inspect that it returns the intended Chinese notes rather than the generic fallback.
    • Run npx vitest run src/lib/changelog.spec.ts scripts/release-notes.spec.mjs.
    • Run npm run test:mocks, npm run build, and git diff --check unless the user explicitly narrows validation.
    • If a required check fails, do not tag. Separate a verified pre-existing baseline failure from a release regression and obtain explicit authorization before proceeding despite it.
  4. Commit and push only main.

    • Use a Chinese Conventional Commit such as chore(release): 升级版本至 <version>.
    • Re-fetch origin/main immediately before pushing and confirm it is the release commit's parent.
    • Push only main. Record the exact release commit SHA.
  5. Wait for cache warmup on the exact release SHA.

    • Find the CI workflow run whose event is push, branch is main, and head SHA equals the release SHA.
    • Wait with gh run watch <run-id> --repo Mochocyang/QMAI --exit-status.
    • Stop if no matching run appears within 5 minutes, the run does not complete within 90 minutes, or its conclusion is not success.
  6. Tag only after CI succeeds.

    • Fetch origin/main and tags again.
    • Require local HEAD, origin/main, and the recorded release SHA to match.
    • Reconfirm that v<version> does not exist.
    • Create an annotated tag on the recorded SHA, then push only that tag in a separate command.
  7. Verify delivery.

    • Verify remote main and the dereferenced remote tag both resolve to the recorded release SHA.
    • Confirm QMAI Multi-Platform Release started for that tag and SHA.
    • Report the release workflow URL and current status. Do not claim release completion while jobs or required assets are pending.

Version History

  • 20447a2 Current 2026-08-27 15:01

Same Skill Collection

skills/de-ai-writing/SKILL.md
skills/good-writing/SKILL.md
skills/SkillHub/DagangSkill/outline-final-assembler/SKILL.md
skills/SkillHub/DagangSkill/outline-master-builder/SKILL.md
skills/SkillHub/DagangSkill/outline-supporting-cast/SKILL.md
skills/SkillHub/DagangSkill/protagonist-plot-fit/SKILL.md
skills/SkillHub/DagangSkill/story-goal-ladder/SKILL.md
skills/SkillHub/DagangSkill/story-plot-seed/SKILL.md
skills/SkillHub/DagangSkill/story-selling-point/SKILL.md
skills/SkillHub/DagangSkill/worldbuilding-outline-last/SKILL.md
skills/SkillHub/JueseSkill/character-design/SKILL.md
skills/SkillHub/JueseSkill/relationship-emotion/SKILL.md
skills/SkillHub/JueseSkill/supporting-cast/SKILL.md
skills/SkillHub/QualitySkill/outline-quality-check/SKILL.md
skills/SkillHub/SheDingSkill/faction-system/SKILL.md
skills/SkillHub/SheDingSkill/foreshadowing-suspense/SKILL.md
skills/SkillHub/SheDingSkill/idea-market-positioning/SKILL.md
skills/SkillHub/SheDingSkill/map-progression/SKILL.md
skills/SkillHub/SheDingSkill/power-system/SKILL.md
skills/SkillHub/SheDingSkill/world-rules/SKILL.md
skills/SkillHub/TicaiSkill/entertainment-livestream-esports/SKILL.md
skills/SkillHub/TicaiSkill/family-drama-short/SKILL.md
skills/SkillHub/TicaiSkill/farming-business-adventure/SKILL.md
skills/SkillHub/TicaiSkill/female-book-transmigration/SKILL.md
skills/SkillHub/TicaiSkill/female-chasing-wife/SKILL.md
skills/SkillHub/TicaiSkill/female-family-pampering-child/SKILL.md
skills/SkillHub/TicaiSkill/female-farming-business/SKILL.md
skills/SkillHub/TicaiSkill/female-house-palace/SKILL.md
skills/SkillHub/TicaiSkill/female-modern-romance/SKILL.md
skills/SkillHub/TicaiSkill/female-mystery-republic/SKILL.md
skills/SkillHub/TicaiSkill/female-period-rebirth/SKILL.md
skills/SkillHub/TicaiSkill/female-possessive-romance/SKILL.md
skills/SkillHub/TicaiSkill/female-rebirth-revenge/SKILL.md
skills/SkillHub/TicaiSkill/female-rich-family-ceo/SKILL.md
skills/SkillHub/TicaiSkill/female-secret-love-reunion/SKILL.md
skills/SkillHub/TicaiSkill/female-substitute-romance/SKILL.md
skills/SkillHub/TicaiSkill/female-workplace-youth-sweet/SKILL.md
skills/SkillHub/TicaiSkill/female-xuanhuan-fantasy/SKILL.md
skills/SkillHub/TicaiSkill/male-beast-taming/SKILL.md
skills/SkillHub/TicaiSkill/male-behind-the-scenes/SKILL.md
skills/SkillHub/TicaiSkill/male-history-alt-history/SKILL.md
skills/SkillHub/TicaiSkill/male-infinite-sci-fi-apocalypse/SKILL.md
skills/SkillHub/TicaiSkill/male-longevity-flow/SKILL.md
skills/SkillHub/TicaiSkill/male-lord-building/SKILL.md
skills/SkillHub/TicaiSkill/male-mortal-cultivation/SKILL.md
skills/SkillHub/TicaiSkill/male-simulator-loop/SKILL.md
skills/SkillHub/TicaiSkill/male-son-in-law-counterattack/SKILL.md
skills/SkillHub/TicaiSkill/male-urban-highmartial/SKILL.md
skills/SkillHub/TicaiSkill/male-urban-system/SKILL.md

Metadata

Files
0
Version
20447a2
Hash
cc3f2dbe
Indexed
2026-08-27 15:01

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-30 06:59
浙ICP备14020137号-1 $방문자$