architecture-drift-check

Compare documented architecture against repository structure and dependency patterns.

Updated Mar 11, 2026
One-click install
npx skills add https://github.com/Oiranca/copilot-agents-skills --skill architecture-drift-check
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: architecture-drift-check
Source: https://github.com/Oiranca/copilot-agents-skills/tree/main/skills/architecture-drift-check
Command: npx skills add https://github.com/Oiranca/copilot-agents-skills --skill architecture-drift-check

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps identify discrepancies between your documented architecture and the actual structure, file organization, and dependencies within your codebase, preventing architectural decay.

Core Features & Use Cases

  • Repository Shape Analysis: Compares the overall structure (e.g., monorepo vs. single app) against documentation.
  • Boundary Violation Detection: Flags instances where different architectural layers or components improperly interact.
  • Dependency Pattern Monitoring: Identifies unexpected changes in core frameworks or build assumptions.
  • Use Case: After a series of rapid feature developments, use this skill to ensure the codebase still adheres to the established microservices architecture documented in ARCHITECTURE.md.

Quick Start

Run the architecture-drift-check skill to scan the repository for any deviations from the documented architecture.

Frequently Asked Questions about architecture-drift-check

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

FAQPage Schema
How do I detect architectural drift in my codebase?

Detect architectural drift by comparing documented architecture against actual repository structure, file boundaries, and dependency patterns. This analysis flags boundary violations and path inconsistencies to prevent architectural decay after rapid feature development.

What is architecture drift and how does it impact repository health?

Architecture drift is the discrepancy between documented architecture and actual codebase structure, including file organization and dependencies. It causes architectural decay when different layers improperly interact or unexpected dependency changes occur during rapid development.

How do I check for boundary violations between architectural layers?

Check for boundary violations by scanning the repository for instances where different architectural layers or components improperly interact. This skill compares current dependency patterns against documented file boundaries to flag violations.

Do I need specific documentation files to run an architecture drift check?

Yes, architecture drift detection requires reading ARCHITECTURE.md, STACK_PROFILE.md, INVENTORY.md, and AGENT_STATE.json to identify deviations. These files provide the documented structure needed to compare against actual repository shape and dependencies.

Can I monitor dependency pattern changes in a monorepo structure?

Yes, monitor dependency pattern changes by comparing repository shape like monorepo structures against documentation. This identifies unexpected changes in core frameworks or build assumptions and outputs findings to ARCHITECTURE_DRIFT_REPORT.md.

What's the best way to prevent architectural decay after rapid feature development?

Prevent architectural decay by running regular drift detection checks that compare documented architecture against current codebase structure. This flags boundary violations and dependency changes, outputting findings to ARCHITECTURE_DRIFT_REPORT.md and DECISIONS.md for resolution.