mirror of
https://github.com/dong-nz/cv.git
synced 2026-11-23 00:20:40 +07:00
updated rules in AGENTS.md
This commit is contained in:
1 parent
0718151c42
commit
0d6890d1b9
2 files changed
+20
-1
No files matched your search
@@ -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.
|
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
|
## Code Style & Linting
|
||||||
|
|
||||||
- TypeScript: `verbatimModuleSyntax`, `noUnusedLocals`, `noUnusedParameters`, `noFallthroughCasesInSwitch`
|
- TypeScript: `verbatimModuleSyntax`, `noUnusedLocals`, `noUnusedParameters`, `noFallthroughCasesInSwitch`
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ export function HeroParticles() {
|
|||||||
Array.from({ length: count }, (_, i) => ({
|
Array.from({ length: count }, (_, i) => ({
|
||||||
id: i,
|
id: i,
|
||||||
left: `${Math.random() * 100}%`,
|
left: `${Math.random() * 100}%`,
|
||||||
duration: `${Math.random() * 10 + 8}s`,
|
duration: `${Math.random() * 10 + 6}s`,
|
||||||
delay: `${Math.random() * 10}s`,
|
delay: `${Math.random() * 10}s`,
|
||||||
size: `${Math.random() * 10 + 6}px`,
|
size: `${Math.random() * 10 + 6}px`,
|
||||||
})),
|
})),
|
||||||
|
|||||||
Reference in new issue
Block a user