neuron-nki-profiling

neuron-nki-profiling is a skill for Claude Code from aws-neuron/neuron-agentic-development. It costs 68 tokens per session (4,515 once invoked), scanned A, original, Apache-2.0.

A guide for collecting performance traces from NKI kernels on AWS Neuron hardware. It produces a NEFF compiled kernel file and an NTFF execution-trace file for inspection with neuron-explorer.

In plain words
What is it for?
Use it to generate kernel profiles, capture execution traces, and view profile summaries with the neuron-explorer command-line tool.
Why use it?
It helps you examine how a kernel runs and identify performance-related behavior instead of relying only on source-code inspection.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./output/.

Good fit Use it to generate kernel profiles, capture execution traces, and view profile summaries with the neuron-explorer command-line tool.

Compare 6 skills from other repositories ↓
Install

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.

Clone the repo
git clone --depth 1 https://github.com/aws-neuron/neuron-agentic-development
agentmods
npx agentmods add skills/aws-neuron/neuron-agentic-development/neuron-nki-profiling

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-nki-profiling

README.md
[![agentmods](https://agentmods.dev/badge/skills/aws-neuron/neuron-agentic-development/neuron-nki-profiling/github.svg)](https://agentmods.dev/skills/aws-neuron/neuron-agentic-development/neuron-nki-profiling)
Your own site
<a href="https://agentmods.dev/skills/aws-neuron/neuron-agentic-development/neuron-nki-profiling"><img src="https://agentmods.dev/badge/skills/aws-neuron/neuron-agentic-development/neuron-nki-profiling/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-nki-profiling

Your own site · 80×15
<a href="https://agentmods.dev/skills/aws-neuron/neuron-agentic-development/neuron-nki-profiling"><img src="https://agentmods.dev/badge/skills/aws-neuron/neuron-agentic-development/neuron-nki-profiling.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,515 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00068 $0.04515
Opus 5.5 $0.00027 $0.01806
Sonnet 5.5 $0.00014 $0.00903
Haiku 4.5 $0.00007 $0.00451

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

Security

Grade A, and why

neuron-nki-profiling 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 today.

The scan reads SKILL.md. This mod also ships 2 executable files (examples/basic-profiling-workflow.py, scripts/identify-neffs.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.

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.

skills/neuron-nki-profiling/SKILL.md · 399 lines

How it starts

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

Profiling NKI Kernels

This skill provides a complete workflow for profiling NKI kernel execution on Trainium/Inferentia hardware using Neuron profiling tools.

Quick Start

Minimal workflow to profile a kernel:

# 1. Run the kernel with runtime inspection on; the runtime writes every NEFF it loads under ./output
NEURON_RT_INSPECT_ENABLE=1 NEURON_RT_INSPECT_DEVICE_PROFILE=1 NEURON_RT_INSPECT_OUTPUT_DIR=./output \
    python my_kernel.py

# 2. Find the NKI kernel NEFF. On torch-neuronx's native "neuron" device a script that runs only
#    the kernel on the device leaves one neff_*.neff (see "Step 2: Execute Kernel")
NEFF_PATH=$(find ./output -name 'neff_*.neff' | head -1)
#    On the torch-xla device, skip the XLA-generated NEFFs instead:
#    NEFF_PATH=$(python3 scripts/identify-neffs.py ./output my_kernel_func_name)

# 3. Capture profile with neuron-explorer, then take the NTFF it wrote (its name depends on the flags, see Step 4)
neuron-explorer capture -n $NEFF_PATH -s profile.ntff --profile-nth-exec=2 --enable-dge-notifs
NTFF_PATH=$(ls -t *.ntff | head -1)

# 4. View results with neuron-explorer
neuron-explorer view --output-format summary-json -n $NEFF_PATH -s $NTFF_PATH

The workflow generates two key artifacts:

  • NEFF file: Compiled kernel binary, generated during execution
  • NTFF file: Execution trace captured by neuron-explorer

Where outputs go (the shared project-root contract)

$NEURON_PROJECT_ROOT names the PROJECT directory this analysis belongs to; everything this skill generates lands under <root>/agent_artifacts/, and it defaults to the cwd, so an ordinary interactive run needs no extra input. It is the SAME input the rest of this family takes — the parallelism-planner and hardware-entitlement skills accept it as --project-root, the vllm-neuron profiling skill writes its profiles under it — which is what lets one run's plan, per-operator floor, profile and ingested parquet sit in a single evidence trail instead of four unrelated directories.

Read the full file on GitHub · 399 lines

Files

What ships with it

2 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 Changed · +34 lines 19b56cd9d7ee
  2. 1mo ago Changed · +18 lines 0a43a1e40791
  3. 3mo ago First seen · 347 lines · 68 tokens per session scan A 8804fdea3ad7

Subscribe to this mod's changes

neuron-nki-profiling is a skill published in the GitHub repository aws-neuron/neuron-agentic-development (72 stars, last pushed yesterday), licensed Apache-2.0. It adds 68 tokens to every session and 4,515 once invoked, about $0.0003 per session on Opus 5.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.

Related

neuron-nki-profiling compared with skills from other repositories

neuron-nki-profiling next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
neuron-nki-profilingaws-neuron/neuron-agentic-developmentSkill72yesterdayApache-2.0A68Claude Code
instrument-data-to-allotropeanthropics/knowledge-work-pluginsSkill37kyesterdayApache-2.0A123Claude Code
exploratory-data-analysisK-Dense-AI/scientific-agent-skillsSkill59kyesterdayMITA83Claude Code
matlabK-Dense-AI/scientific-agent-skillsSkill59kyesterdayMITA44Claude Code
phylogeneticsK-Dense-AI/scientific-agent-skillsSkill59kyesterdayMITA71Claude Code, Codex
research-engineerdavila7/claude-code-templatesSkill35kyesterdayMITA43Claude Code, Codex
mapping-to-snomedmaziyarpanahi/openmedSkill5.9kyesterdayApache-2.0A205Claude Code