A brief is the contract agreed before anyone writes: who the piece is for, what it is trying to do, what evidence backs its claims, how it is laid out, who owns it, and when it must be reviewed. Discovering halfway through a draft that nobody agreed what the piece was supposed to prove is expensive; discovering it after publication is worse.
This walkthrough uses the tool's public README and checked-in example files. Run the command from a repository checkout with Node.js 22+.
Run the checked-in example
node bin/content-brief-schema.mjs examples/minimal-brief.json
node bin/content-brief-schema.mjs examples/invalid-brief.json --jsonRead the result
--json emits the report on stdout; diagnostics go to stderr, so the output can be piped straight into a JSON parser. Findings are sorted by file, then pointer, then rule, so repeated runs over the same input are byte-identical.