KyoshinEewViewerIngen: Skill for Claude Code

.claude/skills/kevi-trimming-debug/SKILL.md

kevi-trimming-debug is a skill for Claude Code from ingen084/KyoshinEewViewerIngen. It costs 78 tokens per session (748 once invoked), scanned A, original, MIT.

A Japanese-language troubleshooting guide for deserialization failures that appear only in trimmed, self-contained release builds of a .NET application. Trimming removes code the build system thinks the application does not need, which can break runtime data loading.

In plain words
What is it for?
Use it to investigate trimming-related JSON deserialization bugs in KyoshinEewViewer, including publishing the desktop entry point, testing without launching the GUI, and adding temporary diagnostics.
Why use it?
It helps explain why a separate test project may pass while the real desktop release build fails, and shows how to expose hidden exceptions.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is ingen084/KyoshinEewViewerIngen's own configuration. It tells Claude Code how to work on KyoshinEewViewerIngen 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 KyoshinEewViewerIngen configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ingen084/KyoshinEewViewerIngen. 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/ingen084/KyoshinEewViewerIngen/develop/.claude/skills/kevi-trimming-debug/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/ingen084/KyoshinEewViewerIngen

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 kevi-trimming-debug

README.md
[![agentmods](https://agentmods.dev/badge/skills/ingen084/kyoshineewvieweringen/kevi-trimming-debug/github.svg)](https://agentmods.dev/skills/ingen084/kyoshineewvieweringen/kevi-trimming-debug)
Your own site
<a href="https://agentmods.dev/skills/ingen084/kyoshineewvieweringen/kevi-trimming-debug"><img src="https://agentmods.dev/badge/skills/ingen084/kyoshineewvieweringen/kevi-trimming-debug/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 kevi-trimming-debug

Your own site · 80×15
<a href="https://agentmods.dev/skills/ingen084/kyoshineewvieweringen/kevi-trimming-debug"><img src="https://agentmods.dev/badge/skills/ingen084/kyoshineewvieweringen/kevi-trimming-debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 748 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00078 $0.00748
Opus 5 $0.00039 $0.00374
Sonnet 5 $0.00016 $0.00150
Haiku 4.5 $0.00008 $0.00075

Measured 12d ago against content hash 1df04412c7ac, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

kevi-trimming-debug 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 12d 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/skills/kevi-trimming-debug/SKILL.md · 39 lines

What it actually says

トリミング起因デシリアライズ不具合の調査

Instructions

GitHub Actionsのリリースビルド(self-contained + PublishTrimmed=true / TrimMode=partial)でのみ起きるデシリアライズ不具合を調べる際の手順。

前提: reproプロジェクトでは再現しないことがある

トリミング(ILLink)の到達可能性解析はエントリポイント基準で変わる。KyoshinEewViewer をProjectReferenceした別エントリの再現用コンソールプロジェクト(reproプロジェクト)では、Avalonia.Input.Cursor 等の依存型のコンストラクタ引数名が保持されてしまい、本番(Desktopエントリ)で消える不具合が再現しないことがある。「reproは全部成功するのに本番だけ失敗する」という乖離が実際に起きた。

実Actions相当の検証は、reproプロジェクトを別途作らず KyoshinEewViewer.Desktop を必ずエントリにして行う。

dotnet publish src/KyoshinEewViewer.Desktop -p:PublishSingleFile=true --self-contained true

common.props でR2R+trimが設定済み)

GUI起動の不安定さを避ける観測方法

Desktopエントリでの実publishはGUI起動が絡み、多重起動防止(FocusExistingInstanceOnDuplicate)・本番サーバー接続・起動時間で不安定になりがち。そこで Main 冒頭に一時的な観測モード(例: --gt-test のような専用フラグ)を仕込み、BuildAvaloniaApp().SetupWithoutStarting() の後、GUIを起動せず対象処理だけ実行してファイルに結果を書き出す方式が有効。

例外の可視化

ConfigurationLoader.TryDeserializeJson は例外を握り潰す実装になっている。原因究明時は一時的にcatch節へログ出力/ファイル書き出しを追加し、握り潰されている例外を可視化する。

過去の実例(参考)

実際にこの手順で見つかった原因は「Trigger/Actionの DisplayControl(Control型)がJSON型グラフに混入」というもので、以下の三重対処で解決済み:

  • 各overrideへの [JsonIgnore]
  • WorkflowDisplayControlAnalyzer(KEVI001)
  • WorkflowSerializeOption のControl除外modifier

なお PublishSingleFile 自体は無関係(パス解決は Environment.GetFolderPath ベースで Assembly.Location に依存しないため)。

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. 12d ago First seen · 39 lines · 78 tokens per session scan A 1df04412c7ac

Subscribe to this mod's changes

kevi-trimming-debug is a skill published in the GitHub repository ingen084/KyoshinEewViewerIngen (187 stars, last pushed yesterday), licensed MIT. It adds 78 tokens to every session and 748 once invoked, about $0.0004 per session on Opus 5. 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-08-30.

Related

Other skills, from other repositories

performance-optimization-dotnet

Optimizes .NET/C# application performance — measure first with BenchmarkDotNet / dotnet-counters / dotnet-trace / PerfView, then fix the specific bottleneck (EF Core N+1, sync-over-async, Gen2 GC pressure, thread-pool starvation, allocation hotspots, unbounded queries, missing pagination, Kestrel misconfiguration).…

peterblazejewicz/claude-plugins · 105 tokens

debugging-and-error-recovery

Guides systematic root-cause debugging for .NET/C# code. Use when dotnet test fails, dotnet build breaks, behavior doesn't match expectations, or you encounter any unexpected error (NullReferenceException, TaskCanceledException, missing DI registration, EF Core migration conflict). Use when you need a systematic…

peterblazejewicz/claude-plugins · 84 tokens

dotnet-reverse

A guide for analyzing compiled .NET and C# programs, including managed Windows executables and libraries. Reverse engineering means studying compiled software to understand how it works, and decompiling turns it back into readable approximate source code.

zhaoxuya520/reverse-skill · 144 tokens

check-bin-obj-clash

Detects MSBuild projects with conflicting OutputPath or IntermediateOutputPath. USE FOR: builds failing with 'Cannot create a file when that file already exists', 'The process cannot access the file because it is being used by another process', intermittent build failures that succeed on retry, or missing/overwritten…

dotnet/skills · 160 tokens

build-perf-diagnostics

Diagnose MSBuild build performance bottlenecks using binary log analysis. USE FOR: identifying why builds are slow by analyzing binlog performance summaries, detecting ResolveAssemblyReference (RAR) taking >5s, Roslyn analyzers consuming >30% of Csc time, single targets dominating >50% of build time, node utilization…

dotnet/skills · 160 tokens

dump-collect

Configure and collect crash dumps for modern .NET applications. USE FOR: enabling automatic crash dumps for CoreCLR or NativeAOT, capturing dumps from running .NET processes, setting up dump collection in Docker or Kubernetes, using dotnet-dump collect or createdump. DO NOT USE FOR: analyzing or debugging dumps…

dotnet/skills · 96 tokens