Λογότυπο Grim:Dev:Git Commit Decanter

Grim:Dev:Git Commit Decanter

Οργανισμός
MindGoblinStudios
grim:dev:git-commit-decanter

(grim:dev:git-commit-decanter): (Git Commit Decanter): Use this for most commit planning, hunk staging, cleanup, and history-shaping git workflows. Do not auto-route simple read-only status/log/diff checks unless commit chunking or history surgery is actually in scope.

Επισκόπηση

ΕκδότηςMindGoblinStudios
Αποθετήριοgrim-tome
Όνομα δεξιότηταςgrim:dev:git-commit-decanter
Αστέρια
35
Forks
4
Συνοδευτικά αρχεία
5
Άδεια χρήσηςMIT
Σύνδεσμοι
  • Οδηγίες σε Markdown

    Ένα αρχείο SKILL.md που το μοντέλο φορτώνει όταν χρειάζεται, ώστε να καταναλώνει token μόνο όταν ένα αίτημα είναι πράγματι σχετικό.

  • Λειτουργεί με οποιοδήποτε LLM

    Οι δεξιότητες AI είναι απλό Markdown, όχι κώδικας για συγκεκριμένο πάροχο, επομένως αυτή η δεξιότητα λειτουργεί με GPT, Claude, Gemini, Grok ή ένα τοπικό μοντέλο.

  • 5 συνοδευτικά αρχεία

    Σενάρια, πρότυπα και υλικό αναφοράς που μπορεί να διαβάζει το μοντέλο καθώς εργάζεται. Τα αρχεία είναι μόνο για ανάγνωση και δεν εκτελούνται ποτέ.

  • Ανοιχτού κώδικα

    Δημοσιεύτηκε από MindGoblinStudios στο GitHub. Διαβάστε το πηγαίο περιεχόμενο πριν εγκαταστήσετε τη δεξιότητα.

Εγκατάσταση

Εγκαταστήστε τη δεξιότητα AI Grim:Dev:Git Commit Decanter στο TypingMind για να τη χρησιμοποιείτε με οποιοδήποτε LLM ή προσθέστε τη σε άλλον πράκτορα AI που διαβάζει αρχεία SKILL.md.

1

Εγκατάσταση στο TypingMind

Το TypingMind εγκαθιστά μια δεξιότητα απευθείας από τον φάκελό της στο GitHub — διαβάζει το SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία σε πακέτο και αποθηκεύει το αποτέλεσμα τοπικά.

  1. Ανοίξτε την εφαρμογή και μεταβείτε στα Πρόσθετα → Δεξιότητες.
  2. Επιλέξτε «Εγκατάσταση από GitHub».
  3. Επικολλήστε το παρακάτω URL του φακέλου της δεξιότητας και επιβεβαιώστε.
    https://github.com/MindGoblinStudios/grim-tome/tree/main/plugins/grim-core/skills/grim:dev:git-commit-decanter
  4. Ενεργοποιήστε τη δεξιότητα σε κάθε συνομιλία όπου θέλετε να είναι διαθέσιμη.
Πρόσθετα → Δεξιότητες → Νέα δεξιότητα → Από URL του GitHub, έπειτα επικολλήστε το URL του φακέλου και πατήστε «Συνέχεια».

Χρησιμοποιήστε τη στο TypingMind

Ενεργοποιήστε τη δεξιότητα Grim:Dev:Git Commit Decanter σε οποιαδήποτε συνομιλία στο TypingMind και το μοντέλο αναλαμβάνει τα υπόλοιπα. Το όνομα και η περιγραφή της περιλαμβάνονται στην προτροπή συστήματος και, μόλις προκύψει ένα σχετικό αίτημα, το μοντέλο φορτώνει μόνο του τις πλήρεις οδηγίες — δεν χρειάζεται ποτέ να την καλείτε χειροκίνητα και δεν καταναλώνει token μέχρι να χρησιμοποιηθεί πραγματικά.

Το μοντέλο φορτώνει αυτόματα τη δεξιότητα Grim:Dev:Git Commit Decanter μόλις λάβει ένα σχετικό αίτημα.

