ai/keras/SKILL.md
Keras model loading and structure-inspection workflow for `.keras`, SavedModel, and HDF5 artifacts. Use when you need to inspect layers, summaries, configs, weights, or quick inference behavior from TensorFlow/Keras model files.
npx skillsauth add aeondave/malskill kerasInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
High-level model inspection when the artifact speaks layers, configs, and summaries.
Use Keras when you need to:
from keras.saving import load_model
model = load_model("model.keras", compile=False, safe_mode=True)
model.summary()
for layer in model.layers:
print(layer.name, layer.__class__.__name__)
config = model.get_config()
print(config.keys())
for layer in model.layers:
weights = layer.get_weights()
if weights:
print(layer.name, [w.shape for w in weights])
compile=False when you only need inspection; it avoids unnecessary optimizer/loss restoration.safe_mode=True unless you are intentionally loading trusted custom objects that require otherwise.model.summary() is the quickest overview; get_config() is better for structured downstream tooling.custom_objects support..keras, and old .h5 artifacts do not behave identically across all environments.No bundled scripts/, references/, or assets/.
Use the official Keras saving and serialization documentation for format differences and safe_mode behavior.
development
Auth/lab ref: Unicorn Engine CPU-only emulation for shellcode, decryptors, custom VM handlers, instruction tracing, memory hooks, and register-level experiments.
development
Auth/lab ref: Renode board and SoC simulation for MCU/RTOS firmware, UART/GPIO/peripheral modeling, GDB remote debugging, REPL platforms, and RESC scripts.
development
Auth/lab ref: Qiling OS-layer binary emulation for PE/ELF/Mach-O/UEFI/shellcode with rootfs, syscall/API hooks, filesystem mapping, and runtime patching.
databases
Auth/lab ref: QEMU user-mode and full-system emulation for cross-arch binaries, firmware, kernels, disks, serial consoles, networking, and GDB stubs.