react-native-nitro-sound
AGENTS.md961 starsChanged 3 months agoMITView on GitHub
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,700 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository9 other files it gives its agents.
- android-audio-e2eSkill
- funding-stewardSkill
- generate-docSkill
- ios-audio-e2eSkill
- nitro-sound-workflowsSkill
- rebase-mainSkill
- review-prSkill
- review-selfSkill
- simulator-audio-e2eSkill
The file
We split this AGENTS.md into the rules it gives an agent
7 rules. About 0 are common, 1 is distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 29
Add/adjust tests for new features and bug fixes.
- Very specific: line 30
Run locally with yarn test.
- Very specific: line 47
Use $ios-audio-e2e and $android-audio-e2e for device-backed audio claims.
- Very specific: line 48
Use $simulator-audio-e2e for guarded Maestro recorder/player regression runs on explicitly selected iOS Simulators and Android emulators.
- Very specific: line 49
Use $rebase-main to preserve staged, unstaged, untracked, ignored, and generated work during synchronization.
- Very specific: line 50
Use $review-pr to classify and resolve PR feedback, fall back to $review-self when automated review is unavailable, and poll through a real …
- Very specific: line 51
Use $review-self for a final independent pass and $generate-doc whenever public exports, Nitro specs, platform behavior, compatibility, or …
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Repository Guidelines
Project Structure & Module Organization
src/: TypeScript API (index.tsx,index.web.tsx) and Nitro spec insrc/specs/*.nitro.ts.- Native:
android/(Kotlin + C++ adapter) andios/(Swift). Generated bindings live undernitrogen/(c++/kotlin/swift) — do not edit. - Example app:
example/(Yarn workspace) for local testing on iOS/Android/Web. - Plugin:
plugin/Expo config plugin code. Tests:src/__tests__/.
Build, Test, and Development Commands
yarn prepare: Build library with bob and run Nitro codegen; required after changing specs and before publishing.yarn nitrogen: Regenerate native bindings from specs.yarn typecheck: TypeScript checks.yarn lint: ESLint + Prettier. Auto-fix withyarn lint --fix.yarn test: Jest (react-native preset).- Example app:
yarn start,yarn ios,yarn android,yarn web(proxied toexample/). yarn clean: Remove build outputs (lib/, example and Android/iOS builds).
Coding Style & Naming Conventions
- TypeScript with 2-space indent, single quotes, trailing commas (es5) — enforced by Prettier and ESLint (
eslint.config.mjs). - Naming: camelCase (vars/functions), PascalCase (classes/types). Use
.web.tsxfor web-specific entry. - Public API lives in
src/. Modify behavior viasrc/specs/*.nitro.tsand native implementations; never hand-editnitrogen/generated/**.
Testing Guidelines
- Framework: Jest with
react-nativepreset. Place tests insrc/__tests__/*.test.ts(x). - Add/adjust tests for new features and bug fixes; keep tests deterministic.
- Run locally with
yarn test. Type safety is enforced byyarn typecheck.
Commit & Pull Request Guidelines
- Conventional Commits enforced via commitlint (e.g.,
feat: add playback speed). - Hooks (lefthook): pre-commit runs
eslintandtsc; commit message is linted. - PRs: include a clear description, linked issues, platform impact, and updated docs (e.g.,
README.md,docs/MIGRATION.md). If native changes, verify on both iOS and Android; update theexample/app if behavior changes.
Architecture Notes
- Bridge is implemented with
react-native-nitro-modules. Define the surface insrc/specs/*.nitro.ts, implement natively (Kotlin/Swift), then regenerate withyarn nitrogen/yarn prepare. - Android/iOS permissions: verify microphone access during local testing (see example app configuration).
AI Workflow & Skills
- Canonical cross-agent skills live in
.codex/skills/*/SKILL.md; Claude Code discovery wrappers live in.claude/skills/*/SKILL.mdand must point back to the canonical files. - Route repository maintenance through
$nitro-sound-workflows. Detailed command procedures live in.claude/commands/for PR review, audits, knowledge compilation, verification, E2E, releases, issue resolution, dependency upgrades, and commit/PR work. - Use
$ios-audio-e2eand$android-audio-e2efor device-backed audio claims. Compilation alone is not runtime verification. - Use
$simulator-audio-e2efor guarded Maestro recorder/player regression runs on explicitly selected iOS Simulators and Android emulators. - Use
$rebase-mainto preserve staged, unstaged, untracked, ignored, and generated work during synchronization. Never use destructive reset/clean shortcuts. - Use
$review-prto classify and resolve PR feedback, fall back to$review-selfwhen automated review is unavailable, and poll through a real five-minute wake-up until the exact head is stable. - Use
$review-selffor a final independent pass and$generate-docwhenever public exports, Nitro specs, platform behavior, compatibility, or releases change. - Internal workflow-only changes under
.claude/,.codex/,AGENTS.md, orknowledge/_claude-context/stay local unless the user explicitly requests commit, push, PR, or merge. - Install the repository Codex skills for automatic discovery with
.codex/scripts/install-skills.sh.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

