neuron-framework-optimization

neuron-framework-optimization is a skill for Claude Code from aws-neuron/neuron-agentic-development. It costs 191 tokens per session (18,225 once invoked), scanned C, original, Apache-2.0.

A workflow for optimizing machine-learning models on AWS Neuron hardware, including Trainium and Neuron-enabled serving software. It coordinates planning, hardware checks, profiling, analysis, implementation, and compiler debugging to meet latency and throughput targets.

In plain words
What is it for?
Use it to plan parallel execution, verify hardware capacity, profile model serving, analyze bottlenecks, implement performance changes, and debug compiler or framework issues on AWS Neuron.
Why use it?
It provides ordered checks for whether a performance target is feasible and uses measurements to guide changes instead of relying on assumptions about the model or hardware.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions subagents.

Good fit Use it to plan parallel execution, verify hardware capacity, profile model serving, analyze bottlenecks, implement performance changes, and debug compiler or framework issues on AWS Neuron.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aws-neuron/neuron-agentic-development/neuron-framework-optimization
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 aws-neuron/neuron-agentic-development --skill neuron-framework-optimization
Clone the repo
git clone --depth 1 https://github.com/aws-neuron/neuron-agentic-development

Made for: Claude Code.

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 neuron-framework-optimization

README.md
[![agentmods](https://agentmods.dev/badge/skills/aws-neuron/neuron-agentic-development/neuron-framework-optimization/github.svg)](https://agentmods.dev/skills/aws-neuron/neuron-agentic-development/neuron-framework-optimization)
Your own site
<a href="https://agentmods.dev/skills/aws-neuron/neuron-agentic-development/neuron-framework-optimization"><img src="https://agentmods.dev/badge/skills/aws-neuron/neuron-agentic-development/neuron-framework-optimization/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for neuron-framework-optimization

Your own site · 80×15
<a href="https://agentmods.dev/skills/aws-neuron/neuron-agentic-development/neuron-framework-optimization"><img src="https://agentmods.dev/badge/skills/aws-neuron/neuron-agentic-development/neuron-framework-optimization.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 191 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 18,225 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. 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.00191 $0.18225
Opus 5.5 $0.00076 $0.07290
Sonnet 5.5 $0.00038 $0.03645
Haiku 4.5 $0.00019 $0.01823

Measured today against content hash c535ceee5144, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

neuron-framework-optimization scanned grade C with 2 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 today.

The scan reads SKILL.md. This mod also ships 39 executable files (scripts/analyze_local.py, scripts/collect_perf_data_local.py, scripts/config/conftest.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

# after `rm -rf agent_artifacts`). Resolves the venv (rejects an editable/checkout nkilib), copies

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

> variable" only as a benign warning). Verify a clean launch by `curl :$PORT/health`, not by
skills/neuron-framework-optimization/SKILL.md · 996 lines

How it starts

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

AutoBridge: Model Optimization Workflow

A step-by-step approach to optimizing a model using the specialized Neuron optimization skills/agents, in a fixed ordering, bracketed by two decision gates. The most expensive failures in this workflow are NOT wrong measurements — they are (A) declaring a target infeasible without reconciling it into the two serving objectives, and (B) hand-rolling tooling a specialized agent already provides, or accepting a delegated conclusion without primary evidence. Do not skip the gates.

Load each skill's references/ before acting, not after. The skills used here (neuron-parallelism-planner, neuron-hardware-entitlement, neuron-framework-profiling-vllm-neuron, neuron-framework-profile-analysis-vllm-neuron) carry worked examples, confirmed dead-ends, runtime feasibility gates, and fabrication-detection case studies from real prior runs directly in their references/ (e.g. generic-encoder-only-model_report.md, tp-feasibility-and-kv-replication.md, system-trace-queries.md, fabricated-analysis-case-study.md). A matching worked example for the model / family / hardware at hand is the starting point for that step, not optional background. There is no separate "search for prior work" step — the prior work lives inside the skills; using a skill without reading its references is the failure mode.

This skill's own references/ — load at task start. Every parenthesised lesson code in this document resolves to an entry there, so a rule you are tempted to skip can be read in full rather than taken on faith:

Reference What it is How this document cites it
references/INVESTIGATION_OPTIMIZATION_PLAYBOOK.md How to record the work as you do it: operating principles, deep-dive / tracker / lessons artifacts, cadence, verdict vocabulary "the playbook"; see Evidence trail below
references/FRAMEWORK_MODEL_OPTIMIZATION_LESSONS.md Framework/model anti-pattern → principle lessons, Part A–Part N bare codes — D1, D4, E5, G4, H7, J14, K1, … (each a ### <code> entry)
references/KERNEL_OPTIMIZATION_LESSONS.md Kernel/profiling anti-pattern → principle lessons KERNEL-prefixed codes — KERNEL A1, KERNEL A10, KERNEL B13, …
references/OPTIMIZATION_BOOK.md NKI performance-engineering primer for trn2/trn3: cost model, SBUF/PSUM allocation, instruction set, profiling loop, worked case studies, pre-flight checklist read before proposing or reviewing kernel work (step 6)
references/SWEEP_ACCELERATION.md Why step 5's wall-time is compile + bring-up, and how to collapse it step 5 acceleration
references/ORCHESTRATOR_TASK_PROMPT.md Fill-in-the-blank orchestrator task-prompt template: parameters block, delegation contract, the burned-in delegation failure and its fix, leg vs joint SLA strategy, and the objective/measurement rules the task-prompt template; use to kick off a run

Read the full file on GitHub · 996 lines

Files

What ships with it

53 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. today First seen · 996 lines · 191 tokens per session scan C c535ceee5144

Subscribe to this mod's changes

neuron-framework-optimization is a skill published in the GitHub repository aws-neuron/neuron-agentic-development (72 stars, last pushed yesterday), licensed Apache-2.0. It adds 191 tokens to every session and 18,225 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it C with 2 findings (recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-01.

Related

neuron-framework-optimization compared with skills from other repositories

neuron-framework-optimization next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
neuron-framework-optimizationaws-neuron/neuron-agentic-developmentSkill72yesterdayApache-2.0C191Claude Code
spark-environment-setupwshobson/agentsSkill43kyesterdayMITA76Claude Code
spark-memory-thermal-opswshobson/agentsSkill43kyesterdayMITA59Claude Code
spark-training-gotchaswshobson/agentsSkill43kyesterdayMITA63Claude Code
inference-serving-llama-cppdavila7/claude-code-templatesSkill35kyesterdayMITA80Claude Code, Codex
supercomputertrycua/cuaSkill33ktodayMITA0Claude Code, Codex
amc-run-rtsp-calibrationNVIDIA/skillsSkill4.2ktodayApache-2.0A59Claude Code, Codex