/gaming:setup [check|apply]from gaming
Verifies and provisions Windows DLSS 5 prerequisites including PowerShell, GPU/driver, data directory, runtime DLL, and fork builds. Supports read-only check or full apply mode.
Ships in gaming. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Verify and provision the prerequisites for /gaming:dlss5, per the uniform setup contract
(docs/plugin-philosophy.md "Setup is explicit and repeatable" in the marketplace repository).
No argument or check runs the read-only check; apply runs check, provisions through the
script's own verbs, then runs check again. Windows only.
All provisioning goes through ${CLAUDE_PLUGIN_ROOT}/skills/dlss5/scripts/Invoke-Dlss5Mod.ps1
(below: the script). Its provision verbs own download, hash verification, extraction and the
runtime gate; this body calls them.
Resolve each option to a literal value before composing any command. A command line carries the
resolved path, never a ${user_config.*} token, so it never depends on how an unset option
renders. When checking where such a token is substituted, read
manifest reference § Reference a saved value.
| Option | Resolution | Passed as |
|---|---|---|
<data-dir> | ${user_config.data_dir} when non-empty and not still showing the unexpanded token; otherwise the output of the default command below. Changing it after an apply is a move of the directory, not a reconfiguration: every manifest stays at the old root | -DataDir '<data-dir>' on every call |
<runtime-dll> | ${user_config.runtime_dll} when set; otherwise <data-dir>\runtime\nvngx_dlssnr.dll | -RuntimeDll only when the option is set. Passing the default path marks it configured, and provision -Runtime then refuses a failing file without scanning |
<runtime-source> | ${user_config.runtime_source} when set; otherwise none | -RuntimeSource only when set. A path or a plain https:// URL. A URL with a query string (where signed-URL credentials live) is refused, because this option is not stored as a secret: manifest reference § Where values are stored. A private store is synced to a path by the user's own tooling |
The default data_dir follows OneDrive Known Folder Move, which $env:USERPROFILE\Documents
does not:
pwsh -NoProfile -Command "Join-Path ([Environment]::GetFolderPath('MyDocuments')) 'Gaming\dlss5'"
<script> is ${CLAUDE_PLUGIN_ROOT}/skills/dlss5/scripts/Invoke-Dlss5Mod.ps1. Pass Windows-form
paths in single quotes ('D:\Gaming'), never a Git Bash /d/... path. Run the multi-line probe
in step 5 through the PowerShell tool: it contains single quotes, so a single-quoted Bash argument
cannot carry it, and a double-quoted one lets Bash expand $ before pwsh starts. A one-line probe with no single quote in it (step 1) runs from Bash in single quotes.
check (read-only)Report a PASS/FAIL/INFO table with one remediation line per FAIL. Write nothing, copy nothing,
download nothing, and never call provision in any form.
pwsh 7. pwsh -NoProfile -Command '$PSVersionTable.PSVersion.ToString()'. FAIL when absent
or below 7: the script declares #Requires -Version 7.
NVIDIA GPU and driver. nvidia-smi --query-gpu=name,driver_version --format=csv,noheader.
FAIL when nvidia-smi is absent or lists no GPU. Report the name and driver. A GPU outside the
RTX 50 series is FAIL (see the verification record below).
Data directory. Absent is INFO (apply creates it). Present is PASS. check does not test
writability, because that takes a write; the directory creation in apply is the test.
Ledger. <data-dir>\LEDGER.md present is PASS; absent is INFO (apply seeds it).
Runtime DLL. Hash <runtime-dll>:
$dll = '<runtime-dll>'
if (Test-Path -LiteralPath $dll) {
(Get-FileHash -LiteralPath $dll -Algorithm SHA256).Hash
$s = Get-AuthenticodeSignature -LiteralPath $dll; "$($s.Status) $($s.SignerCertificate.Subject)"
$v = (Get-Item -LiteralPath $dll).VersionInfo; '{0}.{1}.{2}.{3}' -f $v.FileMajorPart, $v.FileMinorPart, $v.FileBuildPart, $v.FilePrivatePart
}
PASS when the hash is the known-good value. An NVIDIA-signed file (status Valid, signer
subject containing CN=NVIDIA Corporation) at 310.8.0.0 or later with a
different hash is FAIL: the gate refuses it unless -AllowUnknownRuntime is passed, which is
the user's explicit call and never a default. A missing or refused file is FAIL. When
runtime_dll is set, the remediation is to fix or unset it: provision -Runtime refuses a
configured file without looking further. When it is unset, report what apply would do:
use the step 7 scan and name each candidate with its gate result, and say whether
<runtime-source> is set. The remediation then names the three remedies in the order
provision -Runtime tries them: set runtime_dll to a copy you already have; install a DLSS 5
title on this machine; set runtime_source to a copy you control. The plugin names no source
of its own for this file.
Runtime source. INFO: set or not. A URL with a query string, or a URL scheme other than
https://, is FAIL: the script refuses it.
Game library scan. Read-only; it lists games and runtime candidates and copies nothing:
pwsh -NoProfile -File "<script>" -Verb discover. It prints JSON:
games: every installed game found, each with launcher (Steam, Epic Games Launcher, EA
app, Origin, Battle.net, GOG Galaxy, Ubisoft Connect, Xbox app), name, installDir and the
source record it came from. Report the count per launcher as INFO; the locations are in
skills/dlss5/reference/launchers.md.unchecked: what it could not read, such as the EA app's encrypted install list, Battle.net's
product.db, or a malformed .GamingRoot. Report each as INFO.runtimeCandidates: every nvngx_dlssnr.dll under a discovered install folder, with
version, sha256, passes, known, reason and besideOptiScalerIni. passes is the
script's own gate: the known-good hash, or a Valid signature whose signer subject contains
CN=NVIDIA Corporation at 310.8.0.0 or later plus -AllowUnknownRuntime. A candidate beside
an OptiScaler.ini is a copy the mod placed in a game, not a native title; step 9 uses it.Fork builds. For dagherbou and wilsjo2, read <data-dir>\builds\<build>\.provisioned.json:
apply provisions it);OptiScaler.dll,
OptiScaler.ini, OptiScaler\, Licenses\, nvngx.dll_dlssnr.dll; wilsjo2: the first
four), marker sha256 equal to the pin below: PASS;provision treats
a matching marker as done, so the remediation is to delete <data-dir>\builds\<build>\, then
run apply;sha256 differing from the pin: FAIL, provisioned from an unexpected asset. apply
re-provisions it.Orphaned state. Read gameDir from each <data-dir>\state\*\snapshot.json,
manifest.json and pending.json. A pending.json is FAIL (an interrupted apply; run
/gaming:dlss5 remove <gameDir>). A manifest.json whose gameDir no longer exists is FAIL
(the game moved or was uninstalled; move it back and run remove, or delete that state
directory if it is gone for good). A snapshot-only directory whose gameDir is gone is INFO.
Two probes for a data_dir changed after an apply, since nothing on disk records the previous
root: a step 7 candidate beside an OptiScaler.ini whose directory no manifest under
<data-dir> names as gameDir is FAIL (a modded game this data directory does not track); and
another directory whose state\ has entries is FAIL: the default (Gaming\dlss5 under
Documents) when <data-dir> is not the default, or the legacy default (Gaming under
Documents) when <data-dir>\state\ is absent or empty. The remediation for both is to move the
old directory's contents (runtime\, state\, builds\, cache\ and LEDGER.md) to
<data-dir>; without its manifest, remove cannot undo the mod. When <data-dir> is the
default, the script refuses every verb but refetch and selftest on the legacy case.
gh. INFO only: gh --version. refetch needs it; setup and apply do not, because
provision downloads by direct release URL.
apply (idempotent)Run check, then these steps in order; stop before step 1 when step 9 reports another
directory holding state\, since step 1 would start an empty state tree beside it.
pwsh -NoProfile -Command "New-Item -ItemType Directory -Force -Path '<data-dir>\state','<data-dir>\runtime','<data-dir>\builds','<data-dir>\cache' | Out-Null". <data-dir>\LEDGER.md is absent: copy reference/ledger-template.md
there, replacing <data-dir> with the resolved path. Never overwrite an existing ledger.-RuntimeDll and -RuntimeSource only per the resolution table:
pwsh -NoProfile -File "<script>" -Verb provision -Runtime -DataDir '<data-dir>'.
When the user has explicitly asked to accept an NVIDIA-signed runtime that fails the hash, add
-AllowUnknownRuntime and say so in the report; never add it otherwise. On a non-zero exit,
relay the printed remedies and refusals verbatim and continue to step 4.dagherbou finds its files:
pwsh -NoProfile -File "<script>" -Verb provision -Build wilsjo2 -DataDir '<data-dir>', then
the same with -Build dagherbou.check again and report its actual table; never report success from an exit code alone.Re-running apply changes nothing: the directories exist, the ledger is kept, provision -Runtime
prints runtime ok and copies nothing, and provision prints already provisioned for a build
whose marker matches its pin.
Two hard rules. apply never runs setup_windows.bat, and neither may you by hand: it is
interactive, and provision never extracts it. And apply never fetches the runtime DLL from
anywhere but the three sources provision -Runtime tries.
| Claim | Basis | As of | Recheck trigger |
|---|---|---|---|
Known-good runtime: nvngx_dlssnr.dll 310.8.0.0, SHA-256 E16BCF15E16E13F527491CDF7845B2FE6521A738D8F7C9C721866A8496E1FC8E | $ModelHash in the script, hashed from a working install | 2026-09-22 | /gaming:dlss5 refetch reports a different runtime version, or an NVIDIA-signed runtime fails the hash |
Default fork pin: wilsjo2/OptiScaler-DLSSNR-PreSR-Multipass tag v0.8.3, asset OptiScaler-NR-v0.8.3.zip, SHA-256 3F2D26FB136D964A394BF50896D082156173153A2A55B88E1995277B4DABE3C8 | gh api repos/wilsjo2/OptiScaler-DLSSNR-PreSR-Multipass/releases; the hash matches the release's own .sha256 sidecar | 2026-09-24 | a new non-prerelease on that repo, or refetch reports a tag change |
Fallback fork pin: Dagherbou/OptiScaler_DLSSNR tag v0.2.0-patch1 (a prerelease), asset OptiScaler-DLSSNR-v0.2.0-onimusha-fix.zip, SHA-256 5DB547216FA8A7DBD8AB0A193DA1E3BCE0EA4BD71F91189AFA4ED2EDE8BB9561 | gh api repos/Dagherbou/OptiScaler_DLSSNR/releases; the release publishes no checksum, so the hash is a local-copy attestation | 2026-09-21 | a new release on that repo, or refetch reports a tag change |
| Step 2 FAILs a GPU outside the RTX 50 series, the series NVIDIA's launch post names | https://www.nvidia.com/en-us/geforce/news/dlss-5-3d-guided-neural-rendering/ | 2026-11-10 | NVIDIA ships DLSS 5 support for another GPU series |
/gaming:dlss5 assess <game-dir>
VersionInfo.FileVersion misreads the runtime DLL. NVIDIA's nvngx_dlssnr.dll reports
310,8,0,0 there. Read the numeric FileMajorPart to FilePrivatePart fields, as steps 5 and 7
do; refetch reports the same numeric form./gaming:dlss5.pluginConfigs. Reconfigure with
/plugin configure gaming@<marketplace>, then rerun check in a fresh session.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
2 skills in this plugin
npx claudepluginhub melodic-software/claude-code-plugins --plugin gamingOther plugins' skills for the same job