Skip to content
cccskills
FreePublished on GitHub

git-checkpoint

Save the current code state in a local Git commit before risky changes, then return to that checkpoint if needed. Useful for multi-file refactoring and trying another approach after an unsuccessful edit.

OriginalShow the original description

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.

See how to install

Good for

  • Saving a checkpoint before multi-file refactoring
  • Returning to saved code after unsuccessful changes
  • Cleaning up temporary commits before pushing a PR branch

Files included (1)

  • SKILL.md1.2 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

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.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

agentscope-java

FreeSummary

Build Java applications with cooperating AI agents using AgentScope Java. Guides asynchronous processing, where waiting tasks do not block execution, plus language model connections, external tools, workflow coordination, error handling, and tests.

  • Building a Java agent connected to a language model
  • Coordinating agents in sequential or parallel workflows
  • Connecting external tools through MCP
agentscope-ai/agentscope-java6KUpdated Oct 20, 2026

apply-patch

FreeSummary

Apply related edits across several files using a unified diff, a file describing code changes. Check the patch with Git before applying it, and rebuild rejected patches using the current file contents.

  • Applying one related change across three or more files
  • Handling repetitive edits or whitespace-sensitive changes
  • Reusing a patch from a PR or git diff
agentscope-ai/agentscope-java6KUpdated Oct 20, 2026

chart-rendering

FreeSummary

Turn analysis results into charts suited to the question, such as trends, comparisons, or distributions. Save a chart image and the script that generated it, with a short explanation of the findings and relevant caveats.

  • Show changes over time
  • Compare values across categories
  • Visualize relationships between two numeric variables
agentscope-ai/agentscope-java6KUpdated Oct 20, 2026

code-search

FreeSummary

Locate function and class definitions, usages, and relevant files with ripgrep, using text patterns and file filters. Search Git history to see when text appeared or disappeared and investigate who changed specific lines.

  • Finding function or class definitions
  • Locating usages of a particular function
  • Narrowing searches by file type or path
agentscope-ai/agentscope-java6KUpdated Oct 20, 2026

data-analysis

FreeSummary

Calculate the count, sum, minimum, maximum, and average of supplied numbers or datasets, then present the results in a clear, structured format. Analysis results can also be saved to a file when requested.

  • Check the count and total of supplied numbers
  • Summarize minimum, maximum, and average values
  • Get a basic numerical summary of a dataset
agentscope-ai/agentscope-java6KUpdated Oct 20, 2026

example-skill

FreeSummary

Use a starter template to learn how an agent skill is organized and outline its intended use, required inputs, steps, and output format. Replace the placeholder body with your own working instructions before relying on it.

  • Learn the basic layout of an agent skill
  • Start drafting a custom skill
  • Describe when an agent should select a skill
agentscope-ai/agentscope-java6KUpdated Oct 20, 2026

See all skills by agentscope-ai

Report a problem with this skill