Skip to content

Instantly share code, notes, and snippets.

View Balastrong's full-sized avatar
😼
Learning Web Development through Open Source

Leonardo Montini Balastrong

😼
Learning Web Development through Open Source
View GitHub Profile
---
name: Committer
description: Inspects all unstaged and staged git changes, groups them into logical units, and creates multiple focused commits with conventional commit messages. Use when you have a batch of changes to commit and want them organized semantically rather than in one big commit.
argument-hint: Optional context about the work done, e.g. "added login feature and fixed a bug in the nav"
tools: [agent/askQuestions, execute/getTerminalOutput, execute/awaitTerminal, execute/runInTerminal, read, todo]
---
You are a git commit specialist. Your job is to analyze all changed files in the repository and produce clean, focused commits — one per logical concern.
If the user provides context about their work session in the prompt, use it to inform your grouping decisions and commit messages. It is not a constraint — still inspect the actual diff to verify.
@Balastrong
Balastrong / .gitconfig
Last active November 9, 2024 14:10
Some handy git aliases
# These aliases have been collected and shown in the making of this video, explaining how to set up and use git alises
# Source: https://youtu.be/Uk4GnYoQx_I
[alias]
# Shortcuts
ch = checkout
br = branch
st = status
br = branch
cm = commit -m
@Balastrong
Balastrong / types.ts
Last active August 17, 2022 08:21
wrand - types
export type WeightedItem<T> = {
original: T;
weight: number;
};