base std is the short alias.
Where they come from
protocols.md source and synced into standards.toml plus the graph. That is deliberately different from rules, which you add one at a time from the command line: a standard is usually a document that already exists, and the sync is what turns it into something that fires.
The gotcha. There is no base standards add. If you want a new standard, write it into the protocols source and sync. Reaching for add and finding nothing is the most common first stumble here.
Proving one will fire
--content simulates the payload of an actual edit, which matters because a standard can match on what you are writing as well as on which file you are writing it to.
The gotcha. Test before you rely on one. A standard that does not fire is indistinguishable from a standard that fired and had nothing to say, and this command is the only thing that separates them.
Which files a standard covers
Since 0.16.0 a standard applies only to the files it declares, so writing a markdown note no longer draws a coding standard:code = true covers every file in a language the code map covers. extensions (with or without the dot), languages (as the matcher names them: dockerfile, yaml, toml, json and so on) and paths add more; paths are globs, case ignored, and a glob with no / matches the file name. A file is in scope when any one of them admits it. A standard that declares nothing applies to code files only, never to .md, .txt, .json, .toml, .yaml or .csv documents.
The shipped standards cover code plus their deploy and CI files, and a standards.toml written before scopes existed takes the shipped scope for those standards when it loads, without the file being rewritten. Paths are compared with / separators, so .github/workflows/** matches on Windows too.
Seeing what is loaded
base standards get <id> shows one in full.
Where standards fit
Three mechanisms, three different moments. Standards are the one that reaches you while you are changing something rather than while you are asking about it.
Next
Rules and domains
The keyword-triggered half of the same idea.
Context reference
Every
base standards verb and flag.