Skip to content
Back to skills

Devteam Design Drift

ASecurity

Detect design inconsistencies and drift from the design system. Launches the Design Drift Detector to analyze the codebase for deviations.

  • 18 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 26, 2026
code-qualityjavascriptjavabash

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add michael-harris/devteam --skill devteam-design-drift --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Devteam Design Drift?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Devteam Design Drift
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/michael-harris-devteam-design-drift/badge)](https://www.skillsdirectory.com/skills/michael-harris-devteam-design-drift)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: devteam-design-drift
description: Detect design inconsistencies and drift from the design system. Launches the Design Drift Detector to analyze the codebase for deviations.
argument-hint: [--scope <path>] [--check <colors|typography|spacing|layout|all>] [--fix] [--threshold <strict|normal|relaxed>]
user-invocable: true
allowed-tools: Read, Edit, Write, Glob, Grep, Bash, Task
model: sonnet
---

Current session: !`source "${CLAUDE_PLUGIN_ROOT}/scripts/state.sh" && get_current_session 2>/dev/null || echo "No active session"`
Active sprint: !`source "${CLAUDE_PLUGIN_ROOT}/scripts/state.sh" && get_kv_state "active_sprint" 2>/dev/null || echo "None"`
Failure count: !`source "${CLAUDE_PLUGIN_ROOT}/scripts/state.sh" && get_kv_state "consecutive_failures" 2>/dev/null || echo "0"`

# DevTeam Design Drift Command

**Command:** `/devteam:design-drift [scope] [options]`

Detect design inconsistencies and drift from the design system. Launches the Design Drift Detector to analyze the codebase for deviations.

## Usage

```bash
# Full codebase scan
/devteam:design-drift

# Scan specific directory
/devteam:design-drift --scope "src/components/"

# Check specific design aspect
/devteam:design-drift --check colors
/devteam:design-drift --check typography
/devteam:design-drift --check spacing

# Generate remediation plan
/devteam:design-drift --fix
```

## Options

| Option | Description |
|--------|-------------|
| `--scope <path>` | Limit scan to specific files/directories |
| `--check <aspect>` | Focus on: colors, typography, spacing, layout, all |
| `--fix` | Generate remediation tasks for detected drift |
| `--threshold <level>` | Drift tolerance: strict, normal, relaxed |

## Your Process

### Phase 0: Initialize Session

```bash
source "${CLAUDE_PLUGIN_ROOT}/scripts/state.sh"
source "${CLAUDE_PLUGIN_ROOT}/scripts/events.sh"

SESSION_ID=$(start_session "/devteam:design-drift $*" "design-drift")
log_session_started "/devteam:design-drift $*" "design-drift"
```

### Phase 1: Launch Design Drift Detector

Delegate to the `ux:design-drift-detector` agent, which will:

1. Scan codebase for design token usage
2. Compare implementations against design system specifications
3. Identify hardcoded values that should use tokens
4. Detect inconsistent patterns across components
5. Generate a drift report with severity ratings

```javascript
const result = await Task({
    subagent_type: "ux:design-drift-detector",
    prompt: `Design drift analysis:

        Scope: ${scope || 'full codebase'}
        Check: ${aspect || 'all'}
        Threshold: ${threshold || 'normal'}

        Analyze for:
        1. Hardcoded colors/fonts/spacing that should use design tokens
        2. Inconsistent component patterns
        3. Deviations from established design system
        4. Accessibility regressions
        5. Cross-platform inconsistencies`
})
```

### Phase 2: Report

Output a drift report showing:
- Number of drift instances found
- Severity breakdown (critical, warning, info)
- Affected files and locations
- Recommended fixes

### Phase 3: Remediation (if --fix)

If `--fix` is specified, create remediation tasks for each drift instance.

## See Also

- `/devteam:design` - Coordinate design work
- `/devteam:implement` - Implement design fixes
- `/devteam:status` - Check progress

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.