Skip to content

refactor: make AGENTS.md source of truth, CLAUDE.md as symlink#42

Merged
recoupableorg merged 3 commits intomainfrom
feat/agents-md-symlink
Feb 17, 2026
Merged

refactor: make AGENTS.md source of truth, CLAUDE.md as symlink#42
recoupableorg merged 3 commits intomainfrom
feat/agents-md-symlink

Conversation

@sidneyswift
Copy link
Copy Markdown
Contributor

@sidneyswift sidneyswift commented Feb 16, 2026

Makes AGENTS.md the source of truth for AI agent instructions. CLAUDE.md is now a symlink to it.

Summary by CodeRabbit

  • Documentation
    • Added comprehensive development guidance documentation covering repository workflow, project structure, configuration, branding standards, and coding conventions.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Feb 16, 2026

📝 Walkthrough

Walkthrough

A new documentation file AGENTS.md is added to guide coding agents through repository workflows, project structure, development practices, configuration, branding conventions, MDX writing standards, API reference guidelines, and core code principles.

Changes

Cohort / File(s) Summary
Documentation
AGENTS.md
New guidance document for coding agents covering repository workflow, project structure, development practices, Mintlify configuration, branding constants, MDX conventions for API references, and core development principles.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Poem

🐰✨ A guidebook appears, so shiny and new,
For agents who code and know what to do,
MDX structures and branches so neat,
Making workflows and standards complete! 📚🎉

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: making AGENTS.md the source of truth and converting CLAUDE.md to a symlink, which aligns with the PR objectives and file modifications.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/agents-md-symlink

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

Comment thread AGENTS.md Outdated
@@ -0,0 +1,110 @@
# Agent Instructions

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

nit (optional) - more inclusive agent naming

Suggested change
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This file provides guidance to coding agents like Claude Code (claude.ai/code) and OpenCode when working with code in this repository.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@AGENTS.md`:
- Around line 27-43: The fenced code block containing the directory tree in
AGENTS.md is missing a language specifier; update the opening fence (the triple
backticks that start the directory tree) to include a language like "text"
(e.g., change ``` to ```text) so the tree renders correctly and satisfies
linting; locate the fenced block that begins with the directory listing (lines
showing "docs/" and the tree entries) and add the language specifier to the
opening fence.
- Line 50: Replace the outdated CLI invocation "npx mintlify@latest dev" in
AGENTS.md with the correct Mintlify CLI command for this repository: if the repo
uses docs.json projects use "npx mint dev", otherwise for mint.json projects use
"mintlify dev"; inspect the repo root to determine whether docs.json or
mint.json is present and update the single line containing "npx mintlify@latest
dev" accordingly.

Comment thread AGENTS.md
Comment on lines +27 to +43
```
docs/
├── docs.json # Mintlify configuration (navigation, branding, theme)
├── index.mdx # Homepage
├── quickstart.mdx # Getting started guide
├── development.mdx # Development setup guide
├── api-reference/ # API endpoint documentation
│ ├── introduction.mdx
│ ├── openapi.json # OpenAPI spec for API endpoints
│ └── [category]/ # Grouped API endpoints (tasks, artists, chat, etc.)
├── essentials/ # Core documentation pages
├── ai-tools/ # AI tool integration guides
├── logo/ # Brand logos (light.svg, dark.svg)
├── favicon.svg # Site favicon
├── images/ # Documentation images
└── snippets/ # Reusable MDX snippets
```
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Add language specifier to fenced code block.

The directory tree structure should specify a language for the code fence to improve rendering and satisfy linting rules.

📝 Proposed fix
-```
+```text
 docs/
 ├── docs.json           # Mintlify configuration (navigation, branding, theme)
🧰 Tools
🪛 markdownlint-cli2 (0.21.0)

[warning] 27-27: Fenced code blocks should have a language specified

(MD040, fenced-code-language)

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@AGENTS.md` around lines 27 - 43, The fenced code block containing the
directory tree in AGENTS.md is missing a language specifier; update the opening
fence (the triple backticks that start the directory tree) to include a language
like "text" (e.g., change ``` to ```text) so the tree renders correctly and
satisfies linting; locate the fenced block that begins with the directory
listing (lines showing "docs/" and the tree entries) and add the language
specifier to the opening fence.

Comment thread AGENTS.md
Mintlify docs are deployed automatically. To preview locally:

```bash
npx mintlify@latest dev
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🌐 Web query:

Mintlify CLI dev command 2025 2026 documentation

💡 Result:

Mintlify has two “dev” commands in their docs, depending on which CLI/project format you’re using:

  • If your repo has docs.json (older/common Mintlify docs format): install the mint CLI and run:

    • npm i -g mint
    • mint dev (or npx mint dev)
      Local preview: http://localhost:3000 and you can change the port with --port (e.g., mint dev --port 3333). [1][2]
  • If your repo has mint.json (Starter Kit / newer flow): install the mintlify CLI and run:

    • npm i -g mintlify
    • mintlify dev
      Local preview: http://localhost:3000 and you can change the port with --port (e.g., mintlify dev --port 3333). [3]

Rule of thumb: check your repo root—docs.jsonmint dev; mint.jsonmintlify dev. [2][3]

Sources
[1] Mintlify “Install the CLI / Preview locally” (mint dev) https://www.mintlify.com/docs/installation
[2] Mintlify “CLI installation” (mint dev, npx mint dev, --port, updates) https://mintlify.com/docs/installation
[3] Mintlify Starter Kit “Development” (mintlify dev, mint.json) https://www.mintlify.app/development


Update Mintlify CLI command to match current documentation.

The command npx mintlify@latest dev does not align with official Mintlify CLI documentation. Use one of these commands instead:

  • For docs.json projects: npx mint dev
  • For mint.json projects: mintlify dev

Check your repo root to determine which project format is being used, then apply the corresponding command.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@AGENTS.md` at line 50, Replace the outdated CLI invocation "npx
mintlify@latest dev" in AGENTS.md with the correct Mintlify CLI command for this
repository: if the repo uses docs.json projects use "npx mint dev", otherwise
for mint.json projects use "mintlify dev"; inspect the repo root to determine
whether docs.json or mint.json is present and update the single line containing
"npx mintlify@latest dev" accordingly.

@recoupableorg recoupableorg merged commit 814c941 into main Feb 17, 2026
2 checks passed
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.

3 participants