From 0d6890d1b9ddd6fb234f817f269bb4b34aecfff8 Mon Sep 17 00:00:00 2001 From: "dong.nguyen" Date: Thu, 15 Oct 2026 00:18:34 +0700 Subject: [PATCH] updated rules in AGENTS.md --- AGENTS.md | 19 +++++++++++++++++++ src/components/sections/HeroParticles.tsx | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/AGENTS.md b/AGENTS.md index 2f248fb..c97a917 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -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` diff --git a/src/components/sections/HeroParticles.tsx b/src/components/sections/HeroParticles.tsx index a69de26..31fdb64 100644 --- a/src/components/sections/HeroParticles.tsx +++ b/src/components/sections/HeroParticles.tsx @@ -7,7 +7,7 @@ export function HeroParticles() { Array.from({ length: count }, (_, i) => ({ id: i, left: `${Math.random() * 100}%`, - duration: `${Math.random() * 10 + 8}s`, + duration: `${Math.random() * 10 + 6}s`, delay: `${Math.random() * 10}s`, size: `${Math.random() * 10 + 6}px`, })),