migrating-motoko-actors
Migrate Motoko Actors With Enhanced Migration Chains
Motoko canister upgrades can fail or lose data when state changes do not match migration inputs and outputs. This skill guides compatible changes, self-contained migrations, and validation for enhanced migration chains.
๋ด ์์ด์ ํธ๋ก ์ค์น
์ด ์์ฒญ์ ์์ด์ ํธ์ ๋ณต์ฌํ์ธ์. ๊ณต์ Skill ํ์ด์ง์ ๋งค๋ํ์คํธ๊ฐ ํฌํจ๋์ด ์์ต๋๋ค.
Review the Skillstore skill "migrating-motoko-actors" from https://skillstore.io/skills/caffeinelabs-migrating-motoko-actors.md and its manifest at https://skillstore.io/api/skills/caffeinelabs-migrating-motoko-actors/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.์์ด์ ํธ๋ ๊ณ์ํด์ ๊ณํ์ ํ์ํ๊ณ ๋ณด์ ์ ์ฑ ์์ ์๊ตฌํ๋ ํ์ธ์ ์์ฒญํด์ผ ํฉ๋๋ค.
์์ด์ ํธ๊ฐ ์ฝ๊ธฐ ์ฌ์ด ๋ฆฌ์์ค
AI ์์ด์ ํธ, ํฌ๋กค๋ฌ, ์คํฌ๋ฆฝํธ๊ฐ ์ ์ฒด ํ์ด์ง ๋์ ์ ๋ฆฌ๋ ์ปจํ ์คํธ๋ง ํ์ํ ๋ ์ด ๋งํฌ๋ฅผ ์ฌ์ฉํ์ธ์.
ํ ์คํธํด ๋ณด๊ธฐ
"migrating-motoko-actors" ์ฌ์ฉ ์ค์ ๋๋ค. An enhanced migration project adds an optional assignee field to every stored task.
์์ ๊ฒฐ๊ณผ:
Use an explicit migration that preserves existing task values and initializes each assignee as absent. Extend the pending migration if one already exists.
"migrating-motoko-actors" ์ฌ์ฉ ์ค์ ๋๋ค. A canister changes a stable numeric field from Nat to Int.
์์ ๊ฒฐ๊ณผ:
This is usually a stable-compatible widening and does not need an explicit migration. Confirm the deployed signature and run the compatibility check.
"migrating-motoko-actors" ์ฌ์ฉ ์ค์ ๋๋ค. A canister renames artist to artists and changes the value from text to a set.
์์ ๊ฒฐ๊ณผ:
Transform the old text value into a single-item set for the renamed field. Inline both state types and preserve all unrelated fields.
๋ณด์ ๊ฐ์ฌ
์์ All 77 static findings are false positives involving Markdown formatting, legitimate mops validation commands, official documentation links, and Motoko type notation. The relative import example explicitly prohibits project imports rather than performing path traversal. No evidence found of prompt injection, credential access, unauthorized data transmission, or malicious migration intent in the two reviewed files.
์ํ ์์ธ
โ๏ธ ์ธ๋ถ ๋ช ๋ น์ด (50)
๐ ๋คํธ์ํฌ ์ ๊ทผ (2)
๐ ํ์ผ ์์คํ ์ ๊ทผ (1)
์ด ๋ณด๊ณ ์ ๊ณต์ ๋ฐ ์ธ์ฉ
๋ฒ์ ์ด ์ง์ ๋ ํ๊ฐ ๋ณด๊ณ ์, ์ค๋ฆฝ ๋ฐฐ์ง, ์๋ฒ ๋ ์นด๋ ๋ฐ ์ธ์ฉ์ ๊ณต์ ํ์ธ์. Skillstore๋ ๊ทผ๊ฑฐ๋ฅผ ๋ณด๊ณ ํ์ง๋ง ์ด Skill์ ์์ ์ฌ๋ถ๋ฅผ ํ๋จํ์ง ์์ต๋๋ค.
๋ณด๊ณ ์ ๋งํฌ ๋ณต์ฌ
https://skillstore.io/skills/caffeinelabs-migrating-motoko-actors/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown ๋ฐฐ์ง
[](https://skillstore.io/skills/caffeinelabs-migrating-motoko-actors?utm_source=security_passport_badge)HTML ๋ฐฐ์ง
<a href="https://skillstore.io/skills/caffeinelabs-migrating-motoko-actors?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/caffeinelabs-migrating-motoko-actors/security.svg" alt="Skillstore security assessment" loading="lazy"></a>์๋ฒ ๋ ์นด๋
<iframe src="https://skillstore.io/embed/skills/caffeinelabs-migrating-motoko-actors.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>ํ์ ์ธ์ฉ (APA ยท BibTeX ยท CFF)
APA ์ธ์ฉ
caffeinelabs. (2026). migrating-motoko-actors security audit report (audit version 1) [Author version 0.2.6]. Skillstore. https://skillstore.io/skills/caffeinelabs-migrating-motoko-actors/audits/1BibTeX ์ธ์ฉ
@techreport{caffeinelabs-caffeinelabs-migrating-motoko-actors-2026,
author = {caffeinelabs},
title = {migrating-motoko-actors security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/caffeinelabs-migrating-motoko-actors/audits/1},
note = {Author version 0.2.6}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "migrating-motoko-actors security audit report (audit version 1)"
version: "0.2.6"
type: report
authors:
- name: "caffeinelabs"
date-released: "2026-10-02"
url: "https://skillstore.io/skills/caffeinelabs-migrating-motoko-actors/audits/1"
identifiers:
- type: other
value: "skillstore:caffeinelabs-migrating-motoko-actors:audit:1"
description: "Skillstore immutable audit report identifier"
Skillstore ์ ์
์ด ์ ์์ ์ด์ ์ฆ๊ฑฐ ์ ๋ขฐ๋: ์ค๊ฐ๋ง๋ค ์ ์๋ ๊ฒ
Understand stable state changes
Classify proposed field changes and identify when an enhanced migration file is necessary.
Write a migration module
Draft self-contained state transformations while preserving unchanged fields and using the existing pending migration.
Review upgrade readiness
Check chain ordering, deployed signatures, intentional data removal, and validation steps before releasing an upgrade.
์ด ํ๋กฌํํธ๋ฅผ ์ฌ์ฉํด ๋ณด์ธ์
My project uses enhanced Motoko migrations. Classify these stable field changes as implicit or explicit: [changes]. Explain each decision.
Add this stable field in my enhanced migration project: [field and type]. Review [existing chain] and propose initialization without modifying applied migrations.
Using [old fields], [new fields], and [business rules], draft a self-contained Motoko migration. Preserve unchanged state and explain every default and discarded field.
Review [migration plan], [deployed signature], and [mops configuration]. Check stable compatibility, chain ordering, pending limits, fresh installation, and data preservation. Propose validation steps.
๋ชจ๋ฒ ์ฌ๋ก
- Derive old state from the preceding migration; use empty state only for a new chain, not a legacy conversion.
- Keep applied migrations unchanged and fold new work into the pending file.
- Run compatibility checks before building and test the upgrade with representative state.
ํผํ๊ธฐ
- Do not add a migration for a stable-compatible change or an identity transformation.
- Do not apply the enhanced-chain initializer rules to plain actors without a migration chain.
- Do not import project types into frozen migration files or discard fields unintentionally.
์์ฃผ ๋ฌป๋ ์ง๋ฌธ
When is an explicit migration required?
Can I change field mutability without a migration?
Where should migration files live?
Why must migration types be inlined?
How do I initialize a new stable field?
Does this skill deploy my canister?
๊ฐ๋ฐ์ ์ธ๋ถ ์ ๋ณด
์์ฑ์
caffeinelabs๋ผ์ด์ ์ค
MIT
์์ฑ์ ๋ฒ์
v0.2.6
Skillstore ๋ฆฌ๋น์
r1
๋ฆฌํฌ์งํ ๋ฆฌ
https://github.com/caffeinelabs/skills/tree/9e40da604ff8f08f291943f935445c78fd8a36f8/skills/migrating-motoko-actors์ฐธ์กฐ
4a2784fa51569d7e1be060d54def4cdfd352ac62
์ ์ง๋ณด์ ์ต์ ์ฑ
2026. 10. 2.
์ฌ์ฉ๋
0 ๋ค์ด๋ก๋ ยท 0 ์กฐํ
ํ์ผ ๊ตฌ์กฐ
๐ examples.md
๐ SKILL.md