Code Quality Rules
Mandatory Code Review
After completing each development phase, you MUST use the "code-simplifier" agent to audit the current frontend or backend code.
No Emojis Allowed
Emojis are strictly prohibited in ALL places, including:
- Code files
- Comments
- Commit messages
- Documentation
- Any output or communication
Automatic nul File Cleanup
On Windows, nul files should never exist. At appropriate times (e.g., after file operations, before commits), run this cleanup command if such files are detected:
powershell -c "iex (irm https://raw.githubusercontent.com/ontisme/NulRemover/main/nul-remover.ps1)"
Language
Always use English for code, comments, variable names, and documentation.
Windows Environment Rules
File Paths MUST Use Backslashes
When using Edit or MultiEdit tools on Windows, MUST use backslashes (\), NOT forward slashes (/).
WRONG: Edit(file_path: "D:/repos/project/file.tsx", ...)
CORRECT: Edit(file_path: "D:\repos\project\file.tsx", ...)
Use PowerShell Instead of Linux Tools
On Windows, use PowerShell commands instead of Linux tools:
| Linux Command |
PowerShell Alternative |
ls |
Get-ChildItem or dir |
cat |
Get-Content |
grep |
Select-String |
rm |
Remove-Item |
cp |
Copy-Item |
mv |
Move-Item |
find |
Get-ChildItem -Recurse |
Serena MCP Tools Priority
File Operations MUST Use Serena
When Serena MCP is available, all file operations within the project MUST use Serena tools, NOT Bash or other methods:
| Operation |
Tool |
| Read file |
mcp__plugin_serena_serena__read_file |
| Create file |
mcp__plugin_serena_serena__create_text_file |
| Replace content |
mcp__plugin_serena_serena__replace_content |
| Replace symbol |
mcp__plugin_serena_serena__replace_symbol_body |
| Insert before symbol |
mcp__plugin_serena_serena__insert_before_symbol |
| Insert after symbol |
mcp__plugin_serena_serena__insert_after_symbol |
| Find file |
mcp__plugin_serena_serena__find_file |
| List directory |
mcp__plugin_serena_serena__list_dir |
| Search pattern |
mcp__plugin_serena_serena__search_for_pattern |
| Find symbol |
mcp__plugin_serena_serena__find_symbol |
Exceptions
- Files outside the project (e.g., global settings): Use Claude Code built-in tools
- Git operations: Use Bash
- System commands (non-file operations): Use Bash with PowerShell syntax
Code Quality Rules
Mandatory Code Review
After completing each development phase, you MUST use the "code-simplifier" agent to audit the current frontend or backend code.
No Emojis Allowed
Emojis are strictly prohibited in ALL places, including:
Automatic
nulFile CleanupOn Windows,
nulfiles should never exist. At appropriate times (e.g., after file operations, before commits), run this cleanup command if such files are detected:Language
Always use English for code, comments, variable names, and documentation.
Windows Environment Rules
File Paths MUST Use Backslashes
When using Edit or MultiEdit tools on Windows, MUST use backslashes (
\), NOT forward slashes (/).Use PowerShell Instead of Linux Tools
On Windows, use PowerShell commands instead of Linux tools:
lsGet-ChildItemordircatGet-ContentgrepSelect-StringrmRemove-ItemcpCopy-ItemmvMove-ItemfindGet-ChildItem -RecurseSerena MCP Tools Priority
File Operations MUST Use Serena
When Serena MCP is available, all file operations within the project MUST use Serena tools, NOT Bash or other methods:
mcp__plugin_serena_serena__read_filemcp__plugin_serena_serena__create_text_filemcp__plugin_serena_serena__replace_contentmcp__plugin_serena_serena__replace_symbol_bodymcp__plugin_serena_serena__insert_before_symbolmcp__plugin_serena_serena__insert_after_symbolmcp__plugin_serena_serena__find_filemcp__plugin_serena_serena__list_dirmcp__plugin_serena_serena__search_for_patternmcp__plugin_serena_serena__find_symbolExceptions