mlx-porting-skill AGENTS.md

mlx-porting-skill AGENTS.md is an instructions file for Codex, OpenCode from Amal-David/mlx-porting-skill. It costs 713 tokens per session, scanned C, original, Apache-2.0.

Contributor instructions for a repository that ports machine-learning models to MLX, Apple's framework for running machine learning on Apple hardware. They define research, validation, benchmarking, and safety expectations.

In plain words
What is it for?
Use them when adding MLX porting work, reviewing research-based recommendations, writing skills or scripts, and validating optimization changes.
Why use it?
They help prevent unverified techniques, unsupported claims, unsafe remote code execution, and optimization changes without rollback or correctness checks.

Instructions file for CodexOpenCode

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.

agentmods
npx agentmods add instructions/amal-david/mlx-porting-skill/agents-md
Clone the repo
git clone --depth 1 https://github.com/Amal-David/mlx-porting-skill

Made for: Codex, OpenCode.

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 mlx-porting-skill AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/amal-david/mlx-porting-skill/agents-md.svg)](https://agentmods.dev/instructions/amal-david/mlx-porting-skill/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/amal-david/mlx-porting-skill/agents-md"><img src="https://agentmods.dev/badge/instructions/amal-david/mlx-porting-skill/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 713 This file is loaded in full into every session.
When invoked 713 The same file — it is already loaded in full.
Security scan C 1 finding. Scan, not verified.
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 $0.00713 $0.00713
Opus 5 $0.00357 $0.00357
Sonnet 5 $0.00143 $0.00143
Haiku 4.5 $0.00071 $0.00071

Measured 4d ago against content hash 4d59e8ddb6eb, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

mlx-porting-skill AGENTS.md 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 4d 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.

<!-- superplan-entry-instructions:start -->
Origin

Copies of this mod

1 near-identical copy found in the catalogue:

AGENTS.md · 54 lines

How it starts

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

Contributor instructions

Treat this repository as an executable engineering standard, not a prompt collection.

  • Preserve source provenance and review depth. Never promote an indexed source to synthesized without recording the affected rule or runbook.
  • Prefer official MLX code and documentation over secondary performance claims.
  • Do not introduce a technique as “supported” until a reproducible MLX path and validation gate exist.
  • Keep SKILL.md compact. Put architecture detail in references/ and structured facts in assets/.
  • Scripts must be inspectable, non-destructive by default, and must not execute remote model code.
  • Daily automation may collect candidates and open a review change. It must not auto-merge research-derived recommendations.
  • Every optimization change needs a correctness check, benchmark metadata, and a rollback condition.

Optional Superplan Operating Contract

When Superplan is installed, load and follow superplan-entry from the first available location:

  • .codex/skills/superplan-entry/SKILL.md
  • .superplan/skills/superplan-entry/SKILL.md
  • ${HOME}/.config/superplan/skills/superplan-entry/SKILL.md
  • ${HOME}/.codex/skills/superplan-entry/SKILL.md

If Superplan is unavailable, continue with the repository-native workflow in VALIDATION.md; optional orchestration must never make a fresh checkout unusable.

When Superplan is active:

  • No implementation before loading and following superplan-entry.
  • No broad repo exploration before loading and following superplan-entry.
  • No planning or repo-specific clarification before loading and following superplan-entry.
  • Keep workflow control internal: do not narrate skill names, routing, or command logs to the user.
  • If .superplan/ exists, treat the Superplan CLI as the execution control plane.
  • Prefer workspace harnesses, scripts, and custom workflows when superplan-entry routes you there.

Canonical loop when Superplan is active:

  1. Run superplan status --json.
  2. Claim or resume work with superplan run --json or superplan run <task_id> --json.
  3. Continue through the owning Superplan phase instead of improvising a parallel workflow.
  4. Use lifecycle commands such as superplan task runtime block, superplan task runtime request-feedback, and superplan task review complete; never hand-edit .superplan/runtime/.

Read the full file on GitHub · 54 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. 4d ago First seen · 54 lines · 713 tokens per session scan C 4d59e8ddb6eb

Subscribe to this mod's changes

mlx-porting-skill AGENTS.md is an instructions file published in the GitHub repository Amal-David/mlx-porting-skill (5 stars, last pushed yesterday), licensed Apache-2.0. It adds 713 tokens to every session, about $0.0036 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 instructions, from other repositories