modular/skills

closure-migration

Installation

$ npx skills add https://github.com/modular/skills

Summary

  • Migrates Mojo code off legacy parametric closures (`capturing[_]`, `@__parameter` / `@parameter`, `api[fn](args)`) onto value-taking unified closures (`api(args, fn)` with `{imm}` / `{mut}` / `{var}` / named capture lists).
  • Use when removing parametric overloads, fixing "capturing thin" conversion errors, rewriting nested launch/callback closures, or migrating any API that took a comptime function parameter.
  • Also use when CI SIGSEGVs while compiling a Mojo object with `compile_offload_closure func must be fully bound` — that is host elaboration; verify with `kgen -elaborate`, not remote GPU execution.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from modular/skills · top by installs.

npx skills add https://github.com/modular/skills

Browse all from modular/skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 189
License LICENSE
Default branch main
Open issues 2
Status Active

History

  1. First recorded snapshot · 13 installs