Skip to content

Lints

FieldValue
TypeSkill Resource
Source~/.copilot/skills/legal/lints.toml
DescriptionNot specified

Source Content

# Lint registry for scripts/lint.py — the extension point.
# Add a lint: append a [[lint]] block. No code changes needed.
#
# Fields:
# name — shown in the summary table.
# globs — files this lint applies to. A lint whose file type didn't
# change never runs.
# command — {skill} expands to this skill's directory; {files} to the
# matched files. If the first token isn't an installed tool,
# the lint is skipped with a warning, never failed.
# required — true: a non-zero exit fails the run. false: advisory.
# note — one line of context, echoed when the lint runs.
[[lint]]
name = "citation-shape"
globs = ["**/templates/**/*.md", "**/recipes/**/*.md", "**/examples/**/*.mdx", "**/*-draft.md"]
command = "python3 {skill}/scripts/check_legal_doc.py {files}"
required = true
note = "anti-hallucination citation check (federal/VA fully verified, CA/NY fully verified, other-state generic-tier unverified) + disclaimer presence; run per-file"
[[lint]]
name = "four-filter"
globs = ["**/templates/**/*.md", "**/recipes/**/*.md", "**/examples/**/*.mdx", "**/*-draft.md"]
command = "python3 {skill}/scripts/check_four_filter.py {files}"
required = true
note = "flags superlative/absolute language (willful, egregious, always, never, ...) with no nearby supporting fact"
[[lint]]
name = "print-layout"
globs = ["**/recipes/**/*.md", "**/examples/**/*.mdx", "**/examples/**/*.tsx", "**/*-layout.html"]
command = "python3 {skill}/scripts/check_print_layout.py {files}"
required = false
note = "advisory print-safety heuristics (color-only distinctions, page-break rules); heuristic pattern match, not a full print-render check — treat findings as prompts to review, not a hard gate"