Skip to content

feat: split CLAUDE.md to adopt the AGENTS.md standard#129

Draft
ryzizub wants to merge 1 commit into
mainfrom
claude/draft-pr-231-replication-34e079
Draft

feat: split CLAUDE.md to adopt the AGENTS.md standard#129
ryzizub wants to merge 1 commit into
mainfrom
claude/draft-pr-231-replication-34e079

Conversation

@ryzizub

@ryzizub ryzizub commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Description

Split the root CLAUDE.md to adopt the AGENTS.md open standard.

Platform-agnostic contributor conventions now live in a new root AGENTS.md that other harnesses (Codex, Gemini CLI, OpenCode) read directly. CLAUDE.md becomes a single @AGENTS.md import followed only by the Claude-Code-specific ## Hooks section, so Claude Code receives the same guidance with nothing duplicated.

Why: Claude Code does not read AGENTS.md natively, but CLAUDE.md supports @path imports. This keeps a single source of truth with zero drift and no symlink (so no Windows admin requirement). Only the Hooks section describes Claude-Code-specific mechanics, so it stays in CLAUDE.md; everything else moved intact.

Changes:

  • Add AGENTS.md with the portable sections: Project Overview, Repository Structure, Skill File Format, Writing Conventions, Adding a New Skill, Adding a New Agent, Maintaining Existing Skills/Hooks/MCP Tools, and Commits.
  • Reduce CLAUDE.md to the @AGENTS.md import plus the Claude-Code-specific ## Hooks section.
  • Repoint the "update the repository structure in CLAUDE.md" cross-references to AGENTS.md (two inside AGENTS.md, one in CONTRIBUTING.md), since that block moved. The Hooks cross-reference still points to CLAUDE.md.
  • Neutralize the ## Project Overview wording so the portable file no longer frames the repo as Claude-Code-only.

No per-file markdownlint-disable-file MD041 directive is needed: MD041 is already disabled repo-wide in config/custom.markdownlint.jsonc. markdownlint-cli2 and cspell both pass on the changed files with the repo configs.

Type of Change

  • New feature (feat)
  • Bug fix (fix)
  • Code refactor (refactor)
  • Documentation (docs)
  • CI change (ci)
  • Chore (chore)

🤖 Generated with Claude Code

Move platform-agnostic contributor conventions to a new root AGENTS.md so
tier-2 harnesses (Codex, Gemini CLI, OpenCode) read them directly. CLAUDE.md
becomes an @AGENTS.md import followed only by the Claude-Code-specific Hooks
section, so Claude Code receives the same guidance with nothing duplicated.

Repository-structure cross-references in CONTRIBUTING.md and in the moved
sections now point to AGENTS.md. MD041 is already disabled repo-wide, so no
per-file markdownlint directive was needed.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@ryzizub
ryzizub marked this pull request as ready for review July 24, 2026 15:33
@ryzizub
ryzizub requested a review from a team as a code owner July 24, 2026 15:33
@ryzizub ryzizub changed the title feat: support AGENTS.md standard feat: split CLAUDE.md to adopt the AGENTS.md standard Jul 24, 2026
@ryzizub
ryzizub marked this pull request as draft July 24, 2026 15:36
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