Compose Multiplatform Patterns
monta-app/ocpp-emulator
Compose Multiplatform and Jetpack Compose patterns for KMP projects — state management, navigation, theming, performance, and platform-specific UI.
ARM64 ELF and binary asset patching guidelines covering libchrome.so host redirection, multi-candidate offset resolution, companion .so trimming, and Hermes bytecode patching.
$ npx skills add kveld9/kveld-morphe-patches --skill native-binary-patching -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install kveld9/kveld-morphe-patches native-binary-patching --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/kveld9/kveld-morphe-patches.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/native-binary-patching .claude/skills/native-binary-patching && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "native-binary-patching" agent skill from https://github.com/kveld9/kveld-morphe-patches/tree/main/.agents/skills/native-binary-patching into .claude/skills/native-binary-patching/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "native-binary-patching", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/kveld9/kveld-morphe-patches/tree/main/.agents/skills/native-binary-patchingType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add kveld9/kveld-morphe-patches --skill native-binary-patching -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install kveld9/kveld-morphe-patches native-binary-patching --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/kveld9/kveld-morphe-patches.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/native-binary-patching .agents/skills/native-binary-patching && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "native-binary-patching" agent skill from https://github.com/kveld9/kveld-morphe-patches/tree/main/.agents/skills/native-binary-patching into .agents/skills/native-binary-patching/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "native-binary-patching", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add kveld9/kveld-morphe-patches --skill native-binary-patching -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install kveld9/kveld-morphe-patches native-binary-patching --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/kveld9/kveld-morphe-patches.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/native-binary-patching .cursor/skills/native-binary-patching && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "native-binary-patching" agent skill from https://github.com/kveld9/kveld-morphe-patches/tree/main/.agents/skills/native-binary-patching into .cursor/skills/native-binary-patching/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "native-binary-patching", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/kveld9/kveld-morphe-patches.git --path .agents/skills/native-binary-patching--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add kveld9/kveld-morphe-patches --skill native-binary-patching -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install kveld9/kveld-morphe-patches native-binary-patching --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/kveld9/kveld-morphe-patches.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/native-binary-patching .gemini/skills/native-binary-patching && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "native-binary-patching" agent skill from https://github.com/kveld9/kveld-morphe-patches/tree/main/.agents/skills/native-binary-patching into .gemini/skills/native-binary-patching/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "native-binary-patching", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install kveld9/kveld-morphe-patches native-binary-patchingInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add kveld9/kveld-morphe-patches --skill native-binary-patching -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/kveld9/kveld-morphe-patches.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/native-binary-patching .github/skills/native-binary-patching && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "native-binary-patching" agent skill from https://github.com/kveld9/kveld-morphe-patches/tree/main/.agents/skills/native-binary-patching into .github/skills/native-binary-patching/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "native-binary-patching", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add kveld9/kveld-morphe-patches --skill native-binary-patching -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install kveld9/kveld-morphe-patches native-binary-patching --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/kveld9/kveld-morphe-patches.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/native-binary-patching .opencode/skills/native-binary-patching && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "native-binary-patching" agent skill from https://github.com/kveld9/kveld-morphe-patches/tree/main/.agents/skills/native-binary-patching into .opencode/skills/native-binary-patching/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "native-binary-patching", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
native-binary-patchingARM64 ELF and binary asset patching guidelines covering libchrome.so host redirection, multi-candidate offset resolution, companion .so trimming, and Hermes bytecode patching.
Native Binary Patching is an agent skill from kveld9/kveld-morphe-patches. ARM64 ELF and binary asset patching guidelines covering libchrome.so host redirection, multi-candidate offset resolution, companion .so trimming, and Hermes bytecode patching.
Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Mobile. It works with Android. The repository describes itself as: Custom Morphe patches on Android. The licence is GPL-3.0.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit bfc153e. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are kotlin).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Native Binary Patching loads about 1.5k tokens when it runs. Until then it costs about 50 tokens; SKILL.md has 271 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from kveld9/kveld-morphe-patches at commit bfc153e, republished under its GPL-3.0 licence (© kveld9). 271 words, ~1,467 tokens.
.claude/skills/native-binary-patching/SKILL.md (or your agent's skills folder).libchrome.so)Any binary modification executed inside rawResourcePatch targeting ELF libraries (such as lib/arm64-v8a/libchrome.so) must adhere to strict bounds and fingerprint verification protocols.
BraveBlockTelemetryPatch.kt)Redirection overwrites domain strings in-place with 0.0.0.0 followed by null bytes (0x00). The replacement length must exactly match the original string length to preserve ELF string table boundaries and segment offsets:
val soFile = get("lib/arm64-v8a/libchrome.so")
if (!soFile.exists()) {
return@execute
}
data class HostEntry(
val offset: Long,
val hostName: String,
)
val hostEntries = listOf(
HostEntry(0x001f9329L, "star-randsrv.bsg.brave.com"),
HostEntry(0x001f935aL, "collector.bsg.brave.com"),
HostEntry(0x001f9391L, "usage-ping.brave.com"),
)
val redirectionIp = "0.0.0.0".toByteArray(Charsets.US_ASCII)
var writtenHosts = 0
RandomAccessFile(soFile, "rw").use { raf ->
for (entry in hostEntries) {
val expectedBytes = entry.hostName.toByteArray(Charsets.US_ASCII)
val len = expectedBytes.size
if (entry.offset + len > raf.length()) {
throw PatchException("Host offset 0x${entry.offset.toString(16)} out of bounds in libchrome.so")
}
val buf = ByteArray(len)
raf.seek(entry.offset)
raf.readFully(buf)
if (!buf.contentEquals(expectedBytes)) {
throw PatchException(
"Host fingerprint mismatch at 0x${entry.offset.toString(16)}. " +
"Expected: ${entry.hostName}, Found: ${String(buf, Charsets.US_ASCII)}",
)
}
// Construct replacement: "0.0.0.0" + null byte + zero padding to original length
val replacement = ByteArray(len)
System.arraycopy(redirectionIp, 0, replacement, 0, redirectionIp.size)
// Remaining bytes default to 0x00 (null padded)
raf.seek(entry.offset)
raf.write(replacement)
writtenHosts++
}
}
println("[Block Telemetry] Redirected $writtenHosts / ${hostEntries.size} endpoints to 0.0.0.0 in libchrome.so")When string table offsets shift slightly between release builds or regional variants, resolve the target offset dynamically from a candidate list rather than hardcoding a single fragile pointer.
libchrome.so Multi-Candidate Resolution)val syncOffsets = listOf(0x0031b2b2L, 0x0031b2b5L, 0x0031b34fL)
val targetUrl = "https://endpoint.example.com/v1/telemetry"
val expectedBytes = targetUrl.toByteArray(Charsets.US_ASCII)
val len = expectedBytes.size
val redirectionIp = "0.0.0.0".toByteArray(Charsets.US_ASCII)
RandomAccessFile(soFile, "rw").use { raf ->
val validOffset = syncOffsets.firstOrNull { offset ->
if (offset + len > raf.length()) return@firstOrNull false
val buf = ByteArray(len)
raf.seek(offset)
raf.readFully(buf)
buf.contentEquals(expectedBytes)
} ?: throw PatchException(
"Sync fingerprint mismatch for $targetUrl in libchrome.so",
)
val replacement = ByteArray(len)
System.arraycopy(redirectionIp, 0, replacement, 0, redirectionIp.size)
raf.seek(validOffset)
raf.write(replacement)
}When applications package unused third-party native binaries (e.g. AI models, XR runtime, or bundled VPN binaries), zeroing them out via writeBytes(byteArrayOf()) preserves file entries in the ZIP header while drastically reducing APK footprint.
BraveNativeBloatSlimmerPatch.kt)private val EMPTY_STUB_BYTES = byteArrayOf()
private val BLOAT_NATIVE_LIBS = listOf(
"libimpress_api_jni.so",
"libwg-go.so",
"libandroidx.xr.arcore.openxr.so",
"libarcore_sdk_c.so",
)
val libDir = get("lib/arm64-v8a")
if (libDir.exists() && libDir.isDirectory) {
BLOAT_NATIVE_LIBS.forEach { libName ->
val libFile = get("lib/arm64-v8a/$libName")
if (libFile.exists() && libFile.isFile) {
val originalSize = libFile.length()
if (originalSize > 0) {
libFile.writeBytes(EMPTY_STUB_BYTES)
savedBytes += (originalSize - libFile.length())
strippedLibs.add(libName)
}
}
}
}For React Native Android applications utilizing the Hermes JavaScript engine, the precompiled bundle is stored as a binary asset (assets/index.android.bundle). rawResourcePatch can parse and mutate Hermes Bytecode (HBC) directly.
HevyUnlockProPatch.kt)0x1f1903c103bc1fc6L) and target HBC version (e.g. HBC96 = 96)."isPro", "isPaying").LoadConstTrue r0 (0x78 0x00) followed by Ret r0 (0x5C 0x00).private val FORCE_TRUE_PROLOGUE = byteArrayOf(0x78.toByte(), 0x00, 0x5C.toByte(), 0x00)bundleFile.writeBytes(bundleBytes).© kveld9, GPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/native-binary-patching of kveld9/kveld-morphe-patches.
Open the folder on GitHubat commit bfc153e
Native Binary Patching next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Native Binary Patching this skillkveld9/kveld-morphe-patches | 113 | — | ~1.5k | Automated safety check: Pass | GPL-3.0 | |
| Compose Multiplatform Patternsmonta-app/ocpp-emulator | 180 | 5 repos | ~2k | Automated safety check: Pass | Apache-2.0 | |
| Phone HarnessShawnPana/phone-harness | 3.2k | — | ~4.3k | Automated safety check: Pass | MIT | |
| Stylesarindamxd/camerax-android | 132 | 4 repos | ~2.3k | Automated safety check: Pass | Apache-2.0 | |
| Verified Emailarindamxd/camerax-android | 132 | 4 repos | ~4.7k | Automated safety check: Pass | Apache-2.0 | |
| Argent Metro Debuggerbbplayer-app/BBPlayer | 1.2k | — | ~3.4k | Automated safety check: Pass | MIT |
monta-app/ocpp-emulator
Compose Multiplatform and Jetpack Compose patterns for KMP projects — state management, navigation, theming, performance, and platform-specific UI.
ShawnPana/phone-harness
Control the user's phone — an iPhone through the Mac's iPhone Mirroring window, an Android over adb, or a rented cloud Android: open apps, tap, type, swipe, read the screen.
arindamxd/camerax-android
A skill your agent uses to integrate the Jetpack Compose Styles API into an Android project.
arindamxd/camerax-android
Provides a complete workflow for implementing verified email retrieval on Android Credential Manager API.
bbplayer-app/BBPlayer
Debug a JS runtime via CDP using argent debugger tools. An agent skill from bbplayer-app/BBPlayer.
afkT/DevUtils
统一 Android XML 资源命名:layout、drawable、mipmap、color、values、id 的前缀与 snakecase 规则;把颜色/圆角/描边/状态编码进文件名(bg、border、textcolor…selector)。
kveld9/kveld-morphe-patches
Architecture, patch typology (bytecodePatch, resourcePatch, rawResourcePatch), universal patches, stringOption DSL, fingerprint resolution, compatibility contracts (Constants.kt), and diagnostic…
kveld9/kveld-morphe-patches
Smali and Dalvik bytecode hooking guidelines, register architecture conventions, multi-return reverse traversal, TwoRegisterInstruction extraction, reflection bridges, and obfuscation guidelines.
kveld9/kveld-morphe-patches
Semantic release and CI/CD lifecycle, conventional commit standards, release pipeline chain (release.yml and .releaserc), and git branching strategy.
Works with
Categories
ARM64 ELF and binary asset patching guidelines covering libchrome.so host redirection, multi-candidate offset resolution, companion .so trimming, and Hermes bytecode patching. Native Binary Patching is an agent skill from kveld9/kveld-morphe-patches.so trimming, and Hermes bytecode patching.
Native Binary Patching fits situations like: mobile work in your project.
Run `npx skills add kveld9/kveld-morphe-patches --skill native-binary-patching -a claude-code`. Or copy the skill folder (.agents/skills/native-binary-patching in kveld9/kveld-morphe-patches) into .claude/skills/native-binary-patching in your project. Claude Code loads it when a task matches its description.
Run `npx skills add kveld9/kveld-morphe-patches --skill native-binary-patching -a codex`. Or copy the skill folder (.agents/skills/native-binary-patching in kveld9/kveld-morphe-patches) into .agents/skills/native-binary-patching in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add kveld9/kveld-morphe-patches --skill native-binary-patching -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/native-binary-patching, .gemini/skills/native-binary-patching, .github/skills/native-binary-patching and .opencode/skills/native-binary-patching in your project.
SKILL.md names no scripts, command-line tools or credentials: Native Binary Patching is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Native Binary Patching is published under the GPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.5k tokens (SKILL.md is roughly 5.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Native Binary Patching: Compose Multiplatform Patterns (monta-app/ocpp-emulator, 180 stars), Phone Harness (ShawnPana/phone-harness, 3.2k stars), Styles (arindamxd/camerax-android, 132 stars) and Verified Email (arindamxd/camerax-android, 132 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
kveld9 (a GitHub user) maintains it in kveld9/kveld-morphe-patches, which has 113 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on October 9, 2026.
Source: kveld9/kveld-morphe-patches on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.