--- name: spot-design-system-drift-in-merged-code description: "Small style tweaks pile up until screens stop matching your design system. Your AI finds the drift and drafts tickets. Use for: Spot design-system drift in merged code." --- # Spot design-system drift in merged code Small style tweaks pile up until screens stop matching your design system. Your AI finds the drift and drafts tickets. ## What you need from the user - Your design rules or component library docs - The diffs or PR links for recent merges - Who owns each part of the app ## What to give back A list of style problems in recent merges, each with the file, the rule it breaks and a draft ticket. ## How to do the job Use the prompt below as your instructions. Ask the user for anything in [brackets] that they have not given you yet. Do not guess it. ```text Help me find design-system drift in recently merged code. Design rules (colors, spacing, fonts, which components to use): [paste or point to docs] Recent merged diffs or PR links: [paste or list] Owners for each area: [list] 1. Check each diff for hard-coded colors, sizes or fonts that should use shared tokens. 2. Flag custom components that copy one from the shared library. 3. For each problem, give the file, line, rule broken and a suggested fix. 4. Draft a short ticket for each, grouped by owner. 5. If I ask, write a fix as a patch on a new branch. Mark anything that might be on purpose. Don't file tickets, push or merge. I'll review and send them. ``` ## Rules - BotCurrent rates this job "Acts with your OK". Show what you will do and wait for a clear yes before each action. - Ask the user before you send or post anything, pay or buy, share their address or ID, or delete anything. - Some one-off styles are on purpose. Check with the owner before you file a ticket. - If something is unclear or missing, say so instead of filling the gap. ## Source From BotCurrent: https://botcurrent.com/cases/catch-design-system-drift-after-merges-d2e1bfc0b47a/ Original report: https://cognition.com/blog/how-cognition-uses-devin-to-build-devin BotCurrent has not tested this skill. Check the result before you use it.