本文へ移動
cccskills
無料GitHub で公開

tomlyn

how to use Tomlyn for serialization and deserialization of TOML files in C#

インストール方法を見る

含まれるファイル(10)

  • SKILL.md2.2 KB
  • docs/compatibility.md2.6 KB
  • docs/dom.md6.9 KB
  • docs/getting-started.md4.9 KB
  • docs/low-level.md10.7 KB
  • docs/migration.md6.1 KB
  • docs/performance.md3.2 KB
  • docs/readme.md2.1 KB
  • docs/serialization.md31.6 KB
  • docs/source-generation.md9.8 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Tomlyn is a high-performance TOML 1.1 library for .NET, shaped like System.Text.Json. It provides two main layers:

  • Object serialization - TomlSerializer maps TOML documents to .NET objects (POCOs, records, dictionaries) and back. Supports reflection and source generation. Does not preserve comments or formatting.
  • Low-level parsing - TomlLexer, TomlParser, and SyntaxParser provide token streams, incremental events, and a full-fidelity syntax tree for tooling, analyzers, and formatters that need to preserve every character.

Where to start

ScenarioStart here
New to TomlynGetting started
Familiar with System.Text.JsonSerialization - the API shape is intentionally similar
Need NativeAOT / trimmingSource generation
Want a dynamic model (no POCOs)DOM model - TomlTable, TomlArray
Building tooling (formatters, analyzers)Low-level APIs - SyntaxParser
Migrating from Tomlyn v0.xMigration guide

Key concepts

[!IMPORTANT] Tomlyn v1 targets TOML 1.1.0 only. It does not support TOML 1.0 or earlier drafts. See the official TOML v1.1.0 specification for the full language reference.

  • Diagnostics - parsing and mapping failures throw TomlException with precise source locations (Line, Column, Offset, Span).
  • Immutable options - TomlSerializerOptions is a sealed record; cache and reuse instances.
  • NativeAOT / trimming - use source generation (TomlSerializerContext) to avoid reflection. Reflection can be disabled via a feature switch.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

astro

無料

Reference for Astro — the core web framework the gatOS docs site (under site/) is built on. Use this when authoring or editing pages in site/, working with .astro/.md/.mdx files, content collections, the astro.config.mjs, or component/JSX-in-Markdown mechanics. Covers Astro component anatomy, using components in MDX, content collections, frontmatter, imports, expressions, and the build/dev commands — enough to work the site without leaving the repo. Pair with the `starlight` skill (the docs theme + its components) and the `tutorials` skill (the gatOS house style).

日本語の概要は準備中です。原文の説明を表示しています。

meow-sci/gatOS132026年10月11日 更新

bun

無料

how to use bun effectively for scripting and sqlite and more

日本語の概要は準備中です。原文の説明を表示しています。

meow-sci/gatOS132026年10月11日 更新

gatos

無料

Write scripts and programs against gatOS — the KSA mod that exposes live Kitten Space Agency simulation state as a 9P filesystem at /sim (also over HTTP /v1, MQTT, and an AI-oriented MCP server). Use this when asked to read game/celestial/vehicle telemetry, control vehicles (throttle, ignite, staging, attitude, burns, RCS, lights, docking), use game/debug controls (teleport, impulse kick, refuel, time-warp, switch vessel), direct the in-game camera / author cinematic shots and tracks, schedule timed command sequences, or write flight-computer / autopilot programs. Covers the full /sim catalog, the command model, KSA coordinate frames, and worked Bun/TypeScript + Rust examples.

日本語の概要は準備中です。原文の説明を表示しています。

meow-sci/gatOS132026年10月11日 更新

harmony

無料

Expert in use of Harmony Lib for runtime patching of dotnet C# code

日本語の概要は準備中です。原文の説明を表示しています。

meow-sci/gatOS132026年10月11日 更新

imgui

無料

ImGui is an immediate mode UI library. KSA uses ImGui for UI

日本語の概要は準備中です。原文の説明を表示しています。

meow-sci/gatOS132026年10月11日 更新

ksa

無料

detailed information about kitten space agency (KSA) game code, decompiled sources, modding patterns, architecture and best practices for working with mods and the game codebase

日本語の概要は準備中です。原文の説明を表示しています。

meow-sci/gatOS132026年10月11日 更新

meow-sci のスキルをすべて見る

このスキルの問題を報告する