LogoClawIndex
CasesSkillsAbout
LogoClawIndex

closure-migration - Migrate Mojo parametric closures to unified closures

Migrates Mojo code from legacy parametric and capturing closures to value-taking unified closures, and verifies compilation and host-side offload binding.

Tags

Updated: 2026-10-04

Capabilities

Typical Inputs

Typical Outputs

What this skill does

  • Inventory legacy closure usage
  • Rewrite parametric closure calls
  • Convert nested closure declarations
  • Preserve copy-capture semantics
  • Migrate closure-taking APIs
  • Remove obsolete overloads
  • Typecheck migrated Mojo code
  • Elaborate offload bindings

Inputs

  • Mojo source files
  • Closure-taking API definitions
  • Mojo compiler toolchain
  • Matching kgen executable
  • Target accelerator configuration

Outputs

  • Migrated Mojo source code
  • Updated skills or documentation
  • Compiler typecheck results
  • Host-side elaboration results
  • Migration self-check results

Requirements

  • Mojo compiler
  • Access to source files
  • Bazel toolchain for in-tree kgen
  • Matching compiler and kgen versions

Source

  • Spec: SKILL.md

ClawIndex

OpenClaw Skills & Use Case Index

ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

Index

Skills·
Cases

Meta

About·
Disclaimer·
Email·
GitHub
© 2026 ClawIndex All Rights Reserved.
Mojo
closure migration
parametric closures
unified closures
GPU offload
compiler elaboration
API migration
Inventory legacy closure usage
Rewrite parametric closure calls
Convert nested closure declarations
Preserve copy-capture semantics
Mojo source files
Closure-taking API definitions
Mojo compiler toolchain
Migrated Mojo source code
Updated skills or documentation
Compiler typecheck results