julia-toml/SKILL.md
Parse and write TOML in Julia using the TOML standard library (TOML.jl), including parse/tryparse APIs, ParserError handling, Parser reuse, and TOML.print serialization options. Use this skill when reading or generating TOML config files such as Project.toml, Manifest snippets, or other TOML-based settings.
npx skillsauth add krastanov/juliallmagentskills julia-tomlInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use TOML stdlib APIs to parse TOML safely and serialize Julia data back to TOML.
Use throwing APIs when malformed TOML should fail fast:
using TOML
cfg = TOML.parse(text)
cfg2 = TOML.parsefile("config.toml")
Use non-throwing APIs when parse errors should be handled explicitly:
res = TOML.tryparse(text)
if res isa TOML.ParserError
# handle parser error
end
For high-volume parsing of many small TOML files, reuse TOML.Parser() to reduce allocations.
TOML.ParserError includes useful fields for diagnostics:
pos for failing byte position.table for partially parsed data.type for parser error category.When errors need user-facing feedback, report file path + position + nearby source.
Use TOML.print for serialization:
TOML.print(io, data)
Control key ordering when needed:
TOML.print(io, data; sorted=true, by=length)
For custom structs, pass to_toml converter that maps unsupported values to supported TOML types.
TOML.print supports values that map to TOML primitives/tables, including dict-like tables, integers/floats, booleans, and Dates.Date, Dates.Time, Dates.DateTime (subject to TOML stdlib conversion constraints).
references/toml-api-patterns.md - parse/tryparse/print API behavior and examplesjulia-package-dev - package workflows using TOML filesjulia-yaml - analogous workflow for YAML serializationtesting
Run and write Julia tests with Test.jl, TestItemRunner.jl, and ParallelTestRunner.jl. Use when organizing test suites, choosing a test runner, or filtering package tests.
tools
Create and develop Julia packages in local environments, including package bootstrapping, multi-package workspaces, package extensions, and Pkg apps. Use when starting a package or managing package environments, dependencies, structure, and related development workflows.
development
Analyze Julia code with JET.jl for type errors, undefined references, and optimization failures. Use this skill when setting up or running JET analysis on Julia packages.
development
Fix trailing whitespace and ensure files end with newlines. Use this skill when preparing code for commit or when whitespace issues are detected.