원클릭으로
kiro-lock
Prevents concurrent work in shared directories. Checks/acquires lock before file modifications, releases after completion.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Prevents concurrent work in shared directories. Checks/acquires lock before file modifications, releases after completion.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Defines the mandatory footer template for all .md files — GitHub badges, dates, and license. Use when creating or modifying any markdown document.
Defines operating rules for all agents. Use when executing any task — confirms before action, requires rollback plans for dangerous operations, enforces naming conventions and credential placeholders.
Bash 스크립트 작성 시 표준 로깅 함수와 에러 처리 패턴을 적용합니다. 새 스크립트 생성 또는 기존 스크립트 개선 시 사용합니다. 이 skill을 참조할 때 응답 첫 줄에 "🟡 참조: skill://bash-script-template" 를 출력합니다.
Guides test writing with AAA pattern, BVA, EP, and edge case analysis. Use when writing unit tests, integration tests, or infrastructure validation tests.
Provides a structured code review checklist. Use when reviewing code, scripts, or IaC files. Covers correctness, security, error handling, performance, and infrastructure as code.
Guides systematic infrastructure troubleshooting. Use when services fail, builds break, deployments go wrong, or infrastructure behaves unexpectedly. Use when you need root-cause analysis rather than guessing.
| name | kiro-lock |
| description | Prevents concurrent work in shared directories. Checks/acquires lock before file modifications, releases after completion. |
Execute before any file modification task.
if [ -f .kiro-lock ]; then
cat .kiro-lock 2>/dev/null || echo "⚠️ lock file unreadable — abort"
fi
printf "user: $(whoami)\nhost: $(hostname)\nstarted: $(date -Iseconds)\nsession: $(date +%s)\ntask: <task summary>\n" > .kiro-lock
Delete on both normal completion and error.
rm -f .kiro-lock
.kiro-lock in project root (directory containing .git).kiro-lock ownership before each fs_write/write command (when 10+ minutes elapsed or after context compaction).kiro-lock to .gitignore is recommendedWhen started timestamp is 30+ minutes old:
When lock file user and host match current $(whoami)/$(hostname):
session value matches current session → own lock (proceed normally)session value differs → stale lock from previous session, ask "Previous session lock remains. Delete?" then proceedWhen lock file exists but user/started fields cannot be parsed:
The following require no lock check/acquisition:
fs_read, grep, glob and other read-only toolsgit status, git log, git diff and other query commandscat, ls, find)When permission error occurs creating .kiro-lock:
When orchestrator (system-engineer) holds the lock and invokes sub-agents via delegate:
The preToolUse hook (~/.kiro/hooks/kiro-lock.sh) can be toggled without editing agent JSON.
# off
touch ~/.kiro/hooks/kiro-lock.disabled
# on
rm ~/.kiro/hooks/kiro-lock.disabled
# status
ls ~/.kiro/hooks/kiro-lock.disabled 2>/dev/null && echo "OFF" || echo "ON"
When disabled, the hook exits immediately (exit 0) — manual lock checks in SKILL.md §1–3 still apply.