julia-yaml/SKILL.md
Parse and write YAML in Julia with YAML.jl, including load/load_file/load_all APIs, dictionary type customization, anchors/aliases behavior, and write/write_file emission. Use this skill when reading YAML configs, converting YAML to Julia structures, or generating YAML outputs from Julia data.
npx skillsauth add krastanov/juliallmagentskills julia-yamlInstall 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 YAML.jl to load YAML documents into Julia types and emit Julia data as YAML.
Single-document parse:
import YAML
obj = YAML.load(yaml_string)
obj2 = YAML.load_file("config.yml")
Multi-document parse:
docs = YAML.load_all(yaml_string)
docs2 = YAML.load_all_file("multi.yml")
By default, mappings parse as Dict{Any,Any}. Pass dicttype to control output:
YAML.load_file("a.yml"; dicttype=Dict{Symbol,Any})
YAML.load_file("a.yml"; dicttype=OrderedDict{String,Any})
YAML.load_file("a.yml"; dicttype=()->DefaultDict{String,Any}(missing))
Use OrderedDict when key order should be preserved from source YAML.
Emit to string/IO or file:
yaml_text = YAML.write(data)
YAML.write_file("out.yml", data)
When round-tripping, verify semantic structure, not exact formatting (layout/quoting style may differ).
references/yaml-api-patterns.md - load/dump APIs, dicttype, and caveatsjulia-toml - analogous workflow for TOML datajulia-package-dev - package workflows where YAML may appear in tooling/configdevelopment
Fix trailing whitespace and ensure files end with newlines. Use this skill when preparing code for commit or when whitespace issues are detected.
development
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.
development
Implement and debug Julia multithreading with Threads.@threads, Threads.@spawn, threadpools, locks, atomics, and race-avoidance patterns. Use this skill when parallelizing CPU work, configuring Julia thread counts, fixing data races, or handling thread-specific caveats such as task migration.
testing
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.