CLAUDE.md#
Guidance for Claude Code when working in this repository.
The rules this repository shares with Gunnar's other repositories — asking instead of guessing,
the pull request workflow and its reviews, branches, /doc and its chapters, secrets, Renovate,
issues, TDD and existing tests — come from the conventions plugin of
conventions (opens in a new tab),
which .claude/settings.json turns on, pinned to a tag. Its SessionStart hook puts them into
every session's context. This file holds what is particular to this repository, and wins where
the two differ. A cloud session on claude.ai/code does not load the plugin; there this
repository's own SessionStart hook, .claude/hooks/cloud-session-rules.py, prints the rules from
the same tag, and doc/purpose.md says what is still missing.
About this project#
This is ai-assisted-todolist, home of TaskFest: a browser-based task list app (Go backend on
AWS Lambda, React + TypeScript frontend, a React Native app, DynamoDB persistence). It is
primarily a demo project — its main purpose is to build up experience with AI-assisted
software development, not to ship production software. Favor clarity and
learning value in explanations and commits over maximal speed.
About the developer#
Gunnar Hilling. Experienced software developer, especially with Java and Quarkus. Do not over-explain Java/Quarkus/backend fundamentals — assume that knowledge. Frontend (React/TypeScript) and AI-assisted workflows are areas where more context and explanation are welcome.
Ask, don't guess#
In this repository, stopping to ask applies especially to:
- Domain rules and business logic for the todo model (states, transitions, validation rules).
- Auth/OIDC provider behavior and configuration.
Workflow#
- The
main-branchruleset enforces that every change reachesmainthrough a pull request, and rejects direct pushes. No approving review is required, so you can merge your own pull request once CI is green. - The pull requests that get
/code-review highalso get one CodeRabbit review, requested by hand once/code-review high's fixes are pushed: a comment@coderabbitai review(gh pr comment <n> --body "@coderabbitai review")..coderabbit.yamlkeeps it from reviewing on its own, because a review on every push of every pull request, Renovate's included, is what used up Copilot's monthly quota before. What it looks for is in.github/REVIEW.md, alongside the CLAUDE.md files it reads. Its findings are gone through with Gunnar one by one, like any other review's, and need not hold up the merge. /docis the source of truth because the README had already drifted into documenting endpoints and task states that no longer existed.- A change to the application's architecture changes the start page's diagrams with it, in
the same pull request (Gunnar, #701): How the application fits together
(
doc/images/architecture-*.svg), How a change reaches main (workflow-*.svg), or both, whichever the change touches. Both come fromdoc/images/generate.py, in colours from the palette (opens in a new tab) only, and a change to them is shown to Gunnar as rendered screenshots, light and dark, before the merge. doc/message-from-gunnar.mdis Gunnar's own page, written by him alone. Claude never edits it: no typo, no rewrapping, no link a rename broke. Claude reads it and points out mistakes, English included, for Gunnar to fix..claude/settings.jsondenies Claude's file edits on it:Edit(/doc/message-from-gunnar.md), which covers Write and shell redirects too.- A link to a private resource is followed by the plain text
(private): a private repository, the GitHub project, a console such as App Store Connect, Play Console or the AWS console. The project is open source, and outsiders cannot open those.doc/README.mdsays why. Docs CI checks the links to GitHub repositories by asking GitHub, and flags a marker on a public one; the consoles and the project are a list in.github/scripts/check-private-links.py, to be extended when a new one is first linked. - A decision is recorded in
doc/decisions/with a status line under its heading (date, issues,Accepted); one that is revised is markedSuperseded · by …, keeps a short summary and gets a new section, rather than being edited in place.doc/decisions/index.mdsays how, and CI checks it. - The API contract is the source, and everything else is generated from it and drift-gated.
doc/api/openapi.jsonis edited by hand (#559);doc/api/generate.pychecks it is valid OpenAPI 3.1 and derivesopenapi.yamland the per-type JSON Schemas underdoc/api/schema/; the frontend's wire types and response validators underfrontend/src/generated/come fromnpm run generate:api; the Go backend's routes and wire types (serverless/internal/api/api.gen.go) come fromgo generate ./...inserverless/. Contract CI, Frontend CI and Serverless CI each regenerate their part and fail on any difference, so none can go stale and nothing derived is hand-edited. A wire change starts atopenapi.json. - Code-level documentation is Go doc comments and TSDoc in the code itself, saying what a type
is for. The conventions are in
serverless/CLAUDE.md,frontend/CLAUDE.mdandmobile/CLAUDE.md. - Deployment artifacts live under
/deployment, never at the repository root:deployment/docker/holds the Compose stacks anddeployment/aws-tofu/the AWS infrastructure. The AWS code is OpenTofu, not Terraform — the binary istofu, anddeployment/aws-tofu/README.mdsays what that changes. - The two AWS environment roots are byte-identical apart from
terraform.tfvars, anddeployment/aws-tofu/check-environments-match.pyfails CI when they are not. Every resource belongs inmodules/environment/; anything that must differ betweenqaandprodbecomes a module variable. Never add a resource to an environment root. deployment/aws-tofu/account/is the exception, and is a root with resources in it: it holds what there is one of per AWS account, such as the GitHub OIDC provider. Apply it before either environment — they look the OIDC provider up by URL and cannot plan until it exists.- Infrastructure is applied by a human, never by CI. The deploy identities are OIDC roles
scoped to redeploying the application; there is deliberately no credential anywhere that can
run
tofu apply.doc/decisions/deployment-and-aws.mdexplains why that is a guarantee rather than a policy. The plugin'splan-only.pyhook refusestofucommands that would change infrastructure or its state, and asks first beforeenv.sh up,downoraccount. - Never hand-edit a version. A release is a git tag (
v1.2.3); the release build gives it to the Go backend (TASKFEST_VERSIONinserverless/build.sh) and to the frontend build.mainstays1.0.0-SNAPSHOTpermanently, and the frontend'spackage.jsonversion is unused because the package is never published.doc/releasing.mdhas the whole procedure. - A pre-release npm dependency is refused by
npm run check:deps(frontend/scripts/check-no-prerelease-deps.mjs), which Frontend CI and Mobile CI run on every pull request. Do not move either into a release-only path — the point is to fail when the dependency is added. - Renovate's configuration is
.github/renovate.json, which extends the shared preset from conventions (opens in a new tab) and adds this repository's own rules to it.mainrequires no status checks because themain-branchruleset names none. Renovate also moves the plugin's tag in.claude/settings.json. - The project is licensed Apache-2.0 (
LICENSE, verbatim). There are deliberately no per-file license headers — seedoc/decisions/build-and-dependencies.md. - Stop the Podman machine you started. The Testcontainers tests and the Compose stacks need
it, but on Gunnar's Mac it is stopped by default: running, it holds about 5 GB of RAM and costs
CPU even when idle. If you start it with
podman machine start, stop it withpodman machine stoponce you no longer need it, unless Gunnar says to leave it running. A machine that was already running when you began is not yours to stop.
Issues#
- The issue forms are account defaults from the public
guhilling/.github (opens in a new tab) repository (
.github/ISSUE_TEMPLATE/there), used by every repository of the account that has none of its own. Change them there. A local.github/ISSUE_TEMPLATE/turns every default off,config.ymlincluded, sodocs-ci.ymlfails on one. GitHub drops a label that does not exist without a word, sostoryandepicmust exist in each repository that takes the forms. - The GitHub project that holds the priorities is the
TaskFest project (opens in a new tab) (private), number 2
(
gh project item-add 2 --owner guhilling --url …). - An issue labelled
won't finishgets no priority: it stays open for good, as Renovate's Dependency Dashboard (#22) does, and is no work to plan. Gunnar's issue views leave it out. needs: Gunnarmarks an issue whose next step is Gunnar's: a decision, an answer, or something only he can do or provide. Claude adds it in the same step that leaves the issue waiting for him, with a comment or section saying exactly what is needed, and removes it as soon as he has answered and the next step is Claude's again. An issue waiting on someone else, or on another issue, does not get it. Gunnar's list: open issues with the label (opens in a new tab).
Development methodology#
- TDD holds for backend (
go test), frontend (Vitest) and mobile work alike, and the code's own documentation that is part of each change is its Go doc comment or TSDoc. - DDD for planning. When planning a feature or change, think in terms of the domain first: ubiquitous language, entities, value objects, aggregates, and bounded contexts, before jumping to REST endpoints, database schema, or UI components. Surface domain modeling questions to Gunnar rather than assuming an answer.