Skip to content

Add CLAUDE.md for Claude Code guidance#2

Open
fluxsaas wants to merge 1 commit intomainfrom
chore/claude
Open

Add CLAUDE.md for Claude Code guidance#2
fluxsaas wants to merge 1 commit intomainfrom
chore/claude

Conversation

@fluxsaas
Copy link
Member

@fluxsaas fluxsaas commented Feb 6, 2026

Any closed tickets?

None

Dependencies?

None

What?

Adds a CLAUDE.md file to provide context and instructions for Claude Code when working with this repository.

Why?

Claude Code reads CLAUDE.md files to understand project structure, conventions, and common commands. Having this file enables more effective AI-assisted development by giving Claude immediate context about the codebase.

How?

Added a single markdown file covering:

  • Project overview (API + Frontend services)
  • Docker startup notes
  • Quick reference commands for tests, linting, and API client generation
  • Key implementation patterns (CommonController, BaseDecorator, Orval, TanStack Router)

Testing?

Manual verification that Claude Code reads and applies the guidance correctly.

Add CLAUDE.md providing guidance for Claude Code when working with this repository. The file summarizes the project structure (API and Frontend services), startup notes (both run in Docker; start the API first), quick CLI commands for running tests/lint/typecheck and regenerating the API client, and key implementation patterns (CommonController, BaseDecorator hooks, Orval-generated client, TanStack Router layout).
@fluxsaas fluxsaas changed the title Add CLAUDE.md with repo usage notes Add CLAUDE.md for Claude Code guidance Feb 6, 2026
bin/dev exec frontend pnpm test # Tests
bin/dev exec frontend pnpm typecheck # TypeScript
bin/dev exec frontend pnpm lint # ESLint
bin/generate-api # Regenerate API client after API changes
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's also include a step in the API section above to generate the API schema:

bin/dev exec api bundle exec rails rswag

bin/dev exec frontend pnpm test # Tests
bin/dev exec frontend pnpm typecheck # TypeScript
bin/dev exec frontend pnpm lint # ESLint
bin/generate-api # Regenerate API client after API changes
Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh, also we could remove this script bin/generate-api (it is only one command), and run the command directly. WDYT? We would need to change the frontend/README.md as well.

Suggested change
bin/generate-api # Regenerate API client after API changes
bin/dev exec frontend pnpm generate-api # Regenerate API client after API changes


**BaseDecorator** (`api/app/decorators/base_decorator.rb`) — Wraps create/update/destroy with hooks (`before_assign_attributes`, `after_save`, `update_state` for AASM transitions).

**Orval API Client** (`frontend/src/generated/`) — Generated from OpenAPI spec. Run `bin/generate-api` in frontend after API changes.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's include both steps here then, first generate the schema in the API, then generate the hooks in the frontend.

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.

2 participants