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 agentmods add skills/aws-neuron/neuron-agentic-development/neuron-framework-autoportnpx skills add aws-neuron/neuron-agentic-development --skill neuron-framework-autoportgit clone --depth 1 https://github.com/aws-neuron/neuron-agentic-developmentWhat 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 | $0.00094 | $0.02196 |
| Opus 5 | $0.00047 | $0.01098 |
| Sonnet 5 | $0.00019 | $0.00439 |
| Haiku 4.5 | $0.00009 | $0.00220 |
Grade D, and why
neuron-framework-autoport scanned grade D 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 2d 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.
Unrestricted tool accessmediumExcessive agency
A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.
- **Do not run any code** — no compilation, inference, or validation (no Trainium hardware available) Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
2. Delete compiled model: `rm -rf agent_artifacts/data/compiled_model && rm -rf /var/tmp/neuron-compile-cache` How it starts
The opening of the file, as written. The whole thing — 130 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Model Porting
Overview
This document provides the agent direct instructions on how to port a model from pytorch and running on NVIDIA GPU to pytorch/Neuron running on Trainium. The agent will be expected to follow these steps below.
Pay attention to the success criteria, do not stop, or declare that you are done until you meet the complete success criteria
Dry-run
When the user specifies dry-run:
- Skip the "Resolve Dependencies" step
- Run these commands to activate the venv and resolve source paths:
export PATH=<pathToVenv>/bin:$PATH NXDI_SRC=$(python3 -c "import neuronx_distributed_inference; print(neuronx_distributed_inference.__path__[0])") NXD_SRC=$(python3 -c "import neuronx_distributed; print(neuronx_distributed.__path__[0])") TRANSFORMERS_SRC=$(python3 -c "import transformers; print(transformers.__path__[0])") - Do not run any code — no compilation, inference, or validation (no Trainium hardware available)
Before You Start
Set User Invocation Directory
USER_INVOCATION_DIR="$(pwd)"
Resolve Dependencies
Follow references/setup_flow.md. It handles venv validation, install consent, and exit code recovery. Do not proceed until it completes successfully.
After success, retain the 3 resolved paths from the script output for use throughout the workflow:
| Variable | Description |
|---|---|
${NXDI_SRC} |
Path to NeuronX Distributed Inference source |
${NXD_SRC} |
Path to NeuronX Distributed source |
${TRANSFORMERS_SRC} |
Path to HuggingFace Transformers source |
Read Project Guidelines
READ references/systemPrompts/systemPrompt.md in this skill directory. It contains prerequisites (including version checks), project guidelines, tool documentation, debugging support, codebase navigation, and hardware context. Run all prerequisite checks and follow all guidelines throughout the workflow.
Porting Parameters
Extract these six required parameters from the user's request before starting:
What ships with it
60 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.
- assets/example_gptoss_usage.py 31 KB runs code
- assets/example_phi3_usage.py 12 KB runs code
- assets/example_phimoe_usage.py 6.8 KB runs code
- assets/example_validation_config.json 774 B
- assets/test_gptoss_inference.py 1.0 KB runs code
- assets/test_phi3_inference.py 1.0 KB runs code
- assets/test_phimoe_inference.py 1.1 KB runs code
- references/knowledge_base/Category1_Porting_Config_Compilation_Issues.md 30 KB
- references/knowledge_base/Category1_Scripts_Compilation_Config_Summary.md 21 KB
- references/knowledge_base/Category2_Scripts_Sharding_Memory_Weights_Summary.md 28 KB
- references/knowledge_base/Category2_Sharding_Memory_Issues.md 35 KB
- references/knowledge_base/Category3_Accuracy_Debugging_Analysis.md 45 KB
- references/knowledge_base/Category3_Scripts_Accuracy_Debugging_Summary.md 28 KB
- references/knowledge_base/compilation_errors_and_fixes.md 12 KB
- references/knowledge_base/COMPREHENSIVE_LLAMA3_NEURONX_GUIDE.md 37 KB
- references/knowledge_base/ERRORS_AND_FIXES.md 7.1 KB
- references/knowledge_base/ExecutionOutOfBounds_Error_Fix.md 26 KB
- references/knowledge_base/EXISTING_MODEL_ARCHITECTURES.md 18 KB
- references/knowledge_base/genericmoe_port_session.md 14 KB
- references/knowledge_base/genericmoe_v14_analysis.md 5.1 KB
- references/knowledge_base/genericmoe_v15_layernorm_fix.md 6.3 KB
- references/knowledge_base/genericmoe_v16_complete_layernorm_fix.md 6.6 KB
- references/knowledge_base/genericmoe_v16_final_success_summary.md 11 KB
- references/knowledge_base/GPTOSS_FAILURE_ANALYSIS_HONEST.md 5.7 KB
- references/knowledge_base/GPTOSS_FINAL_SUCCESS_REPORT.md 6.1 KB
- references/knowledge_base/IMPLEMENTATION_SUCCESS_FINAL.md 7.6 KB
- references/knowledge_base/INFERENCE_IMPLEMENTATION_SUMMARY.md 6.4 KB
- references/knowledge_base/INFERENCE_TROUBLESHOOTING_GUIDE.md 10 KB
- references/knowledge_base/issues_analysis_and_improved_prompts.md 9.9 KB
- references/knowledge_base/keyerror_fix_detailed_explanation.md 6.9 KB
- references/knowledge_base/layernorm_vs_rmsnorm_analysis.md 14 KB
- references/knowledge_base/llama3_neuronx_implementation_summary.md 15 KB
- references/knowledge_base/longrope_investigation_v13.md 6.8 KB
- references/knowledge_base/model_architectures.md 7.1 KB
- references/knowledge_base/MODEL_IMPLEMENTATION_GUIDE.md 22 KB
- references/knowledge_base/MODULAR_FLOW_COMPILATION_SUMMARY.md 5.1 KB
- references/knowledge_base/MoE_Port_Master_Summary.md 20 KB
- references/knowledge_base/NEURONX_PORTING_GUIDE.md 70 KB
- references/knowledge_base/NOVEL_NEURONX_PORTING_PATTERNS.md 36 KB
- references/knowledge_base/OVERRIDING_FORWARD_GUIDANCE.md 16 KB
- references/knowledge_base/porting_exercise.md 26 KB
- references/knowledge_base/PORTING_SLIDING_WINDOW.md 26 KB
- references/knowledge_base/ROOT_CAUSE_REPEATED_OUTPUTS.md 11 KB
- references/knowledge_base/successful_run.md 572 KB
- references/knowledge_base/TEXT_TO_VIDEO_MODEL_PORTING.md 52 KB
- references/knowledge_base/TRACE_PORT.md 16 KB
- references/knowledge_base/TROUBLESHOOTING.md 12 KB
- references/knowledge_base/WEIGHT_SHARDING_FIXES_SUMMARY.md 5.3 KB
- references/setup_flow.md 1.8 KB
- references/systemPrompts/systemPrompt.md 7.2 KB
- scripts/envSetup/check_env.py 5.9 KB runs code
- scripts/envSetup/requirements-al2023.txt 207 B
- scripts/envSetup/requirements.txt 151 B
- scripts/model_compiler.py 28 KB runs code
- scripts/run_inference.py 29 KB runs code
- scripts/setup_autoport.sh 16 KB runs code
- scripts/setup_dry_run.sh 704 B runs code
- scripts/validate_model.py 6.1 KB runs code
- scripts/validator/__init__.py 1.6 KB runs code
- scripts/validator/accuracy.py 22 KB runs code
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.
- 2d ago First seen · 130 lines · 94 tokens per session scan D 34bb0f548ce5
neuron-framework-autoport is a skill published in the GitHub repository aws-neuron/neuron-agentic-development (56 stars, last pushed 14d ago), licensed Apache-2.0. It adds 94 tokens to every session and 2,196 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it D with 2 findings (unrestricted tool access, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
add-macos-statusbar
Add a macOS menu bar status indicator for NanoClaw. Shows a bolt icon with a green/red dot indicating whether NanoClaw is running, with Start, Stop, and Restart controls. macOS only.
cli-anything-3mf
3MF mesh geometry editor — detect and resize cylindrical holes, repair meshes, compare 3D printing files. Works with BambuStudio and PrusaSlicer 3MF files.
platform-port
Guide porting FastLED to new MCU platforms, including int.h types, clockless drivers, SPI implementations, and platform detection. Use when adding support for a new microcontroller family or board.
doca-compress
Use this skill for hands-on DOCA Compress programming on a BlueField DPU, ConnectX NIC, or host with DOCA — enabling compress-deflate, decompress-deflate, decompress-lz4-stream, or decompress-lz4-block tasks on a docacompress context (the hardware supports DEFLATE both directions plus LZ4 decompress; LZ4 encode is NOT…
pcbway
PCBWay PCB fabrication and assembly — turnkey/consigned assembly, design rules, ordering workflow. Alternative to JLCPCB for manufacturing. Use with KiCad. Use this skill when the user mentions PCBWay, needs turnkey assembly (PCBWay sources parts by MPN), has parts not available on LCSC, needs assembled boards with…
anta-validation
Validate Arista EOS network state with structured pass/fail verdicts using ANTA. Use for "is this switch healthy", "did my change break anything", "verify BGP/interfaces/hardware are correct", "run a health check on this device". Read-only. A test for a feature the device does not run reports notapplicable — never a…