Use this template
Open Code Pattern Enforcer in Devin and create the automation with the default configuration. You can customize it before saving.
What this automation does
Where linters catch lexical issues, this automation catches semantic ones: misused APIs, deprecated modules, performance anti-patterns, and security smells that no off-the-shelf linter knows about. You describe the patterns in plain English, and Devin applies them repo-wide on a schedule.How it works
Trigger: Schedule event —recurring
- Event:
schedule:recurring- Conditions:
rrulematchesFREQ=WEEKLY;BYDAY=MO;BYHOUR=9;BYMINUTE=0
- Conditions:
Prerequisites
- Integrations:
Example prompt
The template ships with this prompt. You can edit it after clicking Use template, or leave it as-is.Setting it up
- Open Automations → Templates in Devin.
- Click Code Pattern Enforcer. The create page opens with this template pre-filled.
- Connect any required integrations and install MCP servers if you haven’t already.
- Replace any placeholder values in the trigger conditions (for example, swap
your-org/your-repofor your actual repo). - Review the prompt and adjust it for your team’s language, conventions, and guardrails.
- Click Create automation.
When to use this template
- Enforcing team-specific architectural conventions across a large codebase
- Migrating away from deprecated internal APIs
- Proactive security hygiene beyond off-the-shelf SAST tools
- Codifying tribal knowledge into enforceable patterns
Customization ideas
- Describe patterns in plain English via Knowledge
- Scope to specific repos, directories, or file types
- Decide per-pattern whether to auto-fix or file a ticket
- Combine with SonarQube Quality Gate Fix for broad coverage
