본문으로 건너뛰기
Skillpedia
일반 코딩6.2k · #14388

git-checkpoint

하는 일

이 스킬은 에이전트 작업의 안전망으로 Git 커밋을 사용합니다. 좋은 코드를 잃을 위험 없이 에이전트가 큰 리팩터링을 시도하기를 원하는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓프로젝트에 크거나 위험한 변경을 하려고 할 때.
  • ✓여러 파일에 걸친 리팩터링을 하면서 안전한 시작점을 남기고 싶을 때.
  • ✓변경으로 상황이 나빠져 마지막 좋은 상태로 돌아가고 싶을 때.

스킬 링크

https://github.com/agentscope-ai/agentscope-java/blob/main/agentscope-examples/agents/agentscope-codingagent/src/main/resources/workspace-templates/skills/git-checkpoint/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/agentscope-ai/agentscope-java/blob/main/agentscope-examples/agents/agentscope-codingagent/src/main/resources/workspace-templates/skills/git-checkpoint/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“현재 코드의 체크포인트를 저장한 뒤 결제 모듈을 리팩터링해 주세요. 문제가 생기면 체크포인트로 롤백해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

스킬은 위험한 작업 전에 체크포인트 커밋을 만들고 그 ID를 기록합니다. 변경이 잘못되면 커밋되지 않은 변경을 버리거나 체크포인트로 리셋한 뒤, 다른 방법을 시도합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Git Checkpoint and Rollback

You work in a git-backed sandbox. Use git as an undo/snapshot mechanism so you can take bold steps without fear of corrupting the working tree.

Checkpoint before risky work

Before a large refactor or anything you are unsure about, save the current good state:

git add -A && git commit -m "checkpoint: before <short description>" --no-verify

Record the commit hash (git rev-parse HEAD) so you can return to it.

Roll back on failure

If a change makes things worse and you cannot quickly fix it, revert rather than piling on more edits:

  • Discard uncommitted changes to a file: git checkout -- <file>
  • Discard ALL uncommitted changes: git reset --hard HEAD
  • Return to a checkpoint: git reset --hard <checkpoint-hash>

Then re-read the code and try a different approach.

Rules

  • NEVER create .bak / backup files — git is your history.
  • Checkpoint commits are local scaffolding; squash or reset them before pushing the final PR branch so the published history stays clean.
자주 묻는 질문

저장하지 않은 작업을 삭제하나요?

롤백이 필요할 때만 커밋되지 않은 변경을 버리므로, 중요한 작업은 먼저 저장해야 합니다.

백업 파일을 만드나요?

아니요, Git이 기록을 보관하므로 백업 파일을 만들지 않는다고 스킬에 나와 있습니다.

체크포인트 커밋은 어떻게 되나요?

최종 브랜치를 푸시하기 전에 정리하라고 스킬에 나와 있습니다.

상세 정보

작성자의 원본 설명

Use git as a safety net - create a checkpoint commit before risky or large changes and roll back cleanly if a change makes things worse. Use before multi-file refactors.

repo: agentscope-ai/agentscope-java

인기도

GitHub 스타
6.2k
순위
#14388
라이선스
Apache-2.0
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