Skip to content

UX Prototype -- Agentation Adoption

Status: In Progress Repository: ux-prototype Project directory: workspace/projects/ad-hoc/ux-prototype/agentation-adoption/ Created: 2026-02-13, updated 2026-02-18 for Storybook 10

Integrate Agentation — a visual annotation tool for AI coding agents — into the ux-prototype Storybook site. Reviewers annotate components in-place; a Claude Code skill turns those annotations into GitHub issues and implementation tasks.

Part A: Claude Code Skill (agentation-feedback)

Section titled “Part A: Claude Code Skill (agentation-feedback)”

The agentation-feedback skill accepts pasted Agentation markdown output (containing CSS selectors, React component paths, and reviewer comments) and:

  1. Parses each annotation to extract element path, component hierarchy, comment, intent (fix/change/question/approve), and severity (blocking/important/suggestion).
  2. Locates the source files using the component hierarchy.
  3. Creates one GitHub issue per annotation in Arda-cards/management.
  4. Issues include: classification metadata, annotation details, source location, and suggested implementation approach.

The skill is developed in ux-prototype/tools/agentation-feedback/ and copied to the shared skill library at /workspace/instructions/claude/skills/agentation-feedback/.

A custom Storybook toolbar addon adds an Agentation on/off toggle (hidden by default) using the useGlobals pattern. When enabled, an <Agentation /> component wraps all stories.

  • Toggle button uses MessageSquare icon with keyboard shortcut Ctrl+Shift+A.
  • initialGlobals default is false — the overlay never renders during automated tests unless explicitly toggled.
  • onSubmit callback labeled “Copy JSON” copies the full annotation batch to clipboard for pasting into the Claude Code skill.
  • Per-annotation copy also available via copyToClipboard: true (default).
  • ESM-only: imports use storybook/manager-api (not @storybook/manager-api).
  • IconButton is deprecated — use Button from @storybook/components.
  • Icons come from @storybook/icons, not Lucide.
  • Decorator merged into existing default export in preview.ts.
#DescriptionStatus
1Write agentation-feedback skillPlanned
2Add schema reference docPlanned
3Install agentation@^2Planned
4Verify React 19 compatibilityPlanned
5Create toolbar toggle addonPlanned
6Add conditional decorator and initialGlobalsPlanned
7Wire onSubmit + onCopy clipboardPlanned
8Add test stories with play functionsPlanned
9Verify no interference with existing storiesPlanned
10Document VRT guard patternPlanned
11Document usage in MDX pagePlanned
12Update storybook-mcp.mdPlanned
13Copy skill to shared skill libraryPlanned

Gate: If agentation@^2 has issues with React 19, adoption is deferred entirely (Decision #7).