Coding
PromptBeginner5 minmarkdown
Markdown Converter
Agent skill for markdown-converter
7
- https://docs.livekit.io
Sign in to like and favorite skills
Livekit API Docs:
Favor existing components over creating new ones.
Before creating a new component, check if an existing component can satisfy the requirements through its props and parameters.
Bad:
// Creating a new component that duplicates functionality export function FormattedDate({ date, variant }) { // Implementation that duplicates existing functionality return <span>{/* formatted date */}</span> }
Good:
// Using an existing component with appropriate parameters import { DateTime } from "./DateTime" // In your render function <DateTime date={date} variant={variant} noTrigger={true} />
Avoid duplicating code in TypeScript. Extract repeated logic into reusable functions, types, or constants. You may have to search the codebase to see if the method or type is already defined.
Bad:
// Duplicated type definitions interface User { id: string name: string } interface UserProfile { id: string name: string } // Magic numbers repeated const pageSize = 10 const itemsPerPage = 10
Good:
// Reusable type and constant type User = { id: string name: string } const PAGE_SIZE = 10