Prompt file imported from rhymion/app-generator (
.codex/prompts/update-code.md). Fill in{{arguments}}before use. Copyright stays with the author.
This is an update-code task. Read AGENTS.md before starting.
Minimum docs to read before starting:
- AGENTS.md
- Relevant
docs/knowledge/files for the area being changed
Common rules
npm run lintmust pass.- If a gate step fails: investigate root cause → fix → re-run until it passes.
- Always maintain compatibility between Prisma schema and JSON schema.
- Follow model and field naming conventions.
See
docs/knowledge/prisma-schema-conventions.md. - Follow the docs (
docs/knowledge/is the source of truth). - If you discover a new rule or useful skill, update the rule/skill documentation.
- Read the docs before acting: at minimum AGENTS.md, and relevant
docs/knowledge/files.
Completion gate
See .claude/commands/update-code.md §Completion gate — canonical source of truth.
Open the file directly (it is in the same repository under .claude/commands/).
Debug priority
| Failure | Investigate in this order |
|---|---|
| Code generation fails | 1. schema (check undocumented implicit rules) → 2. generator bug |
| Build fails | 1. config → 2. schema → 3. code bug (both VCS-managed and generated) |
| Test fails | 1. generated test code bug |
| Other test fails | 1. generation logic missing a case → 2. product code bug |
When running lint/typecheck in isolation, prefix with
npm run generate-code. See.codex/rules/generated-code-gates.mdfor details.
Input
{{arguments}}