erne-component

erne-component is a command for Claude Code from JubaKitiashvili/everything-react-native-expo. It costs 21 tokens per session (690 once invoked), scanned A, original, MIT.

A command for designing a React Native UI component and writing its tests at the same time. TDD means writing tests around expected behaviour as part of development.

In plain words
What is it for?
Use it to create components, decide their states and styling, and test how users interact with them.
Why use it?
It helps prevent a new component's appearance and behaviour from being implemented without corresponding tests.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the erne-universal plugin — 52 skills, 24 commands, 13 agents shipped together

Good fit Use it to create components, decide their states and styling, and test how users interact with them.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/jubakitiashvili/everything-react-native-expo/erne-component
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/JubaKitiashvili/everything-react-native-expo

Made for: Claude Code.

Or install erne-universal, the plugin that ships this one along with the rest of its 52 skills, 24 commands, 13 agents.

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 erne-component

README.md
[![agentmods](https://agentmods.dev/badge/commands/jubakitiashvili/everything-react-native-expo/erne-component/github.svg)](https://agentmods.dev/commands/jubakitiashvili/everything-react-native-expo/erne-component)
Your own site
<a href="https://agentmods.dev/commands/jubakitiashvili/everything-react-native-expo/erne-component"><img src="https://agentmods.dev/badge/commands/jubakitiashvili/everything-react-native-expo/erne-component/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 erne-component

Your own site · 80×15
<a href="https://agentmods.dev/commands/jubakitiashvili/everything-react-native-expo/erne-component"><img src="https://agentmods.dev/badge/commands/jubakitiashvili/everything-react-native-expo/erne-component.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 690 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.
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.00021 $0.00690
Opus 5.5 $0.00008 $0.00276
Sonnet 5.5 $0.00004 $0.00138
Haiku 4.5 $0.00002 $0.00069

Measured 1mo ago against content hash 8638b2a1fa66, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

erne-component 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 1mo 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.

commands/erne-component.md · 94 lines

How it starts

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

/erne-component — Design + Test Component

You are executing the /erne-component command. Run ui-designer and tdd-guide in parallel. One designs the component, the other writes tests.

Parallel Execution

Agent 1: ui-designer — Component Design

  1. Clarify requirements — What does the component do? What states does it have?
  2. Design with NativeWind — Use Tailwind classes for styling:
import { View, Text, Pressable } from 'react-native';

interface CardProps {
  title: string;
  subtitle?: string;
  onPress?: () => void;
  variant?: 'default' | 'outlined' | 'elevated';
}

export function Card({ title, subtitle, onPress, variant = 'default' }: CardProps) {
  return (
    <Pressable
      onPress={onPress}
      className={cn(
        'rounded-2xl p-4',
        variant === 'default' && 'bg-card',
        variant === 'outlined' && 'border border-border bg-transparent',
        variant === 'elevated' && 'bg-card shadow-md',
      )}
    >
      <Text className="text-lg font-semibold text-foreground">{title}</Text>
      {subtitle && (
        <Text className="mt-1 text-sm text-muted-foreground">{subtitle}</Text>
      )}
    </Pressable>
  );
}
  1. Handle all states — Loading, error, empty, populated, disabled
  2. Add accessibility — accessibilityRole, accessibilityLabel, accessibilityState
  3. Platform adaptation — Use Platform.select or NativeWind responsive for platform differences
  4. Consider agent-device — If available, render on simulator and screenshot for visual verification

Agent 2: tdd-guide — Component Tests

Write comprehensive tests alongside the component:

import { render, screen, fireEvent } from '@testing-library/react-native';
import { Card } from './Card';

describe('Card', () => {
  it('renders title', () => {
    render(<Card title="Test Title" />);
    expect(screen.getByText('Test Title')).toBeTruthy();
  });

  it('renders subtitle when provided', () => {
    render(<Card title="Title" subtitle="Subtitle" />);
    expect(screen.getByText('Subtitle')).toBeTruthy();
  });

  it('hides subtitle when not provided', () => {
    render(<Card title="Title" />);
    expect(screen.queryByText('Subtitle')).toBeNull();
  });

  it('calls onPress when tapped', () => {
    const onPress = jest.fn();
    render(<Card title="Title" onPress={onPress} />);
    fireEvent.press(screen.getByText('Title'));
    expect(onPress).toHaveBeenCalledTimes(1);
  });

  it('applies variant styles', () => {
    // Test each variant renders correctly
  });
});

Read the full file on GitHub · 94 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. 1mo ago First seen · 94 lines · 21 tokens per session scan A 8638b2a1fa66

Subscribe to this mod's changes

erne-component is a command published in the GitHub repository JubaKitiashvili/everything-react-native-expo (50 stars, last pushed 1mo ago), licensed MIT. It adds 21 tokens to every session and 690 once invoked, about $0.0001 per session on Opus 5.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-10-09.

Related

erne-component compared with commands from other repositories

erne-component next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
erne-componentJubaKitiashvili/everything-react-native-expoCommand501mo agoMITA21Claude Code
swift-tddOkminLee/everything-claude-code-iosCommand588mo agoMITA33Claude Code
tdddinhquan/claude-ios-toolkitCommand410mo agononeA0Claude Code
app-store-auditmjmirza/app-store-complianceCommand10ktodaynoneA35Claude Code
react-nativegetsentry/toolkitCommand983todaynoneA0Claude Code
tddcfrs2005/claude-initCommand1.4k8mo agoMITA37Claude Code
tddcraigcossairt/trellisCommand57d agoMITA48Claude Code