Repository navigation
Jig 0.3.0
Two new commands. install and update put the system in place; these make it do something.
npx jig-ui@latest install --agent claude
npx jig-ui@latest init
npx jig-ui@latest checkjig check
Verifies a consumer's code against the rules. Seven detectors — exactly the ones rules.index.json already named — with --all, --json, and --ci for a deterministic gate that needs no model and no API key.
A-01 is hybrid: it asks whether a violet hue was chosen rather than failing it.
H-47 runs only on files that reference a Jig token. "Hard-coded past the token layer" means nothing for a file that never adopted it, and without that scope it produced 13 findings on a 20-line stylesheet. A project where nothing participates is told how to start instead.
jig init
Detects the CSS system, derives a brand colour from your existing code rather than interviewing cold, validates it against the contract brand.default.css already states, writes the brand file and jig.config.json, wires the imports, then runs check for a baseline.
It is also what makes global installs coherent. They previously vendored tokens to ~/.jig/, which CSS cannot @import, and brand is per-project by design. Now the brand file and config always live in the project, and a global install copies the one selected mode file into the project's .jig/tokens/ — because a stylesheet is committed and has to build on machines Jig has never run on.
Fixed along the way
CSS nesting hid the parent's declarations. In .card { color: red; .h { … } } the color: red belonged to no block and was invisible to every detector. On a Sass codebase that was most declarations, reported as a clean result.
Comments produced findings, and a commented-out :focus-visible silenced E-29 for a whole file — a dead detector reporting success.
var(--x, fallback) was resolved to the fallback and reported as fact, even where the project's own :root defined the real value.
oklch() is now parsed. Tailwind v4 and shadcn emit it by default, so skipping it meant deriving nothing on a large share of new projects.
311 tests. Full detail in CHANGELOG.md.