SKILLEMALL.ai

AC perf-torch-sync-free

Identify and eliminate host-device synchronizations in PyTorch code. Detects sync points (.item(), .cpu(), boolean indexing, torch.tensor on CUDA), classifies false vs true dependencies, provides sync-free alternatives. Triggers: sync-free, synchronization, .item(), .cpu(), host-device sync, eliminate syncs, CPU stall, non_blocking, set_sync_debug_mode, cudaStreamSynchronize, cudaEventSynchronize, remove syncs, async GPU.

The skillemall take

This skill detects host-device synchronizations in PyTorch code — the .item() and .cpu() calls that stall GPU waiting for results. Promises to classify which syncs are real dependencies versus false alarms, then suggest async alternatives.

Grade A, quality 90, safety 100 — files are clean, no critical issues. Three files, one script, 2373 tokens. Never ran on models, no sandbox testing. Triggers cover standard blocking points: .item(), .cpu(), boolean indexing, cudaStreamSynchronize. Assumes NVIDIA TensorRT-LLM context.

Install it if you're manually hunting synchronizations and want automation. Skip it if syncs are already tuned or sparse in your codebase.

NVIDIA/TensorRT-LLM Agent Skills author: NVIDIA NOASSERTION 3 files · 1 script body ≈ 2 373 tokens Open the sourcegithub.com↗ analyzed 5 d ago

Identify and eliminate host-device synchronizations in PyTorch code.

As a process C 52/100 · Has gaps — weak spots: result and completion, failures and branches, running it twice

ProcedurePeople and hiringtype and topics are labelled automatically from the skill text
JSON
Technical rating
A
96/100
safety, quality, tests
Safety 60%
100
Quality 40%
90
Run on models
none yet
Process rating
C
52/100
Has gaps
Result and completion w 14
0
Failures and branches w 10
0
Progress reporting w 2
0
the three weakest of ten parameters · all ten

How to improve

    For the model run — optional
    • Your own cases (evals/evals.json, 4–6 real requests with expected answers): the full check would then run those instead of a model-drafted suite.
    • A spec.yaml with trigger phrases and assertions — a behaviour contract for CI; `skilltest init` writes a template.

    Guard findings · 0

    ✓ No critical or high findings

    Files scanned: 3. Evidence is masked. Grey chips explain why severity was lowered.

    Against the Agent Skills spec

    ✓ No remarks against the Agent Skills spec

    Process rating: all ten parameters 52/100

    • 0Result and completion. Does not say what the result is
    • 0Failures and branches. Linear process with no failure handling
    • 0Progress reporting. Says nothing while it works
    • 30Running it twice. 9 mutating operations with no state check
    • 50When it triggers. No condition that starts the skill
    • 60Tools and files. Uses tools (python) that frontmatter does not declare
    • 70Inputs and preconditions. Inputs and preconditions are listed
    • 85Steps. 25 steps, 1 vague phrases
    • 100Consistency. Name and required fields are in place
    • 100Execution cost. Instruction body is 2373 tokens

    Everything here is measured from the skill text rather than judged by a model, so the numbers are checkable. A parameter weighs more when it is a more common reason for the process to stall.

    Quality signals

    • +5Description has no quoted example phrases that should trigger the skill
    • +3Output format is not stated: the model decides each time
    • -31 of 1 scripts are never mentioned in SKILL.md
    • +2Single-language instructions
    • +4Description says when NOT to use the skill
    • +3Description length 425: enough signal without eating the budget
    • +4Structure: 10 headings
    • +3Step-by-step instructions: 25 items
    • +4Has examples (7 code blocks)
    • +4Reference files are cited in the instructions (1 of 1)
    • +1License stated

    Quality base 70; lint remarks subtract, signals add up to 100. Result: 90.