🎯 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. Now enhanced with temporal reminders and Git automation - zero oversight, guaranteed consistency for any programming language or framework.
ModCodePattern in Action
Core workflow - File Changes:
- 📁 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
🆕 Enhanced with Temporal Reminders:
- β° Schedule: Daily standup at 9:00 AM
- 🔔 Reminder: "🕘 Team standup in meeting room"
- 📋 Action: Open meeting link automatically
🆕 Enhanced with Git Automation (Premium):
- 🌱 Branch Switch: Switch to
main branch
- 🚀 Auto Deploy: "Deploy to production environment"
- 📝 Smart Variables:
{{BRANCH_NAME}}, {{COMMIT_MESSAGE}}
β‘ 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"
},
{
"onSchedule": {
"time": "09:00",
"days": ["monday", "tuesday", "wednesday", "thursday", "friday"]
},
"notify": [
{
"url": "https://meet.google.com/standup",
"description": "🕘 Daily standup - {{DAY_NAME_FR}}"
}
]
}
]
}
- Modify
src/api/user.ts β 🎉 Automatic notification!
- Wait for 9:00 AM β 🔔 Standup reminder!
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
🔄 File System Monitoring
- β
6 trigger types - onChange, onCreate, onDelete, onStart, onTrigger, onDeleteFolder
- β
Smart pattern matching - Wildcards, minimatch syntax, content filtering
- β
Real-time detection - Instant notifications on file changes
🕐 Temporal Reminders β NEW
- β
Scheduled reminders - Daily, weekly, or specific dates
- β
Smart variables -
{{ACTUAL_TIME}}, {{DAY_NAME_FR}}, {{WORKSPACE_NAME}}
- β
Freemium model - 3 free reminders, unlimited with Premium
🔀 Git Event Automation 🔒 Premium
- β
Branch events - onBranchSwitch, onBranchCreate, onBranchDelete
- β
Commit automation - onCommit with author/message filtering
- β
Remote sync - onPull, onPush with branch patterns
- β
Dynamic variables -
{{BRANCH_NAME}}, {{COMMIT_MESSAGE}}, {{REPOSITORY_NAME}}
🎯 Smart System
- β
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
- β
Workspace statistics - Detailed usage tracking
🔔 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
🕐 Daily Reminders & Productivity
{
"onSchedule": {
"time": "09:00",
"days": ["monday", "tuesday", "wednesday", "thursday", "friday"]
},
"notify": [
{
"url": "https://meet.google.com/standup-team",
"description": "🕘 Daily standup - {{DAY_NAME_FR}} {{DATE_FORMATTED}}"
}
]
}
{
"onSchedule": {
"time": "17:00",
"days": "daily"
},
"notify": [
{
"commands": ["git status"],
"description": "🕐 End of day commit reminder - {{WORKSPACE_NAME}}"
}
]
}
🔀 Git Workflow Automation 🔒 Premium
{
"onBranchSwitch": {
"to": "main"
},
"notify": [
{
"commands": ["npm run deploy:production"],
"description": "🚀 Deploy {{PROJECT_NAME}} to production"
}
]
}
{
"onCommit": {
"message": "feat:*"
},
"notify": [
{
"file": "CHANGELOG.md",
"description": "📝 Update changelog for {{COMMIT_MESSAGE}}"
}
]
}
βοΈ 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"
}
]
}
💫 Smart Variables System
🔄 File System Variables
ModCodePattern automatically detects your architecture:
🏗οΈ Adaptive Variables (Auto-detected)
| Variable |
Description |
Examples |
{{SRC_DIR}} |
Main source folder |
src, lib, app |
{{COMPONENTS_DIR}} |
Components folder |
src/components, app/ui |
{{HOOKS_DIR}} |
Hooks/composables folder |
src/hooks, src/composables |
{{API_DIR}} |
API/services folder |
src/api, src/services |
{{TESTS_DIR}} |
Tests folder |
tests, __tests__, spec |
{{DOCS_DIR}} |
Documentation folder |
docs, documentation |
{{CONFIG_DIR}} |
Configuration folder |
config, configs |
{{CONFIG_FILE}} |
Configuration file |
config/index.ts |
{{TYPES_FILE}} |
Types file |
src/types/index.ts |
β‘ Runtime Variables
| Variable |
Description |
Examples |
{{TRIGGER_PATH}} |
Triggering file path |
src/components/Button.tsx |
{{TRIGGER_TYPE}} |
Event type |
onCreateFile, onChange, onStart |
{{TRIGGER_FILE}} |
Triggering file name |
Button.tsx |
{{TRIGGER_NAME}} |
File name without extension |
Button (from Button.tsx) |
{{TRIGGER_DIR}} |
Triggering file directory |
src/components |
🕐 Temporal Variables β NEW
Perfect for reminders and scheduled tasks:
Time & Date Variables
| Variable |
Description |
Example |
{{SCHEDULED_TIME}} |
Programmed time |
"14:30" |
{{ACTUAL_TIME}} |
Real trigger time |
"14:31" |
{{CURRENT_DATE}} |
Current date |
"2024-12-15" |
{{DAY_OF_WEEK}} |
Day (English) |
"monday" |
{{DAY_NAME_FR}} |
Day (French) |
"lundi" |
{{DATE_FORMATTED}} |
Formatted French date |
"15 dΓ©cembre 2024" |
{{TIME_12H}} |
12-hour format |
"2:30 PM" |
{{TIMESTAMP}} |
Unix timestamp |
"1702651800000" |
{{TIMEZONE}} |
Timezone |
"Europe/Paris" |
{{TIME_DRIFT}} |
Time drift in seconds |
"45" |
Context Variables
| Variable |
Description |
Example |
{{WORKSPACE_NAME}} |
Current workspace |
"my-project" |
{{ACTIVE_FILE}} |
Active file path |
"/path/to/file.ts" |
{{ACTIVE_FILE_NAME}} |
Active file name |
"file.ts" |
{{PATTERN_ID}} |
Pattern ID |
"daily-standup" |
{{IS_REPEATING}} |
If recurring |
"true" |
🔀 Git Variables 🔒 Premium
Dynamic variables for Git workflows:
Universal Git Variables
| Variable |
Description |
Example |
{{BRANCH_NAME}} |
Current branch name |
"feature/user-auth" |
{{REPOSITORY_NAME}} |
Repository name |
"my-awesome-app" |
{{REPOSITORY_PATH}} |
Repository absolute path |
"/Users/dev/projects/app" |
{{PROJECT_NAME}} |
Project name (package.json) |
"@company/frontend" |
Context-Specific Git Variables
| Variable |
Available in |
Description |
Example |
{{BRANCH_PREVIOUS}} |
onBranchSwitch |
Previous branch |
"develop" |
{{COMMIT_MESSAGE}} |
onCommit |
Commit message |
"feat: add user auth" |
{{COMMIT_AUTHOR}} |
onCommit |
Commit author |
"John Doe" |
{{REMOTE_NAME}} |
onPull, onPush |
Remote name |
"origin" |
{{BRANCH_CREATED}} |
onBranchCreate |
Created branch |
"feature/new-feature" |
{{BRANCH_DELETED}} |
onBranchDelete |
Deleted branch |
"hotfix/bug-123" |
Smart Branch Analysis
| Variable |
Description |
Examples |
{{BRANCH_TYPE}} |
Branch type detected |
"feature", "hotfix", "main", "develop" |
{{BRANCH_PREFIX}} |
Branch prefix |
"feature", "hotfix", "release" |
{{BRANCH_SUFFIX}} |
Branch suffix |
"123", "ABC-456", "user-auth" |
Total: 35+ intelligent variables with automatic detection
👤 Custom Variables
You can also define your own variables for maximum flexibility:
{
"variables": {
"COMPANY_NAME": "TechCorp",
"API_VERSION": "v2",
"CUSTOM_PATH": "lib/custom/components"
},
"patterns": [
{
"onChange": "{{CUSTOM_PATH}}/**/*.ts",
"notify": [
{
"file": "docs/{{COMPANY_NAME}}/api-{{API_VERSION}}.md",
"description": "📘 Update {{COMPANY_NAME}} API documentation"
}
]
}
]
}
Total: 35+ intelligent variables with automatic detection
🚀 Core Features
🆓 Free Version
📁 File Monitoring
- β
5 patterns per workspace - Perfect for small projects
- β
6 trigger types - onChange, onCreate, onDelete, onStart, onTrigger, onDeleteFolder
- β
Smart variables - Auto-detects your project structure
- β
Content filtering - Monitor specific code changes
🕐 Temporal Reminders β NEW
- β
3 scheduled reminders - Daily standups, deadlines, breaks
- β
Smart scheduling - Daily, weekly, specific dates
- β
Temporal variables -
{{ACTUAL_TIME}}, {{DAY_NAME_FR}}, {{WORKSPACE_NAME}}
🎯 Core Features
- β
Interactive Todo list - Integrated with VS Code
- β
JSON auto-completion - Full schema support
- β
Multilingual support - French and English
- β
Workspace statistics - Usage tracking and limits
💎 Premium Features
🔀 Git Event Automation 🔒 Premium Only
- β
Branch events - onBranchSwitch, onBranchCreate, onBranchDelete
- β
Commit automation - onCommit with author/message filtering
- β
Remote sync - onPull, onPush with branch patterns
- β
Git variables -
{{BRANCH_NAME}}, {{COMMIT_MESSAGE}}, {{REPOSITORY_NAME}}
β‘ Advanced Features
- β
Unlimited patterns - Scale to enterprise projects
- β
Unlimited reminders - No limits on scheduled tasks
- β
Advanced variables - 35+ variables with 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
- 🕐 Time management: Built-in reminders and scheduling system
- 🔀 Git automation: Streamline your Git workflows with smart triggers
- β‘ Productivity: Automate maintenance reminders and routine tasks
- 🧠 Intelligence: Patterns that adapt to your architecture with 20+ variables
- 🎨 Modern: Native VS Code interface with advanced statistics
- 🌍 Universal: Works with Python, Java, JavaScript, Rust, Go, C#, PHP, and more
- 🚀 Performance: Startup in less than 200ms with intelligent caching
- 🔧 Language agnostic: Monitors any file type or extension
- 📊 Analytics: Detailed usage statistics and workspace management
📚 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.3.0 | License: MIT | VS Code: 1.74.0+ | Languages: All supported