AGENTS.md
AGENTS.mdAGENTS.mdroot
Quality
79/100
Scores the file, not the repository.Length
342 words
6 headings · 0 code blocksRepository
12k
— · pushed 3 days agoLast changed
3 days ago
First indexed 3 days ago.1# Repository Guidelines23## Project Structure & Module Organization4This is a Kotlin Multiplatform monorepo built with Gradle. Public library modules live at the repository root (for example `coil-core`, `coil-compose`, `coil-network-okhttp`, `coil-gif`, `coil-svg`, `coil-video`, `coil-test`, `coil-bom`). Internal tooling and test support modules are under `internal/`, and runnable examples are under `samples/` (`samples:compose`, `samples:compose-android`, `samples:view`).56Most modules use source sets like `src/commonMain`, `src/commonTest`, `src/androidMain`, `src/androidUnitTest`, and `src/androidInstrumentedTest`. Documentation content lives in `docs/`.78## Build, Test, and Development Commands9- `./gradlew spotlessCheck`: run Kotlin formatting/lint checks.10- `./gradlew lint`: run Android lint checks.11- `./gradlew checkKotlinAbi`: verify public API compatibility.12- `./gradlew updateKotlinAbi`: refresh ABI baselines when API changes are intentional.13- `./test.sh`: full local validation used by maintainers (style + unit/instrumentation/screenshot tests).14- `./gradlew allTests testDebugUnitTest`: run core unit tests quickly.15- `./gradlew connectedDebugAndroidTest`: run Android instrumentation tests (emulator/device required).1617## Coding Style & Naming Conventions18Follow `.editorconfig`: UTF-8, LF endings, 4-space indentation, max line length 100, final newline, no trailing whitespace. Kotlin formatting is enforced via Spotless + ktlint (`intellij_idea` style with project-specific rule overrides).1920Match existing naming patterns: packages under `coil3.*`, types in `UpperCamelCase`, members in `lowerCamelCase`, constants in `UPPER_SNAKE_CASE`. Keep file names aligned with primary types (for example `NetworkFetcher.kt`).2122## Testing Guidelines23Tests use Kotlin Test/JUnit, Robolectric, Android instrumentation, and screenshot tooling (Paparazzi/Roborazzi/Compose screenshot validation). Name test files `*Test.kt` and place them in the appropriate source set (`commonTest`, `androidUnitTest`, etc.).2425For bug fixes, add or update a failing test first when possible. Run `./test.sh` before opening a PR.2627## Commit & Pull Request Guidelines28Use concise, imperative commit subjects (for example `Fix macOS test flakiness`). Dependency updates commonly use Conventional Commit style (for example `fix(deps): ...` or `chore(deps): ...`).2930PRs should include:31- A clear summary of what changed and why.32- Linked issue(s) when applicable.33- Test evidence (commands run, and screenshots for UI/screenshot test changes).34- Updated ABI files when public API changes are intentional.35- Add the following text at the end of the last line of the PR description: `review-path-agent`.3637Before submitting, ensure `./test.sh` passes locally.38
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| duckduckgo/content-scope-scriptsspecial-pages/AGENTS.md · 70 | AGENTS.md | buildteststylearch+3 | 100/100 | 3 days ago | |
| elastic/elasticsearchx-pack/plugin/inference/AGENTS.md · 78k | AGENTS.md | buildtestlint-formatstyle+3 | 100/100 | 3 days ago | |
| elastic/elasticsearchx-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/AGENTS.md · 78k | AGENTS.md | buildtestlint-formatstyle+2 | 100/100 | 3 days ago | |
| react/react-nativepackages/react-native-compatibility-check/AGENTS.md · 126k | AGENTS.md | testlint-formatstylearch+4 | 99/100 | 3 days ago | |
| tiann/KernelSUAGENTS.md · 18k | AGENTS.md | setupbuildlint-formatstyle+4 | 97/100 | 3 days ago | |
| kurikomi-labs/komi-storeAGENTS.md · 17k | AGENTS.md | buildlint-formatstylearch+1 | 97/100 | 3 days ago | |
| alibaba/nacosAGENTS.md · 33k | AGENTS.md | buildtestlint-formatstyle+6 | 96/100 | 3 days ago | |
| duckdb/duckdbAGENTS.md · 40k | AGENTS.md | buildtestlint-formatstyle+8 | 96/100 | today |
