Skip to content
OpenAgentSkill
Browsing is open · Catalog captured 2026-11-21 · Automatic updates and account services are paused.
Design & UI

dev-create-component

Use when adding a new UI component to the project - handles templates, props, and scoped styles.

herbert-julio-azion · Static checks on file

Installation

Read the source and dependencies before running a command. Copying does not install or execute anything.

npx skills add HerbertJulio/specialist-agent --skill dev-create-component

About this skill


name: dev-create-component description: "Use when adding a new UI component to the project - handles templates, props, and scoped styles." user-invocable: true argument-hint: "[ComponentName]" allowed-tools: Read, Write, Edit, Bash, Glob, Grep

Create an Astro component following docs/ARCHITECTURE.md section 5.

Component: $ARGUMENTS

Steps

  1. Read docs/ARCHITECTURE.md section 5.

  2. Determine the type:

    • Feature component -> src/components/ComponentName.astro
    • Shared component -> src/shared/components/ComponentName.astro
    • Layout -> src/layouts/LayoutName.astro
  3. Create the component with the standard template:

---
interface Props {
  // type all props
}

const { prop1, prop2 } = Astro.props
---

<div class="component-name">
  <!-- clean template -->
</div>

<style>
  /* scoped styles */
</style>
  1. Checklist:

    • Props interface defined
    • Props destructured from Astro.props
    • PascalCase.astro filename
    • Scoped <style> tag
    • No JavaScript shipped (zero JS)
    • No event handlers (use island if needed)
  2. Validate: npx astro check