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.
npx skills add aws-neuron/neuron-agentic-development --skill neuron-framework-optimizationgit clone --depth 1 https://github.com/aws-neuron/neuron-agentic-developmentWrote 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/aws-neuron/neuron-agentic-development/neuron-framework-optimization)<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.
<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>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.00191 | $0.18225 |
| Opus 5.5 | $0.00076 | $0.07290 |
| Sonnet 5.5 | $0.00038 | $0.03645 |
| Haiku 4.5 | $0.00019 | $0.01823 |
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.
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 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 |
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.
- references/campaign.md 12 KB
- references/CONFLICTS_A4_armed_device_profile_deadlock.md 2.8 KB
- references/FRAMEWORK_MODEL_OPTIMIZATION_LESSONS.md 252 KB
- references/INVESTIGATION_OPTIMIZATION_PLAYBOOK.md 13 KB
- references/KERNEL_OPTIMIZATION_LESSONS.md 221 KB
- references/OPTIMIZATION_BOOK.md 180 KB
- references/ORCHESTRATOR_TASK_PROMPT.md 17 KB
- references/SWEEP_ACCELERATION.md 14 KB
- scripts/analyze_local.py 26 KB runs code
- scripts/collect_perf_data_local.py 8.4 KB runs code
- scripts/config/conftest.py 4.6 KB runs code
- scripts/config/pytest.ini 1.4 KB
- scripts/cycle_stats.py 6.8 KB runs code
- scripts/example_kernel_loop_job.json 3.8 KB
- scripts/extract_agents.py 9.8 KB runs code
- scripts/framework_loop.py 97 KB runs code
- scripts/gate.py 66 KB runs code
- scripts/inner_gate.py 46 KB runs code
- scripts/kernel_loop_scaffold.py 15 KB runs code
- scripts/kernel_loop.py 56 KB runs code
- scripts/kernel_stub_synthesis.md 12 KB
- scripts/kv_headroom_search.py 9.5 KB runs code
- scripts/ladder_smoke.py 24 KB runs code
- scripts/measure.py 9.6 KB runs code
- scripts/multiexec_profile_plugin.py 2.9 KB runs code
- scripts/nki_cost_query.py 1.8 KB runs code
- scripts/parse_fxgraph_config.py 11 KB runs code
- scripts/propose_node_bracket.py 6.3 KB runs code
- scripts/safe_serve.py 17 KB runs code
- scripts/stage_kernel_tree.py 12 KB runs code
- scripts/STEP6_kernel_loop_integration.md 14 KB
- scripts/vendor/compute_sch_ineff_private.py 3.4 KB runs code
- scripts/vendor/dma_compute_order_check.py 52 KB runs code
- scripts/vendor/neuron_kernel_neff_sim/__init__.py 81 B runs code
- scripts/vendor/neuron_kernel_neff_sim/cli.py 11 KB runs code
- scripts/vendor/neuron_kernel_neff_sim/cost_model.py 48 KB runs code
- scripts/vendor/neuron_kernel_neff_sim/cost_query.py 15 KB runs code
- scripts/vendor/neuron_kernel_neff_sim/eval/__init__.py 74 B runs code
- scripts/vendor/neuron_kernel_neff_sim/eval/__main__.py 4.0 KB runs code
- scripts/vendor/neuron_kernel_neff_sim/eval/compile_runner.py 1.9 KB runs code
- scripts/vendor/neuron_kernel_neff_sim/eval/discovery.py 2.4 KB runs code
- scripts/vendor/neuron_kernel_neff_sim/eval/eval_runner.py 7.1 KB runs code
- scripts/vendor/neuron_kernel_neff_sim/eval/ground_truth.py 7.3 KB runs code
- scripts/vendor/neuron_kernel_neff_sim/eval/histogram.py 2.0 KB runs code
- scripts/vendor/neuron_kernel_neff_sim/eval/per_opcode.py 11 KB runs code
- scripts/vendor/neuron_kernel_neff_sim/graph_builder.py 35 KB runs code
- scripts/vendor/neuron_kernel_neff_sim/hardware_config.py 8.0 KB runs code
- scripts/vendor/neuron_kernel_neff_sim/isa_decoder.py 16 KB runs code
- scripts/vendor/neuron_kernel_neff_sim/neff_parser.py 7.3 KB runs code
- scripts/vendor/neuron_kernel_neff_sim/perfetto_writer.py 36 KB runs code
- scripts/vendor/neuron_kernel_neff_sim/scheduler.py 116 KB runs code
- scripts/vendor/neuron_kernel_neff_sim/UPSTREAM_README.md 663 B
- scripts/vendor/README.md 3.7 KB
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.
- today First seen · 996 lines · 191 tokens per session scan C c535ceee5144
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.
neuron-framework-optimization compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| neuron-framework-optimizationaws-neuron/neuron-agentic-development | Skill | 72 | yesterday | Apache-2.0 | C | 191 | Claude Code |
| spark-environment-setupwshobson/agents | Skill | 43k | yesterday | MIT | A | 76 | Claude Code |
| spark-memory-thermal-opswshobson/agents | Skill | 43k | yesterday | MIT | A | 59 | Claude Code |
| spark-training-gotchaswshobson/agents | Skill | 43k | yesterday | MIT | A | 63 | Claude Code |
| inference-serving-llama-cppdavila7/claude-code-templates | Skill | 35k | yesterday | MIT | A | 80 | Claude Code, Codex |
| supercomputertrycua/cua | Skill | 33k | today | MIT | A | 0 | Claude Code, Codex |
| amc-run-rtsp-calibrationNVIDIA/skills | Skill | 4.2k | today | Apache-2.0 | A | 59 | Claude Code, Codex |