projx / mobile
CLAUDE.md71 starsChanged 4 months agoMITView on GitHub
Stack-scoped notes. The root ../CLAUDE.md carries cross-cutting standards — read both, they compose. This directory is a projx template: a working app whose own suite must stay green on the projx repo (root §"Per-template gates") and the source the CLI copies into scaffolded projects. lib/core/errors/error_handler.dart parses the backend's { detail, request_id } and maps status codes to AppException subclasses (UnauthorizedException, ServerException, …), carrying requestId through to UI/support. Keep this in lockstep with the backends' error shape (root §"Error handling is…
In this repository15 other files it gives its agents.
- admin-panel/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- cli/CLAUDE.mdCLAUDE.md
- e2e/CLAUDE.mdCLAUDE.md
- express/CLAUDE.mdCLAUDE.md
- fastapi/CLAUDE.mdCLAUDE.md
- fastify/CLAUDE.mdCLAUDE.md
- go/CLAUDE.mdCLAUDE.md
- infra/CLAUDE.mdCLAUDE.md
- laravel/CLAUDE.mdCLAUDE.md
- nextjs/CLAUDE.mdCLAUDE.md
- rust/CLAUDE.mdCLAUDE.md
- scripts/CLAUDE.mdCLAUDE.md
- vitejs/CLAUDE.mdCLAUDE.md
- projxSkill
The file
We split this CLAUDE.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 43
Networking: all HTTP goes through the dio client + interceptors.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.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
mobile — Flutter app (projx template)
Stack-scoped notes. The root
../CLAUDE.mdcarries cross-cutting standards — read both, they compose.This directory is a projx template: a working app whose own suite must stay green on the projx repo (root §"Per-template gates") and the source the CLI copies into scaffolded projects.
Stack
- Framework — Flutter
>=3.16, Dart>=3.2 <4 - State — Riverpod (
flutter_riverpod+riverpod_annotation/riverpod_generator); providers are the DI surface - Routing —
go_router - Networking —
diowith interceptors - Models —
freezed - Secure storage —
flutter_secure_storage(Keychain/Keystore) - i18n — ARB pipeline (
lib/l10n/,l10n.yaml) - Test —
flutter_test(unit + widget); coverage viascripts/check-coverage.sh
Layout
| Path | What it holds |
lib/main.dart, lib/app.dart | ProviderScope + MaterialApp.router, theme/router/i18n wiring |
lib/core/auth/ | auth_service, auth_state, secure_storage, biometric_auth |
lib/core/network/ | auth_interceptor, logging_interceptor, retry_interceptor |
lib/core/errors/ | app_exception.dart, error_handler.dart |
lib/core/theme/ | color_tokens, spacing, typography, shadows, app_theme |
lib/core/routing/ | router.dart, routes.dart (go_router) |
lib/core/{config,providers,notifications}/ | App config/constants, Riverpod providers, push notifications |
lib/features/ | auth, dashboard, offline, settings — one folder per feature |
lib/shared/ | widgets/ (design-system widgets), extensions/ |
lib/l10n/ | ARB + generated localizations |
test/unit/, test/widget/ | Unit + widget tests |
scripts/check-coverage.sh | Coverage gate (≥80%) |
Error contract — mirrors the backend
lib/core/errors/error_handler.dart parses the backend's { detail, request_id } and maps status codes to AppException subclasses (UnauthorizedException, ServerException, …), carrying requestId through to UI/support. Keep this in lockstep with the backends' error shape (root §"Error handling is centralized").
Conventions
- State flows through Riverpod
ref— no global singletons reached via imports. Override providers in tests to inject fakes. - Theme: widgets read tokens (
color_tokens,spacing,typography), never rawColor(0xFF…)/ raw sizes. Dark is a distinct register (root §"CSS discipline" applies in Dart too). - Networking: all HTTP goes through the
dioclient + interceptors; features call typed wrappers, not rawdio.get. - Secure storage: tokens in
flutter_secure_storage, neverSharedPreferences. - i18n: user-facing strings via the ARB catalog, not hardcoded.
Testing
Current suite is unit (test/unit/) + widget (test/widget/). When adding a screen, add widget coverage; goldens + integration flows belong here per root §"Test pyramid" — add the scaffolding (test/goldens/, integration_test/) with the first screen that needs them rather than skipping the layer.
Quality gates (root §"Per-template gates")
dart format . → dart analyze --fatal-infos → flutter test --coverage → bash scripts/check-coverage.sh (≥80%). Green or not done.
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.

