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

    Convert CLAUDE.md to Copilot Instructions.

    Generate .github/copilot-instructions.md from your existing CLAUDE.md — stripping Claude-only hooks and skills while keeping build commands, architecture boundaries, and safety rules intact.

    CLAUDE.md
    26 lines · 1,017 chars
    # Acme Billing API
    
    Node 22 + TypeScript REST service handling Stripe webhooks, idempotent ledger writes, and PDF invoices.
    
    ## Commands
    
    - Fast single test: `npx vitest run src/billing/webhook.test.ts`
    - Full test suite: `pnpm test`
    - Typecheck & lint: `npx tsc --noEmit && pnpm lint`
    - Build: `pnpm build`
    
    ## Rules
    
    - Don't bypass Zod validation on webhook routes. Instead parse payloads in `src/webhooks/schema.ts`. Because unvalidated retries previously caused duplicate charges.
    - Don't mix package managers. Instead use `pnpm` exclusively. Because competing lockfiles break CI caching.
    - When changing SQL schemas, read `docs/migrations.md` before editing Prisma files.
    
    ## Continuity
    
    - Record verified test outputs in `HANDOFF.md` before ending multi-step sessions.
    100
    Grade A+
    Live AgentLint Output Score

    20 lines · 774 / 40,000 char ceiling · emphasis 0/1K words

    Transformations Applied
    • Isolated 4 Claude Code-specific line(s) (hooks/skills/.claude/) so GitHub Copilot doesn't receive foreign runtime instructions.
    • Converted CLAUDE.md -> .github/copilot-instructions.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

    Where does GitHub Copilot look for repository instructions?

    GitHub Copilot automatically loads .github/copilot-instructions.md for Copilot Chat, code review, and the Copilot coding agent, and also reads AGENTS.md in supported workflows.

    How do I keep CLAUDE.md and copilot-instructions.md in sync?

    Switch to Pointer Mode to make AGENTS.md your canonical rule file, then keep both CLAUDE.md and .github/copilot-instructions.md as thin pointers backed by agentlint check in CI.

    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.