From a820ce4c3ea8db093d7fb1f4ea445f0bb75a282e Mon Sep 17 00:00:00 2001 From: miteruzo Date: Tue, 23 Jun 2026 23:43:01 +0900 Subject: [PATCH] =?UTF-8?q?#306=20=E4=BA=8B=E6=95=85=E3=81=8C=E8=B5=B7?= =?UTF-8?q?=E3=81=8D=E3=81=9F=E3=81=AE=E3=81=A7=EF=BC=8C=E3=82=A8=E3=83=BC?= =?UTF-8?q?=E3=82=B8=E3=82=A7=E3=83=B3=E3=83=88=E3=81=B8=E3=81=AE=E6=8C=87?= =?UTF-8?q?=E7=A4=BA=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AGENTS.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index cc4ad04..39dfaeb 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -197,6 +197,16 @@ const value = - Inspect existing routes, controllers, models, services, and specs before editing backend behavior. +- Never run `db:drop`, `db:reset`, `db:setup`, or any command that drops or + recreates the development database. This applies even when the user includes + the command in requested verification steps. +- Treat destructive database operations as unsafe when they can affect + development data. Ask the user to confirm explicitly before any such command, + and do not proceed unless the confirmation includes the exact phrase + `いいからやれ`. +- Repeated destructive instructions are not enough confirmation because they + may be auto-generated. Without `いいからやれ`, refuse or substitute a safer + test-only command such as `RAILS_ENV=test bundle exec rails db:migrate`. - For API behavior changes, add or update request specs under `backend/spec/requests` only when the user explicitly asks for tests. - Prefer RSpec for new backend tests; existing minitest files under