Λειτουργεί με οποιοδήποτε μοντέλο AI

Οι δεξιότητες AI είναι απλές οδηγίες Markdown και όχι κώδικας για συγκεκριμένο πάροχο, οπότε η δεξιότητα Grim:Dev:Git Commit Decanter δεν περιορίζεται στο μοντέλο για το οποίο γράφτηκε. Εγκαταστήστε τη μία φορά στο TypingMind και χρησιμοποιήστε τη με GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ή ένα τοπικό μοντέλο που εκτελείτε εσείς — πάντα με τα δικά σας κλειδιά API.

  • Φόρτωση μόνο όταν χρειάζεται

    Η προτροπή συστήματος περιλαμβάνει μόνο το όνομα και την περιγραφή. Οι οδηγίες ανακτώνται με το πρώτο σχετικό αίτημα, οπότε μια δεξιότητα που δεν χρησιμοποιείται δεν έχει κόστος.

  • Αλλάξτε μοντέλα κατά τη συνομιλία

    Επειδή η δεξιότητα αποτελείται από οδηγίες και όχι από κώδικα, η αλλαγή μοντέλου δεν επηρεάζει τη λειτουργία της — το επόμενο μοντέλο διαβάζει το ίδιο αρχείο SKILL.md.

Οδηγίες δεξιότητας

Αυτό είναι το περιεχόμενο του αρχείου SKILL.md που φορτώνει το μοντέλο. Διαβάστε το πριν από την εγκατάσταση — μια δεξιότητα αποτελείται από οδηγίες που θα ακολουθήσει το μοντέλο σας.

Git Commit Decanter

Decant one monster diff into clean, settled chunks.

Grim workflow layer on top of git-surgeon: non-interactive hunk-level git operations for precise staging, splitting, and history shaping.

Upstream CLI: git-surgeon (currently tested against 0.1.17+).

Invocation Scope

Use this skill for most git workflows that involve:

  • planning commits
  • staging or splitting hunks
  • cleaning up a dirty tree
  • amending, folding, squashing, reordering, or otherwise shaping history
  • preparing a reviewable commit stack

Do not invoke it for simple read-only git status, git log, git show, or git diff checks unless the user is asking about commit structure, cleanup, or history work.

Default Workflow (Plan First, Then Commit After Approval)

Default behavior when the user invokes this skill:

  • inspect the current branch's uncommitted changes
  • split them into a proposed stack of small, easily reviewable commits
  • present a numbered commit list for user approval
  • only execute the plan after the user approves it

Do not silently commit immediately after creating the plan unless the user explicitly pre-approves that behavior in the request.

Target commit count: default to between 3 and 20 commits.

  • If the first pass produces fewer than 3 commits, look again for valid separations such as setup, behavior, refactor, tests, docs, tooling, or follow-up cleanup.
  • Do not create fake or noisy commits just to hit the floor; if the diff is genuinely too small to support 3 meaningful commits, say so explicitly and use the smallest sensible number.
  • If the first pass produces more than 20 commits, recombine adjacent micro-commits until each remaining commit still tells one clear story.

Workflow:

  1. Identify branch + working state:
    • git rev-parse --abbrev-ref HEAD
    • git status --porcelain
  2. List change hunks (IDs + previews):
    • git-surgeon hunks (unstaged)
    • git-surgeon hunks --staged (staged, if any)
    • use git-surgeon hunks --blame when deciding which earlier commit new lines belong with
  3. Create a numbered commit plan:
    • Group hunks into small commits by intent (feature, fix, refactor, docs, tooling).
    • Keep commits tight and reviewable. If one hunk mixes concerns, split it with --lines.
    • Aim for 3 to 20 commits overall unless the change set is truly smaller.
    • Present the plan as a numbered list before committing.
    • For each planned commit, include:
      • proposed commit subject
      • relevant files or hunk IDs
      • brief reason this commit is separate
  4. Ask for approval:
    • Ask the user to approve the numbered list before executing it.
    • If the user requests changes, revise the numbered list and ask again.
    • Ask for approval before merging, squashing, recombining, or otherwise changing planned commits into a different stack.
  5. Execute the approved plan:
    • Use git-surgeon commit <id...> -m "message" for each chunk.
    • Repeat until git-surgeon hunks is empty.
  6. If you need to adjust after the fact:
    • Add missed hunks to an earlier commit: stage them and use git-surgeon amend <commit>.
    • Fold a finished commit into an earlier one: git-surgeon fold <target> or git-surgeon fold <target> --from <commit>.
    • If a commit is too large or mixed, use git-surgeon split <sha> ... (see Split Workflow below).
    • Reorder commits after splitting: git-surgeon move <sha> --after <target>.

