How to Make Claude Code Follow Your Project Rules
📰 Medium · JavaScript
Learn to make Claude code follow your project rules by creating a CLAUDE.md file and defining specific rules for frontend and backend development
Action Steps
- Create a CLAUDE.md file to define project rules and guidelines
- Add frontend rules to the CLAUDE.md file to specify requirements for UI and UX
- Add backend rules to the CLAUDE.md file to specify requirements for API and server-side development
- Use skills to turn repeated work into automated tasks and workflows
- Pair AI rules with real verification to ensure accuracy and consistency
Who Needs to Know This
Developers and project managers can benefit from this article by learning how to effectively utilize Claude's AI capabilities to streamline their development workflow and ensure consistency with project rules
Key Insight
💡 Defining clear project rules and guidelines is crucial for effective utilization of Claude's AI capabilities
Share This
🤖 Make Claude code follow your project rules with a CLAUDE.md file and specific frontend and backend rules! 💻
Key Takeaways
Learn to make Claude code follow your project rules by creating a CLAUDE.md file and defining specific rules for frontend and backend development
Full Article
Title: How to Make Claude Code Follow Your Project Rules
URL Source: https://medium.com/eincode/how-to-make-claude-code-follow-your-project-rules-5df71163886c?source=rss------javascript-5
Published Time: 2026-07-14T19:45:05Z
Markdown Content:
[Sitemap](https://medium.com/sitemap/sitemap.xml)
[Open in app](https://play.google.com/store/apps/details?id=com.medium.reader&referrer=utm_source%3DmobileNavBar&source=---top_nav_layout_nav-----------------------------------------)
Sign up
[Sign in](https://medium.com/m/signin?operation=login&redirect=https%3A%2F%2Fmedium.com%2Feincode%2Fhow-to-make-claude-code-follow-your-project-rules-5df71163886c&source=post_page---top_nav_layout_nav-----------------------global_nav------------------)
[](https://medium.com/?source=---top_nav_layout_nav-----------------------------------------)
Get app
[Write](https://medium.com/m/signin?operation=register&redirect=https%3A%2F%2Fmedium.com%2Fnew-story&source=---top_nav_layout_nav-----------------------new_post_topnav------------------)
[Search](https://medium.com/search?source=---top_nav_layout_nav-----------------------------------------)
Sign up
[Sign in](https://medium.com/m/signin?operation=login&redirect=https%3A%2F%2Fmedium.com%2Feincode%2Fhow-to-make-claude-code-follow-your-project-rules-5df71163886c&source=post_page---top_nav_layout_nav-----------------------global_nav------------------)

## [Eincode](https://medium.com/eincode?source=---publication_nav-96930c935cba-5df71163886c---------------------------------------)
·
1. [The Problem with Generic AI Prompts](https://medium.com/?source=-----5df71163886c---------------------------------------#0b6d "The Problem with Generic AI Prompts")
2. [The Three Layers of an AI-Ready Project](https://medium.com/?source=-----5df71163886c---------------------------------------#705f "The Three Layers of an AI-Ready Project")
3. [CLAUDE.md](https://medium.com/?source=-----5df71163886c---------------------------------------#7494 "CLAUDE.md")
4. [.claude/rules/](https://medium.com/?source=-----5df71163886c---------------------------------------#b96c ".claude/rules/")
5. [.claude/skills/](https://medium.com/?source=-----5df71163886c---------------------------------------#29fc ".claude/skills/")
6. [Start with a Useful CLAUDE.md](https://medium.com/?source=-----5df71163886c---------------------------------------#fdfc "Start with a Useful CLAUDE.md")
7. [Keep Rules Specific and Small](https://medium.com/?source=-----5df71163886c---------------------------------------#d357 "Keep Rules Specific and Small")
8. [Add Frontend Rules](https://medium.com/?source=-----5df71163886c---------------------------------------#bd17 "Add Frontend Rules")
9. [Add Backend Rules](https://medium.com/?source=-----5df71163886c---------------------------------------#4a5d "Add Backend Rules")
10. [Protect Generated Files](https://medium.com/?source=-----5df71163886c---------------------------------------#7380 "Protect Generated Files")
11. [Turn Repeated Work into Skills](https://medium.com/?source=-----5df71163886c---------------------------------------#7257 "Turn Repeated Work into Skills")
12. [Create a Skill for API Generation](https://medium.com/?source=-----5df71163886c---------------------------------------#498f "Create a Skill for API Generation")
13. [Use Skills for Workflows, Not Random Prompts](https://medium.com/?source=-----5df71163886c---------------------------------------#3935 "Use Skills for Workflows, Not Random Prompts")
14. [Pair AI Rules with Real Verification](https://medium.com/?source=-----5df71163886c---------------------------------------#6527 "Pair AI Rules with Real Verification")
15. [A Better Prompting Pattern](https://medium.com/?source=-----5df71163886c---------------------------------------#36c1 "A Better Prompting Pattern")
16. [Avoid These Common Mistakes](https
URL Source: https://medium.com/eincode/how-to-make-claude-code-follow-your-project-rules-5df71163886c?source=rss------javascript-5
Published Time: 2026-07-14T19:45:05Z
Markdown Content:
[Sitemap](https://medium.com/sitemap/sitemap.xml)
[Open in app](https://play.google.com/store/apps/details?id=com.medium.reader&referrer=utm_source%3DmobileNavBar&source=---top_nav_layout_nav-----------------------------------------)
Sign up
[Sign in](https://medium.com/m/signin?operation=login&redirect=https%3A%2F%2Fmedium.com%2Feincode%2Fhow-to-make-claude-code-follow-your-project-rules-5df71163886c&source=post_page---top_nav_layout_nav-----------------------global_nav------------------)
[](https://medium.com/?source=---top_nav_layout_nav-----------------------------------------)
Get app
[Write](https://medium.com/m/signin?operation=register&redirect=https%3A%2F%2Fmedium.com%2Fnew-story&source=---top_nav_layout_nav-----------------------new_post_topnav------------------)
[Search](https://medium.com/search?source=---top_nav_layout_nav-----------------------------------------)
Sign up
[Sign in](https://medium.com/m/signin?operation=login&redirect=https%3A%2F%2Fmedium.com%2Feincode%2Fhow-to-make-claude-code-follow-your-project-rules-5df71163886c&source=post_page---top_nav_layout_nav-----------------------global_nav------------------)

## [Eincode](https://medium.com/eincode?source=---publication_nav-96930c935cba-5df71163886c---------------------------------------)
·
1. [The Problem with Generic AI Prompts](https://medium.com/?source=-----5df71163886c---------------------------------------#0b6d "The Problem with Generic AI Prompts")
2. [The Three Layers of an AI-Ready Project](https://medium.com/?source=-----5df71163886c---------------------------------------#705f "The Three Layers of an AI-Ready Project")
3. [CLAUDE.md](https://medium.com/?source=-----5df71163886c---------------------------------------#7494 "CLAUDE.md")
4. [.claude/rules/](https://medium.com/?source=-----5df71163886c---------------------------------------#b96c ".claude/rules/")
5. [.claude/skills/](https://medium.com/?source=-----5df71163886c---------------------------------------#29fc ".claude/skills/")
6. [Start with a Useful CLAUDE.md](https://medium.com/?source=-----5df71163886c---------------------------------------#fdfc "Start with a Useful CLAUDE.md")
7. [Keep Rules Specific and Small](https://medium.com/?source=-----5df71163886c---------------------------------------#d357 "Keep Rules Specific and Small")
8. [Add Frontend Rules](https://medium.com/?source=-----5df71163886c---------------------------------------#bd17 "Add Frontend Rules")
9. [Add Backend Rules](https://medium.com/?source=-----5df71163886c---------------------------------------#4a5d "Add Backend Rules")
10. [Protect Generated Files](https://medium.com/?source=-----5df71163886c---------------------------------------#7380 "Protect Generated Files")
11. [Turn Repeated Work into Skills](https://medium.com/?source=-----5df71163886c---------------------------------------#7257 "Turn Repeated Work into Skills")
12. [Create a Skill for API Generation](https://medium.com/?source=-----5df71163886c---------------------------------------#498f "Create a Skill for API Generation")
13. [Use Skills for Workflows, Not Random Prompts](https://medium.com/?source=-----5df71163886c---------------------------------------#3935 "Use Skills for Workflows, Not Random Prompts")
14. [Pair AI Rules with Real Verification](https://medium.com/?source=-----5df71163886c---------------------------------------#6527 "Pair AI Rules with Real Verification")
15. [A Better Prompting Pattern](https://medium.com/?source=-----5df71163886c---------------------------------------#36c1 "A Better Prompting Pattern")
16. [Avoid These Common Mistakes](https
DeepCamp AI