From rkit
Lock architecture decisions from Design documents to prevent scope creep during Do phase. Auto-generates Mermaid diagrams for MCU memory maps, MPU software stacks, WPF MVVM structures. Triggers: arch-lock, architecture lock, lock design, 아키텍처 락, 설계 잠금, アーキテクチャロック, 設計ロック, 架构锁定, 设计锁定, bloqueo de arquitectura, verrouillage d'architecture, Architektursperre, blocco dell'architettura Do NOT use for: file-level freeze (use /freeze), automation control (use /control).
npx claudepluginhub solitasroh/rkit --plugin rkitThis skill is limited to using the following tools:
> Lock architecture decisions from Design documents. Prevents scope creep during Do phase.
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
Lock architecture decisions from Design documents. Prevents scope creep during Do phase.
| Argument | Description | Example |
|---|---|---|
| (none) | Show arch-lock status | /arch-lock |
lock {feature} | Lock architecture from Design doc | /arch-lock lock uart-dma |
unlock {id} | Unlock specific decision | /arch-lock unlock AD-001 |
unlock all | Unlock all decisions | /arch-lock unlock all |
status | Show locked decisions | /arch-lock status |
diagram {feature} | Generate architecture diagram | /arch-lock diagram uart-dma |
docs/02-design/features/{feature}.design.md).rkit/state/arch-lock.jsondocs/02-design/features/{feature}.arch-lock.mdunlock {id}: Remove specific decision by ID (e.g., AD-001)unlock all: Remove all locked decisions, disable arch-lockDisplay all locked decisions with categories and affected paths.
--- Architecture Lock Status ----------------------
Active : Yes
Feature : uart-dma
Domain : mcu
Decisions : 4 locked
| ID | Category | Title |
|--------|-----------|----------------------------|
| AD-001 | layer | Software Layer Structure |
| AD-002 | memory | Memory Map |
| AD-003 | interface | Interrupt Priority Map |
| AD-004 | interface | Peripheral Allocation |
---------------------------------------------------
Generate domain-specific Mermaid architecture diagram.
MCU Diagrams:
MPU Diagrams:
WPF Diagrams:
| Decision | Description |
|---|---|
| Software Layer Structure | Application → Driver → HAL. No direct register access from app. |
| Memory Map | Flash/RAM allocation per linker script |
| Interrupt Priority Map | ISR priorities locked |
| Peripheral Allocation | Peripheral-to-function mapping |
| Decision | Description |
|---|---|
| Software Stack | Kernel → Driver → Library → App. Clear user/kernel boundary. |
| Driver Interface | ioctl/sysfs/netlink per driver |
| DT Node Structure | Device Tree hierarchy and bindings |
| IPC Architecture | Inter-process communication method |
| Decision | Description |
|---|---|
| MVVM Structure | View → ViewModel → Model. ViewModel must not reference View. |
| DI Container | Service registration and lifetimes |
| Navigation Pattern | Page/Window navigation strategy |
| Communication Architecture | Serial/network layer isolation |
When arch-lock is active, Write/Edit operations to affected paths show a warning:
Architecture decision AD-001 (Software Layer Structure) applies to this file.
Ensure changes comply with locked architecture. Use /arch-lock unlock AD-001 to modify.
Guard mode activates arch-lock boundary enforcement alongside freeze and L2 cap.
Auto-suggested after Design document creation:
"Consider locking architecture decisions with /arch-lock lock {feature}."
| File | Purpose |
|---|---|
.rkit/state/arch-lock.json | Locked decisions state |
docs/02-design/features/{feature}.arch-lock.md | Lock document with diagrams |
# Lock architecture after design
/arch-lock lock uart-dma
# Check what's locked
/arch-lock status
# Generate diagram
/arch-lock diagram uart-dma
# Unlock specific decision
/arch-lock unlock AD-002
# Unlock everything
/arch-lock unlock all