Skip to content

chore(upstream): sync caffeinelabs/skills to 6055cec - #483

Merged
raymondk merged 2 commits into
dfinity:mainfrom
Kamirus:chore/sync-upstream-skills-6055cec
Nov 26, 2026
Merged

raymondk merged 2 commits into
dfinity:mainfrom
Kamirus:chore/sync-upstream-skills-6055cec

Conversation

@Kamirus

@Kamirus Kamirus commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Agents that build Caffeine apps from this repo now get the current template's layout: the stable-check baseline lives at deployed/backend.most, the mops layout, instead of .old/src/backend/dist/backend.most. New Caffeine projects scaffold with the new path since 26 November. The previous caffeine-app copy taught a path that no longer matches them.

Before, in caffeine-app:

[canisters.backend.check-stable]
path = ".old/src/backend/dist/backend.most"

After:

[canisters.backend.check-stable]
path = "deployed/backend.most"

All six skills tracked from caffeinelabs/skills move from 6b10f22 to 6055cec. Upstream's diff: 6b10f22...6055cec.

  • caffeine-app: the baseline at deployed/backend.most, with .old/… named only for older projects. caffeine preview uploads source and Caffeine builds it, and caffeine projects create --cloud picks the cloud.
  • writing-motoko: a new ## JSON section: parse and render JSON with jayson, never mo:json. It also says where recurring timers must start.
  • reviewing-motoko: a new blocker check, S6, for a recurring timer the actor body does not restart after an upgrade.
  • migrating-motoko-actors and troubleshooting-motoko-migrations: when several migrations are pending, fold them into the newest. They also add an exception that keeps the first migration of a project converted from legacy persistence.
  • migrating-to-moc-2: unchanged upstream. Only its pin moves.

Closes #480.

icskills-owned changes

  • Frontmatter: kept ours on every skill, as .claude/upstream.md requires. Upstream's version bumps aren't carried over, and the tracking file records them.
  • Reference paths: the new timer link in writing-motoko points at references/examples.md#timer-example, like the skill's other intra-skill links.

Apart from those, every synced body matches upstream line for line, with the same icskills-owned differences as before the sync.

What is unchanged

  • scripts/data/moc-error-codes.json stays at moc 1.16.1, for the reason given in #460. check-project.js passes for 43 skills, with the same five warnings as on main.
  • skill-validator hasn't run locally. CI runs it.
  • Evaluations: not re-run. Two caffeine-app cases now expect deployed/backend.most: the mops.toml criterion and the missing-baseline case, which quotes the error a new app now gives. The other caffeine-app and writing-motoko cases still match the new bodies.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Kamirus
Kamirus requested a review from a team as a code owner November 26, 2026 16:13
Copilot AI balanced review requested due to automatic review settings November 26, 2026 16:13

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The evaluation still expects the obsolete backend path, causing the updated template to fail; it needs the deployed/backend.most expectation and missing-baseline coverage for the new layout.

1 open issue
What changed in this PR

Syncs six tracked Caffeine and Motoko skills to upstream commit 6055cec, updating agent guidance for current project templates while preserving repository-owned frontmatter.

Changes:

  • Updates Caffeine’s baseline path to deployed/backend.most and documents source uploads and cloud selection.
  • Adds jayson JSON guidance and upgrade-safe recurring timer guidance.
  • Revises pending-migration consolidation rules and protects the initial legacy-conversion migration.
File Description
skills/​writing-motoko/​SKILL.md Adds JSON and timer guidance; clarifies implicit imports.
skills/​writing-motoko/​references/​examples.md Restarts the example’s recurring timer from the actor body.
skills/​troubleshooting-motoko-migrations/​SKILL.md Clarifies pending migrations and timer initialization.
skills/​reviewing-motoko/​SKILL.md Adds a timer blocker and updates migration checks.
skills/​reviewing-motoko/​references/​state-and-persistence.md Aligns pending-migration consolidation guidance.
skills/​migrating-motoko-actors/​SKILL.md Updates consolidation rules and preserves legacy conversion bases.
skills/​caffeine-app/​SKILL.md Updates baseline layout, preview behavior, and cloud selection.
.claude/​upstream.md Records updated pins, upstream versions, and sync dates.

Review effort: Balanced

Comment thread skills/caffeine-app/SKILL.md Resolved
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 26, 2026 16:20

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The recovery creates deployed/backend.most instead of seeding the baseline path configured in mops.toml, so caffeine check still fails for supported older, never-deployed projects.

No open issues 🎉

1 previously missed issue

In code that hasn't changed since last review

Medium severity Seed the configured baseline path for legacy projects

skills/​caffeine-app/​SKILL.md:600

This recovery no longer works for an older, never-deployed project whose check-stable.path still points to .old/src/backend/dist/backend.most, a configuration explicitly supported above. Creating deployed/backend.most leaves the configured baseline missing, so caffeine check continues to fail. Please seed the path configured in mops.toml, using deployed/backend.most only for the new layout.

1 resolved since last review

Review effort: Balanced

@raymondk
raymondk merged commit 5d4851f into dfinity:main Nov 26, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

upstream sync available — caffeinelabs/skills 6b10f22 → c74091b

3 participants