Skip to content

blog: What to Put in Your AGENTS.md So Your Agent Handles the Database Right - #8083

Merged
nurul3101 merged 5 commits into
mainfrom
blog/agents-md-for-databases
Jul 17, 2026
Merged

blog: What to Put in Your AGENTS.md So Your Agent Handles the Database Right#8083
nurul3101 merged 5 commits into
mainfrom
blog/agents-md-for-databases

Conversation

@nurul3101

@nurul3101 nurul3101 commented Jul 17, 2026

Copy link
Copy Markdown
Member

Summary

New blog post: five copy-pasteable AGENTS.md database rules for AI coding agents, covering scratch databases via npx create-db --json, destructive-command policy (with the ORM 6.15.0 guardrails as the enforcement layer), migration rehearsal on throwaway databases, --json output, and connection-string hygiene. Works in Codex and Cursor natively and in Claude Code through a one-line @AGENTS.md import.

Companion piece to Your AI Agent Needs a Database. Give It One in Five Seconds.

Includes hero.svg (Eclipse house style, embedded brand fonts) and meta.png (1200x630, 251 KB).

Verification

  • Every product claim verified against the docs and live sources: create-db v1.2.1 flags and JSON fields confirmed by a live run (24h TTL measured empirically), the 6.15.0 guardrail error wording confirmed from a shipped binary, the @AGENTS.md import confirmed in official Claude Code docs, AGENTS.md origin confirmed against agents.md.
  • Adversarial review: four independent lenses (fact, code, reader, positioning), two fix rounds, final verification pass returned zero confirmed findings.
  • Page verified as served on a local dev build: FAQ accordion bodies present in HTML, heading anchors and JSON-LD correct, hero renders, all 13 outbound links return 200.

Note

The create-db docs page (apps/docs/content/docs/postgres/npx-create-db.mdx) still claims the default region is us-east-1, but the shipped CLI geo-detects the closest region and only falls back to us-east-1. The post describes the real behavior; the docs fix is tracked separately.

Summary by CodeRabbit

  • Documentation
    • Added a new blog article explaining how to provide database guidance to AI coding agents.
    • Includes copy-ready AGENTS.md rules covering safe database provisioning, migration practices, destructive command precautions, machine-readable CLI output, and environment variable handling.
    • Describes supported instruction-file patterns, Prisma MCP integration, an FAQ for common concerns, and practical setup guidance.

@vercel

vercel Bot commented Jul 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
blog Ready Ready Preview, Comment Jul 17, 2026 12:46pm
docs Ready Ready Preview, Comment Jul 17, 2026 12:46pm
eclipse Ready Ready Preview, Comment Jul 17, 2026 12:46pm
site Ready Ready Preview, Comment Jul 17, 2026 12:46pm

Request Review

@coderabbitai

coderabbitai Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: fe572b41-70e1-46ee-93f4-0f62269d66d2

📥 Commits

Reviewing files that changed from the base of the PR and between 4e32318 and d47978d.

📒 Files selected for processing (1)
  • apps/blog/content/blog/agents-md-for-databases/index.mdx
🚧 Files skipped from review as they are similar to previous changes (1)
  • apps/blog/content/blog/agents-md-for-databases/index.mdx

Walkthrough

Adds a new MDX blog article with metadata, five database workflow rules for AI coding agents, a copyable AGENTS.md block, tooling guidance, Prisma MCP context, FAQs, and closing links.

Changes

Database agent workflow guide

Layer / File(s) Summary
Article foundation
apps/blog/content/blog/agents-md-for-databases/index.mdx
Adds article metadata and introductory context for database instructions used by AI coding agents.
Database workflow rules
apps/blog/content/blog/agents-md-for-databases/index.mdx
Documents five database rules and provides a complete copyable AGENTS.md block.
Tooling guidance and FAQ
apps/blog/content/blog/agents-md-for-databases/index.mdx
Explains tool support, Claude Code integration, Prisma MCP, common questions, and follow-up links.

Estimated code review effort: 2 (Simple) | ~10 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: a new blog post about AGENTS.md guidance for database handling by AI agents.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch blog/agents-md-for-databases

Comment @coderabbitai help to get the list of available commands.

@argos-ci

argos-ci Bot commented Jul 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) ✅ No changes detected - Jul 17, 2026, 12:53 PM

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (1)
apps/blog/content/blog/agents-md-for-databases/index.mdx (1)

112-112: 🔒 Security & Privacy | 🔵 Trivial | ⚡ Quick win

Clarify MCP authentication and workspace scope.
This paragraph lists privileged actions, but it should also state that the server authenticates with Prisma Console on first use and only accesses the workspace the user selects. Add that prerequisite and a brief reminder to review the chosen workspace before enabling it.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/blog/content/blog/agents-md-for-databases/index.mdx` at line 112, Update
the paragraph describing the Prisma MCP server to state that first use requires
authentication with Prisma Console, access is limited to the workspace selected
by the user, and users should review that workspace before enabling the server.
Preserve the existing description of its tools and capabilities.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@apps/blog/content/blog/agents-md-for-databases/index.mdx`:
- Around line 43-49: Update the “Destructive commands require a human” guidance
to exclude Prisma’s guarded commands, especially prisma migrate reset, from the
throwaway-database exception. State that the exception applies only to
destructive SQL operations not covered by Prisma’s consent guardrail, while
preserving the requirement to obtain explicit human approval for guarded Prisma
commands.
- Line 39: Update the paragraph describing the create-db region behavior so it
states that omitting --region defaults to us-east-1. Remove the unsupported
claim that the CLI selects the nearest region, while preserving the explanation
of the six selectable regions.

---

Nitpick comments:
In `@apps/blog/content/blog/agents-md-for-databases/index.mdx`:
- Line 112: Update the paragraph describing the Prisma MCP server to state that
first use requires authentication with Prisma Console, access is limited to the
workspace selected by the user, and users should review that workspace before
enabling the server. Preserve the existing description of its tools and
capabilities.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: d7224fff-c298-4e88-a053-5e3af042d9a0

📥 Commits

Reviewing files that changed from the base of the PR and between 97ede65 and 4e32318.

⛔ Files ignored due to path filters (2)
  • apps/blog/public/agents-md-for-databases/imgs/hero.svg is excluded by !**/*.svg
  • apps/blog/public/agents-md-for-databases/imgs/meta.png is excluded by !**/*.png
📒 Files selected for processing (1)
  • apps/blog/content/blog/agents-md-for-databases/index.mdx

Comment thread apps/blog/content/blog/agents-md-for-databases/index.mdx
Comment thread apps/blog/content/blog/agents-md-for-databases/index.mdx
@nurul3101
nurul3101 merged commit e795b41 into main Jul 17, 2026
17 checks passed
@nurul3101
nurul3101 deleted the blog/agents-md-for-databases branch July 17, 2026 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant