setup
Verify and provision the gaming plugin's DLSS 5 mod prerequisites on Windows. check (read-only): pwsh, NVIDIA GPU and driver, data directory, runtime DLL, installed games per launcher (Steam, Epic, EA app, Battle.net, GOG, Ubisoft Connect, Xbox app), provisioned fork builds, orphaned state. apply: create the data directory, seed the ledger, place the runtime DLL from a configured path, an installed DLSS 5 title, or the configured runtime source, and download the pinned fork builds. Use when: 'set up the gaming plugin', 'set up DLSS 5', 'is my DLSS 5 setup ready', 'provision the DLSS 5 mod'. Re-runnable and safe.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 30
- Forks
- 7
01 前言 Front Matter
- description
- Verify and provision the gaming plugin's DLSS 5 mod prerequisites on Windows. check (read-only): pwsh, NVIDIA GPU and driver, data directory, runtime DLL, installed games per launcher (Steam, Epic, EA app, Battle.net, GOG, Ubisoft Connect, Xbox app), provisioned fork builds, orphaned state. apply: create the data directory, seed the ledger, place the runtime DLL from a configured path, an installed DLSS 5 title, or the configured runtime source, and download the pinned fork builds. Use when: 'set up the gaming plugin', 'set up DLSS 5', 'is my DLSS 5 setup ready', 'provision the DLSS 5 mod'. Re-runnable and safe.
- argument-hint
- [check|apply]
- user-invocable
- true
- disable-model-invocation
- true
02 资源文件 1
- 参考文档reference/ledger-template.md2.8 KB
03 SKILL.md 正文
Purpose
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.
Resolving paths (do this first)
Resolve each option to a literal value before composing any command. A command line carries the
resolved path, never a ${user_config.*} token: an unset option leaves the token in place, and
Bash then fails with bad substitution before pwsh starts.
| 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 whennvidia-smiis 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 (
applycreates it). Present is PASS.checkdoes not test writability, because that takes a write; the directory creation inapplyis the test. -
Ledger.
<data-dir>\LEDGER.mdpresent is PASS; absent is INFO (applyseeds 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 containingCN=NVIDIA Corporation) at 310.8.0.0 or later with a different hash is FAIL: the gate refuses it unless-AllowUnknownRuntimeis passed, which is the user's explicit call and never a default. A missing or refused file is FAIL. Whenruntime_dllis set, the remediation is to fix or unset it:provision -Runtimerefuses a configured file without looking further. When it is unset, report whatapplywould 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 orderprovision -Runtimetries them: setruntime_dllto a copy you already have; install a DLSS 5 title on this machine; setruntime_sourceto 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 withlauncher(Steam, Epic Games Launcher, EA app, Origin, Battle.net, GOG Galaxy, Ubisoft Connect, Xbox app),name,installDirand thesourcerecord it came from. Report the count per launcher as INFO; the locations are inskills/dlss5/reference/launchers.md.unchecked: what it could not read, such as the EA app's encrypted install list, Battle.net'sproduct.db, or a malformed.GamingRoot. Report each as INFO.runtimeCandidates: everynvngx_dlssnr.dllunder a discovered install folder, withversion,sha256,passes,known,reasonandbesideOptiScalerIni.passesis the script's own gate: the known-good hash, or aValidsignature whose signer subject containsCN=NVIDIA Corporationat 310.8.0.0 or later plus-AllowUnknownRuntime. A candidate beside anOptiScaler.iniis a copy the mod placed in a game, not a native title; step 9 uses it.
-
Fork builds. For
dagherbouandwilsjo2, read<data-dir>\builds\<build>\.provisioned.json: <!-- portability-ok: Windows path, not a shell regex -->- no marker, directory absent or empty: INFO, never provisioned (
applyprovisions it); - marker present and every allow-list entry present (dagherbou:
OptiScaler.dll,OptiScaler.ini,OptiScaler\,Licenses\,nvngx.dll_dlssnr.dll; wilsjo2: the first four), markersha256equal to the pin below: PASS; - marker present, an allow-list entry missing: FAIL, provisioned then emptied.
provisiontreats a matching marker as done, so the remediation is to delete<data-dir>\builds\<build>\, then <!-- portability-ok: Windows path, not a shell regex --> runapply; - marker
sha256differing from the pin: FAIL, provisioned from an unexpected asset.applyre-provisions it.
- no marker, directory absent or empty: INFO, never provisioned (
-
Orphaned state. Read
gameDirfrom each<data-dir>\state\*\snapshot.json, <!-- portability-ok: Windows path, not a shell regex -->manifest.jsonandpending.json. Apending.jsonis FAIL (an interrupted apply; run/gaming:dlss5 remove <gameDir>). Amanifest.jsonwhosegameDirno longer exists is FAIL (the game moved or was uninstalled; move it back and runremove, or delete that state directory if it is gone for good). A snapshot-only directory whosegameDiris gone is INFO. Two probes for adata_dirchanged after an apply, since nothing on disk records the previous root: a step 7 candidate beside anOptiScaler.iniwhose directory no manifest under<data-dir>names asgameDiris FAIL (a modded game this data directory does not track); and another directory whosestate\has entries is FAIL: the default (Gaming\dlss5under Documents) when<data-dir>is not the default, or the legacy default (Gamingunder Documents) when<data-dir>\state\is absent or empty. The remediation for both is to MOVE the <!-- portability-ok: Windows path, not a shell regex --> old directory's contents (runtime\,state\,builds\,cache\andLEDGER.md) to<data-dir>; without its manifest,removecannot undo the mod. When<data-dir>is the default, the script refuses every verb butrefetchandselfteston the legacy case. -
gh. INFO only:gh --version.refetchneeds it; setup and apply do not, becauseprovisiondownloads 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.
- Create the tree:
pwsh -NoProfile -Command "New-Item -ItemType Directory -Force -Path '<data-dir>\state','<data-dir>\runtime','<data-dir>\builds','<data-dir>\cache' | Out-Null". <!-- portability-ok: Windows paths inside a pwsh argument, not a shell regex --> - Seed the ledger only when
<data-dir>\LEDGER.mdis absent: copyreference/ledger-template.mdthere, replacing<data-dir>with the resolved path. Never overwrite an existing ledger. - Place the runtime DLL, adding
-RuntimeDlland-RuntimeSourceonly 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-AllowUnknownRuntimeand 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. - Provision both pinned fork builds, so an apply that falls back to
dagherboufinds its files:pwsh -NoProfile -File "<script>" -Verb provision -Build wilsjo2 -DataDir '<data-dir>', then the same with-Build dagherbou. - Run
checkagain 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.
Verification record
| 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 |
Next
/gaming:dlss5 assess <game-dir>
Gotchas
VersionInfo.FileVersionmisreads the runtime DLL. NVIDIA'snvngx_dlssnr.dllreports310,8,0,0there. Read the numericFileMajorParttoFilePrivatePartfields, as steps 5 and 7 do;refetchreports the same numeric form.
What this skill does NOT do
- Apply, remove or tune the mod in a game. That is
/gaming:dlss5. - Write Claude Code user settings or
pluginConfigs. Reconfigure with/plugin configure gaming@<marketplace>, then reruncheckin a fresh session. - Delete anything. Emptied builds and orphaned state are reported with a remediation the user runs.
- Name, bundle or download a source for the runtime DLL beyond the three the user controls.
04 同仓库更多 Skills
track
Backlog reads through the bound tracker: search open and closed items, view one item with its comments and state history. Use when another skill searches or reads tracker items.
reviewer-media
Reviewer media for one pull request: decides whether it needs a narrated walkthrough, builds the storyboard from /review:explain-change's digest, has /explainer-video:produce render it and hands the manifest to /source-control:pull-request media. Use when asked for 'reviewer media', 'a walkthrough video for this PR', 'a produced video of this change', or when pull-request ready or monitor hands a PR over.
route
Model and effort per agent role (orchestrator, worker, verifier, retrieval) for a multi-agent run, resolved through the bundled defaults and the user, team and personal override config layers into fenced JSON with single-agent and fan-out variants and the layer behind each value. Use when asked 'which model for the subagents', 'route the roles' or 'model routing', or before a skill passes a role's model on a spawn.
route
Model and effort per agent role (orchestrator, worker, verifier, retrieval) for a multi-agent run, resolved through the bundled defaults and the user, team and personal override config layers into fenced JSON with single-agent and fan-out variants and the layer behind each value. Use when asked 'which model for the subagents', 'route the roles' or 'model routing', or before a skill passes a role's model on a spawn.
principles
Module-design vocabulary for architecture findings, and the checks built on it. Use when: 'what is a deep module', 'what is a seam', 'deep vs shallow module', 'what is the deletion test', 'leverage and locality', 'module design vocabulary', 'which word do we use for X in architecture findings'. Scanning a codebase for friction is /architecture:improve.
write
Structured five-field bug report (title, steps to reproduce, expected vs actual, justified severity, suggested fix location) from an informal description, read-only. Use when the user names a defect they observed, or asks for one written up ('report a bug', 'file a bug', 'write this up as a bug').