🎯 ModCodePattern
Smart VS Code extension to maintain your codebase consistency across any technology
ModCodePattern automatically monitors your file changes and reminds you of actions to take. Modify a service? It reminds you to update tests, documentation, and related files. Zero oversight, guaranteed consistency for any programming language or framework.
ModCodePattern in Action
Automatic workflow:
- 📁 Detection: You modify
src/api/user.ts
- 🔔 Notification: "Update src/hooks/useUser.ts and docs/user.md"
- β
Auto Todo: Tasks automatically added to your list
- β¨ Guaranteed consistency: No more oversights in your codebase
β‘ Quick Installation
- Open VS Code
- Extensions (Ctrl+Shift+X)
- Search "ModCodePattern"
- Install β You're ready! 🚀
β¨ Get Started in 30 Seconds
- Create a
.mod-patterns.json file in your project:
{
"patterns": [
{
"onChange": "src/api/user.ts",
"notify": ["src/hooks/useUser.ts", "docs/user.md"],
"description": "🔧 User API modified"
}
]
}
- Modify
src/api/user.ts β 🎉 Automatic notification!
Smart JSON Auto-completion
ModCodePattern includes a complete JSON Schema that automatically enables:
- β
Auto-completion in
.mod-patterns.json
- β
Real-time validation of patterns
- β
Integrated documentation on hover
- β
Contextual suggestions for all triggers
Press Ctrl+Space in your .mod-patterns.json file to see the magic!
🚀 Key Features
- β
Smart file monitoring - 6 trigger types (onChange, onCreate, onDelete, etc.)
- β
Adaptive variables - Auto-detects your project structure
- β
Interactive Todo list - Integrated with VS Code
- β
JSON auto-completion - Complete schema with validation
- β
Ultra-fast startup - Less than 200ms
- β
Universal compatibility - Works with any programming language
🔔 Smart Notification System
Contextual notifications that appear automatically:
- 🎯 At the right time: Real-time change detection
- 📋 Precise actions: Suggestions based on your patterns
- β
Integrated Todo: Checkboxes in VS Code
- 🔗 Clickable links: Open files with one click
Never forget anything in your development workflow again!
🎯 Popular Use Cases
βοΈ React Project
{
"onChange": "{{COMPONENTS_DIR}}/**/*.tsx",
"notify": [
{
"file": "{{COMPONENTS_DIR}}/index.ts",
"description": "📦 Add export for {{TRIGGER_FILE}}"
},
{
"file": "src/stories/{{TRIGGER_NAME}}.stories.tsx",
"description": "📖 Create Storybook story"
}
],
"description": "📦 Component {{TRIGGER_FILE}} modified"
}
🌐 API + Documentation
{
"onChange": "src/api/**/*.ts",
"notify": [
"src/types/api.ts",
{
"file": "docs/api/{{TRIGGER_NAME}}.md",
"description": "📝 Update API documentation"
},
{
"file": "tests/api/{{TRIGGER_NAME}}.test.ts",
"description": "🧪 Update integration tests"
}
],
"description": "🔧 API modified"
}
🧪 Automatic Tests
{
"onCreateFile": "src/**/*.ts",
"notify": [
{
"file": "tests/{{TRIGGER_NAME}}.test.ts",
"description": "🧪 Create corresponding tests"
}
],
"description": "🆕 New file β Tests required"
}
🌍 Multi-Language Support
{
"onChange": "src/**/*.{py,java,rs,go}",
"notify": [
{
"file": "tests/test_{{TRIGGER_NAME}}.{py,java,rs,go}",
"description": "🧪 Update tests for {{TRIGGER_FILE}}"
}
],
"description": "🔧 Source file modified"
}
🔗 Automatic Workflow (Chained Patterns)
{
"patterns": [
{
"onCreateFile": "{{COMPONENTS_DIR}}/**/*.tsx",
"notify": [
{
"file": "src/stories/{{TRIGGER_NAME}}.stories.tsx",
"description": "📖 Create Story"
}
],
"description": "🆕 Component β Story"
},
{
"onCreateFile": "src/stories/**/*.stories.tsx",
"notify": [{ "commands": ["npm test"], "description": "🚀 Run tests" }],
"description": "📖 Story β Tests"
}
]
}
💫 Adaptive Variables
ModCodePattern automatically detects your architecture:
| Variable |
Description |
Example |
{{SRC_DIR}} |
Main source folder |
src/, app/, lib/ |
{{COMPONENTS_DIR}} |
Components folder |
src/components, app/ui |
{{TESTS_DIR}} |
Tests folder |
tests/, __tests__, spec/ |
{{TRIGGER_FILE}} |
Triggering file name |
Button.tsx, user.py |
{{TRIGGER_PATH}} |
Triggering file path |
src/components/Button.tsx |
{{TRIGGER_NAME}} |
File name without ext |
Button, user |
Premium: 9 complete variables + dynamic runtime variables
🚀 Core Features
🆓 Free Version
- β
5 patterns per workspace - Perfect for small projects
- β
6 trigger types - onChange, onCreate, onDelete, onStart, and more
- β
Smart variables - Auto-detects your project structure
- β
Interactive Todo list - Integrated with VS Code
- β
JSON auto-completion - Full schema support
- β
Multilingual support - French and English
💎 Premium Features
- β
Unlimited patterns - Scale to enterprise projects
- β
Advanced variables - 9 complete variables + runtime resolution
- β
Modular configuration - Import patterns from other files
- β
Automated commands - Execute scripts automatically
- β
Chained patterns - Create complex workflows
- β
Priority support - Direct access to developers
🌟 Why ModCodePattern?
- 🎯 Zero oversight: Never forget to update a linked file again
- β‘ Productivity: Automate your maintenance reminders
- 🧠 Intelligence: Patterns that adapt to your architecture
- 🎨 Modern: Native VS Code interface
- 🌍 Universal: Works with Python, Java, JavaScript, Rust, Go, C#, PHP, and more
- 🚀 Performance: Startup in less than 200ms
- 🔧 Language agnostic: Monitors any file type or extension
📚 Documentation & Support
🌐 Official Resources
β Marketplace
🚀 Get Started Now
- 📦 Install the extension (2 minutes)
- 📖 Read the documentation (15 minutes)
- 🎥 Watch demos (10 minutes)
- Create your first pattern β Let's go! 🎉
Current version: v0.2.6 | License: MIT | VS Code: 1.74.0+ | Languages: All supported