build-native

build-native is a skill for Claude Code from hyperledger-iroha/iroha. It costs 48 tokens per session (625 once invoked), scanned A, original, Apache-2.0.

A build guide for compiling a Rust native library into Android shared-object files (.so), which Android apps can load as native code.

In plain words
What is it for?
Use it to rebuild the Android native bridge and place the resulting libraries into an Android or Kotlin SDK project.
Why use it?
It gathers the required Rust targets, Android NDK setup, and build commands in one workflow for the Iroha bridge library.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to rebuild the Android native bridge and place the resulting libraries into an Android or Kotlin SDK project.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hyperledger-iroha/iroha/build-native
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 hyperledger-iroha/iroha --skill build-native
Clone the repo
git clone --depth 1 https://github.com/hyperledger-iroha/iroha

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 build-native

README.md
[![agentmods](https://agentmods.dev/badge/skills/hyperledger-iroha/iroha/build-native.svg)](https://agentmods.dev/skills/hyperledger-iroha/iroha/build-native)
Your own site
<a href="https://agentmods.dev/skills/hyperledger-iroha/iroha/build-native"><img src="https://agentmods.dev/badge/skills/hyperledger-iroha/iroha/build-native.svg" alt="Measured on agentmods" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 625 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.
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.00048 $0.00625
Opus 5 $0.00024 $0.00313
Sonnet 5 $0.00010 $0.00125
Haiku 4.5 $0.00005 $0.00063

Measured 3d ago against content hash 8303eb363543, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

build-native 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 3d 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.

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.

kotlin/.claude/skills/build-native/SKILL.md · 66 lines

What it actually says

Build Native Libraries

Builds libconnect_norito_bridge.so for Android from the Rust crate at crates/connect_norito_bridge in the iroha repository. The Kotlin SDK lives next to the java/ directory in the same repo, so the Rust source is at ../../crates/connect_norito_bridge relative to this project.

Prerequisites

  • Rust toolchain (1.92+) with Android targets: aarch64-linux-android, x86_64-linux-android
  • cargo-ndk installed: cargo install cargo-ndk
  • ANDROID_NDK_HOME environment variable set (NDK 28+)

Build with Gradle task

./gradlew :offline-wallet-android:buildNativeLibs

The task reads iroha.dir from local.properties and runs cargo ndk. Output goes to offline-wallet-android/src/main/jniLibs/.

Manual build

1. Validate environment

which cargo-ndk || cargo install cargo-ndk
echo $ANDROID_NDK_HOME
rustup target list --installed | grep android

If targets are missing:

rustup target add aarch64-linux-android x86_64-linux-android

2. Build

From the iroha repository root:

cargo ndk -t arm64-v8a -t x86_64 \
  -o <kotlin-sdk-dir>/offline-wallet-android/src/main/jniLibs \
  build --release -p connect_norito_bridge

Target ABIs:

  • arm64-v8a — production devices (required)
  • x86_64 — emulators (required for development)
  • armeabi-v7a — skip (upstream rkyv crate incompatible with 32-bit)

3. Verify

ls -lh offline-wallet-android/src/main/jniLibs/arm64-v8a/libconnect_norito_bridge.so  # ~14MB
ls -lh offline-wallet-android/src/main/jniLibs/x86_64/libconnect_norito_bridge.so      # ~18MB

Known issues

  • armeabi-v7a failsrkyv crate has a const evaluation overflow on 32-bit targets. This is upstream; skip this ABI.
  • Long build time — First build compiles all Rust dependencies (~5-10 min). Incremental builds are faster.
  • Rust version — Project requires rustc 1.92+. Check with rustc --version.
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. 3d ago First seen · 66 lines · 48 tokens per session scan A 8303eb363543

Subscribe to this mod's changes

build-native is a skill published in the GitHub repository hyperledger-iroha/iroha (488 stars, last pushed today), licensed Apache-2.0. It adds 48 tokens to every session and 625 once invoked, about $0.0002 per session on Opus 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-09-03.

Related

Other skills, from other repositories

solana-toolkit-guide

Guide to the Solana Wallet Toolkit — vanity address generation with multi-threaded search, official Solana Labs libraries, Rust and TypeScript implementations. Includes wallet generation, custom address prefixes, and OG names on the blockchain.

nirholas/three.ws · 50 tokens

tauri-expert

Expert skill for Tauri (v2) development, Rust backend, IPC, and security / Panduan ahli untuk pengembangan Tauri v2, Rust backend, IPC, dan keamanan.

roedyrustam/vibes-plug · 43 tokens

tauri

Tauri v2 development: build cross-platform desktop/mobile apps with Rust backends and web frontends. Use when configuring tauri.conf.json, implementing Rust commands (#[tauri::command]), setting up IPC patterns (invoke, emit, channels), managing state, configuring permissions/capabilities, troubleshooting build…

fellipeutaka/leon · 86 tokens

tauri-v2

Tauri v2 cross-platform app development with Rust backend. Use when configuring tauri.conf.json, implementing Rust commands (#[tauri::command]), setting up IPC patterns (invoke, emit, channels), configuring permissions/capabilities, troubleshooting build issues, or deploying desktop/mobile apps. Triggers on Tauri…

pedronauck/skills · 79 tokens

klever-dev

End-to-end Klever blockchain development — smart contracts (Rust/WASM), transaction building (@klever/connect, klever-go-sdk), deployment via ksc + koperator, and on-chain interaction via MCP tools. Use when the task involves KLV, KDA tokens, klv1 addresses, Klever smart contracts, or Klever node/API interaction.

klever-io/mcp-klever-vm · 76 tokens

rust-tauri-apps

Implicit Rust Tauri v2 skill. Use for Tauri apps, Rust commands, invoke contracts, app state, plugins, capabilities and permissions, secure IPC, filesystem and shell access, sidecars, updater, bundling, desktop and mobile distribution, and Rust frontend bridge design.

BjornMelin/dev-skills · 62 tokens