Install
openclaw skills install @terr123123/design-gateA design gate checker for architecture validation, feasibility analysis, and impact scope assessment.
openclaw skills install @terr123123/design-gateA generic design gate checker that validates architecture reasonableness, technical feasibility, and impact scope assessment for a design before implementation proceeds.
clawhub install design-gate
from src import DesignGate, Design, Component, TechStack, ImpactScope
gate = DesignGate()
design = Design(
title="User Service",
description="User management microservice",
components=[
Component("UserController", "Handle HTTP", ["GET", "POST"]),
Component("UserRepo", "Persist users", ["save", "find"]),
],
dependencies=["auth-service"],
tech_stack=TechStack("python", "django", "postgres", ["redis"]),
impact_scope=ImpactScope(["user-module"], False, False, "medium"),
)
results = gate.run_all_checks(design)
print(gate.overall_pass(results)) # True if all checks pass
arch_result = gate.check_architecture(design)
feasibility_result = gate.check_feasibility(design.tech_stack)
impact_result = gate.check_impact_scope(design.impact_scope)
strict_gate = DesignGate(pass_threshold=80.0)
check_architecture(design: Design) -> GateResultcheck_feasibility(tech_stack: TechStack) -> GateResultcheck_impact_scope(impact: ImpactScope) -> GateResultrun_all_checks(design: Design) -> List[GateResult]overall_pass(results: List[GateResult]) -> boolDesign: title, description, components, dependencies, tech_stack, impact_scopeComponent: name, responsibility, interfacesTechStack: language, framework, database, external_depsImpactScope: affected_modules, breaking_changes, migration_needed, risk_levelGateResult: check_name, passed, score, message, details80 comprehensive tests covering unit, integration, and end-to-end scenarios.
cd d:\openclaw-skills\quality-stack\design-gate
python -m pytest tests/ -v --tb=short
MIT License - free for personal and commercial use.