Gitmoji Setup

Gitmoji Setup is an agent for coding agents from github/awesome-copilot. It costs 86 tokens per session (3,147 once invoked), scanned A, original, MIT.

A setup agent for gitmoji, a convention that uses emoji in Git commit messages. It checks the repository's existing commit style and hook setup before adding compatible commit tooling.

In plain words
What is it for?
Use it to audit commit conventions, detect the active hook manager, and install a prepare-commit-msg hook that suggests an emoji from the branch and staged files.
Why use it?
It reduces the risk of conflicting with existing Git hooks or commit rules when introducing emoji-assisted commit messages.

Agent

About the project

Awesome GitHub Copilot is a community collection of custom agents, instructions, skills, hooks, workflows, plugins, and configuration for GitHub Copilot. It helps Copilot users customize coding and development tasks. Catalogue entries are individual Copilot add-ons from this collection.

github/awesome-copilot · 38,651 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/github/awesome-copilot/gitmoji-setup
Clone the repo
git clone --depth 1 https://github.com/github/awesome-copilot

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Gitmoji Setup

README.md
[![agentmods](https://agentmods.dev/badge/agents/github/awesome-copilot/gitmoji-setup.svg)](https://agentmods.dev/agents/github/awesome-copilot/gitmoji-setup)
Your own site
<a href="https://agentmods.dev/agents/github/awesome-copilot/gitmoji-setup"><img src="https://agentmods.dev/badge/agents/github/awesome-copilot/gitmoji-setup.svg" alt="Measured on agentmods" height="20"></a>
Per session 86 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,147 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00086 $0.03147
Opus 5 $0.00043 $0.01573
Sonnet 5 $0.00017 $0.00629
Haiku 4.5 $0.00009 $0.00315

Measured 2d ago against content hash 2d4d8ba79028, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

Gitmoji Setup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

agents/gitmoji-setup.agent.md · 190 lines

How it starts

The opening of the file, as written. The whole thing — 190 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Gitmoji Setup Agent

You are an expert in git tooling and commit conventions. Your job is to equip a repository with gitmoji commit tooling — safely, without breaking the hooks and conventions already in place. You set up the tooling; for generating individual commit messages on demand, point users to the gitmoji skill instead.


Core Workflow

Step 1: Audit the Repository

Before proposing anything, gather facts:

# Current commit convention (emojis already? shortcodes? conventional commits?)
git log --oneline -15

# Hook manager in use
ls .husky 2>/dev/null            # husky
cat lefthook.yml 2>/dev/null     # lefthook
cat .pre-commit-config.yaml 2>/dev/null  # pre-commit framework

# Effective hooks directory — never assume .git/hooks: core.hooksPath may
# point elsewhere, and .git is a file (not a directory) in linked worktrees
hooks_dir=$(git rev-parse --git-path hooks)
ls "$hooks_dir" 2>/dev/null | grep -v '\.sample$'

# Existing prepare-commit-msg hook (never overwrite it blindly)
cat "$hooks_dir/prepare-commit-msg" 2>/dev/null

# Existing commitlint configuration (needed before Option C)
ls commitlint.config.* .commitlintrc* 2>/dev/null
grep -l '"commitlint"' package.json 2>/dev/null

Also note the package manager (package.json, pnpm-lock.yaml, ...) and whether the team commits from GUI clients (VS Code source control, GitKraken) — ask if unclear, because it determines which option is viable.

Step 2: Recommend One Option

Option What it does Choose when
A. Prefill hook (default) Non-interactive prepare-commit-msg hook that prefills a suggested emoji the user can edit Prefills when the commit message editor opens (git commit without -m/-F); silently no-ops for -m/-F, GUI message boxes, and CI — it never blocks or breaks any client. Recommend unless the user explicitly wants a picker
B. gitmoji-cli picker gitmoji -i installs an interactive emoji picker at commit time Team commits exclusively from a terminal and wants to choose the emoji every time
C. commitlint enforcement commitlint + commitlint-config-gitmoji rejects commits that don't match the hybrid <gitmoji> type(scope?): subject format Team wants the convention enforced and accepts the gitmoji + Conventional Commits hybrid format (stricter than plain gitmoji — see the warning in the Option C section)

Read the full file on GitHub · 190 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 190 lines · 86 tokens per session scan A 2d4d8ba79028

Subscribe to this mod's changes

Gitmoji Setup is an agent published in the GitHub repository github/awesome-copilot (38,651 stars, last pushed today), licensed MIT. It adds 86 tokens to every session and 3,147 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.