14 issues created covering AGENTS.md refactor prerequisite, skill implementation workflow grill, bootstrap skills (write-eval, write-skill), remaining factory skills, and one issue per skill category group through to chunk closure. All HITL; acceptance criteria for 0017-0028 to be refined after 0016 grill session. Doc updates: CONTEXT.md PRD/issue scope clarified (HOW distribution across architecture-review and issue design notes); ROADMAP.md housekeeping updated with bootstrap order and issue range; spec/overview.md recent changes entry added; PRD updated (skills-index: delete → update). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2.6 KiB
0015 — AGENTS.md refactor (prerequisite)
Type: HITL
Parent PRD: docs/prd/chunk-3-skills-library.md
What 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 @file directives) stays in the adapters.
Repo-level AGENTS.md (new, at repo root):
- Receives all provider-agnostic content from repo-level
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) - Repo-level
CLAUDE.mdbecomes:@AGENTS.md+ Claude Code-specific additions (@CONTEXT.mdauto-load, any@importdirectives)
Global core/AGENTS.md (new, deployed to ~/.agents/AGENTS.md via install.sh):
- Receives all provider-agnostic content from
providers/claude-code/CLAUDE.md: Communication rules, Behavior rules providers/claude-code/CLAUDE.mdbecomes:@~/.agents/AGENTS.md+ Claude Code-specific additions (@importforgovernance.md, content index@importdirectives)
AGENTS.md files must be self-contained — no @import syntax. Where a file was previously auto-loaded via @file in CLAUDE.md, the AGENTS.md equivalent states the same instruction in plain prose.
docs/spec/architecture.md is 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@importsyntax- Repo-level
CLAUDE.mdcontains@AGENTS.md+ Claude Code-specific additions only; no duplicated always-on content core/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 structure- HITL: human confirms no always-on rule was lost or duplicated across the split
- HITL: human runs fresh-session behavioral test confirming governance, communication, and behavior rules all apply without any manual load step
Blocked by
None — can start immediately.