scripts-architecture

Enforce architecture rules and analyze dependencies with Python AST parsing.

Updated May 20, 2025
One-click install
npx skills add https://github.com/flext-sh/flext --skill scripts-architecture
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scripts-architecture
Source: https://github.com/flext-sh/flext/tree/main/.claude/skills/scripts-architecture
Command: npx skills add https://github.com/flext-sh/flext --skill scripts-architecture

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the enforcement of architectural rules, code quality standards, and dependency management across the project, ensuring consistency and maintainability.

Core Features & Use Cases

  • Violation Detection: Identifies architectural violations, import rule breaches, and syntax errors.
  • Code Refactoring: Automatically reorganizes imports, corrects syntax, and standardizes code patterns.
  • Cross-Project Testing: Verifies inter-project dependencies and consistency.
  • Use Case: When developing a new feature, run the architecture scripts to ensure it adheres to established patterns and doesn't introduce new violations before merging.

Quick Start

Run the make check command to verify code quality and architecture.

Frequently Asked Questions about scripts-architecture

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

FAQPage Schema
How do I automate code quality checks and enforce architecture rules in Python?

Code quality and architecture enforcement is automated through Python scripts and AST parsing, which identify import rule breaches and syntax errors. Run the `make check` command to verify project consistency and detect architectural violations before merging.

What is the best way to detect architectural violations and import rule breaches?

Detecting architectural violations is best handled by applying AST parsing to analyze module standards and import patterns. This approach identifies structural inconsistencies and cross-project dependency issues without manual code review.

Can I use ast-grep and shell scripting for automated code refactoring?

Yes, ast-grep and shell scripting are required for rule application and code refactoring. They automatically reorganize imports, correct syntax, and standardize code patterns to maintain consistency across the project.

How do I verify inter-project dependencies and consistency for Python projects?

You verify inter-project dependencies and consistency by running cross-project testing scripts. These scripts analyze dependency trees and module imports to ensure adherence to project-specific standards before merging new features.

Does this approach work for standardizing code patterns and reorganizing imports?

Yes, the scripts automatically reorganize imports, correct syntax, and standardize code patterns. By enforcing project-specific import and module standards, the tooling ensures codebase consistency and maintainability.