Library by AY Automate

CLAUDE.md and AGENTS.md examples library

1,298 real files from 1,290 public GitHub repos, each analyzed by a script and linked to its source. Search them, filter by language, license and rules, and copy the ones whose license allows it.

Want the short list instead? Our curated guide walks through 12 of the best files and what each one does well.

1,298
files
1,290
repos
840
with a full excerpt
480
AGENTS.md files
Filters
File type
Sort by24 results
Jev score 94

orneryd/ui-grid

UI Grid: a Data Grid

5,382TypeScriptMITAGENTS.md53 linesCompleteness 74
CommandsArchitectureCode styleTestingGit workflowDo and do not

Rules sections in this file

  • Architecture Rules
    • **No DOM.** This package must never import browser APIs. It runs in Node, WASM, and browser alike.
    • **Pure functions preferred.** State lives in the controller (vanilla package); core provides stateless transforms.
    • **`GridOptions` is the source of truth.** Every feature is toggled via `enable*` booleans on `GridOptions`.
  • Do NOT
    • Add DOM or browser imports
    • Mutate input arrays — always return new arrays/objects
    • Add default exports — use named exports only
Full file, 53 lines
# @ornery/ui-grid-core — Agent Instructions
Pure TypeScript grid engine. Zero DOM dependencies. Provides the pipeline, sorting, filtering, grouping, pagination, cell editing, validation, export/import, infinite scroll, selection, tree-view, and i18n systems.
## Build & Test
```bash
npm run build:core # tsup → dist/
npm test --prefix projects/ui-grid-core # vitest (154 tests)
```
## Key Modules
| File | Responsibility |

Excerpt shown under the repo license. By orneryd, MIT, pushed 2026-09-18. View the file at commit 9756289

Jev score 93

openclaw/gogcli

Google Workspace in your terminal.

8,432GoMITAGENTS.md51 linesCompleteness 98
CommandsArchitectureCode styleTestingGit workflowDo and do not
Full file, 51 lines
# Repository Guidelines
## Project Structure
- `cmd/gog/`: CLI entrypoint.
- `internal/`: implementation (`cmd/`, Google API/OAuth, config/secrets, output/UI).
- Tests: `*_test.go` next to code; opt-in integration suite in `internal/integration/` (build-tagged).
- `bin/`: build outputs; `docs/`: specs/releasing; `scripts/`: release helpers + `scripts/gog.mjs`.
## Build, Test, and Development Commands
- `make` / `make build`: build `bin/gog`.
- `make tools`: install pinned dev tools into `.tools/`.
- `make fmt` / `make lint` / `make test` / `make ci`: format, lint, test, full local gate.

Excerpt shown under the repo license. By openclaw, MIT, pushed 2026-09-15. View the file at commit 469b823

Jev score 89

davila7/claude-code-templates

CLI tool for configuring and monitoring Claude Code

30,854PythonMITCLAUDE.md620 linesCompleteness 100
CommandsArchitectureCode styleTestingGit workflowDo and do not

Rules sections in this file

  • ⛔ CRITICAL: NEVER Hardcode Secrets or IDs
    • Use `process.env` (Node.js) or `os.environ.get()` (Python)
  • Critical Endpoints
    • Tracks component downloads for analytics
    • Used by CLI on every installation
    • Database: Supabase (component_downloads table)
  • Important Notes
    • **Component catalog**: Always regenerate after adding/modifying components
    • **API tests**: Required before production deploy (breaks download tracking)
    • **Secrets**: Never commit API keys (use environment variables)
