Agent skill

Write Stories

by Endava in Endava/BEEQ

Write Storybook stories and MDX docs for BEEQ web components.

Apache-2.0Auto-check passedFrontend & Design

Install Write Stories

skills CLI
$ npx skills add Endava/BEEQ --skill write-stories -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Endava/BEEQ write-stories --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Endava/BEEQ.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/write-stories .claude/skills/write-stories && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
write-stories
GitHub stars
163
Token cost
~968 tokens
SKILL.md length
139 words
Files
1
Skills in repo
9
Repo updated
First seen
Licence
Apache-2.0

At a glance

Write Storybook stories and MDX docs for BEEQ web components.

  • Updating Storybook stories
  • SKILL.md covers When to Use, File Locations, Stories File Structure and Template Pattern, plus 4 more sections
  • Calls pnpm
  • Writing MDX documentation pages

What it does

Write Stories is an agent skill from Endava/BEEQ. Write Storybook stories and MDX docs for BEEQ web components. Use for: adding or updating Storybook stories, writing MDX documentation pages, adding argTypes and controls for component props/events, creating story variants for all component states. Uses @storybook/web-components-vite and lit-html templates. Files live at packages/beeq/src/components/<name/storybook/.

Its SKILL.md is about 970 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Frontend & Design, covering Markdown and Design systems. It works with Storybook. The repository describes itself as: BEEQ Design System, a web component library ruled by Endavan developers :). The licence is Apache-2.0.

When your agent uses it

  • Updating Storybook stories
  • Writing MDX documentation pages
  • Adding argTypes and controls for component props/events
  • Creating story variants for all component states

Example prompts

  • “/write-stories”

What it can do on your machine

Read from SKILL.md and the folder at commit 5f4728d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • pnpm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • beeq.design

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Write Stories loads about 968 tokens when it runs. Until then it costs about 96 tokens; SKILL.md has 139 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~96
When it runs · the whole SKILL.md, loaded when a task matches
~968

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Endava/BEEQ at commit 5f4728d, republished under its Apache-2.0 licence (© Endava). 139 words, ~968 tokens.

