Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/magpie-lang/magpienpx agentmods add skills/magpie-lang/magpie/magpieWrote 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.
[](https://agentmods.dev/skills/magpie-lang/magpie/magpie)<a href="https://agentmods.dev/skills/magpie-lang/magpie/magpie"><img src="https://agentmods.dev/badge/skills/magpie-lang/magpie/magpie.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00039 | $0.17528 |
| Opus 5 | $0.00019 | $0.08764 |
| Sonnet 5 | $0.00008 | $0.03506 |
| Haiku 4.5 | $0.00004 | $0.01753 |
Grade A, and why
magpie-engineer scanned grade A with 0 findings 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 1,923 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Magpie Language Programming Guide
Use this skill whenever you write, debug, or review Magpie .mp programs.
0) Non-negotiable Rules
- Binary-first: treat compiler diagnostics as ground truth.
- Run
magpie explain <CODE>for any error code you don't recognize. - Use
--output jsonfor machine-readable diagnostics.
- Run
- Diagnose by error code first, then apply the smallest fix.
- Smallest reproducer first -- one tiny
.mpfile, then grow. - Change one dimension at a time (syntax, then types, then ownership, then backend).
- Prove fixes with commands and exit codes.
1) What is Magpie
Magpie is a compiled, SSA-based language with explicit ownership, ARC memory management, and first-class GPU support. Programs are written in a low-level IR-like textual format (CSNF).
Key characteristics:
- SSA form -- every value is defined once, used by name (
%x,%y) - Explicit ownership -- you manually
borrow.shared,borrow.mut,share,clone.shared - ARC-managed heap -- the compiler inserts reference counting; you manage ownership transitions
- Block-structured -- functions contain labeled basic blocks (
bb0:,bb1:) with explicit terminators - No implicit conversions -- types must match exactly;
constsuffixes must match declared types - 5 GPU backends -- SPIR-V, Metal (MSL), PTX (CUDA), HIP (AMD), WGSL (WebGPU)
How Magpie differs from familiar languages:
- There are no expressions or statements -- only SSA instructions and terminators
- Control flow uses
br,cbr,switch-- notif/else/for/while - Variables are SSA locals (
%name) -- assigned exactly once - Functions are
@name-- always prefixed with@ - Types are
TName-- user-defined types start withT - Comments use
;(not//or#); doc comments use;;
2) Module Structure
Every .mp file must have a strict header in exactly this order:
module <module.path>
exports { <exported symbols> }
imports { <import groups> }
digest "<hex string>"
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.
- 8d ago First seen · 1,923 lines · 39 tokens per session scan A 444b560cf044
magpie-engineer is a skill published in the GitHub repository magpie-lang/magpie (54 stars, last pushed 6mo ago), licensed MIT. It adds 39 tokens to every session and 17,528 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
matlab
Build, review, migrate, and safely plan MATLAB or GNU Octave numerical workflows, including arrays, tabular/time data, tests, projects, graphics, MAT files, and explicit Python interoperability.
ast-grep
Guide for writing ast-grep rules to perform structural code search and analysis. Use when users need to search codebases using Abstract Syntax Tree (AST) patterns, find specific code structures, or perform complex code queries that go beyond simple text search. This skill should be used when users ask to search for…
platform-detection
Identify a .NET project's test platform, framework, command mode, and SDK-style vs classic project system. Use only for "which test platform/framework?", "VSTest or MTP?", or "what runner does this project use?", including bridge settings, UseVSTest opt-outs, and incompatible or conflicting VSTest/MTP configuration.…
unity-version-split
Split a C# file into Unity 6.5+ and pre-Unity 6.5 variants. Use when a file needs different implementations for different Unity versions due to API changes (e.g., EntityId vs int, GetEntityId vs GetInstanceID).
omh-rust
This is a Hermes-native rust workflow skill.
axiom-concurrency
Use when writing ANY async code, actors, threads, or seeing ANY concurrency error. Covers Swift 6 concurrency, @MainActor, Sendable, data races, async/await patterns.