brownfield-drift

Detect architecture boundary violations by comparing repository changes against PLAN.md constraints.

165|20|Updated Feb 2, 2026
One-click install
npx skills add https://github.com/wednesday-solutions/ai-agent-skills --skill brownfield-drift
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: brownfield-drift
Source: https://github.com/wednesday-solutions/ai-agent-skills/tree/main/skills/brownfield-drift
Command: npx skills add https://github.com/wednesday-solutions/ai-agent-skills --skill brownfield-drift

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Brownfield drift detects when changes in a codebase violate the architecture boundaries defined in PLAN.md, preventing AI-assisted work from silently crossing module or service lines.

Core Features & Use Cases

  • Boundary violation detection: Flags forbidden imports, ownership rule breaks, direct inter-service imports, and circular dependencies that contradict PLAN.md constraints.
  • PR-focused drift reporting: Supports comparing against a base commit to report only newly introduced violations.
  • Rule-targeted checks: Runs drift analysis for a single specified rule to speed up reviews and remediation.
  • Guided remediation alignment: Requires reporting the violating edge, the introducing commit when available, and the suggested fix aligned to PLAN.md intent.

Quick Start

Ask an AI to run the drift check for your PR by executing "wednesday-skills drift --since <base-commit>" and then summarize any boundary violations it reports with their violating edges and suggested fixes from PLAN.md.

Frequently Asked Questions about brownfield-drift

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect architecture drift and boundary violations in a pull request?

To detect architecture drift in a pull request, run a drift check against a base commit. This compares repository changes against machine-readable PLAN.md constraints to report only newly introduced boundary violations like forbidden imports or circular dependencies.

What is architecture drift detection and how does it enforce module boundaries?

Architecture drift detection identifies when code changes violate module or service boundaries defined in PLAN.md. It enforces constraints by flagging forbidden imports, direct inter-service imports, and ownership rule breaks during code reviews or scheduled health checks.

How do I run a rule-targeted drift check for a specific architecture constraint?

You can run drift analysis for a single specified rule to speed up reviews and remediation. This focuses the boundary violation detection on a specific constraint from your PLAN.md file, reporting only the violating edges for that rule.

Does architecture drift detection work without a PLAN.md file in the repository?

No, this drift detection requires a machine-readable PLAN.md file in the repository. It compares repository changes against the architecture boundaries and ownership rules defined within that PLAN.md file to identify violations.

What is the best way to report only newly introduced architecture violations in a PR?

The best way to report only newly introduced violations is to run the drift command with a base commit parameter. This restricts boundary violation reporting to new violations introduced since that base commit, providing guided remediation aligned to PLAN.md intent.

Can I use this drift detection for scheduled architecture health checks across services?

Yes, you can apply drift detection during scheduled architecture health checks. It identifies cross-module or cross-service changes that may have introduced drift, reporting specific violating edges and suggesting fixes aligned to your PLAN.md constraints.