Excerpt, 65 lines
# CLAUDE.md
This file provides guidance to Claude Code when working with this repository.
## Project Overview
Node.js CLI tool for managing Claude Code components (agents, commands, MCPs, hooks, settings) with a static website for browsing and installing components. The dashboard and its API routes are deployed on Cloudflare Pages, with supporting cron and monitoring tasks running as Cloudflare Workers.
## Essential Commands
```bash
# Development
npm install # Install dependencies
npm test # Run tests

Excerpt shown under the repo license. By davila7, MIT, pushed 2026-09-20. View the file at commit 463be29

Jev score 81

agentsmd/agents.md

AGENTS.md — a simple, open format for guiding coding agents

24,504TypeScriptMITAGENTS.md44 linesCompleteness 62
CommandsArchitectureCode styleTestingGit workflowDo and do not
Full file, 44 lines
# AGENTS Guidelines for This Repository
This repository contains a Next.js application located in the root of this repository. When
working on the project interactively with an agent (e.g. the Codex CLI) please follow
the guidelines below so that the development experience – in particular Hot Module
Replacement (HMR) – continues to work smoothly.
## 1. Use the Development Server, **not** `npm run build`
* **Always use `npm run dev` (or `pnpm dev`, `yarn dev`, etc.)** while iterating on the
application. This starts Next.js in development mode with hot-reload enabled.
* **Do _not_ run `npm run build` inside the agent session.** Running the production
build command switches the `.next` folder to production assets which disables hot
reload and can leave the development server in an inconsistent state. If a

Excerpt shown under the repo license. By agentsmd, MIT, pushed 2026-09-10. View the file at commit ba9474a

Jev score 76

enso-org/enso

Enso Analytics is a self-service data prep and analysis platform designed for data teams.

7,440JavaApache-2.0CLAUDE.md36 linesCompleteness 41
CommandsArchitectureCode styleTestingGit workflowDo and do not

Rules sections in this file

  • Constraints
    • Only the subset of Node APIs that `graaljs` polyfills is usable.
    • No dynamic `import()` of ESM — everything must end up CJS after bundling.
    • WebSocket support comes from the engine host, not `ws`; the bundle stubs this.
Full file, 36 lines
# ydoc-server-polyglot
The `ydoc-server` bundled with esbuild into a single CommonJS file so it can be
loaded by GraalJS inside the GraalVM engine process. Uses `commonjs` package
type (the rest of the pnpm workspace uses `module`).
## Why this exists
The Enso engine ships as a GraalVM process that already has a JS runtime
(GraalJS). Rather than requiring a separate Node.js to run the ydoc server next
to it, we bundle the server into a polyglot script the engine can embed. This is
the **production** deployment for the collaborative editing story.
## Build

Excerpt shown under the repo license. By enso-org, Apache-2.0, pushed 2026-08-10. View the file at commit 4135f92

Jev score 76

marcobambini/gravity

Gravity Programming Language

4,568CMITCLAUDE.md76 linesCompleteness 80
CommandsArchitectureCode styleTestingGit workflowDo and do not
Excerpt, 65 lines
# CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
## Project Overview
Gravity is a dynamically typed, embeddable programming language written in portable C99 with no external dependencies (except stdlib). It features Swift-like syntax and supports procedural, OOP, functional, and prototype-based programming paradigms. Originally developed for the Creo project for cross-platform iOS/Android scripting.
## Build Commands
```bash
make # Build the gravity CLI executable
make mode=debug # Debug build (-g -O0 -DDEBUG)
make lib # Build shared library (libgravity.dylib/so/dll)

Excerpt shown under the repo license. By marcobambini, MIT, pushed 2026-09-19. View the file at commit 088a1a9

Jev score 74

readthedocs/readthedocs.org

The source code that powers readthedocs.org

8,388PythonMITAGENTS.md100 linesCompleteness 70
CommandsArchitectureCode styleTestingGit workflowDo and do not
Excerpt, 70 lines
# AI Instructions for Read the Docs
This file lives in the `common` repo,
and is copied to each production repo.
Agents don't work with symlinks or submodules,
so this is best for now.
## Team interaction
We want all interaction in public to be between real people.
* **Never** comment on pull requests, commits, or other things as the user.
* Make all public-facing copy like commit messages and pull request descriptions for the reader, and not the author.
* Ensure everything is optimized for clarify, conciseness, and effective communication.

