Skip to content

Commit 2e99a13

Browse files
ai(ui): add CLAUDE.md to frontend
1 parent 4f17de0 commit 2e99a13

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

invokeai/frontend/web/CLAUDE.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Bash commands
2+
3+
All commands should be run from `<REPO_ROOT>/invokeai/frontend/web/`.
4+
5+
- `pnpm lint:prettier`: check formatting
6+
- `pnpm lint:eslint`: check for linting issues
7+
- `pnpm lint:knip`: check for unused dependencies
8+
- `pnpm lint:dpdm`: check for dependency cycles
9+
- `pnpm lint:tsc`: check for TypeScript issues
10+
- `pnpm lint`: run all checks
11+
- `pnpm fix`: automatically fix issues where possible
12+
- `pnpm test:no-watch`: run the test suite
13+
14+
# Writing Tests
15+
16+
This repo uses `vitest` for unit tests.
17+
18+
Tests should be colocated with the code they test, and should use the `.test.ts` suffix.
19+
20+
Tests do not need to be written for code that is trivial or has no logic (e.g. simple type definitions, re-exports, etc.). We currently do not do UI tests.
21+
22+
# Agents
23+
24+
- Use @agent-javascript-pro and @agent-typescript-pro for JavaScript and TypeScript code generation and assistance.
25+
- Use @frontend-developer for general frontend development tasks.
26+
27+
## Workflow
28+
29+
Split up tasks into smaller subtasks and handle them one at a time using an agent. Ensure each subtask is completed before moving on to the next.
30+
31+
Each agent should maintain a work log in a markdown file.
32+
33+
When an agent completes a task, it should:
34+
35+
1. Summarize the changes made.
36+
2. List any files that were added, modified, or deleted.
37+
3. Commit the changes with a descriptive commit message.
38+
39+
DO NOT PUSH ANY CHANGES TO THE REMOTE REPOSITORY.

0 commit comments

Comments
 (0)