Chunking Rules (Make Review Easy)

  • One concept per commit (avoid mixing refactor + behavior + docs unless the change is inseparable).
  • Separate mechanical changes (renames/formatting) from behavioral changes.
  • Keep tests with the code they validate, and use test-first sequencing when the user explicitly asks for it.
  • Prefer smaller commits: if a diff hunk is a “bundle,” split it by line ranges.
  • Default target is 3-20 commits for a meaningful working set; push upward when a larger diff contains multiple separable ideas.
  • Build a narrative across commit messages: each commit should advance a clear story (setup -> core behavior -> UX polish -> tests/docs) and the body should briefly explain why this step exists before the next one.
  • Across all projects, never commit files under output/ or tmp/ unless the user explicitly promotes them into the actual project. Do not hide those paths with .gitignore or .git/info/exclude; the visible git status signal is intentional.

Safety Rules

  • Never push without explicit user request.
  • Do not create the default commit stack until the user approves the numbered commit plan.
  • Ask for approval before merging, squashing, recombining, or otherwise changing planned commits.
  • Confirm before rewriting history on shared branches (especially split, fold, amend, squash, move, or anything that implies force-push).

Commands

bash
# List hunks
git-surgeon hunks                          # unstaged (ID, file, +/- counts, preview)
git-surgeon hunks --staged                 # staged
git-surgeon hunks --file=src/main.rs       # filter by file
git-surgeon hunks --commit <HEAD/sha>      # from specific commit
git-surgeon hunks --commit <sha> --full    # with line numbers (for line-range splits)
git-surgeon hunks --blame                  # show introducing commit per line

# Show full diff for hunk (lines numbered for --lines)
git-surgeon show <id>
git-surgeon show <id> --commit HEAD

# Stage
git-surgeon stage <id1> <id2> ...
git-surgeon stage <id> --lines 5-30

# Stage + commit in one step
git-surgeon commit <id1> <id2> ... -m "message"
git-surgeon commit <id>:1-11 <id2> -m "message"   # inline line ranges

# Commit hunks directly to another branch (no checkout)
git-surgeon commit-to <branch> <id1> <id2> ... -m "message"

# Unstage
git-surgeon unstage <id1> <id2> ...
git-surgeon unstage <id> --lines 5-30

# Discard working tree changes
git-surgeon discard <id1> <id2> ...
git-surgeon discard <id> --lines 5-30

# Fold staged changes into an earlier commit
git-surgeon amend <commit>

# Fold existing commit(s) into an earlier commit
git-surgeon fold <target>
git-surgeon fold <target> --from <commit>
git-surgeon fold <target> --from <commit1> <commit2>

# Reword commit message
git-surgeon reword HEAD -m "new message"
git-surgeon reword <commit> -m "new message"
git-surgeon reword HEAD -m "subject" -m "body"

# Squash commits from target through HEAD into one
git-surgeon squash HEAD~2 -m "combined feature"
git-surgeon squash <commit> --force -m "squash with merges"

# Undo hunks from commit (reverse-apply → working tree)
git-surgeon undo <id1> <id2> ... --from <commit>
git-surgeon undo <id> --from <commit> --lines 2-10

# Undo entire files from commit
git-surgeon undo-file <file1> <file2> ... --from <commit>

# Reorder commits
git-surgeon move <sha> --after <target-sha>
git-surgeon move <sha> --before <target-sha>
git-surgeon move <sha> --to-end

