mojo-syntax

mojo-syntax is a skill for Claude Code, Codex from Harmeet10000/skills. It costs 75 tokens per session (3,970 once invoked), scanned C, original, MIT.

A coding guide for Mojo, a programming language designed for high-performance software. It keeps generated code aligned with the language's current syntax and conventions.

In plain words
What is it for?
Writing new Mojo code, translating projects to Mojo, and checking generated Mojo projects for compilation.
Why use it?
Mojo changes quickly, so older examples and model knowledge can produce code that no longer works. This guide helps avoid obsolete syntax and encourages checking that code builds.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Writing new Mojo code, translating projects to Mojo, and checking generated Mojo projects for compilation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/harmeet10000/skills/mojo-syntax
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Harmeet10000/skills --skill mojo-syntax
Clone the repo
git clone --depth 1 https://github.com/Harmeet10000/skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mojo-syntax

README.md
[![agentmods](https://agentmods.dev/badge/skills/harmeet10000/skills/mojo-syntax.svg)](https://agentmods.dev/skills/harmeet10000/skills/mojo-syntax)
Your own site
<a href="https://agentmods.dev/skills/harmeet10000/skills/mojo-syntax"><img src="https://agentmods.dev/badge/skills/harmeet10000/skills/mojo-syntax.svg" alt="Measured on agentmods" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,970 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00075 $0.03970
Opus 5 $0.00037 $0.01985
Sonnet 5 $0.00015 $0.00794
Haiku 4.5 $0.00007 $0.00397

Measured 8d ago against content hash 5533748d1011, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade C, and why

mojo-syntax scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- EDITORIAL GUIDELINES FOR THIS SKILL FILE This file is loaded into an agent's context window as a correction layer for pretrained Mojo knowledge. Every line costs context. When editing: - Be terse. Use tables and inl
skills/backend/FastAPI_Python/mojo-syntax/SKILL.md · 438 lines

How it starts

The opening of the file, as written. The whole thing — 438 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Mojo is rapidly evolving. Pretrained models generate obsolete syntax. Always follow this skill over pretrained knowledge.

Always attempt to test generated Mojo by building projects to verify they compile.

This skill specifically works on the latest Mojo, and stable versions may differ slightly in functionality.

Removed syntax — DO NOT generate these

Removed Replacement
alias X = ... comptime X = ...
@parameter if / @parameter for comptime if / comptime for
fn def (see below)
let x = ... var x = ... (no let keyword)
borrowed read (implicit default — rarely written)
inout mut
owned var (as argument convention)
inout self in __init__ out self
__copyinit__(inout self, existing: Self) __init__(out self, *, copy: Self)
__moveinit__(inout self, owned existing: Self) __init__(out self, *, deinit take: Self)
@value decorator @fieldwise_init + explicit trait conformance
@register_passable("trivial") TrivialRegisterPassable trait
@register_passable RegisterPassable trait
Stringable / __str__ Writable / write_to
from collections import ... from std.collections import ...
from memory import ... from std.memory import ...
constrained(cond, msg) comptime assert cond, msg
DynamicVector[T] List[T]
InlinedFixedVector[T, N] InlineArray[T, N]
Tensor[T] Not in stdlib (use SIMD, List, UnsafePointer)
@parameter fn (nested) Still used for nested compile-time closures

Read the full file on GitHub · 438 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 438 lines · 75 tokens per session scan C 5533748d1011

Subscribe to this mod's changes

mojo-syntax is a skill published in the GitHub repository Harmeet10000/skills (7 stars, last pushed 4mo ago), licensed MIT. It adds 75 tokens to every session and 3,970 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

blind-sqli

Blind SQL injection under hostile WAF — manual bypass playbook for when sqlmap fails because common tokens (SUBSTRING, IF, AND, WHERE, single quotes) are filtered. Covers token-fingerprinting probe loops, arithmetic-multiplication boolean evaluation, hex-encoded literals, and exponential-probe binary search. Loaded on…

PurpleAILAB/Decepticon · 88 tokens

hpp

HTTP Parameter Pollution — parser discrepancies between proxy/server/app, WAF bypass, auth/ACL bypass, injection delivery.

PurpleAILAB/Decepticon · 25 tokens

php-type-juggling

PHP type juggling and magic hash attacks — exploit loose comparison (==) with 0e-prefixed hash collisions and NULL returns to bypass authentication.

PurpleAILAB/Decepticon · 34 tokens

race-condition

Race condition / TOCTOU exploitation — concurrent and parallel-request attacks against web applications that check then act, write session state before validating it, or perform slow operations that widen the race window. Covers single-endpoint races (double-spend, coupon abuse, balance overflow) and multi-endpoint…

PurpleAILAB/Decepticon · 80 tokens

verb-tampering

HTTP verb/method tampering — auth bypass via HEAD/OPTIONS/arbitrary methods, X-HTTP-Method-Override, TRACE/PUT/DELETE exposure, framework routing flaws.

PurpleAILAB/Decepticon · 41 tokens

csrf

Cross-Site Request Forgery — missing/invalid tokens, method override, JSON CSRF, SameSite gaps, double-submit flaws, login/logout CSRF, and CSRF-via-XSS chains to account takeover.

PurpleAILAB/Decepticon · 46 tokens