Repository navigation
klar's first eval (evals/skill-vs-playbook) measured how agents find klar's guidance. A CLAUDE.md pointer led them to the playbook in 0 of 69 trials; an Agent Skill loaded it in 69 of 69. This release ships that skill. The same eval found the wcag2 false pass fixed below.
Upgrading
npm install -g klar-cli@3.1.0 # or bump your devDependency
klar skill install # add the Agent Skill to this project (--user for all projects)If you use --type wcag2, read the Fixed note below: some displayed ratios drop by 0.1, and find may return a slightly different color.
Added
klar skill installwrites klar's Agent Skill to.claude/skills/klar/SKILL.md(or~/.claude/skills/klar/with--user). It won't overwrite a customizedSKILL.mdwithout--force(exits1when it leaves one alone).klar skill showprints the file for agents that keep skills elsewhere.klar playbookprintsAGENT_PLAYBOOK.mdfrom the installed package (--pathprints its location). The skill points here because the file's path differs between a local dependency,npm install -gandnpx.- The skill ships in the package at
skills/klar/SKILL.md. Its description is the one the eval tested; a test keeps the two in step. Its body namesklar playbookrather than thenode_modulespath the eval used, so it works for global andnpxinstalls too.
Fixed
-
wcag2no longer passes colors that fall short of the target (#17). Ratios were rounded to one decimal before being compared, so a true 4.458 displayed and passed as 4.5 incontrast, andfindreportedsuccess: truefor it. WCAG 2.x thresholds are unrounded:findnow compares at full precision, and wcag2 values are displayed rounded down to one decimal, so a shown value at or above a threshold always is.Behavior change for wcag2 users: some displayed ratios drop by 0.1 (for example 5.564 shows as 5.5, not 5.6), and
find -t wcag2can return a slightly different color. The old one may not have met the target. OKCA and deltaE output is unchanged.
Changed
AGENT_PLAYBOOK.md's setup section now recommends the skill, citing the eval, and keeps theCLAUDE.mdsnippets as a fallback for agents without skill support. The snippets point toklar playbook.
Full changelog: https://github.com/pawn002/klar/blob/main/CHANGELOG.md