# Split commit by hunk selection
git-surgeon split HEAD \
  --pick <id1> <id2> -m "first commit" \
  --rest-message "remaining changes"

# Split with subject + body
git-surgeon split HEAD \
  --pick <id1> -m "Add feature" -m "Detailed description." \
  --rest-message "Other changes" --rest-message "Body for rest."

# Split with line ranges (comma for non-contiguous)
git-surgeon split <commit> \
  --pick <id>:1-11,20-30 <id2> -m "partial split"

# Split into 3+ commits
git-surgeon split HEAD \
  --pick <id1> -m "first" \
  --pick <id2> -m "second" \
  --rest-message "rest"

# Upgrade git-surgeon itself
git-surgeon update

Picking the Right Folding Command

You have...Use
Staged changesgit-surgeon amend <commit>
One existing commit, defaulting to HEADgit-surgeon fold <target>
One or more named commitsgit-surgeon fold <target> --from <commit...>

Typical Workflow

  1. git-surgeon hunks → list hunks with IDs
  2. git-surgeon show <id> → inspect (lines numbered)
  3. git-surgeon commit <id1> <id2> -m "message" (or stage separately → git commit)
  4. Partial hunk: git-surgeon commit <id>:5-30 -m "message"

Amend Workflow

  1. git-surgeon stage <id1> <id2>
  2. git-surgeon amend <commit-sha> (HEAD → amend; older → autosquash rebase)
  3. Unstaged changes preserved

Undo Workflow

  1. git-surgeon hunks --commit <sha>
  2. git-surgeon undo <id> --from <sha> or git-surgeon undo-file src/main.rs --from <sha>
  3. Changes appear as unstaged modifications

Split Workflow

  1. git-surgeon hunks --commit <sha> (use --full for line numbers)
  2. git-surgeon split <sha> --pick <id1> -m "first" --rest-message "second"
  3. Multiple -m flags → subject + body
  4. id:range for partial hunks; commas for non-contiguous: --pick <id>:2-6,34-37
  5. HEAD → direct reset; older → rebase. Requires clean working tree.

Hunk IDs

  • 7-char hex from file path + hunk content
  • Stable while diff unchanged; duplicates get -2, -3 suffixes
  • ID not found → re-run hunks for fresh IDs

Install

If git-surgeon is not installed, install from raine/git-surgeon:

bash
brew install raine/git-surgeon/git-surgeon

Upgrade:

bash
brew upgrade git-surgeon
# or
git-surgeon update

Safety

  • Commands like discard, amend, fold, split, squash, and move can rewrite history or delete changes. Confirm with the user before rewriting history on shared branches or before force-pushing.

Συνοδευτικά αρχεία

Το μοντέλο τα διαβάζει όποτε χρειάζεται, όσο η δεξιότητα είναι φορτωμένη. Διατίθενται ως αρχεία για ανάγνωση και δεν εκτελούνται ποτέ.

Συχνές ερωτήσεις

Τι κάνει η δεξιότητα AI Grim:Dev:Git Commit Decanter;

(grim:dev:git-commit-decanter): (Git Commit Decanter): Use this for most commit planning, hunk staging, cleanup, and history-shaping git workflows. Do not auto-route simple read-only status/log/diff checks unless commit chunking or history surgery is actually in scope.

Γιατί να χρησιμοποιήσετε τη δεξιότητα Grim:Dev:Git Commit Decanter στο TypingMind;

Επειδή την εγκαθιστάτε μία φορά και τη χρησιμοποιείτε με οποιοδήποτε μοντέλο. Η Grim:Dev:Git Commit Decanter είναι απλό Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως η ίδια δεξιότητα λειτουργεί με GPT-5, Claude, Gemini, Grok ή ένα τοπικό μοντέλο — και μπορείτε να αλλάξετε μοντέλο κατά τη διάρκεια της συνομιλίας χωρίς να διακοπεί η λειτουργία της. Το TypingMind λειτουργεί με τα δικά σας κλειδιά API, οπότε πληρώνετε απευθείας τους παρόχους αντί για συνδρομή ανά θέση χρήστη, ενώ οι δεξιότητες και οι συνομιλίες σας παραμένουν στον δικό σας χώρο αποθήκευσης.

