architecture (8 lessons)

Found in: Certification, Lessons Hub, External Sources, CorpBattleCards, GTM Medical

Related Tags

Lessons

Permission Union vs. Role Switching

When a user has multiple roles, merging all permissions into a single set (union) is simpler to implement and understand than requiring users to switch between active roles — but it means users see all their capabilities simultaneously, which can cause confusion in healthcare contexts where acting u...

GTM Medical 2026-06-03 implementation

Building a Phase Execution Skill

A phased plan is only as good as its execution discipline. A `/phase` skill automates the mechanical parts of plan execution — picking the next task, timestamping start/completion, verifying work, committing atomically — so the human (or AI) can focus on doing the actual work rather than maintaining...

Certification 2026-05-13 implementation

Design-First Development

Writing a design document and a Physical Design Requirements (PDR) document before coding catches architectural mistakes when they're cheapest to fix. The design doc explores the problem space; the PDR specifies the physical implementation. Skipping either leads to rework: skipping design means buil...

Certification 2026-05-13 process

UI State Machine for Turn-Based Games

Model every distinct "what is the UI waiting for?" moment as an explicit state in an enum. The state machine eliminates the most common game UI bugs — wrong input handled at the wrong time, dialogs that don't dismiss, and turn phases that skip or repeat — by making the set of valid transitions expli...

CorpBattleCards 2026-05-11 implementation