0015 — AGENTS.md refactor (prerequisite) #22
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type: HITL
Parent PRD:
docs/prd/chunk-3-skills-library.mdWhat to build
Implement ADR-0012: create two AGENTS.md files and slim both CLAUDE.md files to thin adapters. As much provider-agnostic content as possible migrates to each respective AGENTS.md; only Claude Code-specific syntax (
@import, inline@filedirectives) stays in the adapters.Repo-level
AGENTS.md(new, at repo root):CLAUDE.md: working context, structure description, key rules (provider-agnostic core, sync model, edit discipline), the key documents list expressed in plain prose (no@importsyntax)CLAUDE.mdbecomes:@AGENTS.md+ Claude Code-specific additions (@CONTEXT.mdauto-load, any@importdirectives)Global
core/AGENTS.md(new, deployed to~/.agents/AGENTS.mdviainstall.sh):providers/claude-code/CLAUDE.md: Communication rules, Behavior rulesproviders/claude-code/CLAUDE.mdbecomes:@~/.agents/AGENTS.md+ Claude Code-specific additions (@importforgovernance.md, content index@importdirectives)AGENTS.md files must be self-contained — no
@importsyntax. Where a file was previously auto-loaded via@filein CLAUDE.md, the AGENTS.md equivalent states the same instruction in plain prose.docs/spec/architecture.mdis updated in this PR (per "updated in same PR as structural change" convention).HITL gate: human reviews both content splits, runs a fresh-session behavioral test to confirm all previously always-on rules still apply, and approves before committing.
Acceptance criteria
AGENTS.mdexists at repo root; contains all provider-agnostic content from repo-levelCLAUDE.md; no@importsyntaxCLAUDE.mdcontains@AGENTS.md+ Claude Code-specific additions only; no duplicated always-on contentcore/AGENTS.mdexists; contains Communication and Behavior rules fromproviders/claude-code/CLAUDE.md; no@importsyntaxproviders/claude-code/CLAUDE.mdcontains@~/.agents/AGENTS.md+@importdirectives only; no duplicated always-on contentinstall.shdeployscore/AGENTS.md→~/.agents/AGENTS.mddocs/spec/architecture.mdupdated with AGENTS.md entries in the file structureBlocked by
None — can start immediately.