Skip to content

feat: add the robomous-component-review agent skill (#24) - #56

Merged
YaelAnaya merged 1 commit into
mainfrom
feat/24-component-review-skill
Dec 5, 2026
Merged

YaelAnaya merged 1 commit into
mainfrom
feat/24-component-review-skill

Conversation

@YaelAnaya

Copy link
Copy Markdown
Contributor

Summary

Adds the robomous-component-review agent skill: an independent review of a component or a component change that reports verified findings ordered by severity, with file:line references.

Closes #24.

Contents

  • .agents/skills/robomous-component-review/SKILL.md (79 lines) has four steps:
    1. Gather evidence: the source, the components it imports, the export, tests, the generated reference, the page and demos, the API snapshot for changes, and two siblings for consistency.
    2. Review every dimension in a 17-row table: public API, anatomy, native semantics, accessibility, keyboard/pointer parity, focus, controlled/uncontrolled, event semantics, dependency choice (ADR 0001), composition, tokens and states, responsive/light/dark, complexity and effects, performance, tests, documentation, regression risk. Passing dimensions get written down too.
    3. Verify before reporting: trace the lines, write or run a test, or quote the rule. Anything unverifiable becomes an open question.
    4. Report as [severity] file:line — defect / Scenario / Evidence / Fix, then Checked, no findings and Open questions. "No findings" is valid, and the skill doesn't edit the code under review.
  • references/severity.md defines critical, high, medium and low with examples from this codebase: the baseline debts, Pagination's redundant role, CodeBlock's label keys. It also lists what is not a finding: taste, rules that AGENTS.md overrides in the ui-sdk skill, and already-tracked issues.
  • .claude/skills/robomous-component-review is a relative symlink for Claude Code.

Calibration (independent agents)

Two separate Claude Code (Sonnet) sessions, each in its own throwaway worktree with only the skill, reviewed the two components named in the issue. Both:

Component high medium low Highlights
CodeBlock 1 6 5 Stale variantIndex when variants shrinks leaves no tab selected or tabbable, and aria-labelledby dangling. "Copied" is never announced (Snippet does announce it). aria-label sits on a bare <pre>. Modified arrow keys are swallowed. Keys use repeatable labels. Syntax colours are palette hues
FilterParamsBar 1 4 4 Focus drops to <body> after removing or applying a pill. The popover opens on the Select, not the search. The applied option is shown only by an icon. useFilterParams causes an SSR/hydration mismatch. Thin tests

I checked a sample against the source myself and every one was real, with valid line references:

  • the unclamped index and the aria-labelledby (code-block.tsx:149, 261-269);
  • the palette classes (:36-44) and the DESIGN quote they break;
  • Snippet's live region versus none in CodeBlock;
  • no modifier check (:191-197);
  • status-coloured inset strokes (:290-294);
  • useState(read) with a server branch (filter-params.tsx:43-49);
  • the ring-ring/30 rings;
  • builtOn listing two of four foundations.

Where the results went:

The calibration showed no gap that needed a change to the skill.

Tests and discovery

  • tests/docs/skills.test.ts picks up the new skill automatically, now 7 tests: link, name, description, links and anchors.
  • Both calibration sessions invoked the skill by name, which shows Claude Code discovers it. Codex discovery uses the same .agents/skills/ path verified for the other two skills.

Docs

  • AGENTS.md Agent skills gets a bullet for the skill. The definition of done gains "a robomous-component-review pass found no unresolved critical or high finding".
  • CONTRIBUTING lists it with the repository's skills.

Testing evidence

  • pnpm format:check ✓
  • pnpm lint ✓
  • pnpm test: 235 passed

Public API / dependency changes

None.

.agents/skills/robomous-component-review/ (Codex), linked from
.claude/skills/ (Claude Code), is the independent review of a component or a
component change: gather the evidence (source, imports, tests, generated
reference, page, demos, two siblings), go through seventeen dimensions from
public API to regression risk, verify every finding by tracing it, testing
it or quoting the rule it breaks, and report by severity as
file:line / scenario / evidence / fix, plus what passed and what stayed
open. references/severity.md defines the four levels with examples from this
codebase, and what is not a finding.

Calibration: two independent Claude Code sessions reviewed CodeBlock and
FilterParamsBar with the skill alone, each in its own worktree. Both followed
the format, verified with scratch tests they deleted, and left tracked debt
out. A sample of their findings was confirmed against the source. The
reports were posted to #35 and #36, and the cross-cutting patterns to #39.

AGENTS.md lists the skill and adds a review pass with no open critical or
high finding to the definition of done. CONTRIBUTING lists it with the
repository's skills.

Closes #24
@YaelAnaya YaelAnaya added area: agent-tooling Agent instructions, skills, and workflows type: feature New functionality area: accessibility Accessibility and interaction semantics labels Dec 5, 2026
@YaelAnaya YaelAnaya self-assigned this Dec 5, 2026
@YaelAnaya
YaelAnaya merged commit c0ef3ee into main Dec 5, 2026
1 check passed
@YaelAnaya
YaelAnaya deleted the feat/24-component-review-skill branch December 5, 2026 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: accessibility Accessibility and interaction semantics area: agent-tooling Agent instructions, skills, and workflows type: feature New functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[11] AGT-04 · Create the robomous-component-review skill

1 participant