{"id":"b30663b4-466e-4538-a63f-faecb1efc364","shortId":"gZXr38","kind":"skill","title":"mojo-tools","tagline":"Use when editing Mojo code, .mojo files, fire emoji files, SIMD kernels, Python-Mojo interop, GIL-free parallelism, C FFI, hatch-mojo build hooks, or packaging Mojo extensions.","description":"# Mojo (Flow Tools)\n\n<workflow>\n\n## 🚀 Official Modular Skills (Highly Recommended)\n\nFor comprehensive support for modern Mojo syntax, project initialization, and GPU programming, we highly recommend installing the official Modular agent skills:\n\n- **mojo-syntax**: Overcomes agent misconceptions and ensures correct modern syntax.\n- **new-modular-project**: Wizard for initializing Mojo/MAX projects with Pixi and UV.\n- **mojo-python-interop**: Expert guidance for zero-copy Python interaction.\n- **mojo-gpu-fundamentals**: Patterns for high-performance accelerator programming.\n\n**Installation:**\n\n```bash\nnpx skills add modular/skills\n```\n\n## Supplemental Patterns\n\nThe patterns below focus on project integration and build hooks.\n\n### Hatch-Mojo Build Hook\n\nThe `hatch-mojo` plugin allows seamless compilation of Mojo source files during the standard Python build process.\n\n**Key Configuration (`pyproject.toml`):**\n\n```toml\n[tool.hatch.build.targets.wheel.hooks.mojo]\n# Configuration for mojo compilation\n```\n\n</workflow>\n\n<guardrails>\n## Guardrails\n\n- **Explicitly define memory ownership** -- Use `owned`, `borrowed`, and `inout` to manage data flow and avoid unnecessary copies.\n- **Use `SIMD` for performance-critical logic** -- Mojo excels at vectorization; always consider SIMD when processing large arrays.\n- **Verify data alignment** -- Ensure pointers are aligned for the target architecture, especially when using SIMD operations.\n</guardrails>\n\n<validation>\n## Validation Checkpoint\n\n- [ ] Explicit ownership markers are correctly applied to arguments\n- [ ] SIMD vectorization is implemented where applicable\n- [ ] Memory safety is verified through ownership and borrowing checks\n</validation>\n\n<example>\n## Hatch-Mojo Build Hook Example\n\n```toml\n[tool.hatch.build.targets.wheel.hooks.mojo]\ndependencies = [\"hatch-mojo\"]\npath = \"src/my_extension.mojo\"\n```\n\n</example>","tags":["mojo","tools","flow","cofin","agent-skills","ai-agents","beads","claude-code","codex","cursor","developer-tools","gemini-cli"],"capabilities":["skill","source-cofin","skill-mojo-tools","topic-agent-skills","topic-ai-agents","topic-beads","topic-claude-code","topic-codex","topic-cursor","topic-developer-tools","topic-gemini-cli","topic-opencode","topic-plugin","topic-slash-commands","topic-spec-driven-development"],"categories":["flow"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/cofin/flow/mojo-tools","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add cofin/flow","source_repo":"https://github.com/cofin/flow","install_from":"skills.sh"}},"qualityScore":"0.455","qualityRationale":"deterministic score 0.46 from registry signals: · indexed on github topic:agent-skills · 11 github stars · SKILL.md body (1,883 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-05-18T19:07:37.885Z","embedding":null,"createdAt":"2026-04-23T13:04:00.080Z","updatedAt":"2026-05-18T19:07:37.885Z","lastSeenAt":"2026-05-18T19:07:37.885Z","tsv":"'acceler':109 'add':115 'agent':62,68 'align':199,203 'allow':139 'alway':190 'appli':220 'applic':228 'architectur':207 'argument':222 'array':196 'avoid':176 'bash':112 'borrow':168,236 'build':29,127,132,150,241 'c':24 'check':237 'checkpoint':214 'code':8 'compil':141,160 'comprehens':44 'configur':153,157 'consid':191 'copi':97,178 'correct':72,219 'critic':184 'data':173,198 'defin':163 'depend':246 'edit':6 'emoji':12 'ensur':71,200 'especi':208 'exampl':243 'excel':187 'expert':92 'explicit':162,215 'extens':34 'ffi':25 'file':10,13,145 'fire':11 'flow':36,174 'focus':122 'free':22 'fundament':103 'gil':21 'gil-fre':20 'gpu':53,102 'guardrail':161 'guidanc':93 'hatch':27,130,136,239,248 'hatch-mojo':26,129,135,238,247 'high':41,56,107 'high-perform':106 'hook':30,128,133,242 'implement':226 'initi':51,81 'inout':170 'instal':58,111 'integr':125 'interact':99 'interop':19,91 'kernel':15 'key':152 'larg':195 'logic':185 'manag':172 'marker':217 'memori':164,229 'misconcept':69 'modern':47,73 'modular':39,61,77 'modular/skills':116 'mojo':2,7,9,18,28,33,35,48,65,89,101,131,137,143,159,186,240,249 'mojo-gpu-fundament':100 'mojo-python-interop':88 'mojo-syntax':64 'mojo-tool':1 'mojo/max':82 'new':76 'new-modular-project':75 'npx':113 'offici':38,60 'oper':212 'overcom':67 'own':167 'ownership':165,216,234 'packag':32 'parallel':23 'path':250 'pattern':104,118,120 'perform':108,183 'performance-crit':182 'pixi':85 'plugin':138 'pointer':201 'process':151,194 'program':54,110 'project':50,78,83,124 'pyproject.toml':154 'python':17,90,98,149 'python-mojo':16 'recommend':42,57 'safeti':230 'seamless':140 'simd':14,180,192,211,223 'skill':40,63,114 'skill-mojo-tools' 'sourc':144 'source-cofin' 'src/my_extension.mojo':251 'standard':148 'supplement':117 'support':45 'syntax':49,66,74 'target':206 'toml':155,244 'tool':3,37 'tool.hatch.build.targets.wheel.hooks.mojo':156,245 'topic-agent-skills' 'topic-ai-agents' 'topic-beads' 'topic-claude-code' 'topic-codex' 'topic-cursor' 'topic-developer-tools' 'topic-gemini-cli' 'topic-opencode' 'topic-plugin' 'topic-slash-commands' 'topic-spec-driven-development' 'unnecessari':177 'use':4,166,179,210 'uv':87 'valid':213 'vector':189,224 'verifi':197,232 'wizard':79 'zero':96 'zero-copi':95","prices":[{"id":"16746bd5-4679-42ce-bffc-c9fca92b2d36","listingId":"b30663b4-466e-4538-a63f-faecb1efc364","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"cofin","category":"flow","install_from":"skills.sh"},"createdAt":"2026-04-23T13:04:00.080Z"}],"sources":[{"listingId":"b30663b4-466e-4538-a63f-faecb1efc364","source":"github","sourceId":"cofin/flow/mojo-tools","sourceUrl":"https://github.com/cofin/flow/tree/main/skills/mojo-tools","isPrimary":false,"firstSeenAt":"2026-04-23T13:04:00.080Z","lastSeenAt":"2026-05-18T19:07:37.885Z"}],"details":{"listingId":"b30663b4-466e-4538-a63f-faecb1efc364","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"cofin","slug":"mojo-tools","github":{"repo":"cofin/flow","stars":11,"topics":["agent-skills","ai-agents","beads","claude-code","codex","context-driven-development","cursor","developer-tools","gemini-cli","opencode","plugin","slash-commands","spec-driven-development","subagents","tdd","workflow"],"license":"apache-2.0","html_url":"https://github.com/cofin/flow","pushed_at":"2026-04-27T19:07:26Z","description":"Context-Driven Development toolkit for AI agents — spec-first planning, TDD workflow, and Beads integration.","skill_md_sha":"1f3fef89ab0f4a7ba87502336f7f7b73cba5cdda","skill_md_path":"skills/mojo-tools/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/cofin/flow/tree/main/skills/mojo-tools"},"layout":"multi","source":"github","category":"flow","frontmatter":{"name":"mojo-tools","description":"Use when editing Mojo code, .mojo files, fire emoji files, SIMD kernels, Python-Mojo interop, GIL-free parallelism, C FFI, hatch-mojo build hooks, or packaging Mojo extensions."},"skills_sh_url":"https://skills.sh/cofin/flow/mojo-tools"},"updatedAt":"2026-05-18T19:07:37.885Z"}}