wallace
Installation
SKILL.md
Wallace
Project Wallace's analyzer turns a stylesheet into numbers: how many distinct colors, font sizes and shadows it uses, how specific and complex its selectors are, how much !important it leans on. wallace-cli prints those numbers and nothing else. This skill is the judgement layer: read the numbers, decide which direction the CSS should move, write CSS that moves it, and measure again.
The point is better CSS while it is being written, not a pass or fail. A change that adds a fourteenth font size or a new ID selector should be caught by the agent that wrote it, in the same session.
Running it
Always pipe the CSS in, and always run it with an explicit version:
npx -y wallace-cli@4 --json < path/to/styles.css > "$SCRATCH/wallace-before.json"
Two traps make every other form unreliable for an agent (verified in wallace-cli 4.0.4):
- It reads standard input whenever that is not a terminal, even when given a file path, and even for
--helpand--version. In an agent's shell it waits forever unless input is piped or redirected. To learn the version, runnpm view wallace-cli@4 versioninstead. - It joins a file argument to the working directory, so an absolute path fails with
ENOENT.