Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>ModCodePatternNew to Visual Studio Code?Β Get it now.
ModCodePattern

ModCodePattern

ModCodePattern

|
25 installs
| (1) | Free
🎯 Smart VS Code extension to maintain codebase consistency with intelligent adaptive patterns. Automatic todo list, file monitoring, dynamic variables. Perfect for React/Vue/Angular and works with any language (Python, Java, Rust, Go, C#, PHP...). Startup <200ms. πŸ“š Ready-to-use patterns: https://g
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

🎯 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

  1. Open VS Code
  2. Extensions (Ctrl+Shift+X)
  3. Search "ModCodePattern"
  4. Install β†’ You're ready! 🚀

✨ Get Started in 30 Seconds

  1. 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}}"
            }
          ]
        }
      ]
    }
    
  2. Modify src/api/user.ts β†’ 🎉 Automatic notification!
  3. 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

  • 🏠 Official Website: https://www.modcodepattern.com/builder
  • 📖 Complete Documentation: https://www.modcodepattern.com/docs
  • 🎥 Demos & Examples: https://github.com/modcodepattern-saas/patterns-exemple
  • 🛠️ Technical Support: https://www.modcodepattern.com/docs
  • 🇫🇷 Documentation FranΓ§aise: Guide Utilisateur Complet

⭐ Marketplace

  • 📦 VS Code Marketplace: ModCodePattern Extension

🚀 Get Started Now

  1. 📦 Install the extension (2 minutes)
  2. 📖 Read the documentation (15 minutes)
  3. 🎥 Watch demos (10 minutes)
  4. Create your first pattern β†’ Let's go! 🎉

Current version: v0.3.0 | License: MIT | VS Code: 1.74.0+ | Languages: All supported

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
Β© 2026 Microsoft