Skip to content

test(user-interface): run the write-css three-arm rule eval and settle which rules stay in the body #7054

Closed

Description

@kyle-sexton

Scope

/user-interface:write-css ships its eight always-on CSS rules (hover, logical, outline, ease-in, color, transition-all, motion, duration) as provisional one-liners in the SKILL.md body, with their detail in the topic references. The plan's keep-in-body test was never run. That test runs each rule case in three arms: the rule in the body, the rule moved to its topic reference, and no plugin. It keeps a rule in the body only when the body arm passes at least 4 of 5 runs and beats the reference arm by at least 2.

The eval could not run from the implementing session: claude plugin eval has to run from a terminal outside Claude Code. The no-plugin baseline was run and is recorded on the write-css PR.

Steps

  1. With write-css installed from main, run the eight css-rule-* cases with the plugin, at runs: 5, one claude plugin eval plugins/user-interface --case <name> per case.
  2. Make a variant copy of plugins/user-interface outside the repo with each rule line removed from the SKILL.md body (its reference file unchanged), and run the same eight cases against the copy.
  3. Apply the threshold above and move each rule that fails it out of the body into its topic reference.
  4. Also run the nine other css-* cases with the plugin, and record the with/without delta on this issue.

Done when

Each rule's body/reference/without pass counts are recorded here, and SKILL.md keeps only the rules that met the threshold.

🤖 Generated with Claude Code

Activity

  1. added
    needs-triage
    on Oct 11, 2026
  2. github-actions commented on Oct 11, 2026

    @github-actions
    Contributor

    Thanks for filing this. This is a clear, well-scoped follow-up: run the eight css-rule-* cases from write-css's SKILL.md body against three arms (with plugin, body-rules-removed variant, no plugin) at 5 runs each, apply the 4/5-pass-and-beat-reference-by-2 threshold, move any rule that fails it into its topic reference, and also record the with/without delta for the other nine css-* cases.

    No duplicate found; related issue #7055 (re-audit write-css against upstream good-css PRACTICES.md) is a separate task on the same plugin.

    One thing worth flagging: the issue notes claude plugin eval has to run from a terminal outside Claude Code, so this can't be completed inside an agent session alone — it needs someone to run the commands and record results here.

    Automated triage. A maintainer reviews it.

  3. added
    help wanted
    on Oct 11, 2026
  4. kyle-sexton commented on Oct 11, 2026

    @kyle-sexton
    MemberAuthor

    Setup for the three-arm run is ready on the operator's machine:

    Run from a terminal outside Claude Code: claude plugin eval refuses to run inside a worktree-isolated session. --ablation none runs only the with-plugin arm, since the without arm exists. <P> is the worktree root.

    P=<worktree root>; for arm in body reference; do T="$P/plugins/user-interface"; [ "$arm" = reference ] && T="$P/.work/good-css/arm-reference/user-interface"; for c in css-rule-hover css-rule-logical css-rule-outline css-rule-ease-in css-rule-color css-rule-transition-all css-rule-motion css-rule-duration; do claude plugin eval "$T" --case "$c" --ablation none --trust-plugin --threshold 0.8 --max-cost-usd 5 --no-publish --json "$P/.work/good-css/arm-results/$arm-$c.json"; done; done
    

    Keep-in-body threshold: a rule stays in the SKILL.md body only when its body arm passes at least 4 of 5 runs and beats the reference arm by at least 2 runs. Otherwise its line moves out, as in the reference copy.

  5. kyle-sexton commented on Oct 11, 2026

    @kyle-sexton
    MemberAuthor

    The three-arm eval ran. It covered the eight css-rule-* cases at 5 runs each. The table is in #7130.

    Rule Body Reference Without
    hover 5/5 5/5 0/5
    outline 5/5 5/5 0/5
    motion 5/5 5/5 0/5
    color 5/5 4/5 0/5
    duration 5/5 4/5 0/5
    transition-all 2/5 1/5 0/5
    logical 0/5 0/5 0/5
    ease-in 0/5 0/5 0/5

    By the plan's threshold every rule would move out of the body. Decision: the rules stay in the body. #7130, the PR that moved them, is closed unmerged.

    🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedneeds-triage

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions