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, partial, elided, paginated, or cut off mid-entry, stop and fetch the remainder before planning or implementing anything. Do not implement any task until every entry's id, description, input, and output fields are fully visible and the total task count is confirmed from the file itself.
  2. Parse problem.json into a runtime manifest and treat it as the authoritative source for task count, computation requirements, input paths, and output paths.
  3. Iterate over every manifest entry programmatically; do not hardcode task IDs, filenames, paths, output names, or the number of tasks.
  1. For each task from the parsed manifest:
  1. Before declaring success, perform a coverage check against the full manifest: confirm every entry in problem.json was processed, no entry was skipped because of truncated file views, and each required output was written to the exact specified filename/path.
  2. Then validate semantics, not just execution: for each task, confirm the saved result matches the exact description's requested operation/formula, relevant axes, output shape/dtype, and target filename/path.
  1. Before the final response, re-check any required interaction protocol from the task/system instructions and emit the exact mandated completion string or action format verbatim.
  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.