diff --git a/.cursor/rules/auto-commit-push.mdc b/.cursor/rules/auto-commit-push.mdc new file mode 100644 index 0000000..0e66db4 --- /dev/null +++ b/.cursor/rules/auto-commit-push.mdc @@ -0,0 +1,20 @@ +--- +description: After code edits, commit & push without asking (this static site project). +globs: "index.html,script.js,styles.css,links.json,README.md" +alwaysApply: false +--- + +# 자동 commit & push (이 프로젝트) + +- 이 프로젝트에서 아래 파일들을 수정/추가/삭제하여 **실질적인 코드 변경**이 발생하면, 사용자에게 재확인하지 말고 **즉시 `git commit` 후 `git push`** 한다. + - 적용 파일: `index.html`, `script.js`, `styles.css`, `links.json`, `README.md` + +- 커밋 메시지는 변경 목적 중심으로 간결하게 작성한다. + +- 아래 파일은 기본적으로 커밋 대상에서 제외한다. + - `PROMPT.txt` + +- 예외 + - 원격 푸시 실패(권한/네트워크 등) 시: 실패 원인만 짧게 보고하고, 추가 질문 없이 재시도하지 않는다. + - 파괴적 명령(강제 푸시 등)은 절대 사용하지 않는다. +