Одиннадцать правил, каждое из которых появилось после настоящей ошибки. Claude работает быстро, поэтому и ошибается быстро. Эти правила не дают ошибке дойти до директора.
Eleven rules, each born from a real mistake. Claude works fast, so it also makes mistakes fast. These rules stop a mistake before it reaches the director.
Хороший бухгалтер никогда не пишет на оригинале накладной. Он делает копию, считает на ней, сверяет итог с банковской выпиской и только потом подписывает отчёт. Если ошибся — оригинал цел, можно начать заново.
A good accountant never writes on the original invoice. They make a copy, calculate on it, reconcile the total with the bank statement, and only then sign the report. If they slip, the original is intact and they can start over.
Истории — из практики учебной компании «Долина напитков». Ошибки настоящие, названия изменены.
The stories come from the practice of the training company Valley Beverages. The mistakes are real, the names are changed.
pause в конце; русские сообщения — внутри скрипта .py.only Latin letters in a .bat and pause at the end; Russian messages go inside the .py script.Восемь коротких историй. Выберите, какое правило нарушили.
Eight short stories. Choose which rule was broken.
Скопируйте и вставьте в CLAUDE.md своей рабочей папки (урок 15-26). Поправьте единицу и эталон под свою задачу.
Copy and paste it into the CLAUDE.md of your work folder (lesson 15-26). Adjust the unit and the reference to your task.
## Правила работы
1. Исходные файлы компании только читать. Результат — новым файлом рядом, с датой в имени.
2. Сначала понять источник: открыть файл, показать листы, колонки, единицы, период. Структуру не додумывать.
3. До отчёта сверить итог с эталоном: [итог в учётной системе / утверждённый отчёт]. Расхождение — показать и остановиться.
4. После любой правки скрипта — пересобрать отчёт целиком и проверить цифру в самом отчёте.
5. Не скачивать заново то, что уже скачано: закрытые месяцы — из кэша, обновлять только текущий месяц.
6. Только относительные пути от папки скрипта. Никаких C:\Users\... и имён ноутбуков.
7. В .bat — только латиница, переход в папку файла и pause в конце. Русский текст — в .py.
8. Каждый выходной файл записывать отдельно. Если файл открыт в Excel — сообщить «закройте файл X» и доделать остальные.
9. После изменений обновить README, CHANGELOG и DECISIONS: они описывают текущее состояние.
10. Если что-то непонятно — спросить меня. По одному вопросу, с вариантами и рекомендацией.
11. Одна единица на весь отчёт: [тысячи литров]. Единица — в заголовке. В Excel — числа, не текст. ## Working rules
1. Company source files are read-only. Save the result as a new file next to them, with the date in the name.
2. Understand the source first: open the file, show sheets, columns, units, period. Don't guess the structure.
3. Before the report, reconcile the total with the reference: [system total / approved report]. If it differs, show it and stop.
4. After any script fix, rebuild the whole report and check the number in the report itself.
5. Don't download what is already downloaded: closed months from the cache, update only the current month.
6. Relative paths from the script folder only. No C:\Users\... and no laptop names.
7. In a .bat — Latin letters only, change to the file's folder and pause at the end. Russian text goes in the .py.
8. Write each output file separately. If a file is open in Excel, say "close file X" and finish the rest.
9. After changes, update README, CHANGELOG and DECISIONS: they describe the current state.
10. If anything is unclear, ask me. One question at a time, with options and a recommendation.
11. One unit for the whole report: [thousand litres]. Unit in the header. Numbers in Excel, not text. | ОшибкаMistake | Как правильноDo this instead |
|---|---|
| Правила держат в голове, а не в CLAUDE.mdKeeping the rules in your head, not in CLAUDE.md | Записать один раз — Claude читает при каждом запускеWrite them once — Claude reads them at every start |
| Сверяют «на глаз»: «вроде похоже»Reconciling "by eye": "looks about right" | Две цифры рядом: итог отчёта и эталон, разница в %Two numbers side by side: report total and reference, difference in % |
| Проверили промежуточный файл и успокоилисьChecked the intermediate file and relaxed | Проверять итоговый отчёт, который получит адресатCheck the final report the recipient will get |
| Разрешили Claude «навести порядок» в общей папкеLet Claude "tidy up" the shared folder | Работать на копии; в общей папке — только чтениеWork on a copy; the shared folder is read-only |
Пройдите по пунктам каждый раз, когда отчёт уходит дальше. Галочки сохраняются в браузере.
Go through the list every time a report goes out. The ticks are saved in your browser.