40aee1d3ef
Add alwaysApply file-encoding rule, shell-spec, .editorconfig and .gitattributes templates so agents save .ps1 as UTF-8 BOM+CRLF and .sh as UTF-8+LF; document runtime JSON/spool without BOM. Co-authored-by: Cursor <cursoragent@cursor.com>
17 lines
820 B
Plaintext
17 lines
820 B
Plaintext
---
|
|
description: Компактный PowerShell в выводе агента
|
|
globs: **/*.{ps1,psm1}
|
|
alwaysApply: false
|
|
---
|
|
|
|
# PowerShell — компактный вывод
|
|
|
|
- Pipeline вместо многострочных `foreach`, где читаемо.
|
|
- Без comment-based help и лишних `Write-Host`, если не просили UI/логи.
|
|
- Не дублируй длинные CLI-аргументы целиком — placeholder или переменная.
|
|
- Сохраняй стиль и алиасы **существующего файла**; не навязывай `gc`/`gci` если в проекте полные имена.
|
|
|
|
## Кодировка и EOL
|
|
|
|
См. **`file-encoding.mdc`**: `.ps1` — **UTF-8 with BOM**, **CRLF**; runtime JSON/spool на диск — **UTF-8 без BOM**.
|