跳到正文
Skillpedia
部署与云(DevOps)14k · #11249

upgrading-emdash

它能做什么

这项技能把 EmDash 网站项目更新到较新的发布版本,包括其软件包和关于变更内容的说明。适合希望安全地把现有网站迁移到新版本的开发者。

适用场景

  • ✓当你想把现有的 EmDash 项目更新到最新版本的时候。
  • ✓当升级说明列出了你的项目需要适应的变更时。
  • ✓当你想确认升级后的项目仍能构建、并且其数据库迁移正确的时候。

技能链接

https://github.com/emdash-cms/emdash/blob/main/skills/upgrading-emdash/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/emdash-cms/emdash/blob/main/skills/upgrading-emdash/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请帮我把 EmDash 项目升级到最新版本,应用升级说明中要求的变更,并确认它仍能构建?”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会运行升级工具来更新软件包,并生成一份变更工作清单。然后它会阅读这份清单,把对你的项目重要的变更应用上去,并运行检查和迁移状态确认。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Upgrading EmDash

Use upgrade-emdash to resolve the selected npm release tag, update every direct EmDash package, refresh the EmDash skills, and create the project-specific work order. The updater does not edit application code, apply database migrations, or deploy.

Prepare the work order

Run from the project root:

npx upgrade-emdash@latest --dry-run
npx upgrade-emdash@latest

Use --to <tag> for another npm dist-tag such as next or beta. --to does not accept a version. Use --yes to accept the updater prompt in a non-interactive environment, --json for a machine-readable dry-run, and --cwd <path> when the project root is elsewhere.

The updater writes .emdash/UPGRADE.md. Read that file after the command finishes. It contains the complete authored changelog entries crossed by the direct packages in this project, with generated dependency-bump entries removed, plus the exact core migration delta found after installation.

Complete the upgrade

  1. Inspect the existing project and its uncommitted changes. Preserve unrelated work.
  2. Assess every release entry in .emdash/UPGRADE.md against the project. Apply required source and configuration changes. Do not adopt a new feature when the project does not use the affected surface.
  3. Run the repository's relevant format, tests, typecheck, and build commands.
  4. Run the migration status command from the work order and report the target database and pending migrations.
  5. When the work order lists added core migrations, the status command reports an earlier pending migration, or a release entry requires a data-changing project action, follow the work order's backup procedure before starting or deploying the upgraded application.
  6. Ask before applying a migration to a database, deploying, or making any other remote change unless the user explicitly included that action in the request.
  7. After authorized migration and deployment work, run the migration check and verify the affected site paths.

Treat core migrations as forward-only. A package update with no added or pending migrations does not require an upgrade-specific recovery point. Before an authorized database-changing step, require a restorable database backup created with Backups and recovery, a separate media backup, the relevant encryption keys, and the same build artifact for migration and deployment. A JSON backup is not a recovery point. Roll back by restoring the matching database and application artifact together, not by running migration down() functions or deleting migration records.

常见问题

升级工具会修改我的代码吗?

不会。它只更新软件包并编写说明,对代码的修改需要另外进行。

我可以先预览升级吗?

可以。试运行会显示将会发生的变更,但不会实际进行修改。

它会部署网站吗?

不会。部署不属于这个流程的一部分。

详情

作者的原始描述

Upgrade an existing EmDash project with upgrade-emdash, interpret .emdash/UPGRADE.md, apply required project changes, and verify the package, skill, and migration result. Use when asked to update or upgrade EmDash dependencies. Do not use for an unrelated schema change or a known database migration without a package upgrade.

repo: emdash-cms/emdash

热度

GitHub 星标
14k
排名
#11249
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能