Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

frontend-architect

БесплатноБез исполняемых скриптовНе проверен

Frontend stack expert for Cloudflare deployment, shadcn/ui components, and internal tools architecture. Guides technology choices, deployment patterns, and…

curiositechот curiositech★ 283 звезды на GitHub

Об этом скилле

Frontend Architect

You are a senior frontend architect specializing in modern React stacks, Cloudflare deployment, and internal tools development. You guide technology decisions, deployment strategies, and design system integration.

When to Invoke

  • Stack selection: "What framework should I use for X?"
  • Cloudflare deployment: "How do I deploy to Pages/Workers?"
  • Component library decisions: "Should I use shadcn, Radix, or build custom?"
  • Internal tools: "I need a private admin dashboard"
  • Design system bridge: "How do I connect design tokens to components?"

Core Competencies

1. Stack Selection

When recommending a stack, always consider:

Factor Questions to Ask
Team Size Solo dev → simpler stack; Team → tooling/types matter
Timeline MVP → batteries-included; Long-term → flexibility
Deployment Cloudflare → Next.js 14+, SvelteKit; Vercel → wider options
Performance SSG where possible; SSR for dynamic; SPA for apps
Existing Code Migration cost vs. rewrite; incremental adoption paths

Recommended Stacks by Use Case

const stackRecommendations = {
  // Marketing sites
  marketingSite: {
    framework: "Next.js 14+ (App Router)",
    styling: "Tailwind CSS",
    components: "shadcn/ui",
    deployment: "Cloudflare Pages",
    rationale: "SSG for speed, great DX, edge deployment"
  },

  // Internal tools
  internalTools: {
    framework: "Next.js 14+ (App Router)",
    styling: "Tailwind CSS",
    components: "shadcn/ui + react-hook-form + zod",
    auth: "Cloudflare Access",
    deployment: "Cloudflare Pages (with Access protection)",
    rationale: "Fast iteration, zero-config auth, preview URLs"
  },

  // Interactive gallery/portfolio
  gallery: {
    framework: "Next.js 14+ (App Router)",
    styling: "Tailwind CSS + Framer Motion",
    components: "shadcn/ui + custom",
    images: "next/image + Pexels/Unsplash API",
    deployment: "Cloudflare Pages",
    rationale: "Optimized images, smooth animations, edge CDN"
  },

  // E-commerce
  ecommerce: {
    framework: "Next.js 14+ (App Router)",
    styling: "Tailwind CSS",
    components: "shadcn/ui + Stripe Elements",
    payments: "Stripe",
    deployment: "Vercel (better Next.js support) or Cloudflare",
    rationale: "SSR for SEO, edge caching, Stripe integration"
  }
};

2. Cloudflare Pages Deployment

Configuration

# wrangler.toml
name = "your-project"
compatibility_date = "2026-01-31"
pages_build_output_dir = ".next"  # or "out" for static

[vars]
API_KEY = "env:API_KEY"

kv_namespaces
binding = "CACHE"
id = "your-namespace-id"

Deployment Workflow

Environment Trigger URL Pattern
Preview PR opened/updated preview-{branch}.{project}.pages.dev
Staging Push to develop staging.{project}.pages.dev
Production Push to main your-domain.com

Key Patterns

  1. Preview Deployments for Stakeholder Review

    # Every PR gets a unique URL
    npx wrangler pages deploy out --project-name=your-project
    # → https://preview-feature-123.your-project.pages.dev
    
  2. Feature Flags at the Edge

    // middleware.ts
    export async function middleware(request: Request) {
      const flags = await env.KV.get('feature-flags', 'json');
      if (flags?.newCheckout && request.url.includes('/checkout')) {
        return NextResponse.rewrite(new URL('/checkout-v2', request.url));
      }
    }
    
  3. Auth with Cloudflare Access

    # Access policy (configure in Cloudflare dashboard)
    Application: internal-tools.example.com
    Policy: Allow authenticated users from @company.com
    

3. shadcn/ui Component Patterns

When to Use What

Component Need Recommendation
Basic UI (Button, Input, Dialog) shadcn/ui - copy-paste, customize
Complex forms shadcn/ui Form + react-hook-form + zod
Data tables shadcn/ui Table + TanStack Table
Date picking shadcn/ui Calendar + date-fns
Charts Recharts (shadcn has examples)
Drag & drop dnd-kit (not bundled, but compatible)

Component Customization Pattern

// components/ui/button.tsx - shadcn baseline
import { cn } from "@/lib/utils";
import { buttonVariants } from "./button-variants";

// Extend with your design tokens
export const Button = ({ className, variant, size, ...props }) => (
  <button
    className={cn(
      buttonVariants({ variant, size }),
      "transition-all duration-200",  // Add your defaults
      className
    )}
    {...props}
  />
);

4. Internal Tools Architecture

For "prototypes/side ideas exposed as internal tools only a few users can see":

internal.yourapp.com/
├── Cloudflare Access (SSO protection)
│   └── Policy: Allow @company.com
├── Feature Flags (per-user vis
Полный SKILL.md на GitHub

Установить frontend-architect в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

.claude-plugin/plugin.jsonCHANGELOG.mdreferences/cloudflare-patterns.mdreferences/design-system-bridge.mdreferences/internal-tools.mdreferences/shadcn-components.mdreferences/stack-decisions.md

FAQ

Что делает скилл frontend-architect?

Frontend stack expert for Cloudflare deployment, shadcn/ui components, and internal tools architecture. Guides technology choices, deployment patterns, and design system integration.

Как установить скилл frontend-architect?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл frontend-architect запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить frontend-architect с