Skip to main content
Manus에서 모든 스킬 실행
원클릭으로

unsaved-changes-guard

Implement or debug a "discard unsaved changes?" confirm dialog that intercepts both browser back button and in-page Back/Cancel buttons on Next.js App Router edit pages. Use when the user needs navigation guards on create/edit forms, when browser back is not firing the dialog, when history stack gets polluted with duplicate edit entries, or when history.go/router.push causes overshoot into about:blank or navigation loops. Applies specifically to Next.js 13+ App Router with the "use client" directive.

개요

Implement or debug a "discard unsaved changes?" confirm dialog that intercepts both browser back button and in-page Back/Cancel buttons on Next.js App Router edit pages. Use when the user needs navigation guards on create/edit forms, when browser back is not firing the dialog, when history stack gets polluted with duplicate edit entries, or when history.go/router.push causes overshoot into about:blank or navigation loops. Applies specifically to Next.js 13+ App Router with the "use client" directive.

설치 명령
npx skills add https://github.com/truongnat/demo-route-confirm-leave --skill unsaved-changes-guard

이 명령을 Claude Code에 복사하여 붙여넣어 스킬을 설치하세요

스타0
포크0
업데이트2026년 4월 10일 00:19
SKILL.md
readonly