.claude/skills/component/SKILL.md
Creates a new Astro component following this project's conventions. Use when the user asks to create a new section, component, or UI element.
npx skillsauth add aanjaneyasinghdhoni/portfolio componentInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Create a new .astro component in src/components/. Follow every rule below — no exceptions.
---
// TypeScript props interface (always explicit, never `any`)
interface Props {
propName: string;
}
const { propName } = Astro.props;
---
<!-- HTML -->
<style>
/* Scoped CSS */
</style>
.container class for max-width and paddingpadding: 6rem 0id attribute matching the nav anchor (e.g. id="skills")data-reveal (fade in on scroll)data-reveal-stagger on the parentprefers-reduced-motion check (already handled by reveal.css)<p class="section-label">// label text</p><h2 class="section-title">TITLE</h2>mono — never inline font-family<img> needs altaria-label<article>, <section>, <time>, <address>background: var(--bg-elevated), border: 1px solid var(--border)clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%)transform: translateY(-2px), border-color: var(--gold-dim)color: var(--gold) with font-family: var(--font-mono)Remind the user to import and add the component to src/pages/index.astro.
testing
Audits SEO quality of a page or component. Use when the user asks to check SEO, meta tags, or discoverability.
development
Industry-standard code review. Use when the user asks to review code, check a file, or audit changes.
development
Audits frontend performance of a page or component. Use when the user asks to check performance, speed, or Core Web Vitals.
development
Generates innovative ideas to improve the portfolio website — new sections, features, interactions, and content angles. Use when the user wants creative direction for the site, wants to stand out, or asks what could be better/added.