create-component
Skill7 starsChanged 3 months agoISCView on GitHub
Create new Preact components following project conventions with proper file structure, TypeScript types, and Tailwind styling. Use when adding UI components, sections, or interactive elements to the site.
12 other projects use a version of this.
Adopted by
Most recently taken up by
- buildpad-ai/skillstheir own version, first seen Oct 16, 2026
- MUZEEBURRAHAMAN/forgetheir own version, first seen Oct 15, 2026
- monegit/agent-skillstheir own version, first seen Oct 13, 2026
- Simone-Tarantino/godot-superpowerstheir own version, first seen Oct 11, 2026
- Endava/BEEQtheir own version, first seen Oct 8, 2026
- thoughtfulllc/gridlandtheir own version, first seen Oct 8, 2026
Other versions12 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 12
- gluestack/gluestack-ui★ 5.3ksame name
- DataDog/datadog-agent★ 3.8ksame name
- compose-miuix-ui/miuix★ 1.6ksame name
- thoughtfulllc/gridland★ 363same name
- Endava/BEEQ★ 162same name
- incluud/astro-agent-skills★ 10same name
- viknesh20-20/claude-code-tool-kit★ 7same name
- Simone-Tarantino/godot-superpowers★ 2same name
- buildpad-ai/skills★ 1same name
- MUZEEBURRAHAMAN/forge★ 1same name
2 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- add-primitiveSkill
- add-providerSkill
- advisorSkill
- co-authorSkill
- create-pageSkill
- generate-llmsSkill
- page-stylingSkill
- refresh-provider-docsSkill
- semantic-commitSkill
- theme-stylingSkill
- write-e2e-testSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
20 rules. 0 are common, 5 are distinctive, and 15 are very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
15
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Create Preact components for agentconfig.org following project conventions.
- Very specific: line 12
Every component lives in its own folder under site/src/components/:
- Very specific: line 45
Explicit return types: - Always specify : ReactNode
- Very specific: line 46
Interface over type: - Use interface for props
- Very specific: line 47
JSDoc comments: - Document props with / */
- Very specific: line 48
No
any: - Use proper types or unknown - Very specific: line 49
Readonly arrays: - Use readonly for array props
- Distinctive: line 66
Tailwind utilities: - Use Tailwind classes for all styling
- Very specific: line 67
cn() helper: - Use cn() from @/lib/utils for conditional classes
- Very specific: line 68
Mobile-first: - Start with mobile, add md: and lg: for larger screens
- Distinctive: line 69
Theme-aware: - Use CSS variables for theme colors
- Very specific: line 87
Always include className prop for style overrides
- Very specific: line 88
Use children for flexible content
- Distinctive: line 89
Use discriminated unions for variants
- Very specific: line 101
Use specific types, not generic Function
- Very specific: line 115
Semantic HTML: - Use button for buttons, nav for navigation
- Very specific: line 116
ARIA attributes: - Add aria-label, aria-expanded for interactive elements
- Distinctive: line 117
Keyboard navigation: - Ensure focusable and keyboard-usable
- Very specific: line 118
Focus visible: - Use focus-visible: for focus rings
- Distinctive: line 130
Before considering the component complete:
“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Create Component
Create Preact components for agentconfig.org following project conventions.
File Structure
Every component lives in its own folder under site/src/components/:
site/src/components/
└── {ComponentName}/
├── index.ts # Re-exports component and types
└── {ComponentName}.tsx # Main implementationStep-by-Step Process
- Create the component folder in
site/src/components/{ComponentName}/ - Copy the template from
assets/component-template.tsx - Rename and customize the component
- Create index.ts with exports
- Import in App.tsx or parent component
Template Files
index.ts
export { ComponentName } from './ComponentName'
export type { ComponentNameProps } from './ComponentName'ComponentName.tsx
See assets/component-template.tsx for the full template.
TypeScript Rules
- No semicolons - Omit semicolons at end of statements
- Explicit return types - Always specify
: ReactNode - Interface over type - Use
interfacefor props - JSDoc comments - Document props with
/** */ - No
any- Use proper types orunknown - Readonly arrays - Use
readonlyfor array props
// Good
interface ListProps {
/** Items to display in the list */
readonly items: readonly string[]
}
// Bad
type ListProps = {
items: string[];
}Styling Rules
- Tailwind utilities - Use Tailwind classes for all styling
- cn() helper - Use
cn()from@/lib/utilsfor conditional classes - Mobile-first - Start with mobile, add
md:andlg:for larger screens - Theme-aware - Use CSS variables for theme colors
// Good - mobile first, theme aware
<div className="p-4 md:p-6 lg:p-8 bg-background text-foreground">
// Bad - desktop first
<div className="p-8 sm:p-4">Component Guidelines
Keep Components Focused
- One component = one responsibility
- Under 150 lines (split if longer)
- Extract complex logic into custom hooks in
site/src/hooks/
Props Design
- Always include
classNameprop for style overrides - Use
childrenfor flexible content - Use discriminated unions for variants
interface ButtonProps {
variant: 'primary' | 'secondary' | 'ghost'
className?: string
children?: ReactNode
}Event Handlers
- Prefix with
on:onClick,onToggle,onSelect - Use specific types, not generic
Function
interface Props {
// Good
onSelect: (id: string) => void
// Bad
onSelect: Function
}Accessibility
- Semantic HTML - Use
buttonfor buttons,navfor navigation - ARIA attributes - Add
aria-label,aria-expandedfor interactive elements - Keyboard navigation - Ensure focusable and keyboard-usable
- Focus visible - Use
focus-visible:for focus rings
<button
aria-expanded={isOpen}
aria-controls="menu-content"
className="focus-visible:ring-2 focus-visible:ring-primary"
>Checklist
Before considering the component complete:
- Component is in its own folder with
index.ts - All props have TypeScript types with JSDoc comments
- Uses
cn()for className merging - Mobile-first responsive design
- Theme-aware colors (CSS variables)
- Accessible (semantic HTML, ARIA, keyboard)
- Under 150 lines (or appropriately split)
- Named export (not default)
- No semicolons
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