Excerpt shown under the repo license. By readthedocs, MIT, pushed 2026-09-20. View the file at commit 9163abe

Jev score 72

securego/gosec

Go security checker

8,948GoApache-2.0CLAUDE.md52 linesCompleteness 89
CommandsArchitectureCode styleTestingGit workflowDo and do not

Rules sections in this file

  • Adding Rules
    • Select an appropriate CWE aligned with current repository mappings.
    • Integrate the rule in all required registration points.
    • Add sample files in `testutils/` with at least 2 positive and 2 negative cases.
Full file, 52 lines
# gosec - Go Security Checker
gosec is a Go static analysis tool that inspects Go source code for security vulnerabilities by scanning the Go AST and SSA form.
## Build & Test
```bash
# Build
go build ./cmd/gosec/
# Run all tests
go test ./...
# Run a specific test

Excerpt shown under the repo license. By securego, Apache-2.0, pushed 2026-09-17. View the file at commit 6813471

Jev score 71

block/buzz

A hive mind communication platform

33,737RustApache-2.0AGENTS.md411 linesCompleteness 45
CommandsArchitectureCode styleTestingGit workflowDo and do not

Rules sections in this file

  • Agent Configuration — Contributor Rules
  • Rules
    • **No hardcoded harness-ID checks in render code.** `runtime.id === "claude"`
    • **Effort reads/writes go through the descriptor.** Use the effort
    • **Field absence has a named reason, not a boolean.** Codex effort is
Excerpt, 55 lines
# Agent Configuration — Contributor Rules
Scope: `desktop/src/features/agents/` (config surfaces, shared config renderer,
and the agent config core). Read this before changing how harness / provider /
model / effort configuration is modeled, rendered, persisted, or applied.
Plan of record: `Buzz/Harness-Provider-Model.md` in Morgan's Obsidian vault
(PR sequence, decisions log). PRs: #2140 (rename), #2148 (flag reduction),
#2156 (honest model states), #2158 (Agent Config Core).
## The one rule
**Harness capability facts have exactly one source: the Rust runtime catalog.**
`KnownAcpRuntime` (`desktop/src-tauri/src/managed_agents/discovery/runtime_metadata.rs`)

Excerpt shown under the repo license. By block, Apache-2.0, pushed 2026-09-20. View the file at commit ef2aa1a

Jev score 71

hunvreus/devpush

Like Vercel, but open source and for all languages.

4,747PythonMITAGENTS.md333 linesCompleteness 100
CommandsArchitectureCode styleTestingGit workflowDo and do not
Excerpt, 56 lines
# AI Agent Guidelines for /dev/push
This document provides comprehensive guidelines for AI agents working on the /dev/push codebase. It covers scripts, FastAPI application code, Docker/Compose, and project-wide conventions.
## Table of Contents
- [Scripts (`scripts/`)](#scripts-scripts)
- [FastAPI Application (`app/`)](#fastapi-application-app)
- [Docker & Compose](#docker--compose)
- [Project Structure](#project-structure)
- [General Conventions](#general-conventions)
- [Testing & Deployment](#testing--deployment)
---

Excerpt shown under the repo license. By hunvreus, MIT, pushed 2026-03-03. View the file at commit d67a99b

Jev score 70

QwikDev/qwik

Instant-loading web apps, without effort

22,070TypeScriptMITAGENTS.md389 linesCompleteness 85
CommandsArchitectureCode styleTestingGit workflowDo and do not

Rules sections in this file

  • Qwik v2 agents reference, instructions and rules
  • Rules
  • Boundaries
    • Preserve user work and unrelated changes. Do not reset or revert unrelated files.
    • Keep edits scoped to the package, generated-file boundary, and verification surface implied by the
    • Do not commit `.only` tests.
Excerpt, 69 lines
# Qwik v2 agents reference, instructions and rules
> [!IMPORTANT]
> **ALWAYS RUN `ruler apply` AT THE START OF A SESSION.** The agent skills are gitignored, not
> committed, so a fresh clone/worktree has none until you generate them (once per worktree):
>
> ```bash
> pnpm dlx @intellectronica/ruler@0.3.42 apply --no-gitignore --no-mcp
> ```
> Canonical source for repo-wide AI coding agent rules. For contributor setup, see
> [CONTRIBUTING.md](./CONTRIBUTING.md). For package-specific workflows, load the relevant
> `.ruler/skills/*/SKILL.md` file.

Excerpt shown under the repo license. By QwikDev, MIT, pushed 2026-09-20. View the file at commit ec785bf

Jev score 70

archtechx/tenancy

Automatic multi-tenancy for Laravel. No code changes needed.

4,409PHPMITCLAUDE.md130 linesCompleteness 80
CommandsArchitectureCode styleTestingGit workflowDo and do not
Excerpt, 73 lines
# CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
## Development Commands
### Testing
- `composer test` - Run tests without coverage using Docker
- `./test tests/TestFile.php` - Run an entire test file
- `./t 'test name'` - Run a specific test
- You can append `-v` to get a full stack trace if a test fails due to an exception
### Code Quality
- `composer phpstan` - Run PHPStan static analysis (level 8)

Excerpt shown under the repo license. By archtechx, MIT, pushed 2026-09-18. View the file at commit 52f97c1

Jev score 69

jrnl-org/jrnl

Collect your thoughts and notes without leaving the command line.

7,321PythonGPL-3.0CLAUDE.md109 linesCompleteness 100
CommandsArchitectureCode styleTestingGit workflowDo and do not

Rules sections in this file

  • Never Touch Real User Config/Journals
First 25 lines only (license: GPL-3.0)
# CLAUDE.md
IMPORTANT: ALWAYS prefer contributing to the `main` branch with a PR.
## Project Overview
jrnl is a command-line journal application written in Python. It supports plain text and encrypted (AES) journals, multiple journal types, and various export formats. The main branch for development is `main`
## Development Setup
```bash
pipx install poetry
poetry install
poetry shell # activate virtualenv

Not shown in full because the license is not permissive. By jrnl-org, GPL-3.0, pushed 2026-09-19. View the file at commit 90de494

Jev score 66

heygen-com/hyperframes

Write HTML. Render video. Built for agents.

51,904TypeScriptApache-2.0CLAUDE.md122 linesCompleteness 100
CommandsArchitectureCode styleTestingGit workflowDo and do not
Excerpt, 27 lines
# Hyperframes
Open-source video rendering framework: write HTML, render video.
## Skills
This repo ships 21 AI agent skills via [vercel-labs/skills](https://github.com/vercel-labs/skills). Install them before writing compositions — they encode framework-specific patterns that generic docs don't cover. **Default to the core set**: the `/hyperframes` router installs each creation workflow on demand; install all 21 only when the user explicitly asks for the full set.
```bash
npx hyperframes skills update # default: installs/refreshes the core set — workflows install on demand
npx hyperframes skills # all 21 published skills at once — only on explicit request
npx skills add heygen-com/hyperframes # interactive picker (terminal only; --all also pulls the 6 repo-internal skills under .claude/skills)
npx skills add heygen-com/hyperframes --skill <name> # just one (bare name, no leading slash)
```

Excerpt shown under the repo license. By heygen-com, Apache-2.0, pushed 2026-09-20. View the file at commit 85a1a8f

Jev score 65

FlowElement-xinliuyuansu/m_flow

A bio-inspired cognitive memory engine — a new paradigm for Graph RAG.

4,507PythonApache-2.0AGENTS.md152 linesCompleteness 75
CommandsArchitectureCode styleTestingGit workflowDo and do not
Excerpt, 90 lines
# M-flow — Developer & Agent Reference
> This file is intended for AI coding assistants (Cursor, Copilot, etc.) and
> human contributors alike. It describes the repository layout, toolchain, and
> conventions needed to make changes safely.
---
## 1. Repository Map
```
m_flow/ Python core (FastAPI + pipeline engine)
api/ HTTP routers: add, memorize, search, delete, …
cli/ CLI entrypoint (`mflow`)

Excerpt shown under the repo license. By FlowElement-xinliuyuansu, Apache-2.0, pushed 2026-09-01. View the file at commit 0d585cd

Jev score 62

ai-dynamo/dynamo

A Datacenter Scale Distributed Inference Serving Framework

8,130RustNOASSERTIONAGENTS.md24 linesCompleteness 4
CommandsArchitectureCode styleTestingGit workflowDo and do not
First 24 lines only (license: NOASSERTION)
<!--
SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
SPDX-License-Identifier: Apache-2.0
-->
# CRD Migrator Maintenance
- This package is derived from
`kubernetes-sigs/cluster-api/controllers/crdmigrator` at Cluster API v1.13.4,
commit `27f464418c195d96ae2ef4b96f3b6a047ea89310`.
- The TTL cache is derived from `kubernetes-sigs/cluster-api/util/cache/cache.go`
at the same version and commit. Keep its expiration and periodic sweep
behavior aligned with upstream.
- Keep the package free of `sigs.k8s.io/cluster-api` imports. It may depend on

Not shown in full because the license is not permissive. By ai-dynamo, NOASSERTION, pushed 2026-09-20. View the file at commit d7bfb35

Jev score 59

localsend/localsend

An open-source cross-platform alternative to AirDrop

92,231DartApache-2.0CLAUDE.md9 linesCompleteness 2
CommandsArchitectureCode styleTestingGit workflowDo and do not
Full file, 9 lines
# CLAUDE.md
Always use **`fvm flutter`** / **`fvm dart`**, never the bare `flutter` / `dart` binaries — this repo pins its
Flutter version in `.fvmrc` and the system-wide toolchain will not match it.
Full guidance for this repository lives in AGENTS.md:
@AGENTS.md

Excerpt shown under the repo license. By localsend, Apache-2.0, pushed 2026-09-14. View the file at commit 230fb69

Jev score 57

joemccann/dillinger

The last Markdown editor, ever.

8,285TypeScriptMITCLAUDE.md436 linesCompleteness 90
CommandsArchitectureCode styleTestingGit workflowDo and do not
Excerpt, 90 lines
<claude-mem-context>
# Recent Activity
<!-- This section is auto-generated by claude-mem. Edit content outside the tags. -->
### Jan 19, 2026
| ID | Time | T | Title | Read |
|----|------|---|-------|------|
| #1873 | 2:32 PM | 🔵 | Next.js Migration Dependency Stack with Modern Equivalents | ~510 |
| #1861 | 2:25 PM | 🔵 | Next.js Config with Lucide-React Bundle Optimization | ~396 |
| #1850 | 2:24 PM | ✅ | Added Modal and Toast Z-Index Layers to Tailwind Configuration | ~354 |
| #1827 | 2:22 PM | 🔵 | Tailwind Configuration with Legacy Dillinger Design Tokens | ~463 |
</claude-mem-context>

Excerpt shown under the repo license. By joemccann, MIT, pushed 2026-06-21. View the file at commit 17010b7

Jev score 55

nextdns/nextdns

NextDNS CLI client (DoH Proxy)

4,181GoMITAGENTS.md99 linesCompleteness 45
CommandsArchitectureCode styleTestingGit workflowDo and do not
Excerpt, 66 lines
# AGENTS
## Project Context
- Project: NextDNS CLI (`github.com/nextdns/nextdns`)
- Language: Go (`go 1.26`)
- Purpose: Command-line DNS-over-HTTPS client focused on NextDNS, with support for other DoH providers and split-horizon setups.
- Target environments: Routers and Unix-like systems first, with support for macOS and Windows.
## Core Principles
1. Privacy first
- Preserve user privacy by default.
- Avoid adding telemetry or logging sensitive DNS/query data unless explicitly required.

Excerpt shown under the repo license. By nextdns, MIT, pushed 2026-09-12. View the file at commit 0214daf

Jev score 42

iflytek/astron-agent

Enterprise-grade, commercial-friendly agentic workflow platform for building next-generation SuperAgents.

9,017JavaApache-2.0CLAUDE.md104 linesCompleteness 70
CommandsArchitectureCode styleTestingGit workflowDo and do not

Rules sections in this file

  • Important Notes
    • Before making any changes, clearly identify the target module along with its complete call chain and upstream/downstream dependencies. For c
    • If Kafka, Redis, MinIO, or authentication is involved, evaluate the impact on other services first.
    • **Always prioritize official frameworks, SDKs, and APIs.** When an official framework, SDK, or API exists for a task, you MUST use it instea
  • Context7 Usage Rules
    • **Library/framework/SDK API usage** - Querying the syntax, component APIs, method signatures, parameter details, or usage patterns of any li
    • **Version migrations** - Any framework or SDK upgrade or breaking-change question, such as Next.js 14 to 15, AWS SDK v2 to v3, or Pydantic v
    • **Configuration and installation** - Configuration-file syntax, CLI flags, environment setup, or installation steps for a specific tool or l
Excerpt, 65 lines
# CLAUDE.md
## Project Overview
Astron Agent is an enterprise-grade Agentic Workflow development platform. It includes the console frontend and backend, multiple core microservices, a plugin system, and deployment and infrastructure configuration. The repository uses a multi-language, multi-module structure. The primary languages are TypeScript, Java, Python, and Go.
## Repository Structure
### Console
- `console/frontend`
- React 18 + TypeScript + Vite frontend application
- Responsible for the console UI, agent creation, chat interface, workflow visualization, model management, plugin marketplace, and related features
- `console/backend`

Excerpt shown under the repo license. By iflytek, Apache-2.0, pushed 2026-09-10. View the file at commit 5e75854

Jev score 38

sickn33/agentic-awesome-skills

AAS Core is the local, agent-first control plane for complete catalog discovery, agent-owned selection, stack validation, and planning, backed by 2,400+ agentic skills. Includes CLI, local MCP, catalo

46,641PythonMITCLAUDE.md95 linesCompleteness 50
CommandsArchitectureCode styleTestingGit workflowDo and do not
Excerpt, 90 lines
# dbos-python
> **Note:** `CLAUDE.md` is a symlink to this file.
## Overview
DBOS Python SDK for building reliable, fault-tolerant applications with durable workflows. Use this skill when writing Python code with DBOS, creating workflows and steps, using queues, using DBOSClient from external applications, or building applications that need to be resilient to failures.
## Structure
```
dbos-python/
SKILL.md # Main skill file - read this first
AGENTS.md # This navigation guide

Excerpt shown under the repo license. By sickn33, MIT, pushed 2026-09-20. View the file at commit 7c94c63

Jev score 36

oracle-devrel/oracle-ai-developer-hub

Technical resources for AI developers to build applications, agents, and systems using Oracle AI Database and OCI services

4,390Jupyter NotebookNoneCLAUDE.md210 linesCompleteness 90
CommandsArchitectureCode styleTestingGit workflowDo and do not

Rules sections in this file

  • Key Business Rules
  • Gotchas
  • Constraints
First 25 lines only (license: None)
# FitTrack
> Gamified fitness platform with sweepstakes rewards and tiered competitions.
## Overview
FitTrack transforms fitness activity into a competitive, rewarding experience. Users connect fitness trackers, earn points from physical activities, then spend points on sweepstakes tickets for prize drawings. Tiered competition brackets ensure fair competition among users with similar demographics and fitness baselines.
**Target Market**: US only, 18+, sweepstakes-compliant states (excludes NY, FL, RI)
## Tech Stack
| Component | Choice | Why |
| ------------ | --------------------- | ------------------------------------------- |

Not shown in full because the license is not permissive. By oracle-devrel, None, pushed 2026-09-19. View the file at commit bccc406

Jev score 32

goodrain/rainbond

Rainbond is an open-source container platform that requires no Kubernetes expertise. Its core capabilities are 100% open source. It abstracts away infrastructure complexity and provides a unified way

6,270GoNOASSERTIONAGENTS.md164 linesCompleteness 100
CommandsArchitectureCode styleTestingGit workflowDo and do not
First 25 lines only (license: NOASSERTION)
# Rainbond — Go Core Services
## Overview
Rainbond is a cloud-native application management platform. This repository contains the Go backend services that interface directly with Kubernetes. It is called by `rainbond-console` (Django) via HTTP REST APIs.
- Language: Go 1.23
- Module: `github.com/goodrain/rainbond`
- Router: go-chi/chi
- ORM: jinzhu/gorm (v1)
- Logging: sirupsen/logrus
- Vendor: dependencies vendored in `vendor/`
## Binary Components

Not shown in full because the license is not permissive. By goodrain, NOASSERTION, pushed 2026-09-20. View the file at commit 0384d97

Jev score 26

firebase/FirebaseUI-Android

Optimized UI components for Firebase

4,806KotlinApache-2.0CLAUDE.md2 linesCompleteness 0
CommandsArchitectureCode styleTestingGit workflowDo and do not
Full file, 2 lines
Read [AGENTS.md](AGENTS.md) first. Follow it for this repository.

Excerpt shown under the repo license. By firebase, Apache-2.0, pushed 2026-09-17. View the file at commit 5c00998

Build yours

Generate a starter CLAUDE.md and AGENTS.md

Answer five questions and get both files with the six sections that strong files share. No signup. Edit the result before you commit it.

Runs in your browser. Nothing is sent or stored.

# This project

Describe what this project does and who uses it in one or two sentences.

## Commands

```bash
pnpm install      # install dependencies
pnpm dev      # run locally
pnpm build      # production build
pnpm lint      # lint and format check
pnpm test      # run the test suite
```

Run lint and tests before you say a task is done.

## Architecture

- Project type: web app.
- Layout: src/app or src/pages for routes, src/components for UI, src/lib for shared code.
- Put shared code in one place and import it. Do not copy code between folders.

## Code style

- TypeScript strict mode, no any
- Use named exports
- Prefer small pure functions

## Testing

- Add or update a test for every behavior change and every bug fix.
- Run the single relevant test file while you work, then the full suite once at the end (`pnpm test`).
- Do not delete or skip a failing test to make the suite pass. Fix the cause or report it.

## Git workflow

- Work on a branch, never directly on main.
- One logical change per commit. Write the message as a short imperative sentence.
- Do not push, force-push or rewrite history unless asked.

## Do and do not

- Do read the surrounding code before you edit it.
- Do keep changes small and limited to the task.
- Do not add a dependency without asking.
- Do not commit secrets, .env files or generated build output.
- Do not reformat files you were not asked to change.

## Working with Claude Code

- Keep this file short. Move detail into files under .claude/rules/ and link to it from here.
- Plan before large changes. Show the plan, then wait for approval.
- If a command in this file fails, say so and fix this file instead of working around it.

Methodology

Finding files. We ran GitHub code search on the filenames CLAUDE.md and AGENTS.md, split by language and by topic terms, and collected 4,631 candidate repos. We then read metadata for each and kept public, non-fork, non-archived repos with at least 10 stars. We also ran Google queries for curated lists and added the repos they pointed to.

Licensing. When the repo license is MIT, Apache-2.0, BSD, ISC, CC0 or the Unlicense, we show an excerpt of up to about 90 lines and allow copying. For any other license, including no license, we show only the first 25 lines with no copy button, and we never store the full file. Every card names the repo, owner and license and links to the file at the commit we read.

Analysis. A script counts lines, detects sections from headings and keywords, lists mentioned tools (pnpm, npm, uv, pytest, vitest, docker, MCP, subagents, hooks, skills) and guesses the project type from the file, repo description and topics. The rules summary on each card lists the file's own headings about rules and, for permissive repos, the first bullets under them. Nothing is written by us.

Detection is keyword based, so some files are misfiled. Report a wrong card through our contact page and we will fix the rule.

Completeness, 0 to 100

This counts which topics a file covers. It does not judge whether the advice is right.

Commands section15
Architecture or structure section15
Code style or conventions section15
Testing rules15
Git workflow10
Do and do-not rules10
Concrete commands or a code block10
Length, full marks at 60 lines10

Sources used to find repos beyond code search

  • Google query "CLAUDE.md example": surfaced ArthurClune/claude-md-examples
  • Google query "AGENTS.md example": surfaced agentsmd/agents.md
  • Google query "best CLAUDE.md": surfaced josix/awesome-claude-md
  • Google query "CLAUDE.md template": surfaced abhishekray07/claude-md-templates and davila7/claude-code-templates

FAQ

CLAUDE.md and AGENTS.md questions

What the files are, which one Claude Code reads, and how we built this library.

01What is a CLAUDE.md file?

It is a markdown file that Claude Code reads at the start of every session. It holds project instructions such as build and test commands, architecture notes and coding rules. Claude treats it as context, not as enforced configuration.

02What is an AGENTS.md file?

AGENTS.md is a plain markdown file with instructions for coding agents, used by several tools besides Claude Code. This library lists both file types, and you can filter by either one.

03Does Claude Code read AGENTS.md?

Yes, since Claude Code v2.1.277. By default it reads AGENTS.md only when there is no CLAUDE.md or CLAUDE.local.md in your working directory or any directory above it. If a CLAUDE.md exists, Claude reads that and ignores AGENTS.md unless the CLAUDE.md imports it. This comes from the memory page of the Claude Code docs, checked on September 20, 2026.

04Can I use both files in one repo?

Yes. Put the shared rules in AGENTS.md and create a CLAUDE.md that imports it with an @AGENTS.md line, then add Claude-only notes below. You can also set Project instructions to claude-md-and-agents-md so Claude loads both files. The docs list the exact setting and its limits.

05How long should a CLAUDE.md be?

The files in this library range from a few lines to well over a thousand. The line-count badge and the completeness number on each card let you compare. Shorter files that state exact commands and rules tend to be easier to keep correct, but we have not measured that, so treat it as our reading of the files and not as a finding.

06What should I put in a CLAUDE.md?

The sections that show up most in strong files are commands, architecture, code style, testing, git workflow and a list of things Claude must not do. The generator below builds a starter with each of those, and the completeness score checks for the same six.

07How is the completeness score calculated?

It is a rules-based number from 0 to 100. Six sections are worth 15 points each for commands, architecture, testing and code style, and 10 each for git workflow and do-not rules. Concrete commands or code blocks add 10, and length adds up to 10 points, reaching the maximum at 60 lines. The full method is in the methodology section on this page. It measures coverage, not whether the advice is good.

08Can I copy these files into my project?

Only where the repo license allows it. For repos under MIT, Apache-2.0, BSD, ISC, CC0 or the Unlicense we show a longer excerpt with a Copy button. For every other repo we show at most the first 25 lines, with no copy button, plus a link to the full file at its commit. Keep the original attribution and license notice when you reuse anything.

09Where do the files come from?

Public GitHub repos found through GitHub code search on the filenames CLAUDE.md and AGENTS.md, plus curated lists that turned up in Google results. Repos with fewer than 10 stars, forks and archived repos are left out. Every card links to the file at the exact commit we read.

10Where is the curated guide to the best examples?

We wrote one. It picks 12 files from real repos and explains what each does well. This page is the searchable library, and the guide is the short list.