-
-
Notifications
You must be signed in to change notification settings - Fork 757
docs: improve AGENTS.md and add comprehensive development documentation #12420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Enhance AGENTS.md with comprehensive development guidelines - Add detailed directory structure information - Add debugging guide references - Add code quality and style guidelines - Add common tasks and workflows - Add dependency management details - Add performance testing information - Fix grammar errors (test Cases -> test cases, codes -> code, Formating -> Formatting) - Add project.md documentation for both English and Chinese - Document all Rust crates with descriptions - Document all NPM packages with descriptions - Document test cases directory structure - Update _meta.json files to include project.md in navigation - Add deconflict to project-words.txt for spell checking
✅ Deploy Preview for rspack canceled.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR enhances developer onboarding and documentation by adding comprehensive project architecture documentation and improving the AGENTS.md file with detailed development guidelines. The changes provide both English and Chinese documentation to help developers understand the project structure, codebase organization, and common development workflows.
- Adds detailed project architecture documentation (
project.md) describing all Rust crates, NPM packages, and test cases - Expands AGENTS.md with comprehensive sections on setup, building, testing, debugging, code quality, common tasks, and contribution guidelines
- Updates package.json to add
test:rscommand and changelint:rsfrom clippy to cargo check
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| AGENTS.md | Significantly expanded with structured development guidelines including setup, building, testing, debugging, code quality, common tasks, dependency management, performance, documentation, PR guidelines, and error handling sections |
| website/docs/en/contribute/development/project.md | New comprehensive English documentation of project architecture covering all Rust crates, NPM packages, and test suite structure with detailed descriptions |
| website/docs/zh/contribute/development/project.md | New comprehensive Chinese documentation of project architecture, mirroring the English version with consistent translations |
| website/docs/en/contribute/development/_meta.json | Adds "project" to navigation order as first item in development documentation |
| website/docs/zh/contribute/development/_meta.json | Adds "project" to navigation order as first item in development documentation |
| website/project-words.txt | Adds "deconflict" to the spell checker dictionary for legitimate technical term usage |
| package.json | Adds test:rs command for running Rust tests and changes lint:rs from cargo clippy to cargo check --workspace --all-targets --locked |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Rsdoctor Bundle Diff AnalysisFound 5 project(s) in monorepo. 📁 react-10kPath:
📁 react-1kPath:
📁 react-5kPath:
📁 romePath:
📁 ui-componentsPath:
Generated by Rsdoctor GitHub Action |
📦 Binary Size-limit
🙈 Size remains the same at 48.21MB |
CodSpeed Performance ReportMerging #12420 will not alter performanceComparing Summary
|
- Add comprehensive code style guide covering Rust and TypeScript/JavaScript conventions - Add common patterns documentation with examples for plugins, hooks, error handling, and more - Provide templates and examples to help developers follow project conventions
…ENTS.md - Move API_DESIGN.md, ARCHITECTURE.md, CODE_STYLE.md, COMMON_PATTERNS.md, GLOSSARY.md, and SKILLS.md to agents/ directory - Keep AGENTS.md in root directory as the main entry point - Add comprehensive index section in AGENTS.md pointing to all docs in agents/ - Update internal references between documents to reflect new locations - Ensure AI models can easily discover and access all documentation
aa5a908 to
2dbe4b3
Compare
Reduce ARCHITECTURE.md from ~13k to ~9.5k characters (~2.5k tokens) by: - Condensing detailed descriptions - Simplifying code examples and flowcharts - Removing redundant explanations - Keeping core concepts and essential information
Summary
This PR enhances the development documentation for Rspack to make it more AI/LLM-friendly and provides comprehensive guidelines for contributors.
Changes
AGENTS.md Improvements
New Documentation Files
CODE_STYLE.md: Comprehensive code style guide
COMMON_PATTERNS.md: Common code patterns and templates
project.md: Project architecture documentation (English and Chinese)
Update
_meta.jsonfiles to include project.md in navigationAdd
deconflictto project-words.txt for spell checkingBenefits
Checklist