1---2name: domain-consult3description: Route domain questions to the best expert agent: codec standards, video/signal processing, fixed-point math, HW protocols. Trigger: 'consult domain expert'.4---56<Purpose>7Analyze the user's question and route it to the most appropriate domain expert agent.8Returns the expert's answer without modification.9</Purpose>1011<Use_When>12- User has a domain-specific question (codec algorithms, video processing, signal processing, hardware protocols)13- Choosing the wrong expert would give a shallow answer14- Multiple domains may be relevant and the best expert needs to be selected15</Use_When>1617<Do_Not_Use_When>18- Question is about RTL coding style (ask rtl-coder directly)19- Question is about synthesis or timing (use rtl-synth-check or timing-advisor directly)20- Implementation work is needed, not consultation21</Do_Not_Use_When>2223<Why_This_Exists>24The project has multiple domain experts (6 codec sub-domain specialists, a codec chief,25video processing, and protocol experts). Routing to the wrong expert wastes tokens and26produces shallow answers. This skill reads the query and selects the best match before delegating.27</Why_This_Exists>2829<Execution_Policy>30- Classify the query into a domain based on keywords and topic31- Delegate to exactly one primary expert (Opus for deep analysis, Sonnet for lookups)32- If multiple domains apply, delegate to both in parallel and merge answers33- For cross-domain codec questions, delegate to vcodec-chief-standard-expert (or relevant 2 sub-domain experts in parallel)34- Return expert answer verbatim, do not summarize or filter35</Execution_Policy>3637<Routing_Table>38| Domain Keywords | Expert Agent | Notes |39|---|---|---|40| NAL, slice header, CABAC, CAVLC, entropy coding, DPB, bitstream, binarization, context model, Exp-Golomb | vcodec-syntax-entropy-expert | HLS parsing, entropy engine, DPB management |41| intra prediction, angular mode, planar mode, DC mode, intra reference sample, intra mode decision, neighboring sample, intra smoothing | vcodec-intra-pred-expert | Intra prediction modes, reference sample construction, mode-dependent filtering |42| motion estimation, ME, search algorithm, IME, FME, TZ search, diamond search, MV prediction, AMVP, merge mode, search range, reference frame selection | vcodec-me-expert | ME search algorithms, MV prediction (AMVP/merge), reference frame management |43| motion compensation, MC, sub-pel interpolation, half-pel, quarter-pel, bi-prediction, weighted prediction, reference block fetch, interpolation filter | vcodec-mc-expert | Sub-pixel interpolation filters, bi-prediction weighting, weighted prediction |44| DCT, DST, quantization, RDOQ, fixed-point, scaling matrix, QP, transform, inverse transform, butterfly, dequantization, coefficient, scaling list | vcodec-transform-quant-expert | Transform, quantization, fixed-point arithmetic |45| deblocking, SAO, in-loop filter, boundary strength, reconstruction, filter decision, edge offset, band offset, sample adaptive offset | vcodec-filter-recon-expert | Deblocking filter, SAO, reconstruction path |46| cross-block, cross-block dependency, pipeline dependency, architecture-ready, architecture-ready assessment, codec domain coordination, codec overview, block interaction, data flow between blocks | vcodec-chief-standard-expert | Cross-block coordination, multi-block dependency analysis |47| codec pipeline, encoder/decoder architecture, datapath, throughput, latency, SRAM organization | vcodec-architecture-expert | Architecture-level codec design decisions |48| throughput, memory bandwidth, cycles per block, macroblock rate, CTU rate, DPB sizing, line buffer sizing, pipeline depth, parallelism degree, performance budget, frames per second, resolution target | video-processing-expert | Codec HW performance analysis (throughput, bandwidth, pipeline) |49| color space conversion, RGB to YUV, YUV to RGB, BT.601, BT.709, BT.2020, chroma subsampling, chroma upsampling, 4:2:0, 4:2:2, 4:4:4, bit depth conversion, 8-bit to 10-bit, Bayer demosaic, color format, limited range, full range, V4L2, fourcc, pixelformat, bytesperline, sizeimage, single-planar, multi-planar, NV12M, tiled format, storage layout | vproc-color-format-expert | Color format conversion + V4L2 storage semantics (FOURCC/plane/stride/sizeimage) |50| denoise, noise reduction, bilateral filter, NLM, temporal noise reduction, 3DNR, motion adaptive, spatial filter, Gaussian filter, noise model, AWGN, shot noise | vproc-denoise-expert | Spatial/temporal noise reduction for video HW |51| HDR, tone mapping, PQ curve, HLG, gamma correction, OETF, EOTF, sRGB, image scaling, resampling, bilinear, bicubic, Lanczos, edge enhancement, sharpening, unsharp mask, ISP pipeline, image signal processing | vproc-image-processing-expert | HDR, gamma, scaling, sharpening, ISP pipeline |52| AXI, AHB, APB, PCIe, USB, Ethernet, bus protocol, handshake, transaction | protocol-checker | Bus protocol rules and timing |53</Routing_Table>5455<Steps>560. Domain expert agents have `<Knowledge_Base>` or `<Domain_Knowledge>` sections with domain-specific knowledge.57 Video-codec experts reference `{plugin_root}/domain-packages/video-codec/knowledge/`; video-processing experts reference `{plugin_root}/domain-packages/video-processing/knowledge/`.58 They will read relevant knowledge files autonomously before answering. No manual loading required.591. Read the user's query and identify domain keywords602. Select primary expert from routing table613. Delegate to selected expert:62 `Task(subagent_type="rtl-agent-team:{expert}", prompt="{user query}")`634. If query spans two codec sub-domains, run both sub-domain experts in parallel645. If query spans multiple codec sub-domains (3+) or asks about block interactions, route to vcodec-chief-standard-expert656. Return expert response(s) to user66</Steps>6768<Tool_Usage>69```70# Syntax/entropy question (NAL, CABAC, DPB)71Task(subagent_type="rtl-agent-team:vcodec-syntax-entropy-expert",72 prompt="Explain the CABAC context initialization process for H.264 Main profile slice_type=P. Cite spec section numbers.")7374# Intra prediction question75Task(subagent_type="rtl-agent-team:vcodec-intra-pred-expert",76 prompt="Describe H.265 angular intra prediction mode 10 for a 16x16 block. Specify reference sample geometry and filtering conditions.")7778# Motion estimation / MV prediction question79Task(subagent_type="rtl-agent-team:vcodec-me-expert",80 prompt="Describe H.265 AMVP candidate derivation for a 16x16 PU. Specify the spatial neighbor scan order and pruning rules.")8182# Motion compensation question83Task(subagent_type="rtl-agent-team:vcodec-mc-expert",84 prompt="Describe H.264 half-pel luma interpolation filter. Specify exact coefficients, precision chain, and diagonal position handling.")8586# Transform/quantization question87Task(subagent_type="rtl-agent-team:vcodec-transform-quant-expert",88 prompt="What is the required accumulator width for H.265 32x32 IDCT at 10-bit input? Show overflow analysis per butterfly stage.")8990# Filter/reconstruction question91Task(subagent_type="rtl-agent-team:vcodec-filter-recon-expert",92 prompt="Describe H.265 SAO edge offset category derivation for class 1 (vertical). Specify the sign comparison logic.")9394# Cross-domain codec question95Task(subagent_type="rtl-agent-team:vcodec-chief-standard-expert",96 prompt="What are the data dependencies between the CABAC entropy engine and the inverse transform block? Specify the interface data format and timing constraints.")9798# Codec architecture question (design-level)99Task(subagent_type="rtl-agent-team:vcodec-architecture-expert",100 prompt="What is the optimal pipeline depth for a CABAC encoder targeting 4K@60fps with a 500MHz sys_clk? Consider throughput vs latency tradeoffs.")101102# Codec performance question103Task(subagent_type="rtl-agent-team:video-processing-expert",104 prompt="What are the throughput requirements for a 4K@60fps H.265 decoder at 500 MHz? Include cycles-per-CTU budget and memory bandwidth breakdown.")105106# Color format conversion question107Task(subagent_type="rtl-agent-team:vproc-color-format-expert",108 prompt="What are the exact BT.709 YCbCr-to-RGB conversion coefficients for 10-bit limited range? Include fixed-point Q-format suitable for RTL implementation.")109110# Denoise question111Task(subagent_type="rtl-agent-team:vproc-denoise-expert",112 prompt="What are the line buffer requirements and DRAM bandwidth for a motion-adaptive 3DNR engine targeting 4K@60fps 10-bit 4:2:0?")113114# Image processing / HDR question115Task(subagent_type="rtl-agent-team:vproc-image-processing-expert",116 prompt="Design a PQ EOTF LUT for 12-bit input to 16-bit output. Specify entry count, interpolation method, and maximum error vs floating-point reference.")117118# Protocol question119Task(subagent_type="rtl-agent-team:protocol-checker",120 prompt="What is the correct AXI4 handshake behavior when ARVALID is asserted but ARREADY is low? Should the master hold ARVALID stable?")121```122</Tool_Usage>123124<Examples>125<Good>126User asks about CABAC bin string encoding → routes to vcodec-syntax-entropy-expert(Opus) → returns127precise answer citing H.264 spec section 9.3.2.128</Good>129<Good>130User asks about H.265 intra prediction angular modes → routes to vcodec-intra-pred-expert(Opus) → returns131complete mode table with reference sample dependencies and boundary handling.132</Good>133<Good>134User asks about interaction between RDOQ and CABAC bit estimation → routes to vcodec-chief-standard-expert135because it spans transform-quant and syntax-entropy domains → returns cross-block analysis.136</Good>137<Bad>138Routing a deblocking filter question to vcodec-transform-quant-expert because it mentions "filter" and139"coefficient" — deblocking is vcodec-filter-recon-expert's domain. Always match the primary domain140(in-loop filtering → vcodec-filter-recon-expert), not incidental keywords.141</Bad>142<Bad>143Routing a cross-block pipeline dependency question to a single sub-domain expert — this should144go to vcodec-chief-standard-expert who understands all block interfaces.145</Bad>146</Examples>147148<Escalation_And_Stop_Conditions>149- Query does not match any domain → answer from general knowledge, note no specialist matched150- Expert returns "I don't know" → try secondary expert from adjacent domain151- Query spans codec standards + architecture → run relevant sub-domain expert and vcodec-architecture-expert in parallel, merge answers152- Query spans 3+ codec sub-domains → route to vcodec-chief-standard-expert for coordinated analysis153- RTL coding convention question → redirect to rtl-coder or rtl-critic (not a domain consult)154</Escalation_And_Stop_Conditions>155156<Final_Checklist>157- [ ] Domain correctly identified from query keywords158- [ ] Correct expert agent selected from routing table159- [ ] Expert response returned without filtering160- [ ] Multi-domain queries ran experts in parallel (or routed to chief)161- [ ] Cross-block questions routed to vcodec-chief-standard-expert162</Final_Checklist>