Orchestrates multi-agent parallel development of multiple custom AIE operators for VAIML. Handles workspace partitioning, spawning worker agents, relaying insights, gating integration on verified results, and serializing final model stitching.
Ships in AMD Ross Agentic AI Assistant. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Coordinates parallel development of multiple custom AIE operators by spawning
worker agents, managing hermetic workspaces, and serializing the final
integration into one model. Each worker uses the vai-custom-op skill for
Phases 1-5; this orchestrator owns Phase 6 (stitching) and Phase 7
(end-to-end verification).
This skill expects arguments in this form:
[--t <activate_path>] --model <onnx_model> --vitisai-config <config_json> --ops <op1_nodes:op1_name> [<op2_nodes:op2_name> ...]
Extract from $ARGUMENTS:
--t <path>: (OPTIONAL) Path to a Ryzen AI / Vitis AI / product virtual environment activate script. Provide this only when the Python environment is NOT already on the shell. Omit it when the environment is pre-provisioned (e.g. inside the official Vitis AI Docker container, where flexml, onnx, onnxruntime, etc. are already importable from system Python). If --t is provided, forward it verbatim to every spawned worker; if it is absent, do NOT invent a path -- spawn workers without --t.--model <path>: (MANDATORY) Path to the full ONNX model--vitisai-config <path>: (MANDATORY) Path to vitisai_config.json--ops <nodes:name> [...]: (MANDATORY) One or more op specs, each in the
form node1,node2:op_name (comma-separated nodes, colon, custom op name)Validation: Verify all mandatory arguments are present before proceeding. --t is intentionally optional -- treat its absence as a deliberate signal to use the system-provisioned environment, not as missing input. Do NOT search the filesystem for an activate script to plug in.
| Role | Owns | Tools |
|---|---|---|
| Orchestrator (you, the team lead) | Partition work, prepare hermetic workspaces, spawn workers, relay peer insights, gate integration, run Phases 6 and 7 serially. | Task/Agent tool to spawn workers; direct edits for integration. |
| Worker (one per custom op) | Phases 1-5 inside its own hermetic workspace. Must prove BOTH successful compilation AND numeric accuracy before reporting back. | The vai-custom-op-implementation skill, scoped to a single --nodes set. |
Create one hermetic sub-directory per custom op plus a reserved directory for integration:
<parent_dir>/
<op_name_1>/ # worker 1 workspace (hermetic)
<full_model>.onnx # copy (or symlink) of the original model
vitisai_config.json # copy of the original config
... # worker creates model_a.onnx, model_b.onnx,
# custom_op_<name>/, reference_data/, etc.
<op_name_2>/ # worker 2 workspace (hermetic)
...
integration/ # reserved for orchestrator Phase 6-7
Hermeticity rule: each worker reads and writes only inside its own
<parent_dir>/<op_name_N>/ directory. No worker touches another worker's
directory or the integration/ directory.
The orchestrator is data-driven. Decisions must be taken based on real world data
and measurements. Certain decisions are not black and white and require
a full understand and proper bottleneck analysis to figure out the scope for the
implementation of a custom op. Auxiliary tools and skills (such as vai-perf-analysis)
have been developed to help you in this task.
Partition the node list. Perform model analysis using compilation logs
or vai-perf-analysis - if runtime data is present - to figure out the optimal
number of custom ops and which target nodes to include in one cluster.
Each cluster becomes one worker and a custom op.
Sanity-check the high-level decomposition. The orchestrator's
job is to decide how many custom ops are worth building and
which nodes land in each cluster. Custom ops have hard buffer
limits (at most 2 inputs, 1 output -- see the vai-custom-op-implementation skill,
"Design Constraints"), but the worker can pack extras into IFM/WTS
via tiling and DMA, so a raw input/output count is not a strict
partitioning constraint. Use this step to catch decomposition-level
issues only:
Per-op concerns -- exact IFM/WTS packing layout, multi-output
kernel concat + tiling split, attribute vs. lp_params choice --
are deferred to the worker, which has full context on the kernel
and tiling. Forward each surviving cluster to a worker as-is and
let it negotiate the buffer constraints internally.
Prepare hermetic workspaces. For each cluster, create
<parent_dir>/<op_name>/ and copy (or symlink) the original model and
vitisai_config.json into it.
Spawn workers in parallel. Use the Agent tool to spawn one subagent
per custom op simultaneously (all Agent calls in a single message).
Each worker's prompt MUST instruct it to invoke the /vai-custom-op-implementation skill
with the appropriate arguments. Use subagent_type="vai-custom-op-worker"
and mode="bypassPermissions".
Worker prompt template (one per custom op):
You are a vai-custom-op-worker agent. Your ONLY task is to invoke the
/vai-custom-op-implementation skill with the following arguments and report the result.
Run this skill now:
/vai-custom-op-implementation <operation_description> \
[--t <activate_path>] # include ONLY if the orchestrator was invoked with --t; otherwise omit this line entirely
--model <parent_dir>/<op_name>/<full_model>.onnx \
--vitisai-config <parent_dir>/<op_name>/vitisai_config.json \
--nodes <nodes_for_this_op_only>
Work ONLY inside <parent_dir>/<op_name>/. Execute Phases 1-5 of the
/vai-custom-op-implementation skill in full -- Phase 5 (kernel optimization, including
board-based measurement with /vai-perf-analysis when a board is
reachable) is part of the skill's own contract and is mandatory.
Apply techniques from BOTH /vai-aie-kernel-development AND
/vai-aie-compiler-oriented-optimizations. Do NOT attempt Phase 6 or 7;
those are owned by the orchestrator.
When done, report back with: status, op_name, working_dir, yaml_path,
compile_verdict, numeric_verdict, optimization_verdict, and any
peer_insights.
IMPORTANT: Launch ALL workers in a single message with multiple Agent tool calls -- do not wait for one worker to finish before spawning the next. The whole point of this orchestrator is parallel execution.
Relay peer insights (optional). Workers do not talk to each other. If a worker surfaces an insight likely to help peers (e.g., a tiling pattern for similar shapes, a debugging discovery), the orchestrator forwards it to the relevant peers.
Gate integration on worker success. For each worker, verify its report before integrating its op:
"Compilation successful" AND non-empty
<model_stem>/cache/vaiml_par_0/0/backend/gen_tg_adf/compare_npy.py returns SUCCESS
If either check fails, ask the worker to iterate, reassign the op, or drop
it from the integration batch. Never integrate an unverified custom op.Serialize Phases 6 and 7. For each validated custom op in turn:
vai-custom-op-implementation skill).custom_ops entry to integration/vitisai_config.json (Phase 6c)
with op_config pointing at the worker's YAML (absolute path).Each worker agent MUST:
<parent_dir>/<op_name>/ directory.vai-custom-op-implementation skill end-to-end, including a local
git repo with milestone commits.status: READY_FOR_INTEGRATION or FAILEDop_name and working_dir (absolute path)yaml_path: absolute path to custom_op_<name>/<name>.yaml
(needed by the orchestrator for Phase 6c)compile_verdict: success/failure plus gen_tg_adf/ non-empty checknumeric_verdict: compare_npy.py max abs diff, mean abs diff, and
SUCCESS/ERRORoptimization_verdict: which Phase 5 optimizations were applied,
drawn from BOTH /vai-aie-kernel-development (vectorization at minimum,
NOINLINE core pattern, loop splitting, etc.) AND
/vai-aie-compiler-oriented-optimizations (restrict pointers, DM bank
annotations, loop pragmas / hints, software pipelining, vector
alignment, etc.); the Phase-4 re-validation result after each;
board-measurement results from /vai-perf-analysis (per-op time,
bottleneck class, before/after deltas) OR a documented reason no
board was reachable; and the final kernel classification
(vectorized / scalar-fallback-with-justification). A scalar kernel
without a documented vectorization attempt, or a "board available
but not measured" state, is a FAILED verdict.peer_insights (optional): anything the orchestrator should forwardvitisai_config.json edits) and Phase 7
(end-to-end verification) must be executed serially by the orchestrator.
Parallel edits to the full model or its config will corrupt the integration.IMPORTANT: When any step fails -- worker compilation, x86sim, numeric comparison, or integration compile -- do not resort to trial and error. Debug systematically: read the full error output, trace backward to find the root cause, and apply a targeted fix. Check if there are other skills available that can help with debugging. When a worker reports FAILED, ask for the specific error message and root cause analysis before telling it to retry.
For each validated custom op, in order:
onnx_stitch.py from the vai-custom-op-implementation skill's scripts directory.integration/vitisai_config.json to add the custom_ops entry
with op_config pointing to the worker's YAML (absolute path).After all custom ops are integrated:
This phase is mandatory. At minimum, the integrated model must compile successfully.
After Phase 7 completes, generate a markdown report at
<parent_dir>/report.md summarizing the entire workflow. Use the following
structure:
# Custom Op Development Report
## Summary
- **Model**: <original model path>
- **Custom ops developed**: <count>
- **Final status**: <all integrated / partial / failed>
## Per-Op Results
### <op_name_1>
- **Target nodes**: <node list>
- **Status**: READY_FOR_INTEGRATION | FAILED
- **Compilation**: success/failure
- **Numeric accuracy**: max abs diff, mean abs diff, SUCCESS/ERROR
- **Tiling strategy**: <Tiling_4x4 / Tiling_1x1, tile size, distribution>
- **Working directory**: <absolute path>
- **Issues encountered**: <brief description of failures and how they were resolved>
### <op_name_2>
...
## Integration
- **Integrated model**: <path to final model>
- **Integration compilation**: success/failure
- **End-to-end numeric accuracy**: max abs diff, mean abs diff (if run)
## Performance
- **Compilation time**: <per-op and total>
- **x86sim time**: <per-op>
- **Kernel configuration**: <vectorized / scalar, vector width, pipelining>
## Issues & Resolutions
| Issue | Root Cause | Resolution |
|-------|-----------|------------|
| ... | ... | ... |
Include all attempts, not just the final successful run -- this makes the report useful for future reference when developing similar ops.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
multi-agent, custom-operator, aie, vitis-ai, parallel-development
50 skills in this plugin
/hls-architectConvert input code to a multi-stage HLS dataflow, validate with the other hls skills, then hand off to optimize./hls-array-to-streamAnalyze whether a given C/C++ code snippet follows the recommended coding style for array-to-stream conversion in Vitis HLS. Keywords: array, stream, HLS, pragma, ap_fifo, axis, interface/hls-burst-inferenceAnalyze whether burst inference optimization can be applied to a given C/C++ code snippet in Vitis HLS. Keywords: burst, HLS, pragma, m_axi, AXI, memory, optimization/amd-ross-agentic-ai-assistant:vai-custom-opfrom AMD Ross Agentic AI Assistant
npx claudepluginhub xilinx/ross-ai-assistant --plugin amd-ross-agentic-ai-assistantOther plugins' skills for the same job