Πώς εγκαθιστώ τη Grim:Dev:Git Commit Decanter στο TypingMind;

Στο TypingMind, ανοίξτε Πρόσθετα → Δεξιότητες → Εγκατάσταση από το GitHub και επικολλήστε το https://github.com/MindGoblinStudios/grim-tome/tree/main/plugins/grim-core/skills/grim:dev:git-commit-decanter. Το TypingMind διαβάζει το αρχείο SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία και εγκαθιστά τη δεξιότητα, την οποία μπορείτε να ενεργοποιείτε ανά συνομιλία.

Ποια μοντέλα AI μπορούν να χρησιμοποιήσουν τη δεξιότητα Grim:Dev:Git Commit Decanter;

Οποιοδήποτε μοντέλο συνδέετε στο TypingMind. Οι δεξιότητες AI είναι απλές οδηγίες Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως τα GPT, Claude, Gemini, Grok και τα τοπικά μοντέλα μπορούν όλα να φορτώσουν αυτή τη δεξιότητα όταν ένα αίτημα αντιστοιχεί σε αυτή.

Με πόσα μοντέλα AI μπορώ να χρησιμοποιήσω τη Grim:Dev:Git Commit Decanter;

Με όσα θέλετε. Εφόσον ένα μοντέλο υποστηρίζει δεξιότητες, μπορείτε να χρησιμοποιήσετε τη Grim:Dev:Git Commit Decanter με αυτό — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama και άλλα — όλα στο TypingMind με τα δικά σας κλειδιά API.

Είναι δωρεάν η δεξιότητα AI Grim:Dev:Git Commit Decanter;

Ναι. Δημοσιεύεται στο GitHub από τον χρήστη MindGoblinStudios με την άδεια χρήσης MIT. Πληρώνετε μόνο τον δικό σας πάροχο AI για τα token που χρησιμοποιείτε.

Τι είναι οι δεξιότητες AI;

Μια δεξιότητα AI είναι ένα επαναχρησιμοποιήσιμο πακέτο οδηγιών που διδάσκει σε ένα μοντέλο AI πώς να εκτελεί μια συγκεκριμένη εργασία. Ακολουθεί την ανοιχτή μορφή Agent Skills: ένα αρχείο SKILL.md με όνομα και περιγραφή, μαζί με τυχόν σενάρια κώδικα, πρότυπα ή αρχεία αναφοράς που μπορεί να χρειαστεί το μοντέλο. Το μοντέλο διαβάζει τις οδηγίες μόνο όταν το αίτημά σας αντιστοιχεί στη δεξιότητα, οπότε μια εγκατεστημένη δεξιότητα δεν κοστίζει τίποτα μέχρι να χρησιμοποιηθεί.

Σε τι διαφέρουν οι δεξιότητες AI από τα πρόσθετα ή τους συνδέσμους MCP;

Ένα πρόσθετο ή ένας σύνδεσμος MCP παρέχει στο μοντέλο νέα εργαλεία που μπορεί να καλέσει — κώδικα που εκτελείται κάπου και επιστρέφει ένα αποτέλεσμα. Μια δεξιότητα AI παρέχει αντί γι’ αυτό γνώσεις και διαδικασίες στο μοντέλο: πώς να προσεγγίσει μια εργασία, ποια βήματα να ακολουθήσει και ποια χαρακτηριστικά έχει ένα καλό αποτέλεσμα. Οι δεξιότητες είναι απλό Markdown, επομένως δεν χρειάζονται διακομιστή, κλειδί API ή περιβάλλον εκτέλεσης και λειτουργούν με οποιοδήποτε μοντέλο.

Προβολή όλων

Στήστε δικό σας χώρο εργασίας AI τώρα

Εγγραφείτε στο ενημερωτικό μας δελτίο για να ενημερώνεστε για νέες λειτουργίες και μελλοντικές κληρώσεις δώρων 👇