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
White-box auditing methodology for AI-generated ('vibe-coded') applications. Focuses on modern stack misconfigurations (Supabase, Next.js, Vercel).
development
Hybrid AI/Deterministic SAST methodology for discovering zero-day vulnerabilities in source code. Orchestrates structural search with AI-driven data flow and sink validation.
development
Auth assessment: hardware/embedded methodology; UART/JTAG/SWD/SPI/I2C, firmware extraction, boot/debug paths, embedded OS evidence.
devops
Container methodology: Identifying containerization limits, Docker/K8s misconfigurations, and executing escapes to the host node.