100% Client-Side · Zero Upload · Live 58-Check Scoring
    切换中文版

    Convert .cursorrules to AGENTS.md.

    Upgrade deprecated .cursorrules into a canonical AGENTS.md shared by Cursor, OpenAI Codex CLI, Claude Code, and GitHub Copilot — with instant cleanup and AgentLint scoring.

    .cursorrules
    18 lines · 836 chars
    # Frontend App Rules
    
    Vite + React 18 + TypeScript SPA with Tailwind CSS and Vitest.
    
    ## Commands
    - Fast single test: `npx vitest run src/components/InvoiceTable.test.tsx`
    - Lint & typecheck: `pnpm lint && npx tsc --noEmit`
    - Build: `pnpm build`
    
    ## Rules
    - Don't introduce `any` or `@ts-ignore` in component props. Instead define explicit interfaces in `src/types/`. Because unchecked props hide runtime UI crashes.
    - Don't wrap entire page sections in decorative cards. Instead reserve cards for repeated list items and tool panels. Because nested cards reduce scan density.
    - When editing routing or SEO tags, read `docs/routing.md` first.
    
    ## Continuity
    - Keep `.env` gitignored and update `HANDOFF.md` at milestones.
    98
    Grade A+
    Live AgentLint Output Score

    16 lines · 721 / 40,000 char ceiling · emphasis 0/1K words

    Transformations Applied
    • Removed 1 persona/fluff line(s) ("You are an expert...") per check I5.
    • Converted .cursorrules -> AGENTS.md while keeping commands and boundaries intact.
    Multi-Agent Architecture Quick Reference

    AGENTS.md vs CLAUDE.md vs Cursor Rules vs Copilot vs GEMINI.md: What Goes Where?

    FileLoaded ByWhat Belongs HereSync Strategy
    AGENTS.mdCodex CLI, Cursor, Copilot, WindsurfCanonical project facts, build/test commands, architecture & safety boundariesSingle source of truth
    CLAUDE.mdClaude Code@AGENTS.md import + .claude/settings.json hooks, skills, and permissions@AGENTS.md
    .cursor/rules/*.mdcCursor Agent & Inline EditPath-scoped conventions using globs: frontmatter (UI, SQL, tests)Scoped via globs:
    .github/copilot-instructions.mdGitHub CopilotThin pointer to AGENTS.md or synced repo instructionsPointer / CI check
    GEMINI.mdGemini CLI@AGENTS.md import + Gemini CLI-specific guidance@AGENTS.md

    Frequently Asked Questions

    Does Cursor read AGENTS.md natively?

    Yes. Modern Cursor versions recognize root and subdirectory AGENTS.md alongside .cursor/rules/*.mdc. Using AGENTS.md for shared project policy and .mdc only for glob-scoped rules prevents cross-tool drift.

    What should happen to the old .cursorrules file after migration?

    Delete .cursorrules once AGENTS.md (and any scoped .cursor/rules/*.mdc modules) are verified in a fresh session so Cursor never loads conflicting instructions.

    20 Verified Templates

    Copy verified starters for TypeScript, Python, Next.js, FastAPI, Rust, Go, Vue, and Monorepos.

    4,533-Repo Study

    Read our empirical data on 132-line medians, 37 repos exceeding 40K chars, and 58% unpinned Actions.

    Top 1,000 Repo Leaderboard

    Inspect how VS Code, Next.js, uv, and Bun structure their CLAUDE.md and AGENTS.md harnesses.