upgrading-emdash
Skill này làm gì
Skill này cập nhật dự án trang web EmDash lên bản phát hành mới hơn, bao gồm các gói phần mềm và ghi chú về những thay đổi. Skill dành cho lập trình viên muốn chuyển một trang hiện có sang phiên bản mới một cách an toàn.
Khi nào nên dùng
- ✓Khi bạn muốn cập nhật dự án EmDash hiện có lên bản phát hành mới nhất.
- ✓Khi ghi chú nâng cấp liệt kê các thay đổi mà dự án của bạn cần thích nghi.
- ✓Khi bạn muốn chắc chắn dự án sau nâng cấp vẫn build được và các migration cơ sở dữ liệu đúng.
Liên kết skill
https://github.com/emdash-cms/emdash/blob/main/skills/upgrading-emdash/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể nâng cấp dự án EmDash của tôi lên phiên bản mới nhất, áp dụng các thay đổi mà ghi chú yêu cầu và xác nhận dự án vẫn build được không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent chạy công cụ nâng cấp để cập nhật các gói và tạo danh sách việc cần làm về các thay đổi. Sau đó agent đọc danh sách này, áp dụng những thay đổi quan trọng với dự án của bạn, rồi chạy các kiểm tra và xem trạng thái migration.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
- Inspect the existing project and its uncommitted changes. Preserve unrelated work.
- Assess every release entry in
.emdash/UPGRADE.mdagainst the project. Apply required source and configuration changes. Do not adopt a new feature when the project does not use the affected surface. - Run the repository's relevant format, tests, typecheck, and build commands.
- Run the migration status command from the work order and report the target database and pending migrations.
- 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.
- 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.
- 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.
Câu hỏi thường gặp
Công cụ nâng cấp có thay đổi mã của tôi không?
Không. Công cụ chỉ cập nhật các gói và ghi chú, còn thay đổi mã của bạn được thực hiện riêng.
Tôi có thể xem trước bản nâng cấp không?
Có. Chế độ chạy thử (dry run) cho thấy những gì sẽ thay đổi mà không thực sự thay đổi gì.
Skill có triển khai trang lên mạng không?
Không. Việc triển khai không nằm trong quy trình này.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 14k
- Vị trí xếp hạng
- #11249
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
adversarial-reviewer
14kGiúp agent của bạn tìm lỗi ẩn và các giả định không an toàn trong một thay đổi code, vượt qua một đánh giá thông thường khi bạn yêu cầu.
agent-browser
14kCho phép agent của bạn kiểm thử trang web trong trình duyệt thật, kiểm tra người dùng thấy gì, xác minh hành động và chụp ảnh màn hình làm bằng chứng.
building-emdash-site
14kGiúp agent của bạn xây dựng phần website của một dự án EmDash CMS trên Astro, gồm nội dung, schema, menu, taxonomy và triển khai.
creating-plugins
14kGiúp agent của bạn tạo plugin cho hệ thống CMS EmDash, với hook, route, lưu trữ và giao diện quản trị an toàn.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.