Docs: agent skills for each XCL subsystem #268

Open
mattpsvreis wants to merge 11 commits from upstream-pr/271 into main
mattpsvreis commented 2026-11-23 22:16:49 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by mattpsvreis on 2026-11-23T22:16:49Z.


Agent skills for working on XCL, in the one directory Codex and Cursor load (.agents/skills/). AGENTS.md and CLAUDE.md point at that directory. Claude Code does not load it on its own, so CLAUDE.md tells it to read the files there. No runtime change.

What is in it

  • .agents/skills/xcl/SKILL.md: index, invariants, and the merge bar from CONTRIBUTING.md (real test counts, no hand-written xcl-smoke block, no cargo fmt on a whole file)
  • One skill per subsystem: loader, imports, VFS and DirectStorage, kernelx, XGameRuntime, D3D12.X, shaders, textures, audio, input, report.json, and the first-intro-cutscene loop
  • AGENTS.md and CLAUDE.md: read .agents/skills/ before editing a subsystem, and do not copy the skills elsewhere

Tested

  • Not run. This change is Markdown only. cargo test was not run.

Regression run

Not required. The diff does not touch crates/xcl/src outside tests.

Not tested

  • cargo test --workspace -- --test-threads=4
  • GPU, SKIPPED tests, wave32, and scripts/smoke.ps1 on a title

AI use

  • Cursor, Grok 4.7. It wrote the skills and the AGENTS.md and CLAUDE.md lines. No trailer was added to the commit.
<!-- greyfinch-sync:ivall/xcl:issue:5462179262 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/271). Originally posted by [mattpsvreis](https://github.com/mattpsvreis) on 2026-11-23T22:16:49Z. --- Agent skills for working on XCL, in the one directory Codex and Cursor load (`.agents/skills/`). `AGENTS.md` and `CLAUDE.md` point at that directory. Claude Code does not load it on its own, so `CLAUDE.md` tells it to read the files there. No runtime change. **What is in it** - `.agents/skills/xcl/SKILL.md`: index, invariants, and the merge bar from `CONTRIBUTING.md` (real test counts, no hand-written `xcl-smoke` block, no `cargo fmt` on a whole file) - One skill per subsystem: loader, imports, VFS and DirectStorage, kernelx, XGameRuntime, D3D12.X, shaders, textures, audio, input, `report.json`, and the first-intro-cutscene loop - `AGENTS.md` and `CLAUDE.md`: read `.agents/skills/` before editing a subsystem, and do not copy the skills elsewhere **Tested** - Not run. This change is Markdown only. `cargo test` was not run. **Regression run** Not required. The diff does not touch `crates/xcl/src` outside tests. **Not tested** - `cargo test --workspace -- --test-threads=4` - GPU, `SKIPPED` tests, wave32, and `scripts/smoke.ps1` on a title **AI use** - Cursor, Grok 4.7. It wrote the skills and the `AGENTS.md` and `CLAUDE.md` lines. No trailer was added to the commit.
upipibi commented 2026-11-24 11:05:41 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by upipibi on 2026-11-24T10:15:12Z.


Full-suite run on this PR's head fdbdc13, for the counts CONTRIBUTING.md item 2 asks for (the description notes cargo test wasn't run, since the change is Markdown only):

Tested

  • NVIDIA GeForce RTX 3070 (driver 616.56, wave32), Ryzen 9 5950X, Windows 11 Pro 26100, rustc 1.100.0 MSVC, debug
  • cargo build --workspace then cargo test --workspace --no-fail-fast -- --test-threads=4: 652 passed, 0 failed, 40 ignored (17 test binaries, the e2e title included)
  • SKIPPED: gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware (no wave64)

Not tested: AMD / wave64; no retail title (this PR changes only .agents/skills/*.md).

AI-assisted (Claude Code).

<!-- greyfinch-sync:ivall/xcl:comment:7128524471 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/271#issuecomment-7128524471). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-24T10:15:12Z. --- Full-suite run on this PR's head `fdbdc13`, for the counts CONTRIBUTING.md item 2 asks for (the description notes `cargo test` wasn't run, since the change is Markdown only): **Tested** - NVIDIA GeForce RTX 3070 (driver 616.56, wave32), Ryzen 9 5950X, Windows 11 Pro 26100, rustc 1.100.0 MSVC, debug - `cargo build --workspace` then `cargo test --workspace --no-fail-fast -- --test-threads=4`: **652 passed, 0 failed, 40 ignored** (17 test binaries, the e2e title included) - SKIPPED: `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware` (no wave64) **Not tested:** AMD / wave64; no retail title (this PR changes only `.agents/skills/*.md`). AI-assisted (Claude Code).
DavidM1911 commented 2026-11-25 16:12:03 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T15:14:15Z.


Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7166519261 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/271#issuecomment-7166519261). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T15:14:15Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
DavidM1911 commented 2026-11-26 03:06:35 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T02:45:54Z.


Re-verification on RTX 3060 Ti (Windows 11), new head merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.

Thanks!

— Devin

<!-- greyfinch-sync:ivall/xcl:comment:7181098208 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/271#issuecomment-7181098208). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-26T02:45:54Z. --- Re-verification on RTX 3060 Ti (Windows 11), new head merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved. Thanks! — Devin
github-actions[bot] commented 2026-11-30 08:41:17 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-30T08:41:17Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7273218562 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/271#issuecomment-7273218562). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-30T08:41:17Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
Foniass commented 2026-12-01 03:02:12 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T03:02:12Z.


Triage (#1607) – head bbf9fc3

No other open PR adds agent skills (#1476 adds a test.ps1 -Brief switch and context guidance, #1114 suggests an MCP server); no overlap.
Several statements are already out of date against main: .agents/skills/xcl/SKILL.md says the licence is GPL-2.0-only (main is GPL-3.0-or-later since #3002), and xcl-dxil/SKILL.md / xcl-shaders/SKILL.md say the runtime translates through HLSL unless XCL_DIRECT_DXIL is set, while main's gpu/dxil/kernel.rs makes direct DXIL the default for compute and graphics. 477 lines of subsystem facts restated outside the code will keep drifting like this; the PR also conflicts with main.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7299253409 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/271#issuecomment-7299253409). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T03:02:12Z. --- **Triage (#1607)** – head bbf9fc3 No other open PR adds agent skills (#1476 adds a `test.ps1 -Brief` switch and context guidance, #1114 suggests an MCP server); no overlap. Several statements are already out of date against main: `.agents/skills/xcl/SKILL.md` says the licence is GPL-2.0-only (main is GPL-3.0-or-later since #3002), and `xcl-dxil/SKILL.md` / `xcl-shaders/SKILL.md` say the runtime translates through HLSL unless `XCL_DIRECT_DXIL` is set, while main's `gpu/dxil/kernel.rs` makes direct DXIL the default for compute and graphics. 477 lines of subsystem facts restated outside the code will keep drifting like this; the PR also conflicts with main. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/271:upstream-pr/271'
git switch 'upstream-pr/271'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/271'
git switch 'upstream-pr/271'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/271'
git switch 'upstream-pr/271'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/271'
git switch 'main'
git merge --squash 'upstream-pr/271'
git switch 'main'
git merge --ff-only 'upstream-pr/271'
git switch 'main'
git merge 'upstream-pr/271'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!268
No description provided.