Agent skill

Morphe Library Reference

by Paresh-Maheshwari in Paresh-Maheshwari/morphe-ai

Complete reference for all Morphe utility libraries — BytecodeUtils, ResourceUtils, FreeRegisterProvider, Settings, UI, Extensions.

GPL-3.0Auto-check passedMobile

Install Morphe Library Reference

skills CLI
$ npx skills add Paresh-Maheshwari/morphe-ai --skill morphe-library-reference -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Paresh-Maheshwari/morphe-ai morphe-library-reference --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Paresh-Maheshwari/morphe-ai.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.kiro/skills/morphe-library .claude/skills/morphe-library-reference && rm -rf skills-src

Use ~/.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/

Facts

Skill name
morphe-library-reference
GitHub stars
178
Token cost
~1.9k tokens
SKILL.md length
272 words
Files
1
Skills in repo
13
Repo updated
First seen
Licence
GPL-3.0

At a glance

Complete reference for all Morphe utility libraries — BytecodeUtils, ResourceUtils, FreeRegisterProvider, Settings, UI, Extensions.

  • Writing patches that need utility functions
  • SKILL.md covers Patch Utilities (Kotlin —…, Patch Templates (Kotlin —…, Extension Library (Java —… and File Locations
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Advanced bytecode operations

What it does

Morphe Library Reference is an agent skill from Paresh-Maheshwari/morphe-ai. Complete reference for all Morphe utility libraries — BytecodeUtils, ResourceUtils, FreeRegisterProvider, Settings, UI, Extensions. Use when writing patches that need utility functions, settings, extensions, or advanced bytecode operations.

Its SKILL.md is about 1.9k 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 Java. The repository describes itself as: Morphe's AI-powered Android APK patching workspace — multi-agent pipeline for APK analysis, target hunting, patch writing & deployment. The licence is GPL-3.0.

When your agent uses it

  • Writing patches that need utility functions
  • Advanced bytecode operations

Example prompts

  • “/morphe-library-reference”

What it can do on your machine

Read from SKILL.md and the folder at commit 2d7fde2. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    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.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Morphe Library Reference loads about 1.9k tokens when it runs. Until then it costs about 66 tokens; SKILL.md has 272 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~66
When it runs · the whole SKILL.md, loaded when a task matches
~1.9k

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.

Safety

Auto-check passed

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.

SKILL.md

The full file from Paresh-Maheshwari/morphe-ai at commit 2d7fde2, republished under its GPL-3.0 licence (© Paresh-Maheshwari). 272 words, ~1,929 tokens.

Download SKILL.mdSave it as .claude/skills/morphe-library-reference/SKILL.md (or your agent's skills folder).
name
morphe-library-reference
description
Complete reference for all Morphe utility libraries — BytecodeUtils, ResourceUtils, FreeRegisterProvider, Settings, UI, Extensions. Use when writing patches that need utility functions, settings, extensions, or advanced bytecode operations.

When to use: Writing patches that need more than basic addInstructions. This covers all utility code copied from morphe-patches-library into our repo.

Morphe Library Reference

⚠️ Pinned source: morphe-patcher 6f189f9, patches-library 6501aee. Official docs may lag the source — the pinned source wins if anything contradicts this file.

Patch Utilities (Kotlin — app.morphe.util.*)

BytecodeUtils.kt — Most Used

Return overrides (simplest patching):

kotlin
import app.morphe.util.returnEarly
import app.morphe.util.returnLate

method.returnEarly()           // return-void
method.returnEarly(true)       // return true at start, skip all code
method.returnEarly(false)      // return false
method.returnEarly(0)          // return int 0
method.returnEarly("text")     // return string
method.returnEarly(null)       // return null object
method.returnLate(true)        // override ALL return statements to true
method.returnLate(false)       // override ALL return statements to false

addInstructions deprecation note: Always supply the index argument:

kotlin
method.addInstructions(0, "...")    // ✅ correct
method.addInstructions("...")       // ❌ deprecated — will be deleted

Instruction search:

kotlin
import app.morphe.util.indexOfFirstInstruction
import app.morphe.util.indexOfFirstInstructionOrThrow
import app.morphe.util.indexOfFirstStringInstruction
import app.morphe.util.findInstructionIndicesReversedOrThrow

// By opcode
method.indexOfFirstInstruction(Opcode.INVOKE_VIRTUAL)
method.indexOfFirstInstructionOrThrow(Opcode.RETURN)
method.indexOfFirstInstructionOrThrow(startIndex, Opcode.IF_EQZ)

// By predicate
method.indexOfFirstInstruction { getReference<MethodReference>()?.name == "isPremium" }

// By string
method.indexOfFirstStringInstructionOrThrow("premium")

// Reversed (from end — safe for modification)
method.indexOfFirstInstructionReversedOrThrow(Opcode.RETURN)
method.findInstructionIndicesReversedOrThrow(Opcode.RETURN)  // all indices
method.findInstructionIndicesReversedOrThrow(stringFilter)    // all filter matches

// By literal value
method.indexOfFirstLiteralInstructionOrThrow(1337L)
method.containsLiteralInstruction(1337L)

Literal overrides:

kotlin
import app.morphe.util.insertLiteralOverride

method.insertLiteralOverride(1337L, "Lext;->check(I)I")  // call extension
method.insertLiteralOverride(1337L, false)                 // constant override

Control flow:

kotlin
import app.morphe.util.addInstructionsAtControlFlowLabel

method.addInstructionsAtControlFlowLabel(index, "const/4 v0, 0x1")

View hiding:

kotlin
import app.morphe.util.injectHideViewCall

method.injectHideViewCall(insertIndex, viewRegister, "Lext;", "hideView")

toString() discovery:

kotlin
import app.morphe.util.findFieldFromToString
import app.morphe.util.findMethodFromToString

val field = method.findFieldFromToString("fieldName=")
val targetMethod = method.findMethodFromToString("fieldName=")

Class utilities:

kotlin
import app.morphe.util.traverseClassHierarchy
import app.morphe.util.toPublicAccessFlags

traverseClassHierarchy(mutableClass) { /* each class in hierarchy */ }
val flags = accessFlags.toPublicAccessFlags()
field.removeFlags(AccessFlags.FINAL)
mutableClass.constructor()
mutableClass.fieldByName("name")
classDef.toStringMethod()

Method cloning:

kotlin
import app.morphe.util.cloneParameters

val cloned = method.cloneParameters()

Helpers:

kotlin
method.addInstructionsToEnd("invoke-static {}, Lext;->hook()V")
method.p0Register          // actual register number of p0
method.numberOfParameterRegisters
// Read all registers used by an instruction
val usedRegs: List<Int> = instruction.registersUsed
true.toHexString()         // "0x1"
FreeRegisterProvider.kt

Find unused registers in a method for temporary use without increasing register count.

MemoryUtils.kt

Memory-efficient DEX operations.

ResourceUtils.kt

XML/resource manipulation for ResourcePatch contexts.

PatchListGenerator.kt

Generates patches-list.json during build.

Patch Templates (Kotlin — app.morphe.patches.all.misc.*)

ReplaceStringPatch
kotlin
import app.morphe.patches.all.misc.string.replaceStringPatch

// Replace string globally across all classes
val myPatch = replaceStringPatch(from = "old text", to = "new text")
ResourceMappingPatch

Maps resource IDs for use in bytecode patches.

kotlin
import app.morphe.patches.all.misc.resources.getResourceId
import app.morphe.patches.all.misc.resources.ResourceType

val id = getResourceId(ResourceType.ID, "resource_name")
val index = method.indexOfFirstResourceIdOrThrow("resource_name")
HexPatchBuilder

Hex-level binary patching for native libraries.

TransformInstructionsPatch + MethodCall

Transform method calls across entire classes.

Extension Library (Java — app.morphe.extension.shared.*)

Runtime code that runs inside the patched app. Use with extendWith("name.mpe") in patches.

Core
ClassPurpose
Utils.javaContext access, toast, reboot, network checks
Logger.javaLogging with tag support
ResourceType.javaAndroid resource type enum
ResourceUtils.javaRuntime resource access
StringRef.javaLazy string reference
ClassPurpose
TrieSearch.javaBase trie search
StringTrieSearch.javaString pattern matching
ByteTrieSearch.javaByte pattern matching
Settings (for patches with user preferences)
ClassPurpose
Setting.javaBase setting class
BooleanSetting.javaBoolean toggle
IntegerSetting.javaInteger value
LongSetting.javaLong value
FloatSetting.javaFloat value
StringSetting.javaString value
EnumSetting.javaEnum selection
BaseSettings.javaCommon settings
AppLanguage.javaLanguage setting
SharedPrefCategory.javaSharedPreferences wrapper
UI (for patches with custom UI)
ClassPurpose
CustomDialog.javaCustom dialog builder
SheetBottomDialog.javaBottom sheet dialog
ColorDot.javaColor indicator view
ColorPickerPreference.javaColor picker setting
ColorPickerView.javaColor picker widget
Dim.javaDimension utilities

File Locations

${PATCHES_DIR}/patches/src/main/kotlin/
├── app/morphe/util/                    # Kotlin utilities
│   ├── BytecodeUtils.kt               # ★ Most used
│   ├── FreeRegisterProvider.kt
│   ├── MemoryUtils.kt
│   ├── ResourceUtils.kt
│   └── PatchListGenerator.kt
├── app/morphe/patches/all/misc/        # Reusable patch templates
│   ├── string/ReplaceStringPatch.kt
│   ├── resources/ResourceMappingPatch.kt
│   ├── hex/HexPatchBuilder.kt
│   └── transformation/
│       ├── MethodCall.kt
│       └── TransformInstructionsPatch.kt
└── <group>/patches/<app>/              # Your patches (discover group from build.gradle.kts)

${PATCHES_DIR}/extensions/extension/src/main/java/
└── app/morphe/extension/shared/        # Java runtime code
    ├── Utils.java, Logger.java, etc.
    ├── settings/                        # Settings framework
    └── ui/                              # UI components

${PATCHES_DIR} = ${MORPHE_PATCHES_DIR:-morphe-patches}

© Paresh-Maheshwari, 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

Files

Just SKILL.md in .kiro/skills/morphe-library of Paresh-Maheshwari/morphe-ai.

Open the folder on GitHubat commit 2d7fde2

Compare with similar skills

Morphe Library Reference 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.

Morphe Library Reference compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Morphe Library Reference this skillParesh-Maheshwari/morphe-ai178—~1.9kAutomated safety check: PassGPL-3.0
Android API Diffgkd-kit/gkd43k—~796Automated safety check: PassGPL-3.0
Build Teaql Appteaql/teaql-agent-kit2.8k—~4.6kAutomated safety check: PassMIT
Find Untested Sourcesmicrosoft/testfx1k2 repos~3.3kAutomated safety check: PassMIT
Fory Version Bumpapache/fory4.6k—~1.1kAutomated safety check: PassApache-2.0
Fory Performance Optimizationapache/fory4.6k—~2.2kAutomated safety check: PassApache-2.0

Similar skills

  • Android API Diff

    gkd-kit/gkd

    Looks up Android framework Java and AIDL APIs across versions with the android-api-diff CLI: signatures, availability, source files and hidden-API access code.

    43k GitHub stars~796 tokensUpdated today
    MobileAuto-check passed
  • Build Teaql App

    teaql/teaql-agent-kit

    Build or change a TeaQL application in Java, Rust, Go, Swift, Python, C/.NET, or TypeScript, including Kotlin/JVM applications that consume Java-generated libraries.

    2.8k GitHub stars~4.6k tokensUpdated 12 days ago
    MobileAuto-check passed
  • Find Untested Sources

    microsoft/testfx

    Official

    MANDATORY for static source-to-test pairing: find or list source files/modules without corresponding tests, or suggest test locations from repository structure.

    1k GitHub starsUsed in 2 repos~3.3k tokens
    MobileAuto-check passed
  • Bump Apache Fory release or post-release development versions across Java, Kotlin, Scala, Python, Rust, Go, C++, C, Dart, JavaScript, Swift, integration tests, examples, and source docs.

    4.6k GitHub stars~1.1k tokensUpdated today
    MobileAuto-check passed
  • Run profile-driven bottleneck optimization across Apache Fory implementations (Java, C++, Python/Cython, Go, Rust, Swift, C, JavaScript/TypeScript, Dart, Kotlin, Scala).

    4.6k GitHub stars~2.2k tokensUpdated today
    MobileAuto-check passed
  • Frb Android Emulator Prepare

    fzyzcjy/flutter_rust_bridge

    A skill your agent uses when preparing, installing, diagnosing, or explaining the host Android Emulator environment for flutterrustbridge local runtime validation, including Android SDK command-line…

    5.4k GitHub stars~2.1k tokensUpdated today
    MobileAuto-check: notes

More from Paresh-Maheshwari/morphe-ai

All 13 skills in this repo
  • Build Deploy Troubleshoot

    Paresh-Maheshwari/morphe-ai

    Build, test, deploy, and troubleshoot Morphe patches — gradle commands, CLI usage, git workflow, common errors and fixes.

    178 GitHub stars~1.1k tokensUpdated 10 days ago
    Auto-check passed
  • Dev Environment Setup

    Paresh-Maheshwari/morphe-ai

    Complete Morphe development environment setup — prerequisites, cloning repos, gradle auth, IDE config, build commands.

    178 GitHub stars~1k tokensUpdated 10 days ago
    Auto-check: notes
  • Fingerprinting Guide

    Paresh-Maheshwari/morphe-ai

    Complete guide to Morphe fingerprinting — how to identify obfuscated methods using stable characteristics.

    178 GitHub stars~2.4k tokensUpdated 10 days ago
    Auto-check passed
  • Morphe CLI Reference

    Paresh-Maheshwari/morphe-ai

    Morphe CLI v1.17.0 (morphe-desktop) complete command reference — patch, list-patches, list-versions, options-create, utility install/uninstall.

    178 GitHub stars~2.9k tokensUpdated 10 days ago
    Auto-check passed
  • Morphe Faq And App Notes

    Paresh-Maheshwari/morphe-ai

    Morphe FAQ, current pinned official app targets, and app-specific notes.

    178 GitHub stars~573 tokensUpdated 10 days ago
    Auto-check passed
  • Patch Anatomy

    Paresh-Maheshwari/morphe-ai

    How to write Morphe patches — bytecodePatch DSL, compatibility, extensions, options, finalization.

    178 GitHub stars~2.4k tokensUpdated 10 days ago
    Auto-check passed

Works with

Categories

Questions about Morphe Library Reference

What does Morphe Library Reference do?

Complete reference for all Morphe utility libraries — BytecodeUtils, ResourceUtils, FreeRegisterProvider, Settings, UI, Extensions. Morphe Library Reference is an agent skill from Paresh-Maheshwari/morphe-ai. Complete reference for all Morphe utility libraries — BytecodeUtils, ResourceUtils, FreeRegisterProvider, Settings, UI, Extensions.

When should I use Morphe Library Reference?

Morphe Library Reference fits situations like: writing patches that need utility functions; advanced bytecode operations.

How do I install Morphe Library Reference in Claude Code?

Run `npx skills add Paresh-Maheshwari/morphe-ai --skill morphe-library-reference -a claude-code`. Or copy the skill folder (.kiro/skills/morphe-library in Paresh-Maheshwari/morphe-ai) into .claude/skills/morphe-library-reference in your project. Claude Code loads it when a task matches its description.

How do I install Morphe Library Reference in Codex?

Run `npx skills add Paresh-Maheshwari/morphe-ai --skill morphe-library-reference -a codex`. Or copy the skill folder (.kiro/skills/morphe-library in Paresh-Maheshwari/morphe-ai) into .agents/skills/morphe-library-reference in your project. Codex loads it when a task matches its description.

Can I use Morphe Library Reference in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Paresh-Maheshwari/morphe-ai --skill morphe-library-reference -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/morphe-library-reference, .gemini/skills/morphe-library-reference, .github/skills/morphe-library-reference and .opencode/skills/morphe-library-reference in your project.

What does Morphe Library Reference need to run?

SKILL.md names no scripts, command-line tools or credentials: Morphe Library Reference is instructions for the agent only.

Does Morphe Library Reference access the network?

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.

Is Morphe Library Reference safe to install?

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.

What licence does Morphe Library Reference use?

Morphe Library Reference 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.

How many tokens does Morphe Library Reference use?

About 1.9k tokens (SKILL.md is roughly 7.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Morphe Library Reference?

Skills that share tags, products or a category with Morphe Library Reference: Android API Diff (gkd-kit/gkd, 43k stars), Build Teaql App (teaql/teaql-agent-kit, 2.8k stars), Find Untested Sources (microsoft/testfx, 1k stars) and Fory Version Bump (apache/fory, 4.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Morphe Library Reference?

Paresh-Maheshwari (a GitHub user) maintains it in Paresh-Maheshwari/morphe-ai, which has 178 GitHub stars. The repository holds 13 skills in this directory. The repository was last updated on September 29, 2026.

Source: Paresh-Maheshwari/morphe-ai on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.