dprint-plugin-creator
Installation
SKILL.md
dprint plugin creator
Bridge an existing formatter to dprint; do not reimplement its formatting algorithm. The plugin adapts the formatter's options, input, and output to the dprint protocol.
Core mental model
A dprint plugin is a small adapter implementing four responsibilities:
- Identity — name, version, config key, schema URL, update URL (
plugin_info). - Config resolution — read the user's
dprint.jsonslice + global config, produce a typed config and a list of diagnostics for bad/unknown keys. Never hard-fail; diagnose. - Format — decode bytes (UTF-8), run the wrapped formatter, return
Nonewhen the input is already canonical (this is what makesdprint checkwork) or the new bytes otherwise. - Schema — a JSON Schema describing the config, published alongside the artifact.