← Back to Skills Marketplace
wu-uk

jax-skills

by wu-uk · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ✓ Security Clean
76
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install jax-computing-basics-jax-skills
Description
High-performance numerical computing and machine learning workflows using JAX. Supports array operations, automatic differentiation, JIT compilation, RNN-sty...
README (SKILL.md)

Requirements for Outputs

General Guidelines

Arrays

  • All arrays MUST be compatible with JAX (jnp.array) or convertible from Python lists.
  • Use .npy, .npz, JSON, or pickle for saving arrays.

Operations

  • Validate input types and shapes for all functions.
  • Maintain numerical stability for all operations.
  • Provide meaningful error messages for unsupported operations or invalid inputs.

JAX Skills

1. Loading and Saving Arrays

load(path)

Description: Load a JAX-compatible array from a file. Supports .npy and .npz.
Parameters:

  • path (str): Path to the input file.

Returns: JAX array or dict of arrays if .npz.

import jax_skills as jx

arr = jx.load("data.npy")
arr_dict = jx.load("data.npz")

save(data, path)

Description: Save a JAX array or Python array to .npy. Parameters:

  • data (array): Array to save.
  • path (str): File path to save.
jx.save(arr, "output.npy")

2. Map and Reduce Operations

map_op(array, op)

Description: Apply elementwise operations on an array using JAX vmap. Parameters:

  • array (array): Input array.
  • op (str): Operation name ("square" supported).
squared = jx.map_op(arr, "square")

reduce_op(array, op, axis)

Description: Reduce array along a given axis. Parameters:

  • array (array): Input array.
  • op (str): Operation name ("mean" supported).
  • axis (int): Axis along which to reduce.
mean_vals = jx.reduce_op(arr, "mean", axis=0)

3. Gradients and Optimization

logistic_grad(x, y, w)

Description: Compute the gradient of logistic loss with respect to weights. Parameters:

  • x (array): Input features.
  • y (array): Labels.
  • w (array): Weight vector.
grad_w = jx.logistic_grad(X_train, y_train, w_init)

Notes:

  • Uses jax.grad for automatic differentiation.
  • Logistic loss: mean(log(1 + exp(-y * (x @ w)))).

4. Recurrent Scan

rnn_scan(seq, Wx, Wh, b)

Description: Apply an RNN-style scan over a sequence using JAX lax.scan. Parameters:

  • seq (array): Input sequence.
  • Wx (array): Input-to-hidden weight matrix.
  • Wh (array): Hidden-to-hidden weight matrix.
  • b (array): Bias vector.
hseq = jx.rnn_scan(sequence, Wx, Wh, b)

Notes:

  • Returns sequence of hidden states.
  • Uses tanh activation.

5. JIT Compilation

jit_run(fn, args)

Description: JIT compile and run a function using JAX. Parameters:

  • fn (callable): Function to compile.
  • args (tuple): Arguments for the function.
result = jx.jit_run(my_function, (arg1, arg2))

Notes:

  • Speeds up repeated function calls.
  • Input shapes must be consistent across calls.

Best Practices

  • Prefer JAX arrays (jnp.array) for all operations; convert to NumPy only when saving.
  • Avoid side effects inside functions passed to vmap or scan.
  • Validate input shapes for map_op, reduce_op, and rnn_scan.
  • Use JIT compilation (jit_run) for compute-heavy functions.
  • Save arrays using .npy or pickle/json to avoid system-specific issues.

Example Workflow

import jax.numpy as jnp
import jax_skills as jx

# Load array
arr = jx.load("data.npy")

# Square elements
arr2 = jx.map_op(arr, "square")

# Reduce along axis
mean_arr = jx.reduce_op(arr2, "mean", axis=0)

# Compute logistic gradient
grad_w = jx.logistic_grad(X_train, y_train, w_init)

# RNN scan
hseq = jx.rnn_scan(sequence, Wx, Wh, b)

# Save result
jx.save(hseq, "hseq.npy")

Notes

  • This skill set is designed for scientific computing, ML model prototyping, and dynamic array transformations.

  • Emphasizes JAX-native operations, automatic differentiation, and JIT compilation.

  • Avoid unnecessary conversions to NumPy; only convert when interacting with external file formats.

Usage Guidance
This skill appears internally consistent and limited to local JAX/NumPy operations. Before installing: ensure you trust the owner (source/homepage are missing) and have JAX/NumPy available; test it in a safe environment since it reads/writes local files (.npy/.npz) and could overwrite files if given paths you care about; verify the license (SKILL.md references LICENSE.txt which is not included); and if you want to avoid any autonomous actions, keep model-invocation disabled at the agent/platform level. The code contains no network calls, credential access, or other unexpected behaviors.
Capability Analysis
Type: OpenClaw Skill Name: jax-computing-basics-jax-skills Version: 0.1.0 The skill bundle provides standard JAX-based numerical computing utilities, including array manipulation, automatic differentiation, and JIT compilation. The implementation in `jax_skills.py` and the instructions in `SKILL.md` are consistent with the stated purpose of high-performance ML workflows and do not contain any evidence of malicious intent, data exfiltration, or prompt injection.
Capability Assessment
Purpose & Capability
The name, description, SKILL.md, and the included jax_skills.py functions (load/save, map_op, reduce_op, logistic_grad, rnn_scan, jit_run) match each other and are appropriate for JAX numerical and ML workflows. There are no unrelated credentials, binaries, or config paths requested. Minor metadata mismatch: SKILL.md claims a Proprietary LICENSE.txt but no LICENSE file is present in the manifest; source and homepage are unknown.
Instruction Scope
Runtime instructions stay within scope: they describe local array operations, reading/writing .npy/.npz files, using JAX primitives, and validating shapes. The SKILL.md does not instruct reading other system files, contacting external endpoints, or collecting unrelated data. Note: the doc mentions pickle/json as saving options but the provided save implementation only uses np.save (npy); this is an implementation/documentation inconsistency but not a security concern.
Install Mechanism
No install spec is provided (instruction-only with a small code file), so nothing is downloaded or written by an installer. This is low-risk from an install perspective. The package does depend on JAX and NumPy being present at runtime; the skill does not declare an install to fetch those.
Credentials
The skill requires no environment variables, credentials, or config paths. That is proportionate for the declared functionality (local numerical computing).
Persistence & Privilege
The skill is not forced-always (always:false) and does not request persistent system privileges. Model invocation is allowed (platform default) but the skill does not request elevated or cross-skill configuration changes.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install jax-computing-basics-jax-skills
  3. After installation, invoke the skill by name or use /jax-computing-basics-jax-skills
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.1.0
Bulk publish from all-task-skills-dedup
Metadata
Slug jax-computing-basics-jax-skills
Version 0.1.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is jax-skills?

High-performance numerical computing and machine learning workflows using JAX. Supports array operations, automatic differentiation, JIT compilation, RNN-sty... It is an AI Agent Skill for Claude Code / OpenClaw, with 76 downloads so far.

How do I install jax-skills?

Run "/install jax-computing-basics-jax-skills" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is jax-skills free?

Yes, jax-skills is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does jax-skills support?

jax-skills is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created jax-skills?

It is built and maintained by wu-uk (@wu-uk); the current version is v0.1.0.

💬 Comments