Skip to content

docs: add CLAUDE.md and architecture/development docs - #117

Merged
amaury901130 merged 1 commit into
mainfrom
docs/claude-md-architecture-docs
Sep 22, 2026
Merged

amaury901130 merged 1 commit into
mainfrom
docs/claude-md-architecture-docs

Conversation

@amaury901130

@amaury901130 amaury901130 commented Sep 22, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Makes the template understandable to developers and AI coding agents without having to rediscover it. The docs describe the code as it currently is on main (after #116: FVM, Melos 7 pub workspace), not an idealized architecture.

No code, config or platform files change.

Issue

N/A

Preview

N/A (docs only)

Notes:

  • Rebased on chore: adopt FVM, migrate to Melos 7, upgrade dependencies #116. The commands (fvm install, melos bootstrap, melos run analyze, melos run format, melos exec --dir-exists=test -- flutter test) match the new root pubspec.yaml scripts and the CI workflow.
  • CI is red on main: sonar-qube-scann.yml fails at its first step because the SSH_PRIVATE_KEY secret isn't configured, so analyze and the tests never run. No pub dependency is git-based, so the ssh-agent step can simply be removed. This is recorded as known-issues Add Basic Theme Structure #3, and this PR's check fails for the same reason.
  • Commands were derived from the repo and CI config. I couldn't run them because no Flutter SDK was available in the authoring environment. Every path and link in the docs was checked.
  • .cursor/rules and .github/instructions were left untouched. CLAUDE.md states that it and docs/ take precedence where they conflict (known-issues Add Tech Guides in the Company Repo #15).

🤖 Generated with Claude Code

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Unresolved documentation and example inaccuracies remain across SDK requirements, environment commands, paths, testing, and error handling.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 2 Low severity

Open (2)
What changed in this PR

Adds comprehensive architecture, development, testing, customization, known-issues, and Rootshift documentation for the Flutter template.

Changes:

  • Adds CLAUDE.md and links documentation from README.md.
  • Documents architecture, module boundaries, workflows, and testing.
  • Adds feature, bootstrap customization, known-issues, and Rootshift guides.
File Change summary Final review findings
README.md Links to the new documentation. None
docs/​rootshift.md Documents Rootshift sidecar integration. None
docs/​development/​testing.md Documents testing practices and commands. L9: Correct the inaccurate claim that all test dependencies are unused. nit (2 votes)
docs/​development/​feature-guide.md Guides end-to-end feature implementation. L57: Handle non-Dio parsing/conversion errors. nit (1 vote)
L80: Avoid the unchecked Exception-to-Failure cast. nit (1 vote)
docs/​development/​bootstrap-customization.md Lists new-project customization steps. L20/L25: Correct missing app/ prefixes or clarify the base directory. nit (1 vote each)
docs/​architecture/​overview.md Describes implemented architecture and flows. L165: Correct platform paths that omit app/. nit (1 vote)
docs/​architecture/​modules.md Defines package responsibilities and boundaries. None
docs/​architecture/​known-issues.md Records verified defects and technical debt. L21: Include the dotenv/JSON failure preceding the documented flavor mismatch. nit (1 vote)
CLAUDE.md Provides the primary developer and agent reference. L93: Correct the dotenv-versus-JSON environment command. nit (3 votes)
L81: Document or align the workspace minimum Dart SDK version. moderate (1 vote)

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread CLAUDE.md
| Format | `dart format app modules`. There is no melos format script (`melos lint:all` calls a missing `format` script and fails). |
| Regenerate l10n after editing `.arb` | `cd app && dart run intl_utils:generate` |
| build_runner | `melos pub:runner`. No generators are configured today (see known-issues). |
| Run (dev) | `cd app && flutter run -t lib/main/env/main_dev.dart --dart-define-from-file=env/.dev` |
Comment thread docs/development/testing.md Outdated
Comment on lines +9 to +12
- The test dependencies are declared but unused:
- `app`: `flutter_test`, `bloc_test`, `mocktail`, `mockito`, `build_runner`
- `domain`: `flutter_test`, `mocktail`
- `data`, `common`: `flutter_test` only
Document the template as implemented, for developers and AI coding
agents:

- CLAUDE.md: repo identity, architecture summary, repo map, verified
  commands, change rules, generated files, definition of done
- docs/architecture: overview, module guide (dependency rules), known
  issues register
- docs/development: feature guide, testing guide, bootstrap customization
- README: link the docs

No code or config changes.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@amaury901130
amaury901130 force-pushed the docs/claude-md-architecture-docs branch from ca45e47 to f5b164c Compare September 22, 2026 20:03
@amaury901130
amaury901130 merged commit f090162 into main Sep 22, 2026
1 check failed
@amaury901130
amaury901130 deleted the docs/claude-md-architecture-docs branch September 22, 2026 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants