Emoji git workflow

From nirholas/gitpretty · View interactive version

Emoji git workflow is an AI agent skill from the GitHub repository nirholas/gitpretty. Use the gitpretty CLI to make emoji conventional commits, pretty git logs, typed branches, release tags, merges and commit hooks. Use when a user asks for emoji commit messages or a more readable git history.

How to use this skill

Skill file

gitpretty emoji git workflow

gitpretty is a Node launcher (bin/cli.js) over bash scripts. It needs bash and git. The repo is not installed from npm by this plugin: clone it and call the launcher with node.

git clone https://github.com/nirholas/gitpretty.git ~/gitpretty
node ~/gitpretty/bin/cli.js help

Below, gp stands for node ~/gitpretty/bin/cli.js. Run commands inside the git repository you want to change.

Commands (from `gp help`)

To preview an emoji without committing, call the script directly: bash ~/gitpretty/scripts/emoji-commit.sh --suggest "<message>".

Example

cd my-project
node ~/gitpretty/bin/cli.js branch feature login-form
node ~/gitpretty/bin/cli.js commit "feat: add login form validation"
node ~/gitpretty/bin/cli.js log graph -n 20
node ~/gitpretty/bin/cli.js tag v1.2.0 minor

Caution

gp beautify [path] rewrites history in a heavy way: it appends a trailing newline to every file in the repository and makes one commit per file with a unique emoji, so it creates many commits. Only run it on a repository the user explicitly wants that done to, never on a shared branch without their confirmation, and read docs/SAFETY.md in the clone first. gp hooks install modifies .git/hooks of the current repository, so confirm before installing.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.