Download SKILL.mdSave it as .claude/skills/write-stories/SKILL.md (or your agent's skills folder).
name
write-stories
description
Write Storybook stories and MDX docs for BEEQ web components. Use for: adding or updating Storybook stories, writing MDX documentation pages, adding argTypes and controls for component props/events, creating story variants for all component states. Uses @storybook/web-components-vite and lit-html templates. Files live at packages/beeq/src/components/<name>/_storybook/.
argument-hint
Component name (e.g. "bq-button") or path to the component tsx file
metadata.internal
true

Write BEEQ Storybook Stories

When to Use

  • Adding stories for a new bq-* component
  • Adding missing story variants for component states
  • Updating stories after a component API change
  • Writing or updating the MDX documentation page

File Locations

packages/beeq/src/components/<name>/_storybook/
├── bq-<name>.stories.tsx   # Story definitions
└── bq-<name>.mdx           # Documentation page

Stories File Structure

Always import from @storybook/web-components-vite (not @storybook/web-components):

tsx
import type { Args, Meta, StoryObj } from '@storybook/web-components-vite';
import { html, nothing } from 'lit-html';
import { unsafeHTML } from 'lit-html/directives/unsafe-html.js'; // only if dynamic HTML needed

import { isChromatic, skipSnapshotParameters } from '../../../../.storybook/chromatic-parameters';
import { BQ_COMPONENT_PROP_CONST } from '../bq-<name>.types';
import mdx from './bq-<name>.mdx';

const meta: Meta = {
  title: 'Components/<ComponentName>',
  component: 'bq-<name>',
  parameters: {
    docs: { page: mdx },
  },
  argTypes: {
    // @Prop() controls — use const arrays from types file for selects
    size: { control: 'select', options: [...BQ_COMPONENT_SIZE] },
    disabled: { control: 'boolean' },
    value: { control: 'text' },
    // @Event() actions
    bqChange: { action: 'bqChange' },
    bqFocus:  { action: 'bqFocus' },
    bqBlur:   { action: 'bqBlur' },
    // Slot / story-only controls (hide from docs table)
    slotContent: { control: 'text', table: { disable: true } },
  },
  args: {
    size: 'medium',
    disabled: false,
    value: undefined,
  },
};
export default meta;

type Story = StoryObj;

Template Pattern

Use lit-html tagged template literals. Handle boolean attributes with ?:

tsx
const Template = (args: Args) => html`
  <bq-<name>
    size=${args.size}
    ?disabled=${args.disabled}
    value=${args.value ?? nothing}
    @bqChange=${args.bqChange}
    @bqFocus=${args.bqFocus}
    @bqBlur=${args.bqBlur}
  >
    ${args.slotContent}
  </bq-<name>>
`;

export const Default: Story = {
  render: Template,
  args: {},
};

Required Story Variants

At minimum, provide stories for:

StoryPurpose
DefaultComponent in its default state
Disableddisabled prop set
WithPrefix / WithSuffixSlot usage where applicable
One story per primary variant/appearancee.g. Primary, Secondary, Ghost

Chromatic / Snapshot Handling

For animated or stateful components, opt out of Chromatic snapshots:

tsx
import { skipSnapshotParameters } from '../../../../.storybook/chromatic-parameters';

export const WithAnimation: Story = {
  render: Template,
  parameters: { ...skipSnapshotParameters },
};

For loading states, guard against Chromatic environment:

tsx
const Template = (args: Args) => {
  const loading = isChromatic() ? false : args.loading;
  return html`<bq-button ?loading=${loading}>...</bq-button>`;
};

MDX Documentation Page

The .mdx file should import and use <Stories /> and <ArgTypes /> from @storybook/blocks. Reference the component's design documentation link if available from https://www.beeq.design/.

Running Storybook

bash
# Run Storybook locally
pnpm start

# Build Storybook for production
pnpm build

© Endava, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/write-stories of Endava/BEEQ.

Open the folder on GitHubat commit 5f4728d

Compare with similar skills

Write Stories next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Write Stories compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Write Stories this skillEndava/BEEQ163—~968Automated safety check: PassApache-2.0
Storybook Storyradix-ng/primitives274—~3.7kAutomated safety check: PassMIT
Ds Document Componentbaloise/design-system114—~6.3kAutomated safety check: PassApache-2.0
Building With Lobe UIlobehub/lobe-ui2.2k—~2kAutomated safety check: PassMIT
Using Docs Kitlobehub/lobe-ui2.2k—~2.8kAutomated safety check: PassMIT
Run Umbraco UIumbraco/Umbraco.UI152—~1.2kAutomated safety check: PassMIT

Similar skills

  • Storybook Story

    radix-ng/primitives

    Write or update Storybook stories and docs MDX for a Radix NG primitive following project conventions.

    274 GitHub stars~3.7k tokensUpdated 8 days ago
    Frontend & DesignAuto-check passed
  • Ds Document Component

    baloise/design-system

    A skill your agent uses when writing or generating Storybook documentation for a Baloise Design System component — creates stories.ts, doc-config.ts, and six MDX subpages (Overview, Usage, Variants…

    114 GitHub stars~6.3k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Building With Lobe UI

    lobehub/lobe-ui

    Build UI with the LobeHub design ecosystem — @lobehub/ui (plus its base-ui, chat, mobile, awesome, brand, mdx, i18n namespaces), @lobehub/icons, @lobehub/charts, @lobehub/fluent-emoji and…

    2.2k GitHub stars~2k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Using Docs Kit

    lobehub/lobe-ui

    Set up and author a documentation site with @lobehub/docs-kit (the lobedocs CLI, React Router + Vite static docs used by ui.lobehub.com).

    2.2k GitHub stars~2.8k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Run Umbraco UI

    umbraco/Umbraco.UI

    Build, run, and drive the Umbraco.UI (UUI) web-component library via its Storybook.

    152 GitHub stars~1.2k tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Wonder Blocks

    Khan/wonder-blocks

    Implements user interfaces using the Wonder Blocks (WB) design system — Khan Academy's React component library.

    163 GitHub stars~3.2k tokensUpdated today
    Frontend & DesignAuto-check passed

More from Endava/BEEQ

All 9 skills in this repo
  • Beeq

    Endava/BEEQ

    Builds, styles, and reviews UI with BEEQ, Endava's web-component design system.

    163 GitHub stars~5.6k tokensUpdated yesterday
    Auto-check passed
  • Create Component

    Endava/BEEQ

    Create a new BEEQ StencilJS web component. An agent skill from Endava/BEEQ.

    163 GitHub stars~1.5k tokensUpdated yesterday
    Auto-check passed
  • Audit and fix WCAG 2.1 Level AA accessibility issues in BEEQ StencilJS components.

    163 GitHub stars~1.9k tokensUpdated yesterday
    Auto-check passed
  • Review Component

    Endava/BEEQ

    Review a BEEQ StencilJS component against design system guidelines and project standards.

    163 GitHub stars~1.7k tokensUpdated yesterday
    Auto-check passed
  • Write E2E Tests

    Endava/BEEQ

    Write E2E tests for BEEQ StencilJS components using @stencil/vitest in browser mode (Playwright/Chromium).

    163 GitHub stars~1.3k tokensUpdated yesterday
    Auto-check passed
  • Write Unit Tests

    Endava/BEEQ

    Write Vitest unit tests for BEEQ shared utilities. An agent skill from Endava/BEEQ.

    163 GitHub stars~795 tokensUpdated yesterday
    Auto-check passed

Works with

Questions about Write Stories

What does Write Stories do?

Write Storybook stories and MDX docs for BEEQ web components. Write Stories is an agent skill from Endava/BEEQ. Write Storybook stories and MDX docs for BEEQ web components.

When should I use Write Stories?

Write Stories fits situations like: updating Storybook stories; writing MDX documentation pages; adding argTypes and controls for component props/events; creating story variants for all component states.

How do I install Write Stories in Claude Code?

Run `npx skills add Endava/BEEQ --skill write-stories -a claude-code`. Or copy the skill folder (.agents/skills/write-stories in Endava/BEEQ) into .claude/skills/write-stories in your project. Claude Code loads it when a task matches its description.

How do I install Write Stories in Codex?

Run `npx skills add Endava/BEEQ --skill write-stories -a codex`. Or copy the skill folder (.agents/skills/write-stories in Endava/BEEQ) into .agents/skills/write-stories in your project. Codex loads it when a task matches its description.

Can I use Write Stories in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Endava/BEEQ --skill write-stories -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/write-stories, .gemini/skills/write-stories, .github/skills/write-stories and .opencode/skills/write-stories in your project.

What does Write Stories need to run?

Going by SKILL.md and its folder, Write Stories needs the command-line tools its instructions call (pnpm).

Does Write Stories access the network?

SKILL.md names 1 domain. As links in the text: beeq.design. This is read from the text; nothing was executed.

Is Write Stories safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Write Stories use?

Write Stories is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Write Stories use?

About 968 tokens (SKILL.md is roughly 3.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Write Stories?

Skills that share tags, products or a category with Write Stories: Storybook Story (radix-ng/primitives, 274 stars), Ds Document Component (baloise/design-system, 114 stars), Building With Lobe UI (lobehub/lobe-ui, 2.2k stars) and Using Docs Kit (lobehub/lobe-ui, 2.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Write Stories?

Endava (a GitHub organization) maintains it in Endava/BEEQ, which has 163 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on October 6, 2026.

Source: Endava/BEEQ on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.