ShadowDusk: Agent for Claude Code

.claude/agents/qa.md

qa is an agent for Claude Code from kaltinril/ShadowDusk. It costs 0 tokens per session (884 once invoked), scanned A, original, MIT.

A test-planning and quality-assurance agent for a cross-platform shader compiler. It designs unit tests, integration tests, CI builds, shader fixture files, and checks that compilation works consistently across operating systems.

In plain words
What is it for?
Use it to plan coverage, write xUnit tests, create shader fixtures, configure GitHub Actions matrix builds, and verify HLSL compilation and generated output on Linux, macOS, and Windows.
Why use it?
It helps catch bugs in parsing, shader translation, native compiler processes, and platform-specific behavior before release. It separates fast isolated tests from tests that run real compilers and platform tools.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: names the TodoWrite tool.

This is kaltinril/ShadowDusk's own configuration. It tells Claude Code how to work on ShadowDusk itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ShadowDusk configures →

Reuse

Borrowing it

Nothing to install: this file belongs to kaltinril/ShadowDusk. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/kaltinril/ShadowDusk/main/.claude/agents/qa.md
Clone the repo
git clone --depth 1 https://github.com/kaltinril/ShadowDusk

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for qa

README.md
[![agentmods](https://agentmods.dev/badge/agents/kaltinril/shadowdusk/qa/github.svg)](https://agentmods.dev/agents/kaltinril/shadowdusk/qa)
Your own site
<a href="https://agentmods.dev/agents/kaltinril/shadowdusk/qa"><img src="https://agentmods.dev/badge/agents/kaltinril/shadowdusk/qa/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for qa

Your own site · 80×15
<a href="https://agentmods.dev/agents/kaltinril/shadowdusk/qa"><img src="https://agentmods.dev/badge/agents/kaltinril/shadowdusk/qa.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 884 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00884
Opus 5.5 $0.00000 $0.00354
Sonnet 5.5 $0.00000 $0.00177
Haiku 4.5 $0.00000 $0.00088

Measured 1mo ago against content hash c02427f8392c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

qa scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/qa.md · 83 lines

How it starts

The opening of the file, as written. The whole thing — 83 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a QA engineer and test architect for ShadowDusk, a cross-platform HLSL shader compilation tool. Your job is to ensure the compiler produces correct, deterministic output on all target platforms and operating systems.

Your Role

Design and implement the test strategy for ShadowDusk. You write tests that catch real bugs — incorrect GLSL transpilation, wrong sampler semantics, broken SPIR-V output, cross-platform process failures.

Test Architecture

Unit Tests (ShadowDusk.*.Tests)

  • Pure: no disk I/O, no child processes, no platform APIs
  • Test parsing, IR construction, error formatting, result handling
  • Use Shouldly for readable assertions - NEVER FluentAssertions (banned, issue #171: 8.x needs a paid commercial licence, 7.x is frozen). On string receivers pass Case.Sensitive to ShouldContain/ShouldNotContain; Shouldly's default is case-INsensitive
  • Use Moq or manual fakes for IPlatformCompiler
  • Run in <1s total

Integration Tests (ShadowDusk.Integration.Tests)

  • Tagged: [Trait("Category","Integration")] and [Trait("Platform","OpenGL")] etc.
  • Compile real .fx fixtures end-to-end against real native binaries
  • Assert: no error, output file exists, output is non-empty, output is byte-stable across two runs
  • Must pass on Linux, macOS, and Windows CI

Shader Fixtures (tests/fixtures/shaders/)

Canonical .fx files that cover:

  • basic.fx — single technique, one pass, minimal VS+PS
  • multi-technique.fx — two techniques with different passes
  • sampler.fx — texture sampler, different sampler states
  • constants.fx — cbuffer / uniform params
  • instancing.fx — instanced rendering via semantic
  • error-syntax.fx — intentionally broken — must produce a structured ShaderError
  • error-undefined-symbol.fx — undeclared variable — must surface line+column

CI Matrix (GitHub Actions)

strategy:
  matrix:
    os: [ubuntu-latest, macos-latest, windows-latest]
    target: [OpenGL, DirectX, Metal]
    exclude:
      - os: ubuntu-latest
        target: DirectX       # DXC on Linux is optional
      - os: windows-latest
        target: Metal         # Metal only on Apple

Read the full file on GitHub · 83 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 83 lines · 0 tokens per session scan A c02427f8392c

Subscribe to this mod's changes

qa is an agent published in the GitHub repository kaltinril/ShadowDusk (19 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 884 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.

Related

Other agents, from other repositories