Загрузка...

3 Things Your CONTRACT.md Needs to Cut Claude Costs 54% #Shorts

A 52-benchmark study just proved one file cuts Claude's cost by 54%. Here are the 3 things it must contain.

Before you write a single line of code, create a CONTRACT.md in your project root. 1) Interfaces — exact function signatures, input types, return types. 2) Data — column names, file paths, folder structure, naming conventions. 3) Rules — error handling, testing style, what Claude should never do.

Drop CONTRACT.md into your Claude Desktop Project files. In the study, output quality jumped from 5/10 to 9/10. Claude stops guessing and starts executing.

Save this for your next project. Share it with the dev who keeps re-prompting Claude 10 times. Follow @claude.hacks for tomorrow's exact CONTRACT.md template.

📋 Step-by-step instructions:
1. Create a new file named CONTRACT.md in your project root
2. Section 1 - Interfaces: List exact function signatures with input types and return types
3. Section 2 - Data: Define column names, file paths, folder structure, and naming conventions
4. Section 3 - Rules: Specify error handling style, testing approach, and hard constraints Claude must never violate
5. Open Claude Desktop and go to Projects
6. Open or create the project for this codebase
7. Click Add Files and upload CONTRACT.md to the project knowledge
8. Reference CONTRACT.md in your first prompt so Claude anchors to it
9. Review output — expect fewer hallucinated APIs and tighter adherence to your conventions

#claudedesktop #anthropic #aitools #aitips #claudeai #claudecode #aicoding #vibecoding #aidevtools #promptengineering #contextengineering #llm #softwareengineering #developerproductivity #codingtips #aiworkflow #techtips #programmingtips #aiforDevelopers #buildwithai

Видео 3 Things Your CONTRACT.md Needs to Cut Claude Costs 54% #Shorts канала Claude Hacks
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять