automatically reorder sections on agents.md by priority

This commit is contained in:
Pedro Rodrigues
2026-01-22 08:48:47 +00:00
parent a1fbd23d4b
commit 7b1a65007b
7 changed files with 238 additions and 194 deletions

View File

@@ -89,6 +89,12 @@ npm run validate # Check rule format
npm run build # Generate AGENTS.md
```
**Automatic Section Ordering**: The build system automatically reads section order
from `_sections.md`. To reorder sections (e.g., promoting Security from MEDIUM-HIGH
to CRITICAL priority), simply edit the section numbers in `_sections.md` and
rebuild. The section mapping is generated dynamically, so manual updates to
`config.ts` are no longer needed.
### Impact Levels
| Level | Improvement | Examples |