Invocation: @split-codex.md
This protocol is used to intelligently split the AI Codex when it becomes too long, grouping related Errors (E) and Learnings (L) into separate codex pages.
- Analyze the current @codex.md file
- Identify common themes or categories among entries
- Group related E and L entries
- Create new codex pages for each group
- Update the main @codex.md with links to new pages
- Report the new structure
- Project area (e.g., frontend, backend, database)
- Technology or framework (e.g., React, Node.js, Prisma)
- Concept (e.g., authentication, state management, testing)
- File type or location (e.g., configuration files, utility functions)
- Main codex remains at: .ai/codex/codex.md
- New pages: .ai/codex/[category]-codex.md
- Move relevant entries to new category-specific files
- In the main codex (.ai/codex/codex.md), replace moved entries with links to new files
- Ensure cross-references are updated across all files
Use kebab-case for new codex file names, e.g.:
- frontend-codex.md
- database-operations-codex.md
- authentication-codex.md
After splitting, provide a summary of:
- Number of new codex pages created
- Categories identified
- Entry distribution across new pages
IMPORTANT: Maintain the original entry IDs (E001, L001, etc.) in the new files to preserve existing references.