architecture

Organize Page Objects and shared test context for scalable UI tests.

176|2|Updated May 21, 2026
One-click install
npx skills add https://github.com/DanielSuo117/velocitai --skill architecture-danielsuo117
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: architecture
Source: https://github.com/DanielSuo117/velocitai/tree/main/zh/skills/architecture
Command: npx skills add https://github.com/DanielSuo117/velocitai --skill architecture-danielsuo117

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Architects and QA teams often struggle to design scalable UI tests due to fragmented Page Object patterns and inconsistent test context. This Skill provides a structured approach to organize tests, pages, and context sharing across roles, guiding growth and maintenance.

Core Features & Use Cases

  • POM layered skeleton guidance for tests, pages, and config.
  • Context sharing decision tree to determine when to share or isolate fixtures.
  • Naming conventions and base-class guidance for new roles.
  • Step-by-step patterns for implementing role-based test flows and class-level sharing.

Quick Start

Use the provided POM skeleton to structure tests, pages, and fixtures and start implementing a new role.

Frequently Asked Questions about architecture

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

FAQPage Schema
How do I structure scalable Page Object Models for UI test automation?

Structure scalable Page Object Models by adopting a layered POM skeleton that separates tests, pages, and config directories. This approach organizes test context and shared fixtures across roles to enforce consistency and maintainability.

When should I share or isolate test context across different user roles in a testing framework?

Use a context-sharing decision tree to determine when to share or isolate test fixtures across roles. Following documented rules for shared versus isolated contexts prevents inconsistent test states and ensures reliable UI test execution.

What naming conventions should I use for role-based Page Object classes?

Adopt the Role<Role><Page>Page naming convention for role-based Page Object classes. This standardizes base-class guidance and class-level sharing patterns, making new roles easier to implement and maintain across projects.

What is the best way to add a new user role to an existing POM testing framework?

Add a new user role by following step-by-step patterns for role-based test flows and class-level sharing. Use the provided POM skeleton to implement the role's specific pages and integrate them with the shared test context.

How does layered POM design improve UI test maintainability?

Layered POM design improves UI test maintainability by separating page interactions, test logic, and configuration. This structured approach prevents fragmented Page Object patterns and enforces consistency across QA teams.

Do I need a specific testing framework to implement a canonical POM skeletal layout?

No specific testing framework is required to implement a canonical POM skeletal layout. The guidance applies to organizing tests, pages, and config directories within any UI automation framework to achieve scalable test context.