Skip to content
Back to skills

stories

ASecurity

Component stories for any React project inside iii: list components and their states, build git lines (working tree, branch, commit, chat turn), compare lines into direct/indirect impact, render deterministic screenshots and DOM/React trees with arg overrides, and diff one state across two versions into a reviewer's verdict. Reach for it whenever UI components changed and someone must know what was affected and whether it still looks right.

  • 120 stars
  • 0 votes
  • 1 copy
  • 8 views
  • Added November 30, 2026
designreactgit

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 30, 2026

npx -y skills add iii-hq/workers --skill skills --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of stories?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for stories
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/iii-hq-stories/badge)](https://www.skillsdirectory.com/skills/iii-hq-stories)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: stories
description: >-
  Component stories for any React project inside iii: list components and
  their states, build git lines (working tree, branch, commit, chat turn),
  compare lines into direct/indirect impact, render deterministic
  screenshots and DOM/React trees with arg overrides, and diff one state
  across two versions into a reviewer's verdict. Reach for it whenever UI
  components changed and someone must know what was affected and whether it
  still looks right.
---

# stories

The `stories` worker indexes CSF story files (`*.stories.tsx`) of every
project in a workspace and builds them with the project's own Vite. A
**component** is one story file (title, group, tags, source file); a
**state** is one named export of it (args, argTypes, inferred controls). A
**line** is a source tree: `worktree` (live), `prev` (the build before it),
a ref such as `HEAD` or `main`, a full sha, or `turn:<session>/<turn>/before|after`
when the ide worker keeps turn snapshots. Comparing two lines classifies each
component as `direct` (its story file or a direct import changed),
`indirect` (a deeper input changed), `new`, `removed` or `unchanged`, with
the files behind the change. `stories::screenshot`, `stories::tree` and
`stories::diff` render through the `browser` worker with time, randomness,
locale and motion frozen, so the same inputs give the same pixels.

## When to Use

- A pull request, a branch or a chat turn touched UI code and the review
  must say which components and states were affected, directly or through
  shared code.
- A change must be verified visually or structurally without a person
  opening a browser: per state, per prop value, against the previous
  version.
- An agent needs the rendered DOM, computed styles, layout boxes or the
  React tree of a component in a given state, with specific props.
- A console user wants the explorer or the compare view beside the chat.

## Boundaries

- Not a test runner: `play` functions, MDX docs and addons are ignored.
  Interaction tests stay in the project's own tooling.
- Renders need the `browser` worker and the ADE (its address from
  `ade::status`, or `console_url` when set); without them
  `components::*`, `compare` and `diff::file` still work.
- A line builds once and is cached by sha; building `main` in a large
  monorepo takes tens of seconds. Prefer `wait: true` on
  `stories::builds::create`, or poll `stories::builds::get`.
- Stories that reach application singletons carry an `error` field; read
  it instead of retrying.

## How-tos

- [component-review.md](skills/component-review.md) — the review workflow: scope
  the impact, verify each affected state, write the report.

Files in this skill

  • SKILL.md2.6 KB
  • component-review.md6.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in design →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.