Jax computing basics

From XuShuwenn/RedAct · View interactive version

Jax computing basics is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Execute multiple JAX-based computing tasks from problem.json specification, loading inputs and saving outputs.

How to use this skill

Skill file

JAX Computing Basics

When to Use

Input Format

problem.json structure:

[
  {
    "id": "task_id",
    "description": "task description",
    "input": "data/x.npy",
    "output": "basic_reduce.npy"
  }
]

Execution Protocol

Workflow

  1. Read problem.json completely before coding; if the file view is truncated or partial, fetch the remainder until every task's id, description, input, and output fields are visible.
  2. Treat problem.json as the authoritative task manifest for task count, computation requirements, input paths, and output paths.
  3. Iterate over every manifest entry programmatically; do not hardcode task IDs, filenames, paths, or the number of tasks.
  4. For each task:
  1. Before declaring success, verify every manifest entry was processed and each saved output matches the task description, including the requested operation/formula, relevant axes, output shape/dtype, and target filename/path.
  2. Use jax.numpy for array operations.

JAX Features

Tips

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.