architecture-compliance

Audit code against Tetris architecture rules to detect prohibited patterns and enforce required ones.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/sakataka/tetris-game2 --skill architecture-compliance
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: architecture-compliance
Source: https://github.com/sakataka/tetris-game2/tree/main/.claude/skills/architecture-compliance
Command: npx skills add https://github.com/sakataka/tetris-game2 --skill architecture-compliance

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps enforce architecture and design patterns, preventing anti-patterns and ensuring clean code structure.

Core Features & Use Cases

  • Prohibited patterns: Classes and Enums; any type; non-null assertions; hardcoded strings; interface in React components
  • Required patterns: Functional programming; Result<T,E> for game logic; proper imports; co-located tests

Quick Start

Review a code file or module to ensure it follows the project's architecture rules and suggest refactors accordingly.

Frequently Asked Questions about architecture-compliance

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

FAQPage Schema
How do I enforce architectural patterns and prevent anti-patterns in code reviews?

Architectural compliance audits code against defined rules to identify deviations from patterns like functional programming, Result<T,E>, and proper imports while flagging prohibited patterns such as classes, enums, non-null assertions, and hardcoded strings. Use it during code reviews to catch violations early.

What patterns does the Tetris architecture enforce?

The Tetris architecture requires functional programming, Result<T,E> for game logic, proper import conventions, co-located tests, type-safe i18n, and useId for dynamic IDs. It prohibits classes, enums, any types, non-null assertions, hardcoded strings, and interfaces in React components.

Can I use architecture compliance during feature implementation and refactoring?

Yes. Run compliance audits during feature implementation, refactoring, and validation workflows to detect prohibited patterns and ensure required patterns are present, keeping code aligned with architectural standards throughout development.

How does type-safety improve with architecture compliance?

Type-safe compliance auditing enforces proper import conventions, eliminates any types and non-null assertions, and requires Result<T,E> patterns for game logic, reducing runtime errors and improving code reliability across your codebase.

What anti-patterns does architecture compliance detect?

The Skill detects classes, enums, any type usage, non-null assertions, hardcoded strings, and interfaces in React components—common patterns that violate functional architecture and type safety in TypeScript-based projects.

Why enforce co-located tests as part of architecture compliance?

Co-located tests keep test files alongside source code, improving maintainability and ensuring tests stay synchronized with implementation changes. Architecture compliance validates this structure during audits and code reviews.