Narraitor: Skill for Claude Code

.claude/skills/style-port/SKILL.md

style-port is a skill for Claude Code from jerseycheese/Narraitor. It costs 67 tokens per session (1,269 once invoked), scanned A, original, MIT.

A tool for moving styles from a reference component into production CSS in the Narraitor design system. CSS is the code that controls how web interfaces look and are laid out.

In plain words
What is it for?
Use it to compare demo or reference styles with production styles, add missing token-based rules, and remove inline styles from components.
Why use it?
It provides a systematic comparison so visual differences can be fixed with shared design tokens instead of scattered overrides.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is jerseycheese/Narraitor's own configuration. It tells Claude Code how to work on Narraitor itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Narraitor configures →

Reuse

Borrowing it

Nothing to install: this file belongs to jerseycheese/Narraitor. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/jerseycheese/Narraitor/main/.claude/skills/style-port/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/jerseycheese/Narraitor

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for style-port

README.md
[![agentmods](https://agentmods.dev/badge/skills/jerseycheese/narraitor/style-port/github.svg)](https://agentmods.dev/skills/jerseycheese/narraitor/style-port)
Your own site
<a href="https://agentmods.dev/skills/jerseycheese/narraitor/style-port"><img src="https://agentmods.dev/badge/skills/jerseycheese/narraitor/style-port/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for style-port

Your own site · 80×15
<a href="https://agentmods.dev/skills/jerseycheese/narraitor/style-port"><img src="https://agentmods.dev/badge/skills/jerseycheese/narraitor/style-port.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,269 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 71
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 72
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00067 $0.01269
Opus 5 $0.00034 $0.00634
Sonnet 5 $0.00013 $0.00254
Haiku 4.5 $0.00007 $0.00127

Measured 10d ago against content hash e86433e28f7d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

style-port scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/style-port/SKILL.md · 97 lines

How it starts

The opening of the file, as written. The whole thing — 97 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Style Port — Narraitor Design System Porting

Port inline styles from a reference source (demo component, Figma spec, screenshot comparison) to production CSS through a systematic, code-level diff.

Hard Rules

  • No !important -- fix specificity at the selector level.
  • No raw pixel values when a design token exists (--space-*, --radius-*, --font-*). Token definitions live in src/lib/theme/themes/: spacing and --radius-full in _shared-tokens.css, --font-* and --radius-sm/md/lg in ds3.css.
  • No demo-only UI -- do not port components that only exist in the reference scaffold (state switchers, mock data chrome, debug panels).
  • No dark-mode changes -- stay in the base (light) rules. Do not touch :root.dark variants unless the plan explicitly calls for it.
  • No new inline styles -- the point is moving styles into CSS. Never add style={{}} to fix a gap.
  • One canon location per surface -- game-session styles go in src/styles/manuscript-session.css. Other surfaces use their own canonical stylesheet. No component-level CSS modules for layout/theme styles.
  • No DS-scoped overrides -- there's one design system since ADR-013. data-theme="ds3" is a constant on <html>, not a switch, so don't write per-DS selector blocks; style the base rules directly.
  • Merge, don't duplicate -- if a selector already exists, add properties to the existing block rather than creating a new one. Reference the fix number when extending existing blocks.

Phase 1: Inventory

Enumerate every inline style={{...}} prop in the reference component for the target theme/surface. Output a numbered list:

1. Container: { backdropFilter: 'blur(20px)', padding: '10px 10px 6px' }
2. SendButton: { height: 38, padding: '0 14px', fontWeight: 500 }

Also note any CSS classes in the reference that don't exist in the production stylesheet.

Phase 2: Map

For each inventoried style, find the production equivalent:

  • Which CSS class targets the same element?
  • Which properties are already declared?
  • Are there :root.dark overrides that partially cover it?

Read the full file on GitHub · 97 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 97 lines · 67 tokens per session scan A e86433e28f7d

Subscribe to this mod's changes

style-port is a skill published in the GitHub repository jerseycheese/Narraitor (30 stars, last pushed yesterday), licensed MIT. It adds 67 tokens to every session and 1,269 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

chakra-ui-builder

Build responsive, accessible UI components and layouts using Chakra UI v3, install or configure Chakra UI in new and existing projects, and design scalable themes using tokens, semantic tokens, recipes, and slot recipes. Use this skill whenever a user asks to build, create, or generate any UI component, page, form…

chakra-ui/chakra-ui · 214 tokens

visual-ralph

Visual Ralph orchestration for frontend UI from generated references, static references, or live URL targets, using $ralph with built-in visual verdict and pixel-diff evidence until the implementation matches and leaves a reproducible design system.

Yeachan-Heo/oh-my-codex · 50 tokens

frontend-ui-dark-ts

Build dark-themed React applications using Tailwind CSS with custom theming, glassmorphism effects, and Framer Motion animations. Use when creating dashboards, admin panels, or data-rich interfaces with a refined dark aesthetic.

microsoft/skills · 48 tokens

reveal-hover-effect

Build cursor-following spotlight reveals that expose a second aligned image through a soft radial mask. Use for hover-to-color, before-and-after, x-ray, material, texture, product-detail, and illustrated hero effects where a desaturated or embossed base image should remain visible while another treatment follows an…

MengTo/Skills · 66 tokens

frontend-visual-qa

Audits already-rendered web, landing-page, HTML deck/slide, browser tool/game, dashboard/admin, design-system, and desktop UIs using real-browser or native-app journeys, inspected screenshots, DOM geometry, responsive or projection viewports, and a bundled Playwright sweep. Use after UI implementation to find…

daymade/claude-code-skills · 145 tokens

prototype-web

A clickable, high-fidelity web product prototype with navigation, a hero section, feature cards, steps, social proof, and optional pricing. It is designed to resemble a finished landing page while remaining a prototype.

nexu-io/html-anything · 24 tokens