From 12585145a3d5d8a532372a43b62ddbccb899a84a Mon Sep 17 00:00:00 2001 From: rohan-tessl Date: Wed, 6 May 2026 10:38:43 +0530 Subject: [PATCH] feat: improve 5 lowest-scoring skill definitions --- .agents/skills/building-components/SKILL.md | 56 ++- .agents/skills/databricks-core/SKILL.md | 2 +- .agents/skills/seo-audit/SKILL.md | 464 ++---------------- .agents/skills/vercel-cli/SKILL.md | 6 +- .../vercel-composition-patterns/SKILL.md | 115 ++--- 5 files changed, 154 insertions(+), 489 deletions(-) diff --git a/.agents/skills/building-components/SKILL.md b/.agents/skills/building-components/SKILL.md index b64fb6a..5a4dfe1 100644 --- a/.agents/skills/building-components/SKILL.md +++ b/.agents/skills/building-components/SKILL.md @@ -1,22 +1,56 @@ --- name: building-components -description: Guide for building modern, accessible, and composable UI components. Use when building new components, implementing accessibility, creating composable APIs, setting up design tokens, publishing to npm/registry, or writing component documentation. +description: "Guide for building modern, accessible, and composable UI components. Use when building new components, implementing accessibility, creating composable APIs, setting up design tokens, publishing to npm/registry, or writing component documentation." --- # Building Components -## When to use this skill +## Workflow -Use when the user is: +Follow this sequence when building a new component: -- Building new UI components (primitives, components, blocks, templates) -- Implementing accessibility features (ARIA, keyboard navigation, focus management) -- Creating composable component APIs (slots, render props, controlled/uncontrolled state) -- Setting up design tokens and theming systems -- Publishing components to npm or a registry -- Writing component documentation -- Implementing polymorphism or as-child patterns -- Working with data attributes for styling/state +1. **Define the API** -- Decide on props, slots, and controlled/uncontrolled state. See [composition.mdx](./references/composition.mdx) and [state.mdx](./references/state.mdx). +2. **Implement the component** -- Use composition patterns (children over render props, explicit variants over boolean flags). See [principles.mdx](./references/principles.mdx). +3. **Add accessibility** -- Add ARIA roles, keyboard navigation, and focus management. See [accessibility.mdx](./references/accessibility.mdx). +4. **Style with data attributes** -- Use `data-*` attributes for state-driven styling rather than className toggling. See [data-attributes.mdx](./references/data-attributes.mdx) and [styling.mdx](./references/styling.mdx). +5. **Export types** -- Co-locate TypeScript types with the component. See [types.mdx](./references/types.mdx). +6. **Validate** -- Verify: ARIA roles present, keyboard navigation works, TypeScript types exported, design tokens used (no raw color values). +7. **Publish** -- Publish to npm or a registry. See [npm.mdx](./references/npm.mdx) or [registry.mdx](./references/registry.mdx). + +## Quick Example + +```tsx +import { forwardRef } from "react"; + +interface ButtonProps extends React.ButtonHTMLAttributes { + variant?: "primary" | "secondary" | "ghost"; + size?: "sm" | "md" | "lg"; +} + +const Button = forwardRef( + ({ variant = "primary", size = "md", children, ...props }, ref) => ( + + ) +); +Button.displayName = "Button"; +``` + +## Decision Tree + +- **Building a primitive** -- See [definitions.mdx](./references/definitions.mdx) + [composition.mdx](./references/composition.mdx) +- **Adding polymorphism** -- See [as-child.mdx](./references/as-child.mdx) + [polymorphism.mdx](./references/polymorphism.mdx) +- **Setting up theming** -- See [design-tokens.mdx](./references/design-tokens.mdx) +- **Publishing to a registry** -- See [registry.mdx](./references/registry.mdx) or [npm.mdx](./references/npm.mdx) +- **Writing docs** -- See [docs.mdx](./references/docs.mdx) +- **Marketplace distribution** -- See [marketplaces.mdx](./references/marketplaces.mdx) ## References diff --git a/.agents/skills/databricks-core/SKILL.md b/.agents/skills/databricks-core/SKILL.md index 79a2465..23ce752 100644 --- a/.agents/skills/databricks-core/SKILL.md +++ b/.agents/skills/databricks-core/SKILL.md @@ -1,6 +1,6 @@ --- name: "databricks-core" -description: "Databricks CLI operations: auth, profiles, data exploration, and bundles. Contains up-to-date guidelines for Databricks-related CLI tasks." +description: "Use when the user asks about Databricks CLI commands, authentication setup, workspace configuration, profile management, data exploration via Unity Catalog, or Databricks Asset Bundle (DAB) deployment. Configures Databricks auth and profiles, explores catalog/schema/table data, and deploys bundles." compatibility: Requires databricks CLI (>= v0.292.0) metadata: version: "0.1.0" diff --git a/.agents/skills/seo-audit/SKILL.md b/.agents/skills/seo-audit/SKILL.md index 06be685..6931cf3 100644 --- a/.agents/skills/seo-audit/SKILL.md +++ b/.agents/skills/seo-audit/SKILL.md @@ -1,450 +1,92 @@ --- name: seo-audit -description: When the user wants to audit, review, or diagnose SEO issues on their site. Also use when the user mentions "SEO audit," "technical SEO," "why am I not ranking," "SEO issues," "on-page SEO," "meta tags review," "SEO health check," "my traffic dropped," "lost rankings," "not showing up in Google," "site isn't ranking," "Google update hit me," "page speed," "core web vitals," "crawl errors," or "indexing issues." Use this even if the user just says something vague like "my SEO is bad" or "help with SEO" — start with an audit. For building pages at scale to target keywords, see programmatic-seo. For adding structured data, see schema-markup. For AI search optimization, see ai-seo. +description: "Use when the user wants to audit, review, or diagnose SEO issues on their site. Triggers on 'SEO audit', 'technical SEO', 'why am I not ranking', 'SEO issues', 'on-page SEO', 'meta tags review', 'SEO health check', 'my traffic dropped', 'lost rankings', 'not showing up in Google', 'core web vitals', 'crawl errors', or 'indexing issues'. For building pages at scale, see programmatic-seo. For structured data, see schema-markup. For AI search optimization, see ai-seo." metadata: version: 1.1.0 --- # SEO Audit -You are an expert in search engine optimization. Your goal is to identify SEO issues and provide actionable recommendations to improve organic search performance. - ## Initial Assessment -**Check for product marketing context first:** -If `.agents/product-marketing-context.md` exists (or `.claude/product-marketing-context.md` in older setups), read it before asking questions. Use that context and only ask for information not already covered or specific to this task. - -Before auditing, understand: - -1. **Site Context** - - What type of site? (SaaS, e-commerce, blog, etc.) - - What's the primary business goal for SEO? - - What keywords/topics are priorities? - -2. **Current State** - - Any known issues or concerns? - - Current organic traffic level? - - Recent changes or migrations? - -3. **Scope** - - Full site audit or specific pages? - - Technical + on-page, or one focus area? - - Access to Search Console / analytics? - ---- - -## Audit Framework - -### Schema Markup Detection Limitation - -**`web_fetch` and `curl` cannot reliably detect structured data / schema markup.** - -Many CMS plugins (AIOSEO, Yoast, RankMath) inject JSON-LD via client-side JavaScript — it won't appear in static HTML or `web_fetch` output (which strips `