GatoJS is moving from an internal kit to an open-source project. Parts of the in-repository documentation are still in Polish; English is the language for all new content.
Before you start
- For anything larger than a small fix, open an issue first so we can agree on the approach.
- Read
AGENTS.mdandCLAUDE.mdin the repository root. They are the rules for humans and AI agents alike: data access throughgetOrgContext()with anorganizationIdfilter, the service mode contract, no code comments except// WHY:, no edits to generated files. The code patterns guide explains them. - Kit-only rules (the CLI, manifests, releases) are in
kit/CLAUDE.md; this tab explains them: Kit repository, New kit module, Releases. - New decisions are recorded as ADRs in
docs/adrs/; known gotchas are collected indocs/lessons.md.
Set up
packageManager pins [email protected]; older npm rewrites package-lock.json). The kit repository is a full reference app with every module installed; see Installation for ports, environment variables and the first admin.
Issues
- Bugs and feature requests: GitHub issues, using the templates. Include the kit version (
kitVersionin.wa/kit.jsonof your project, or the commit), steps to reproduce and what you expected. - Security vulnerabilities: never in a public issue. See Security.
Pull requests
- Target
mainand keep a pull request to one concern. Fill in the pull request template. - Commit messages follow Conventional Commits with a lowercase subject, for example
feat(core): …orfix(uploads): …. Husky runs lint-staged and commitlint on commit. Commit types also decide kit releases, so pick them carefully:featreleases a minor version,fixandperfa patch (Releases). - Tests for every behaviour you change. A bug fix comes with a test that fails without the fix. Expected values are literals or come from a spec, never from the code under test. See Testing.
- Mutation gate. Data access, auth, organizations and roles are covered by mutation testing:
npm run test:mutation:task -- <files>andnpm run test:mutation:gate. A surviving mutant needs a test, or a justifiedallowedentry that a maintainer approves. - Kit files. If you change files of a kit module, bump that module’s
versioninkit/modules/<module>.jsonand runnpm run wa -- kit sync. - Generated files. Never edit generated files or
wa:*regions; runnpm run wa -- generateand commit the result. - User-facing text goes into both
plandenmessages. - Schema changes need migration notes for projects, since the kit commits no migrations.
Verify before you push
npm run verify runs lint, typecheck, unit tests and a production build of the app, then the workspace packages’ own checks and the hook tests. For tool package changes also run that package’s gate:
packages/gato-cli/src, commit the rebuilt bundle .wa/bin/wa.mjs with it (Kit repository).
Code review
You do not need CodeRabbit. Review your own change against.claude/skills/wa-code-review/SKILL.md, the checklist of what npm run verify cannot check (organization scoping, service mode, generated files, tests, i18n), and tick the pull request template. In Claude Code the same checklist runs as the wa-code-review skill. If CodeRabbit comments on your pull request, treat its comments like any reviewer’s.
A pull request merges on the required checks and a maintainer’s approval.
Security
Report vulnerabilities privately to [email protected] or through GitHub private vulnerability reporting. Include the affected area (core, a kit module, the CLI), the kit version, steps to reproduce or a proof of concept, and the impact as you understand it. A partial report is better than none.
Reporters are credited in the release notes unless they ask not to be. Organization isolation, authentication and roles, the signup gate and invitations, the kit modules and the CLI are in scope. Third-party dependency issues without a GatoJS-specific impact, projects that changed the affected kit code, and findings that need a compromised machine or admin account are out of scope. Fixes go to the latest kit version; projects pick them up with
gato update.