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.
Smali and Dalvik bytecode hooking guidelines, register architecture conventions, multi-return reverse traversal, TwoRegisterInstruction extraction, reflection bridges, and obfuscation guidelines.
$ npx skills add kveld9/kveld-morphe-patches --skill smali-bytecode-hooks -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install kveld9/kveld-morphe-patches smali-bytecode-hooks --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/smali-bytecode-hooks .claude/skills/smali-bytecode-hooks && 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 "smali-bytecode-hooks" agent skill from https://github.com/kveld9/kveld-morphe-patches/tree/main/.agents/skills/smali-bytecode-hooks into .claude/skills/smali-bytecode-hooks/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "smali-bytecode-hooks", 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/smali-bytecode-hooksType 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 smali-bytecode-hooks -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install kveld9/kveld-morphe-patches smali-bytecode-hooks --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/smali-bytecode-hooks .agents/skills/smali-bytecode-hooks && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "smali-bytecode-hooks" agent skill from https://github.com/kveld9/kveld-morphe-patches/tree/main/.agents/skills/smali-bytecode-hooks into .agents/skills/smali-bytecode-hooks/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "smali-bytecode-hooks", 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 smali-bytecode-hooks -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install kveld9/kveld-morphe-patches smali-bytecode-hooks --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/smali-bytecode-hooks .cursor/skills/smali-bytecode-hooks && 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 "smali-bytecode-hooks" agent skill from https://github.com/kveld9/kveld-morphe-patches/tree/main/.agents/skills/smali-bytecode-hooks into .cursor/skills/smali-bytecode-hooks/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "smali-bytecode-hooks", 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/smali-bytecode-hooks--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 smali-bytecode-hooks -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install kveld9/kveld-morphe-patches smali-bytecode-hooks --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/smali-bytecode-hooks .gemini/skills/smali-bytecode-hooks && 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 "smali-bytecode-hooks" agent skill from https://github.com/kveld9/kveld-morphe-patches/tree/main/.agents/skills/smali-bytecode-hooks into .gemini/skills/smali-bytecode-hooks/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "smali-bytecode-hooks", 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 smali-bytecode-hooksInstalls 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 smali-bytecode-hooks -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/smali-bytecode-hooks .github/skills/smali-bytecode-hooks && 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 "smali-bytecode-hooks" agent skill from https://github.com/kveld9/kveld-morphe-patches/tree/main/.agents/skills/smali-bytecode-hooks into .github/skills/smali-bytecode-hooks/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "smali-bytecode-hooks", 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 smali-bytecode-hooks -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 smali-bytecode-hooks --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/smali-bytecode-hooks .opencode/skills/smali-bytecode-hooks && 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 "smali-bytecode-hooks" agent skill from https://github.com/kveld9/kveld-morphe-patches/tree/main/.agents/skills/smali-bytecode-hooks into .opencode/skills/smali-bytecode-hooks/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "smali-bytecode-hooks", 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.
smali-bytecode-hooksSmali and Dalvik bytecode hooking guidelines, register architecture conventions, multi-return reverse traversal, TwoRegisterInstruction extraction, reflection bridges, and obfuscation guidelines.
Smali Bytecode Hooks is an agent skill from kveld9/kveld-morphe-patches. Smali and Dalvik bytecode hooking guidelines, register architecture conventions, multi-return reverse traversal, TwoRegisterInstruction extraction, reflection bridges, and obfuscation guidelines.
Its SKILL.md is about 1.6k 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.
6 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 and smali).
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.
Smali Bytecode Hooks loads about 1.6k tokens when it runs. Until then it costs about 54 tokens; SKILL.md has 336 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). 336 words, ~1,584 tokens.
.claude/skills/smali-bytecode-hooks/SKILL.md (or your agent's skills folder).In Dalvik bytecode, register naming follows strict calling conventions:
p0: Represents this in instance methods, or the 1st parameter in static methods.p1, p2, ...: Subsequent incoming method arguments.v0, v1, ...: Local registers allocated for computation within the method frame.Always import the core instruction helper extensions from app.morphe.patcher:
import app.morphe.patcher.extensions.InstructionExtensions.addInstructions
import app.morphe.patcher.extensions.InstructionExtensions.addInstructionsWithLabels
import app.morphe.patcher.extensions.InstructionExtensions.getInstructionWhen replacing a complete method body, calculate register usage and wipe existing instructions:
fingerprint.method.apply {
removeInstructions(0, implementation!!.instructions.count())
addInstructions(0, """
const/4 v0, 0x1
return v0
""".trimIndent())
}When modifying or injecting hooks before return instructions (return-void, return-object, return), inserting instructions shifts the indices of all subsequent instructions within the method.
To maintain valid AST offsets without invalidating subsequent indices, always collect return indices and iterate in reverse order using .asReversed():
val method = fingerprint.method
val returnIndices = method.implementation?.instructions?.withIndex()
?.filter { it.value.opcode == Opcode.RETURN_OBJECT }
?.map { it.index to (it.value as OneRegisterInstruction).registerA }
?.toList() ?: emptyList()
// Reverse iteration prevents index shifting
returnIndices.asReversed().forEach { (returnIndex, reg) ->
method.addInstructions(
returnIndex,
"""
invoke-static {v$reg}, Lcom/kveld9/morphe/extension/Payload;->filter(Ljava/lang/Object;)V
""".trimIndent(),
)
}Never hardcode register numbers when modifying intermediate instructions. Extract dynamically allocated registers directly from the dexlib2 AST instruction nodes:
OneRegisterInstructionApplies to instructions with a single register reference (e.g. return-object, move-result, check-cast):
import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
val matchIndex = fingerprint.instructionMatches[0].index
val resultReg = fingerprint.method
.getInstruction<OneRegisterInstruction>(matchIndex + 1).registerA
fingerprint.method.addInstructions(matchIndex + 2, "const/4 v$resultReg, 0x0")TwoRegisterInstructionApplies to instructions with two register references (e.g. iput, iget, iput-boolean, instance-of):
registerA: Destination/source data register (vx).registerB: Target instance/object reference register (vy).
(Note: check-cast uses format 21c and is a OneRegisterInstruction with a type reference).import com.android.tools.smali.dexlib2.iface.instruction.TwoRegisterInstruction
// Example: Neutralizing a boolean field write (iput-boolean vx, vy, Field)
val putIndex = fingerprint.instructionMatches[1].index
val instruction = fingerprint.method.getInstruction<TwoRegisterInstruction>(putIndex)
val putReg = instruction.registerA // Data value register (vx)
val objReg = instruction.registerB // Object instance register (vy)
fingerprint.method.addInstructions(putIndex, "const/4 v$putReg, 0x0")Use addInstructionsWithLabels when introducing branching logic (if-eqz, if-nez, goto) to guarantee proper branch label target resolution and relative offset recalculation:
method.addInstructionsWithLabels(0, """
invoke-static {}, Landroid/app/ActivityThread;->currentApplication()Landroid/app/Application;
move-result-object v0
invoke-static {v0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;
move-result-object v0
const-string v1, "morphe_feature_enabled"
invoke-interface {v0, v1}, Landroid/content/SharedPreferences;->contains(Ljava/lang/String;)Z
move-result v0
if-nez v0, :disabled
const/4 v0, 0x1
return v0
:disabled
const/4 v0, 0x0
return v0
""".trimIndent())When accessing private fields or methods across DEX boundaries where direct invocation causes IllegalAccessError, use reflection bridges:
invoke-virtual {p0, p1}, Lorg/chromium/chrome/browser/settings/Preferences;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;
move-result-object v0
if-eqz v0, :done
move-object v3, p0
const-string v1, "mListener"
const-class v2, Landroidx/preference/Preference;
invoke-virtual {v2, v1}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
move-result-object v1
const/4 v2, 0x1
invoke-virtual {v1, v2}, Ljava/lang/reflect/Field;->setAccessible(Z)V
invoke-virtual {v1, v0, v3}, Ljava/lang/reflect/Field;->set(Ljava/lang/Object;Ljava/lang/Object;)V
:done
return-voidP4, y, O0) are volatile and change between releases.androidx.preference.Preference) or string literals.harness/update.py --audit) against newly updated APKs before building.Any modified Smali hook, register rewrite, or fingerprint must pass the runPatchTest gate in AGENTS.md (Section 3, Step 4), including its zero-smali-compile-error rule (non-range invokes only address v0-v15).
© 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/smali-bytecode-hooks of kveld9/kveld-morphe-patches.
Open the folder on GitHubat commit bfc153e
Smali Bytecode Hooks 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 |
|---|---|---|---|---|---|---|
| Smali Bytecode Hooks this skillkveld9/kveld-morphe-patches | 112 | — | ~1.6k | 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.1k | — | ~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
ARM64 ELF and binary asset patching guidelines covering libchrome.so host redirection, multi-candidate offset resolution, companion .so trimming, and Hermes bytecode patching.
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
Smali and Dalvik bytecode hooking guidelines, register architecture conventions, multi-return reverse traversal, TwoRegisterInstruction extraction, reflection bridges, and obfuscation guidelines. Smali Bytecode Hooks is an agent skill from kveld9/kveld-morphe-patches. Smali and Dalvik bytecode hooking guidelines, register architecture conventions, multi-return reverse traversal, TwoRegisterInstruction extraction, reflection bridges, and obfuscation guidelines.
Smali Bytecode Hooks fits situations like: mobile work in your project.
Run `npx skills add kveld9/kveld-morphe-patches --skill smali-bytecode-hooks -a claude-code`. Or copy the skill folder (.agents/skills/smali-bytecode-hooks in kveld9/kveld-morphe-patches) into .claude/skills/smali-bytecode-hooks in your project. Claude Code loads it when a task matches its description.
Run `npx skills add kveld9/kveld-morphe-patches --skill smali-bytecode-hooks -a codex`. Or copy the skill folder (.agents/skills/smali-bytecode-hooks in kveld9/kveld-morphe-patches) into .agents/skills/smali-bytecode-hooks 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 smali-bytecode-hooks -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/smali-bytecode-hooks, .gemini/skills/smali-bytecode-hooks, .github/skills/smali-bytecode-hooks and .opencode/skills/smali-bytecode-hooks in your project.
SKILL.md names no scripts, command-line tools or credentials: Smali Bytecode Hooks 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.
Smali Bytecode Hooks 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.6k tokens (SKILL.md is roughly 6.3k 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 Smali Bytecode Hooks: 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 112 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on October 8, 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.