Repository navigation
[docs-organizer] Restructure documentation to follow standardized pattern #2742
Copy link
Copy link
Open
Labels
automateddocumentationImprovements or additions to documentationImprovements or additions to documentation
Description
Documentation Organization Report
Current State
Root Level Files
| File | Size | Status |
|---|---|---|
README.md |
4,702 B | User-facing, properly scoped ✓ |
DEVELOPING.md |
20,112 B | Developer-facing, comprehensive ✓ |
CONTRIBUTING.md |
9,118 B | Developer-facing, PR process ✓ |
AGENTS.md |
15,928 B | TOO LARGE (~400+ lines, should be <100) ❌ |
CLAUDE.md |
9 B | Symlink to AGENTS.md ✓ |
.github/copilot-instructions.md |
1,519 B | Points to AGENTS.md ✓ |
Missing: CODE_STYLE.md at root level |
— | REQUIRED for code reviewers ❌ |
dev-docs/ Directory
Contains architecture, design, verification, and style docs. Good structure, but CODE_STYLE.md is only here, not at root level where code reviewers can find it.
Per-Crate Level
crates/ffwd-core/CLAUDE.md— symlink to root AGENTS.md ✓crates/ffwd-arrow/CLAUDE.md— symlink to root AGENTS.md ✓- Missing: Per-crate
AGENTS.mdwith crate-specific rules
Key Issues
1. AGENTS.md is bloated (15,928 bytes vs <100 lines target)
The current file is a knowledge dump, not a routing table. It contains:
- Full command reference (should stay)
- Architecture overview (too detailed for routing)
- Crate rules table (could point to dev-docs/CRATE_RULES.md)
- Code style essentials (should be in CODE_STYLE.md)
- Verification requirements (should point to dev-docs/VERIFICATION.md)
- Change map (should point to dev-docs/CHANGE_MAP.md)
- Git/PR conventions (should point to CONTRIBUTING.md)
- Issue labels (should point to CONTRIBUTING.md)
- Navigation tips (good, but too verbose)
2. Missing CODE_STYLE.md at root level
The standard requires CODE_STYLE.md for code reviewers (Coderabbit). Currently it's only in dev-docs/. This should be:
- Moved to root
CODE_STYLE.mdfor visibility - Kept as a reference in
dev-docs/CODE_STYLE.md(or removed from there)
3. Per-crate AGENTS.md files don't exist
Per the standard, each crate with specific rules should have its own AGENTS.md. Currently only symlinks to root exist.
Proposed Restructuring Plan
Phase 1: Create root CODE_STYLE.md
- Copy
dev-docs/CODE_STYLE.md→ rootCODE_STYLE.md - Update to focus on subjective preferences only (what reviewers should enforce):
- Naming conventions (verb_noun functions, is_/has_/should_ prefixes)
- Comment style (doc comments on public items, no restating code)
- Test naming (scenario-based names)
- Hot path rules (no per-record allocations)
- Keep enforcement lints in config files (Cargo.toml, etc.)
dev-docs/CODE_STYLE.mdbecomes a redirect/reference
Phase 2: Streamline AGENTS.md
- Reduce to routing table format (~100 lines max)
- Keep: Prerequisites, primary commands, repository map (condensed), key principles
- Replace detailed sections with pointers:
- Architecture details →
dev-docs/ARCHITECTURE.md - Crate rules →
dev-docs/CRATE_RULES.md - Code style →
CODE_STYLE.md - Verification →
dev-docs/VERIFICATION.md - Change map →
dev-docs/CHANGE_MAP.md - PR process →
CONTRIBUTING.md - Issue labels →
CONTRIBUTING.md
- Architecture details →
Phase 3: Create per-crate AGENTS.md files
For crates with specific rules (at minimum ffwd-core, ffwd-arrow):
- Create
crates/ffwd-core/AGENTS.mdwith:- no_std + forbid(unsafe_code) constraints
- Kani proof requirements
- Reference to
dev-docs/CRATE_RULES.mdfor full details
- Create
crates/ffwd-arrow/AGENTS.mdwith:- SIMD-only unsafe rule
- proptest requirements
- Update
CLAUDE.mdin each to symlink to localAGENTS.md
Phase 4: Update copilot-instructions.md
Ensure it references root CODE_STYLE.md in addition to AGENTS.md.
Verification Checklist
After restructuring:
- Root
CLAUDE.mdis symlink to rootAGENTS.md - Root
AGENTS.mdis under 100 lines - Root
CODE_STYLE.mdexists for code reviewers -
.github/copilot-instructions.mdreferences bothAGENTS.mdandCODE_STYLE.md -
crates/ffwd-core/CLAUDE.md→crates/ffwd-core/AGENTS.md -
crates/ffwd-arrow/CLAUDE.md→crates/ffwd-arrow/AGENTS.md - Per-crate
AGENTS.mdfiles contain crate-specific rules - No file mixes audiences (user + developer + agent content)
-
AGENTS.mdpoints to rather than explains (routing table pattern)
Generated by Docs Organizer · ● 306.6K · ◷
- expires on May 5, 2026, 9:30 PM UTC
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
automateddocumentationImprovements or additions to documentationImprovements or additions to documentation
Activity