Cline rules
.clinerulesCline rulesroot
Quality
97/100
Scores the file, not the repository.Length
1,004 words
19 headings · 1 code blocksRepository
31k
— · pushed 4 days agoLast changed
2 days ago
First indexed 2 days ago.1<!-- AUTO-GENERATED from AGENTS.md — do not edit directly.2 Run `bash scripts/sync-agent-rules.sh` to regenerate. -->34<!-- BEGIN:nextjs-agent-rules -->5# This is NOT the Next.js you know67This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in `node_modules/next/dist/docs/` before writing any code. Heed deprecation notices.8<!-- END:nextjs-agent-rules -->910# Website Reverse-Engineer Template1112## What This Is13A reusable template for reverse-engineering any website into a clean, modern Next.js codebase using AI coding agents. The Next.js + shadcn/ui + Tailwind v4 base is pre-scaffolded — just run `/clone-website <url1> [<url2> ...]`.1415## Tech Stack16- **Framework:** Next.js 16 (App Router, React 19, TypeScript strict)17- **UI:** shadcn/ui (Radix primitives, Tailwind CSS v4, `cn()` utility)18- **Icons:** Lucide React (default — will be replaced/supplemented by extracted SVGs)19- **Styling:** Tailwind CSS v4 with oklch design tokens20- **Deployment:** Vercel2122## Commands23- `npm run dev` — Start dev server24- `npm run build` — Production build25- `npm run lint` — ESLint check26- `npm run typecheck` — TypeScript check27- `npm run check` — Run lint + typecheck + build2829## Code Style30- TypeScript strict mode, no `any`31- Named exports, PascalCase components, camelCase utils32- Tailwind utility classes, no inline styles33- 2-space indentation34- Responsive: mobile-first3536## Design Principles37- **Pixel-perfect emulation** — match the target's spacing, colors, typography exactly38- **No personal aesthetic changes during emulation phase** — match 1:1 first, customize later39- **Real content** — use actual text and assets from the target site, not placeholders40- **Beauty-first** — every pixel matters4142## Project Structure43```44src/45 app/ # Next.js routes46 components/ # React components47 ui/ # shadcn/ui primitives48 icons.tsx # Extracted SVG icons as React components49 lib/50 utils.ts # cn() utility (shadcn)51 types/ # TypeScript interfaces52 hooks/ # Custom React hooks53public/54 images/ # Downloaded images from target site55 videos/ # Downloaded videos from target site56 seo/ # Favicons, OG images, webmanifest57docs/58 research/ # Inspection output (design tokens, components, layout)59 design-references/ # Screenshots and visual references60scripts/ # Asset download scripts61```6263## MOST IMPORTANT NOTES64- When launching Claude Code agent teams, ALWAYS have each teammate work in their own worktree branch and merge everyone's work at the end, resolving any merge conflicts smartly since you are basically serving the orchestrator role and have full context to our goals, work given, work achieved, and desired outcomes.65- After editing `AGENTS.md`, run `bash scripts/sync-agent-rules.sh` to regenerate platform-specific instruction files.66- After editing `.claude/skills/clone-website/SKILL.md`, run `node scripts/sync-skills.mjs` to regenerate the skill for all platforms.6768# Website Inspection Guide6970## How to Reverse-Engineer Any Website7172This guide outlines what to capture when inspecting a target website via Chrome MCP or browser DevTools.7374## Phase 1: Visual Audit7576### Screenshots to Capture77- [ ] Every distinct page — desktop, tablet, mobile78- [ ] Dark mode variants (if applicable)79- [ ] Light mode variants (if applicable)80- [ ] Key interaction states (hover, active, open menus, modals)81- [ ] Loading/skeleton states82- [ ] Empty states83- [ ] Error states8485### Design Tokens to Extract86- [ ] **Colors** — background, text (primary/secondary/muted), accent, border, hover, error, success, warning87- [ ] **Typography** — font family, sizes (h1-h6, body, caption, label), weights, line heights, letter spacing88- [ ] **Spacing** — padding/margin patterns (look for a scale: 4px, 8px, 12px, 16px, 24px, 32px, etc.)89- [ ] **Border radius** — buttons, cards, avatars, inputs90- [ ] **Shadows/elevation** — card shadows, dropdown shadows, modal overlay91- [ ] **Breakpoints** — when does the layout shift? (inspect with DevTools responsive mode)92- [ ] **Icons** — which icon library? custom SVGs? sizes?93- [ ] **Avatars** — sizes, shapes, fallback behavior94- [ ] **Buttons** — all variants (primary, secondary, ghost, icon-only, danger)95- [ ] **Inputs** — text fields, textareas, selects, checkboxes, toggles9697## Phase 2: Component Inventory9899For each distinct UI component, document:1001. **Name** — what would you call this component?1012. **Structure** — what HTML elements / child components does it contain?1023. **Variants** — does it have different sizes, colors, or states?1034. **States** — default, hover, active, disabled, loading, error, empty1045. **Responsive behavior** — how does it change at different breakpoints?1056. **Interactions** — click, hover, focus, keyboard navigation1067. **Animations** — transitions, entrance/exit animations, micro-interactions107108### Common Components to Look For109- Navigation (top bar, sidebar, bottom bar)110- Cards / list items111- Buttons and links112- Forms and inputs113- Modals and dialogs114- Dropdowns and menus115- Tabs and segmented controls116- Avatars and user badges117- Loading skeletons118- Toast notifications119- Tooltips and popovers120121## Phase 3: Layout Architecture122123- [ ] **Grid system** — CSS Grid? Flexbox? Fixed widths?124- [ ] **Column layout** — how many columns at each breakpoint?125- [ ] **Max-width** — main content area max-width126- [ ] **Sticky elements** — header, sidebar, floating buttons127- [ ] **Z-index layers** — navigation, modals, tooltips, overlays128- [ ] **Scroll behavior** — infinite scroll, pagination, virtual scrolling129130## Phase 4: Technical Stack Analysis131132- [ ] **Framework** — React? Vue? Angular? Check `__NEXT_DATA__`, `__NUXT__`, `ng-version`133- [ ] **CSS approach** — Tailwind (utility classes), CSS Modules, Styled Components, Emotion, vanilla CSS134- [ ] **State management** — Redux (check DevTools), React Query, Zustand, Pinia135- [ ] **API patterns** — REST, GraphQL (check network tab for `/graphql` requests)136- [ ] **Font loading** — Google Fonts, self-hosted, system fonts137- [ ] **Image strategy** — CDN, lazy loading, srcset, WebP/AVIF138- [ ] **Animation library** — Framer Motion, GSAP, CSS transitions only139140## Phase 5: Documentation Output141142After inspection, create these files in `docs/research/`:1431. `DESIGN_TOKENS.md` — All extracted colors, typography, spacing1442. `COMPONENT_INVENTORY.md` — Every component with structure notes1453. `LAYOUT_ARCHITECTURE.md` — Page layouts, grid system, responsive behavior1464. `INTERACTION_PATTERNS.md` — Animations, transitions, hover states1475. `TECH_STACK_ANALYSIS.md` — What the site uses and our chosen equivalents148
Also in JCodesMore/ai-website-cloner-template
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| JCodesMore/ai-website-cloner-template.github/copilot-instructions.md · 31k | Copilot instructions | buildlint-formatstylearch+3 | 97/100 | 2 days ago | |
| JCodesMore/ai-website-cloner-templateAGENTS.md · 31k | AGENTS.md | buildlint-formatstylearch+1 | 97/100 | 2 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| bashdeban/fastmind.clinerules/.project-consistency-keeper2.md · 5 | Cline rules | setupbuildtestlint-format+11 | 100/100 | 3 days ago | |
| BryaanF/LiantPortfolio.clinerules/project-guidelines.md · 0 | Cline rules | buildstylearchgit+2 | 96/100 | 3 days ago | |
| u9401066/zotero-keepervscode-extension/resources/repo-assets/pubmed-search-mcp/.clinerules/50-pubmed-project.md · 7 | Cline rules | testlint-formatstylearch+1 | 94/100 | 3 days ago | |
| u9401066/zotero-keeper.clinerules/50-pubmed-project.md · 7 | Cline rules | testlint-formatstylearch+1 | 94/100 | 3 days ago | |
| VaillerTeeter/HoshimiNest.clinerules/project-identity.md · 1 | Cline rules | setuparchtypesdo-not | 93/100 | yesterday | |
| HerringtonDarkholme/megarepo.clinerules/02-development.md · 17 | Cline rules | setupbuildteststyle+3 | 92/100 | 3 days ago | |
| blendsdk/codeops-mcp.clinerules/project.md · 0 | Cline rules | buildteststylearch+7 | 91/100 | 3 days ago | |
| u9401066/zotero-keepervscode-extension/resources/repo-assets/pubmed-search-mcp/.clinerules/60-pubmed-python.md · 7 | Cline rules | setuptestlint-formatstyle+2 | 86/100 | 3 days ago |
