TY

typescript-skills

Strict TypeScript coding standards for LlamaFarm projects.

Install

mkdir -p .claude/skills/typescript-skills && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/1722" && unzip -o skill.zip -d .claude/skills/typescript-skills && rm skill.zip

Installs to .claude/skills/typescript-skills

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Shared TypeScript best practices for Designer and Electron subsystems.
70 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Enforce strict TypeScript patterns
  • Implement Electron IPC types
  • Generate React components
  • Apply null safety checks
  • Define interface-based object shapes

How it works

The skill applies predefined TypeScript configurations and patterns to React and Electron subsystems. It enforces strict mode, explicit return types, and interface-based typing.

Inputs & outputs

You give it
TypeScript source code
You get back
Strictly typed, idiomatic TypeScript code

When to use typescript-skills

  • Apply strict typing patterns
  • Generate React components
  • Implement Electron IPC types

About this skill

TypeScript Skills for LlamaFarm

Shared TypeScript best practices for Designer (React) and Electron App subsystems.

Overview

This skill covers idiomatic TypeScript patterns for LlamaFarm's frontend applications:

  • designer/: React 18 + TanStack Query + TailwindCSS + Radix UI
  • electron-app/: Electron 28 + Electron Vite

Tech Stack

SubsystemFrameworkBuildKey Libraries
designerReact 18ViteTanStack Query, Radix UI, axios, react-router-dom
electron-appElectron 28electron-viteelectron-updater, axios

Configuration

Both projects use strict TypeScript:

{
  "strict": true,
  "noUnusedLocals": true,
  "noUnusedParameters": true,
  "noFallthroughCasesInSwitch": true
}

Core Principles

  1. Strict mode always - Never use any without explicit justification
  2. Prefer interfaces - Use interface for object shapes, type for unions/intersections
  3. Explicit return types - Always type public function returns
  4. Immutability - Use readonly and as const where applicable
  5. Null safety - Handle null/undefined explicitly, avoid non-null assertions

Related Documents

Quick Reference

React Component Pattern

interface Props {
  readonly title: string
  readonly onAction?: () => void
}

function MyComponent({ title, onAction }: Props): JSX.Element {
  return <button onClick={onAction}>{title}</button>
}

TanStack Query Hook Pattern

export const projectKeys = {
  all: ['projects'] as const,
  lists: () => [...projectKeys.all, 'list'] as const,
  detail: (id: string) => [...projectKeys.all, 'detail', id] as const,
}

export function useProject(id: string) {
  return useQuery({
    queryKey: projectKeys.detail(id),
    queryFn: () => fetchProject(id),
    enabled: !!id,
  })
}

Error Class Pattern

export class ApiError extends Error {
  constructor(
    message: string,
    public readonly status: number,
    public readonly response?: unknown
  ) {
    super(message)
    this.name = 'ApiError'
  }
}

Checklist Summary

CategoryCriticalHighMediumLow
Typing3421
Patterns2332
Testing2321
Security4210

When not to use it

  • Projects not using React or Electron
  • Codebases requiring loose typing

Prerequisites

React 18Electron 28TypeScript

Limitations

  • Restricted to React and Electron subsystems
  • Requires strict mode compliance

How it compares

Unlike manual coding, this skill enforces specific LlamaFarm-approved patterns and strict configuration defaults automatically.

Compared to similar skills

typescript-skills side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
typescript-skills (this skill)36moReviewIntermediate
typescript282moNo flagsBeginner
fullstack-guardian13moNo flagsAdvanced
react-patterns96moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry