# Module Development Rules

**Authoritative Source**: `docs/development/module-rules.md`  
**Reference Implementation**: `modules/source/08_optimizers/optimizers_dev.py`

All TinyTorch module development rules, patterns, conventions, and examples are maintained in the comprehensive documentation file:

📖 **[docs/development/module-rules.md](../../docs/development/module-rules.md)**

## 🎯 **Use Living Examples, Not Static Documentation**

Instead of maintaining separate documentation that can get out of sync, **use `08_optimizers` as your reference implementation** - it follows all current patterns perfectly and serves as the living example of proper module structure.

## 📋 **What's Covered**

- 📁 File structure and organization
- 🎓 Educational patterns and pedagogical framework
- 🧪 Testing conventions and inline test standards
- 📦 NBDev integration and export patterns
- 🎯 Complete module template with educational content
- 🏗️ Development workflow and best practices
- 📋 Module metadata and configuration
- ✅ Quality standards and checklist

## 🔗 **Quick Reference Approach**

1. **Check `08_optimizers`** for educational content structure
2. **Follow exact patterns** for module summaries and takeaways
3. **Use the rules file** for technical specifications
4. **Reference living code** instead of static documentation

**Remember**: When in doubt, reference `08_optimizers` - it follows all patterns perfectly! 