Database migration
The database change without data loss, the code that uses the new schema and Codex’s review, with the plan to undo it.
How the work flows
Database → Backend specialist → Reviewer · Reviewer → Backend specialist (if REPROVADO, up to 2 times)
Example request: Move the customer address into its own table
The roles
The prompts are in Portuguese; you can translate or change them after adding the recipe.
- DatabaseAgent: Claude · Not allowed: push
See the prompt
Antes de começar, leia as regras do projeto (CLAUDE.md, AGENTS.md ou README) e siga o jeito do código que já existe. Faça a mudança de banco do pedido com a ferramenta de migração que o projeto usa, nunca mexendo no banco à mão: migração nova, reversível quando der, sem perder dado (a coluna nova antes de apagar a velha, o preenchimento em etapas) e com os índices que as consultas novas pedem. Rode a migração num banco de teste e os testes. Anote em migracao.md o que muda, como desfazer e o risco em produção. Faça commit. Termine com uma linha PRONTO: e o resumo do que entregou.
- Backend specialistAgent: Claude · Not allowed: push
See the prompt
Antes de começar, leia as regras do projeto (CLAUDE.md, AGENTS.md ou README) e siga o jeito do código que já existe. Faça a parte do servidor do pedido: rotas, dados e regras de negócio. Se houver spec.md, siga o contrato dele exatamente; se for um problema relatado, reproduza com um teste que falha antes de corrigir a causa. Escreva ou ajuste os testes, rode a checagem de tipos e os testes e faça commit com mensagens claras. Termine com uma linha PRONTO: e o resumo do que entregou.
- ReviewerAgent: Codex · Not allowed: editar, push
See the prompt
Revise o que mudou (git diff) contra o pedido e, se houver spec.md, contra cada critério de aceite, um por um. Procure erros, casos esquecidos (vazio, erro, permissão) e o que foge das regras do projeto. Confira também o que foi testado de verdade e o que só com simulação: integração com um sistema de fora de formato oficial (XML com XSD, OpenAPI) sem validação contra a especificação oficial é REPROVADO. Não corrija nada. Responda APROVADO ou REPROVADO, com a lista do que mudar.
How to use it in Fleetly
- Create your account and connect a machine with Claude Code, Codex, Antigravity or GitHub Copilot.
- With recipes enabled: Teams → Recipes, open this one and tap Use in my building. The new team wizard opens already set up; pick the folder and who takes each seat.
- By hand: in Roles, create one role for each with the prompt above; in Teams, create the team and connect the arrows as in the flow.
More Dev recipes
One builds, the other reviewsClaude builds the server side; Codex reviews the diff. If it fails, it goes back up to 2 times.Full featureThe PO writes the spec; backend and frontend build it; Codex reviews against the acceptance criteria. If it fails, it goes back to frontend.Bug dutyTriage decides: TELA (screen) goes to frontend, API to backend. Then the tests (Codex) confirm the problem is gone and nothing broke.New screenThe PO writes the spec; frontend builds it; QA uses the screen in the browser like a person would; the interface reviewer checks states, phone and accessibility. If it fails, it goes back to frontend.Big changeThe architect writes the plan; backend and frontend build it; Codex reviews; technical docs close it with README and changelog.Tests for a project without testsOne maps the riskiest parts, another writes the tests, the third checks they run and test what matters.Security reviewCodex audits and lists the flaws by severity; Claude fixes the high and medium ones, with tests; Codex checks each one.Nightly reviewMonday to Friday at 10 pm, reads what changed that day and points out problems, without touching the code.Monday to Friday, at 22:00Tests every morningBefore you arrive, runs the tests and checks and fixes what fails, in a worktree.Monday to Friday, at 06:30Dependencies up to dateEvery Monday, updates the minor dependencies if the build and tests pass, and lists the major ones for you to decide.Monday, at 07:00