agentleFS
mikeoptimaxmikeoptimax/claude-frontend-skills-pack/CLAUDE.md

claude-frontend-skills-pack

CLAUDE.md17 starsChanged 9 months agoMITView on GitHub

Drop this file in your project root. Claude Code reads it automatically. Install components: Browse the full catalog: https://21st.dev/community/components Always check 21st.dev before writing components from scratch. DO NOT install 21st.dev components and then write custom ones instead. After installing a component with npx shadcn@latest add, you MUST:

The file

Show its rules and text

We split this CLAUDE.md into the rules it gives an agent

13 rules. About 0 are common, 10 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create distinctive, production-grade interfaces.

    line 6
  2. Distinctive:

    No Inter, Roboto, Poppins, Montserrat, Open Sans

    line 7
  3. Distinctive:

    No purple gradients on white backgrounds

    line 8
  4. Distinctive:

    Commit to a bold aesthetic direction before writing code

    line 10
  5. Distinctive:

    Before writing any UI component from scratch, check if a production-ready version exists at https://21st.dev

    line 13
  6. Distinctive:

    Always check 21st.dev before writing components from scratch.

    line 82
  7. Very specific:

    After installing a component with npx shadcn@latest add, you MUST:

    line 88
  8. Very specific:

    Use next/font/google for all fonts (auto-optimized, self-hosted).

    line 116
  9. Distinctive:

    Always pair a display font + body font.

    line 125
  10. Very specific:

    Only 'use client' when actually needed (interactivity, event listeners, browser APIs)

    line 129
  11. Distinctive:

    Use Framer Motion for scroll reveals and transitions

    line 143
  12. Distinctive:

    Keep animations purposeful — enhance, don't distract

    line 146
  13. Distinctive:

    Add motion with Framer Motion

    line 154

≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

Frontend Development Instructions

Drop this file in your project root. Claude Code reads it automatically.

Design Philosophy

Create distinctive, production-grade interfaces. No generic "AI slop."

  • No Inter, Roboto, Poppins, Montserrat, Open Sans
  • No purple gradients on white backgrounds
  • No cookie-cutter layouts
  • Commit to a bold aesthetic direction before writing code

Component Source: 21st.dev

Before writing any UI component from scratch, check if a production-ready version exists at https://21st.dev

Install components:

npx shadcn@latest add "[component-url-from-21st.dev]"

Browse the full catalog: https://21st.dev/community/components

Marketing Blocks

UI Components

Always check 21st.dev before writing components from scratch.

CRITICAL: Actually USE Installed Components

DO NOT install 21st.dev components and then write custom ones instead.

After installing a component with npx shadcn@latest add, you MUST:

  1. Import it in the page/layout that needs it:
    import { FloatingNav } from "@/components/ui/floating-navbar"
    import { AnimatedTestimonials } from "@/components/ui/animated-testimonials"
  2. Replace any hand-written version of the same component type. If you installed a navbar component, DELETE your custom navbar and use the installed one.
  3. Read the component file (components/ui/[name].tsx) to understand its props, then pass the correct data:
    // Read the component to see what props it expects
    // Then wire it in with real data:
    <FloatingNav navItems={[
      { name: "Features", link: "#features" },
      { name: "Pricing", link: "#pricing" },
    ]} />
  4. Check for required config — some components need:
    • Image domains in next.config.js (for components using next/image)
    • Additional dependencies (check imports in the component file)
    • Tailwind config extensions (check for custom classes)

The rule: If a 21st.dev component is installed in components/ui/, it MUST be imported and used. No orphaned installs.

Typography

Use next/font/google for all fonts (auto-optimized, self-hosted).

Banned: Inter, Roboto, Poppins, Montserrat, Open Sans, Playfair Display

Recommended display fonts: Sora, Elms Sans, Vend Sans, Zalando Sans Recommended body fonts: Manrope, Figtree, Source Sans 3, Stack Sans Text Recommended serif: Bacasime Antique, Gentium Plus, Libertinus Serif Recommended mono: SUSE Mono, JetBrains Mono

Always pair a display font + body font. Variable fonts preferred.

Next.js 15 Patterns

  • App Router with Server Components by default
  • Only 'use client' when actually needed (interactivity, event listeners, browser APIs)
  • Suspense boundaries with loading.tsx
  • next/image for all images
  • Metadata API for SEO
  • Server Actions for forms

Accessibility (WCAG 2.1 AA)

  • Semantic HTML (button, nav, main, article — not div for everything)
  • ARIA labels on all interactive elements
  • 4.5:1 contrast ratio for text
  • Keyboard navigable
  • Skip-to-content link

Motion & Animation

  • Use Framer Motion for scroll reveals and transitions
  • Stagger child animations on viewport entry
  • Hover micro-interactions on cards and buttons
  • Keep animations purposeful — enhance, don't distract

When User Asks to Build UI

  1. Pick a bold aesthetic direction (or ask)
  2. Browse 21st.dev for matching components
  3. Install via npx shadcn@latest add "[url]"
  4. Customize with Tailwind
  5. Apply Next.js patterns
  6. Add motion with Framer Motion
  7. Verify accessibility

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.