Skip to content

Commit 3bbe058

Browse files
authored
chore: improve automatic rule detection for LLMs (#5588)
1 parent 557bb3c commit 3bbe058

5 files changed

Lines changed: 14 additions & 8 deletions

File tree

.claude/CLAUDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Venus Protocol Interface - Claude Rules
1+
# Venus Protocol Interface - Rules
22

3-
Before generating or modifying code in this repository, Claude must read:
3+
Before generating or modifying code in this repository, you must read:
44

55
1. `.claude/references/design-system.md`
66
2. `.claude/references/api-patterns.md`

.claude/references/code-quality.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,12 @@ Regenerate using project scripts (`yarn generate-*`, `yarn generate`) instead.
187187
## Testing stack and expectations
188188

189189
- Unit/integration tests use Vitest.
190+
- When writing tests within a workspace, first read its Vite config and setupTests files (if any) to
191+
ensure the tests you write are aligned with them.
190192
- React rendering tests use Testing Library.
191193
- Test filenames in this repo use `*.spec.ts` / `*.spec.tsx`.
194+
- Tests should be run using the Node version specified in the repo `.nvmrc`.
195+
- Only mock components when absolutely necessary.
192196

193197
### Practical testing guidance
194198

AGENTS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Venus Protocol Interface - Agent Bootstrap
2+
3+
Before generating, editing, or reviewing code in this repository, read `.claude/CLAUDE.md`.

CLAUDE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Venus Protocol Interface - Claude Bootstrap
2+
3+
Before generating, editing, or reviewing code in this repository, read `.claude/CLAUDE.md`.

package.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,13 @@
33
"version": "1.0.0",
44
"private": true,
55
"packageManager": "yarn@4.14.1",
6-
"workspaces": [
7-
"packages/*",
8-
"configs/*",
9-
"apps/*"
10-
],
6+
"workspaces": ["packages/*", "configs/*", "apps/*"],
117
"scripts": {
128
"start": "turbo run start",
139
"generate": "turbo run generate",
1410
"lint": "turbo run lint",
1511
"lint:styles": "turbo run lint:styles",
16-
"format": "biome check --apply .",
12+
"format": "npx biome check --apply .",
1713
"test": "turbo run test --",
1814
"tsc": "turbo run tsc",
1915
"clean": "turbo run clean && rm -rf node_modules",

0 commit comments

Comments
 (0)