updated rules in AGENTS.md

This commit is contained in:
dong.nguyen committed 2026-10-15 00:18:34 +07:00
1 parent 0718151c42
commit 0d6890d1b9
2 files changed
+20 -1

No files matched your search

+19
View File
@@ -141,6 +141,25 @@ All specification documents are in `docs/design/`:
Read `spec.md` first for product context. Read `spec-v2.md` for current feature scope.
### Specification Rules
When proposing or implementing changes, always include these 3 sections:
**1. Implementation Details**
- Describe every code step: what to write, edit, or delete
- List new imports, functions, props, state, CSS classes
- Identify edge cases and error handling
**2. Affected Files**
- File + line range to edit: `src/foo.ts:42-57`
- New file to create: `src/bar.ts`
- File to delete: `src/dead.ts`
**3. Progress Tracking**
- Update relevant spec with status: `TODO` / `IN_PROGRESS` / `DONE`
- Record which acceptance criteria were verified
- Format: checklist in spec or inline code comments
## Code Style & Linting
- TypeScript: `verbatimModuleSyntax`, `noUnusedLocals`, `noUnusedParameters`, `noFallthroughCasesInSwitch`