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).
How this skill is triggered — by the user, by Claude, or both
Slash command
/rkit:arch-lock [lock|unlock|status|diagram] [feature][lock|unlock|status|diagram] [feature]This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
<!-- BEGIN: cycle3-body-neutral -->
verify-policy --check body-neutrality로 자동 검증됩니다.<!-- BEGIN: cycle3-body-neutral --> ~ <!-- END: cycle3-body-neutral --> 마커로 감싸진 영역.policies/locked-vocab.json)에서 scripts/gen-locked-vocab.mjs가 자동 생성합니다.직접 부록을 편집하지 마세요 — node scripts/gen-locked-vocab.mjs로 재생성됩니다.
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
npx claudepluginhub solitasroh/rkit --plugin rkitGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.