AGENTS.md
AGENTS.mdAGENTS.mdroot
Quality
88/100
Scores the file, not the repository.Length
595 words
10 headings · 0 code blocksRepository
34k
— · pushed 0 days agoLast changed
2 days ago
First indexed 2 days ago.1# Instructions23## General rule45- Read the codebase - the codebase is source of truth, and you should prefer reading lots of source code over searching.6- Do not search web unless explicitly asked to do so. Web search does not help in general for our project.7- Write performant code. Always prefer performance over other things.8- Use `gh` CLI tool for fetching data from `github.com`.9- Do not let sandbox constraints stall progress. If sandbox restrictions block required work, request escalation promptly and continue.1011## Code style1213- Write comments and documentations in English.14- Write documentation for your code.15- When introducing a workaround, leave sufficient comments explaining why it is needed and any known limitations.16- Commit your work as frequent as possible using git. Do NOT use `--no-verify` flag.17- Prefer multiple small files over single large file.18- Prefer enum (or dedicated type) based modeling over raw string literals whenever possible.1920---2122- When creating Atom instances, it's better to use `Cow<str>` or `&str` instead of `String`. Note that `&str` is better than `Cow<str>` here.2324## Debugging and logging2526- Do not guess behavior. Verify assumptions by reading source, fixtures, and tests.27- Debug with logs when behavior is unclear.28- Write sufficient logs for debugging and operational troubleshooting.29- Prefer structured logging in Rust (`tracing`) over ad-hoc plain text logs when feasible.3031## Shell safety3233- For shell commands or scripts, prefer `$(...)` over legacy backticks for command substitution.34- Quote and escape all dynamic shell values strictly.3536## Git workflow3738- Run `git commit` only after `git add`.39- Once changes are staged, commit without unnecessary delay so staged history is preserved.40- When creating or updating a pull request, follow the repository pull request template.41- When creating a pull request, use the `add-changeset` skill to create the required changeset.42- After addressing pull request review comments and pushing updates, resolve the corresponding review threads.4344## Testing4546- Write unit tests for your code.47- Prefer fixture tests over inline (`#[test]`) tests.48- Before running tests, run `git submodule update --init --recursive` to initialize and update all submodules.49- You can do `UPDATE=1 cargo test` to get test outputs updated for fixture tests.50- When instructed to fix tests, do not remove or modify existing tests.5152### Fixture Test Common Guide5354- Add new coverage by extending existing fixture suites instead of adding ad-hoc inline tests.55- Find the exact fixture harness before adding files with: `rg -n "#\[(testing::)?fixture\(" tests src --glob "*.rs"`.56- Keep each suite's naming conventions (for example: input.*, output.*, exec.*, .ans).57- For snapshot-style tests, update expected outputs with `UPDATE=1 cargo test -p ...` using the exact crate command documented in each crate's AGENTS.md.58- Always rerun the same crate tests without `UPDATE` before finishing.5960## Verification6162- Before finishing a task, always run this baseline locally.63 - `cargo fmt --all`64 - `cargo clippy --all --all-targets -- -D warnings`65- For each touched Rust crate, run crate-level verification locally.66 - `cargo test -p <crate>`67- If wasm binding packages are touched, run:68 - `(cd bindings/binding_core_wasm && ./scripts/test.sh)`69 - `(cd bindings/binding_minifier_wasm && ./scripts/test.sh)`70 - `(cd bindings/binding_typescript_wasm && ./scripts/test.sh)`71 - `(cd bindings/binding_es_ast_viewer && ./scripts/test.sh)`72- If node bindings or integration paths are touched, run:73 - `(cd packages/core && pnpm build:dev && pnpm test)`7475## Compatibility rule7677- Do not use unstable, nightly only features of rustc.78- Respect the project's MSRV. Do not rely on Rust language features or standard library APIs newer than the MSRV unless the change intentionally raises the MSRV.79
Also in swc-project/swc
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| swc-project/swcCLAUDE.md · 34k | CLAUDE.md | testlint-formatstyletesting-strategy+3 | 82/100 | 2 days ago | |
| swc-project/swccrates/jsdoc/AGENTS.md · 34k | AGENTS.md | testtesting-strategydocs | 16/100 | 2 days ago | |
| swc-project/swccrates/swc/AGENTS.md · 34k | AGENTS.md | testtesting-strategy | 28/100 | 2 days ago | |
| swc-project/swccrates/swc_bundler/AGENTS.md · 34k | AGENTS.md | testtesting-strategy | 16/100 | 2 days ago | |
| swc-project/swccrates/swc_core/AGENTS.md · 34k | AGENTS.md | testtesting-strategy | 16/100 | 2 days ago | |
| swc-project/swccrates/swc_css_codegen/AGENTS.md · 34k | AGENTS.md | testtesting-strategy | 16/100 | 2 days ago | |
| swc-project/swccrates/swc_css_compat/AGENTS.md · 34k | AGENTS.md | testtesting-strategy | 28/100 | 2 days ago | |
| swc-project/swccrates/swc_css_lints/AGENTS.md · 34k | AGENTS.md | testtesting-strategy | 16/100 | 2 days ago | |
| swc-project/swccrates/swc_css_minifier/AGENTS.md · 34k | AGENTS.md | testtesting-strategy | 16/100 | 2 days ago | |
| swc-project/swccrates/swc_css_modules/AGENTS.md · 34k | AGENTS.md | testtesting-strategy | 16/100 | 2 days ago | |
| swc-project/swccrates/swc_css_parser/AGENTS.md · 34k | AGENTS.md | testtesting-strategy | 16/100 | 2 days ago | |
| swc-project/swccrates/swc_css_prefixer/AGENTS.md · 34k | AGENTS.md | testtesting-strategy | 16/100 | 2 days ago | |
| swc-project/swccrates/swc_ecma_codegen/AGENTS.md · 34k | AGENTS.md | testtesting-strategy | 16/100 | 2 days ago | |
| swc-project/swccrates/swc_ecma_lints/AGENTS.md · 34k | AGENTS.md | testtesting-strategy | 16/100 | 2 days ago | |
| swc-project/swccrates/swc_ecma_minifier/AGENTS.md · 34k | AGENTS.md | testtesting-strategyagent-behaviour | 51/100 | 2 days ago |
Diff against CLAUDE.md Diff against crates/jsdoc/AGENTS.md Diff against crates/swc/AGENTS.md Diff against crates/swc_bundler/AGENTS.md Diff against crates/swc_core/AGENTS.md Diff against crates/swc_css_codegen/AGENTS.md Diff against crates/swc_css_compat/AGENTS.md Diff against crates/swc_css_lints/AGENTS.md Diff against crates/swc_css_minifier/AGENTS.md Diff against crates/swc_css_modules/AGENTS.md Diff against crates/swc_css_parser/AGENTS.md Diff against crates/swc_css_prefixer/AGENTS.md Diff against crates/swc_ecma_codegen/AGENTS.md Diff against crates/swc_ecma_lints/AGENTS.md Diff against crates/swc_ecma_minifier/AGENTS.md
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| n8n-io/n8npackages/@n8n/agents/AGENTS.md · 199k | AGENTS.md | buildteststylearch+3 | 100/100 | 3 days ago | |
| aaif-goose/gooseAGENTS.md · 52k | AGENTS.md | setupbuildtestlint-format+6 | 100/100 | 3 days ago | |
| wpscanteam/wpscanAGENTS.md · 9.7k | AGENTS.md | setupbuildteststyle+6 | 100/100 | 2 days ago | |
| mui/material-uiAGENTS.md · 99k | AGENTS.md | setupbuildtestlint-format+9 | 100/100 | 3 days ago | |
| SkeneTechnologies/skene-cookbookAGENTS.md · 51 | AGENTS.md | setupbuildtestlint-format+7 | 100/100 | 2 days ago | |
| duckduckgo/content-scope-scriptsspecial-pages/AGENTS.md · 70 | AGENTS.md | buildteststylearch+3 | 100/100 | 3 days ago | |
| trick77/agents-md-syncAGENTS.md · 2 | AGENTS.md | setupbuildteststyle+5 | 100/100 | 3 days ago | |
| TryGhost/Ghoste2e/AGENTS.md · 55k | AGENTS.md | setupteststylearch+2 | 100/100 | 3 days ago |
