Skip to content

Commit 6e87c3b

Browse files
authored
chore: Sync CLAUDE.md from AGENTS.md (#11345)
1 parent 468d20c commit 6e87c3b

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

CLAUDE.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# AI Agent Rules
2+
3+
When working in a specific directory, apply the rules from that directory and all parent directories up to the root.
4+
5+
## While working on `.`
6+
7+
*Source: `AGENTS.md`*
8+
19
1. Write performant code. Always prefer performance over other things.
210
2. Write comments and documentations in English.
311
3. Do not use unstable, nightly only features of rustc.
@@ -6,3 +14,15 @@
614
6. When instructed to fix tests, do not remove or modify existing tests.
715
7. Write documentation for your code.
816
8. Run `cargo fmt --all` before commiting files.
17+
18+
19+
---
20+
21+
## While working on `crates/swc_ecma_minifier`
22+
23+
*Source: `crates/swc_ecma_minifier/AGENTS.md`*
24+
25+
1. You can run execution tests by doing `./scripts/exec.sh` to see if your changes are working.
26+
2. If an execution test fails, you are wrong.
27+
3. Always run execution tests after making changes.
28+
4. You can run fixture tests by doing `./scripts/test.sh`, and you can do `UPDATE=1 ./scripts/test.sh` to update fixtures.

0 commit comments

Comments
 (0)