/exodia:baryon-modefrom exodia
Fixes all .NET build warnings in one shot — categorizes warnings into 8 aspects (nullability, deprecation, unused, async, style, suppressions, packages, config) and resolves them in parallel. Accepts optional scope filter.
Ships in exodia. Installing the plugin adds it to Claude Code.
Noble Phantasm. Triggers at battle start. 8 aspects manifest. Phantasm concludes.
Solution: $0 (path to .sln or directory) Scope: $1 (default: all | nullability|deprecation|unused|async|style|suppressions|packages|config)
INVOKER (You — Phase 0: snapshot + categorize)
│
├─ T₀ BURST: up to 9 agents — ALL IN ONE MESSAGE
│ │
│ ├── recon-invoker ← True Name disclosure (Rider MCP + NuGet MCP)
│ │
│ ├── aspect-nullability ← CS8600-CS8799
│ ├── aspect-deprecation ← CS0612, CS0618, SYSLIB*, CA1422
│ ├── aspect-unused ← CS0168, CS0219, IDE0051-IDE0060
│ ├── aspect-async ← CS4014, CS1998, CA2007, CA2008, CA2016
│ ├── aspect-style ← IDE0001-IDE0100, SA1*, RCS*
│ ├── aspect-suppressions ← #pragma, SuppressMessage, NoWarn
│ ├── aspect-packages ← NU*, CPM, version conflicts
│ └── aspect-config ← .editorconfig, Directory.Build.props, analyzers
│
└─ PHANTASM CONCLUDES: dotnet build → delta → exit
<CRITICAL_EXECUTION_REQUIREMENT>
STEP -1 — Inherit Prior Findings:
If <EXODIA_FINDINGS_CONTEXT> tag exists in session context, read .eight-gates/artifacts/findings.json.
Filter findings with category == "SUPP" (suppression findings). Inject as known-issues for the Invoker's
categorization step — skip re-discovering suppressions already catalogued.
THIS IS A NOBLE PHANTASM. ONE BURST. NO GATES. NO PERMISSION.
dotnet build, capture ALL warnings, categorize into 8 buckets$1 != all: filter buckets to only the requested scopedotnet build again, report delta, exitNO asking "should I continue?" EVER. NO gates between burst and verification. RECKLESS MODE: Fix everything. Verify once. Exit. Only launch aspects that have warnings in their category. Skip empty buckets. IF $1 specifies a scope: only launch that aspect. Ignore all other buckets.
YOUR NEXT MESSAGE: Run dotnet build to capture warnings. THEN launch Task calls. NOTHING ELSE.
</CRITICAL_EXECUTION_REQUIREMENT>
BARYON_BEFORE=$(mktemp)
dotnet build "$0" 2>&1 | tee "$BARYON_BEFORE"
Parse output. Categorize each warning by code prefix into the 8 aspect buckets. Count per bucket. If 0 total warnings: "Solution clean. Baryon Mode not needed." EXIT.
IF $1 is set and not all: keep only the matching bucket, discard the rest.
For each non-empty bucket, prepare the warning list (file:line + code + message).
Launch recon-invoker ALWAYS. Launch each aspect ONLY if its bucket has warnings AND is in scope. All in ONE message. No sequencing. No dependencies.
subagent: general-purpose
You are the INVOKER. Snapshot tooling reality. Intelligence only — DO NOT modify files. Solution: $0
- For each PackageReference, WebFetch NuGet flat container API — compare installed vs latest stable
- Check JetBrains Rider MCP for solution-level diagnostics and inspections (if mcp tools available)
- Check GitHub MCP for open issues mentioning warnings or analyzer upgrades (if mcp tools available)
- Build VERSION BRIEFING: packages with updates available, breaking changes, newly deprecated APIs
Output: VERSION BRIEFING — current state, available updates, upgrade recommendations.
subagent: general-purpose
You are ASPECT: NULLABILITY. Fix ALL nullable reference type warnings. Solution: $0 Your warnings: [PASTE CS8600-CS8799 warnings from build output]
- Add null checks, null-conditional operators, pattern matching where needed
- Use null-forgiving
!ONLY when provably safe (field set in constructor, etc.)- Add
[NotNullWhen],[MaybeNullWhen],[NotNull]attributes where appropriate- Enable
<Nullable>enable</Nullable>in projects where missing- Remove any
#pragma warning disablefor your warning codes — fix the underlying issue- Cross-repo: modify ANY .cs file, ANY .csproj in the solution
Output: files changed + warning codes resolved + count
subagent: general-purpose
You are ASPECT: DEPRECATION. Replace ALL obsolete API usage. Solution: $0 Your warnings: [PASTE CS0612, CS0618, SYSLIB*, CA1422 warnings]
- Replace deprecated APIs with recommended alternatives
- WebSearch for migration guides when replacement is unclear
- Update package versions if deprecation comes from outdated packages
- For NuGet updates: WebFetch
https://api.nuget.org/v3-flatcontainer/{id}/index.jsonfor latest stable- Update Directory.Packages.props (CPM) — never hardcode Version= in .csproj
- Cross-repo: modify ANY file, update ANY package reference
Output: files changed + APIs migrated + packages updated
subagent: general-purpose
You are ASPECT: UNUSED CODE. Remove ALL dead code. Solution: $0 Your warnings: [PASTE CS0168, CS0219, IDE0051-IDE0060, IDE0052 warnings]
- Remove unused variables, parameters, using directives
- Remove unused private members (methods, fields, properties, types)
- Remove empty catch blocks or add proper handling
- If removal changes public API surface: leave it, note in output
- Cross-repo: modify ANY .cs file
Output: files changed + lines removed + items deleted
subagent: general-purpose
You are ASPECT: ASYNC. Fix ALL async/await warnings. Solution: $0 Your warnings: [PASTE CS4014, CS1998, CA2007, CA2008, CA2016 warnings]
- Add missing
awaitfor fire-and-forget calls (CS4014)- Remove unnecessary
asyncmodifier (CS1998) or add actual async work- Add
.ConfigureAwait(false)in library code (CA2007)- Propagate CancellationToken where missing (CA2016)
- Cross-repo: modify ANY .cs file
Output: files changed + async fixes applied
subagent: general-purpose
You are ASPECT: STYLE. Fix ALL code style warnings. Solution: $0 Your warnings: [PASTE IDE0001-IDE0100, SA1*, RCS* warnings]
- Apply IDE suggestions (simplify names, use pattern matching, expression bodies, etc.)
- Fix SA1* StyleCop warnings (documentation, ordering, spacing, naming)
- Fix RCS* Roslynator suggestions
- Follow existing project code style conventions
- Cross-repo: modify ANY .cs file
Output: files changed + style fixes applied by category
subagent: general-purpose
You are ASPECT: SUPPRESSIONS. REMOVE ALL warning suppressions. Solution: $0
Find and eliminate across the entire solution:
- ALL
#pragma warning disable/#pragma warning restorepairs- ALL
[SuppressMessage(...)]attributes- ALL
<NoWarn>entries in .csproj files- ALL
// ReSharper disable/// ReSharper restorecommentsFor each suppression removed: note the warning code that was being suppressed. DO NOT fix the underlying warnings — the other aspects handle that. Your job is to EXPOSE what was hidden.
Cross-repo: modify ANY file (.cs, .csproj, .editorconfig, Directory.Build.props)
Output: suppressions removed (count by type) + warning codes now exposed
subagent: general-purpose
You are ASPECT: PACKAGES. Fix ALL NuGet and package warnings. Solution: $0 Your warnings: [PASTE NU* warnings from build output]
- Fix NU1603, NU1605 dependency conflicts — update to compatible versions
- Fix NU1701 target framework compatibility
- For each package update: WebFetch
https://api.nuget.org/v3-flatcontainer/{id}/index.jsonfor latest stable- Update Directory.Packages.props for CPM projects (version there, not in .csproj)
- Update Version.props variables where used — follow $(PackageNameVersion) convention
- NEVER hardcode Version="x.y.z" in .csproj — use CPM
- Cross-repo: modify Directory.Packages.props, Version.props, *.csproj
Output: packages updated + version changes + warnings resolved
subagent: general-purpose
You are ASPECT: CONFIG. Clean up analyzer and build configuration. Solution: $0
- Remove stale/redundant .editorconfig rules
- Ensure severity levels are consistent across projects
- Remove
<NoWarn>from .csproj files (warnings should be fixed, not silenced)- Enable
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>where appropriate- Remove duplicate or conflicting analyzer configurations
- Ensure analyzer packages are consistent across projects
- Cross-repo: modify .editorconfig, Directory.Build.props, Directory.Packages.props, *.csproj
Output: config changes + rationale for each
BARYON_AFTER=$(mktemp)
dotnet build "$0" 2>&1 | tee "$BARYON_AFTER"
Compare before/after warning counts. Report.
+================================================================+
| BARYON MODE — PHANTASM COMPLETE |
+================================================================+
| Solution: $0 |
+----------------------------------------------------------------+
| BEFORE: [N] warnings |
| AFTER: [N] warnings |
| DELTA: -[N] eliminated |
+================================================================+
| Aspect | Resolved | Files Changed |
|---------------------|----------|-------------------------------|
| nullability | [N] | [N] |
| deprecation | [N] | [N] |
| unused | [N] | [N] |
| async | [N] | [N] |
| style | [N] | [N] |
| suppressions | [N] | [N] |
| packages | [N] | [N] |
| config | [N] | [N] |
+----------------------------------------------------------------+
| VERSION BRIEFING (from Invoker): |
| [Package updates + recommendations summary] |
+================================================================+
If warnings remain: list them. They survived the Noble Phantasm.
Next: If survivors exist, run /exodia:baryon-mode "$0" again or fix manually.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
7 commands in this plugin
/batch-implementBATCH IMPLEMENT — Parallel Items with Shared PatternIF implementing multiple similar items THEN use this. Pattern extraction->parallel implement (1 agent per item)->consistency review->verify. Endpoints, tests, migrations, fixes./deep-thinkDEEP THINK — Multi-Perspective Reasoning Before ActionIF complex problem needing multi-perspective analysis THEN use this. 5 agents, 3 phases: understand->synthesize->recommend. No implementation. For competing implementations -> tournament./fixnpx claudepluginhub ancplua/ancplua-claude-plugins --plugin exodiaOther plugins' commands for the same job