CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

dev-create-component

Use when adding a new UI component to an existing module - handles templates, props, and test scaffolding.

Quality

81%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Create a React component following docs/ARCHITECTURE.md section 5.

Component: $ARGUMENTS

Steps

  1. Read docs/ARCHITECTURE.md section 5.

  2. Determine the type:

    • Feature component -> src/modules/[module]/components/ComponentName.tsx
    • Shared component -> src/shared/components/ComponentName.tsx
    • Page -> src/modules/[module]/pages/PageName.tsx
  3. Create the component with the standard template:

import { useState, useMemo, useCallback } from 'react'

interface ComponentNameProps {
  // type all props
}

export function ComponentName({ /* destructure props */ }: ComponentNameProps) {
  // 1. Stores (selectors)
  // 2. Hooks
  // 3. Local state (useState)
  // 4. Derived state (useMemo)
  // 5. Handlers (useCallback)

  return (
    <div>
      {/* clean JSX, < 100 lines */}
    </div>
  )
}
  1. Checklist:

    • Functional component (no class)
    • TypeScript props interface
    • Callback props typed (onSelect, onChange)
    • < 200 lines
    • PascalCase.tsx
  2. Validate: npx tsc --noEmit

Repository

fernandezbaptiste/specialist-agent

Path

packs/react/skills/dev-create-component/SKILL.md

Last updated
First committed

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.