/palladius-public-goodies:git-codingfrom palladius-public-goodies
Provides mandatory guidelines for git operations: safe commits, version bumping, CHANGELOG updates, and anti-bloat checks on agent instruction files. Use when proposing or executing git commits, pushing code, or making destructive file changes.
Ships in palladius-public-goodies. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
This skill provides the mandatory guidelines for executing git operations, ensuring safe repository management, preventing prompt bloat in checked-in agent instruction files, and correctly formatting commits and releases.
NEVER use destructive git commands such as git clean -fd, git reset --hard, or git push --force.
Untracked files may contain active, uncommitted work by the user or other agents.
rm commands on the exact files you created. If you are unsure about untracked files, always ask the user before deleting them.Before proposing or executing any git commit, you must perform the following actions in the repository:
gemini-extension.json, plugin.json, package.json, etc.) and increment it according to Semantic Versioning (usually a patch bump, like 0.1.4 -> 0.1.5).
git fetch origin and read the version on origin/main before picking the next number. Parallel agent sessions (other worktrees) may have already claimed it.CHANGELOG.md file documenting the changes under the new version header. Follow the [Keep a Changelog] format.GEMINI.md, AGENTS.md, CLAUDE.md, CONTRIBUTING.md, SPECS.md, INSTRUCTIONS.md, or SKILL.md, run $SKILL_DIR/scripts/analyze_bloat_history.py --uncommitted <FILENAME> before committing (see Mandate #6 and the ai-coding skill).git status, git diff HEAD, and git log -n 3 to match the existing commit style.gitmoji, use the appropriate emoji in the commit title (e.g., 🐛 for bugs, ✨ for features, 🤖 for chores, etc.).autopush-enabled)autopush-enabled is available in $PATH and run it.autopush-enabled exits 0 (Relaxx Mode 🏖️): ALWAYS git commit and git push (or just autopush) automatically without asking the user for confirmation.autopush-enabled exits non-zero (or is not installed): NEVER push automatically unless explicitly requested by the user.git mv to mv if file is under version control.GEMINI.md, AGENTS.md, CONTRIBUTING.md, SPECS.md, SKILL.md)When patching checked-in system instruction markdowns (GEMINI.md, AGENTS.md, CLAUDE.md, CONTRIBUTING.md, SPECS.md, INSTRUCTIONS.md, SKILL.md), do not bloat them (see also the companion ai-coding skill, which recommends preferring AGENTS.md over GEMINI.md and symlinking GEMINI.md -> AGENTS.md).
CRAMMED_LINE — "10 instructions in 1 line"):
must, never, always, make sure, also) into a single dense run-on line to "save vertical space".OVERFITTING_H2_SECTION):
## Heading (or ### Subheading) with just 1 bullet point for a narrow, hyper-specific edge case (e.g. adding ## Dependencies at the root GEMINI.md just to say "If you change X in Septober, remember to update skill Y").X lives (Progressive Disclosure).APPEND_ONLY_EOF):
GEMINI.md without reading and consolidating existing rules.analyze_bloat_history.py)Use the bundled deterministic + optional-LLM script (analyze_bloat_history.py or analize_bloat_history.py) to audit git history or uncommitted changes on any prompt markdown file:
# 1. Fast, deterministic git history audit on a prompt file
python3 $SKILL_DIR/scripts/analyze_bloat_history.py GEMINI.md
# 2. Audit all discovered prompt files (GEMINI.md, AGENTS.md, CONTRIBUTING.md, SPECS.md, etc.)
python3 $SKILL_DIR/scripts/analyze_bloat_history.py --all
# 3. Pre-commit check on uncommitted / staged changes
python3 $SKILL_DIR/scripts/analyze_bloat_history.py --uncommitted GEMINI.md
# 4. Hybrid LLM audit (uses gemini-flash-latest / gemini-3-flash-preview and outputs strict JSON)
python3 $SKILL_DIR/scripts/analyze_bloat_history.py --llm GEMINI.md
commit #<hash> , file <path>, Line X..Y, Bloat Probability, triggered Signals, Reason, and the Diff.--llm Output: Strict JSON containing "error" (true/false), "error_message", "probability" (float 0.0–1.0, always present), "reason" (always present), and per-commit "findings".When asked to "commit the recent changes":
git status and git diff.GEMINI.md, AGENTS.md, SPECS.md, CONTRIBUTING.md, SKILL.md) was modified, run python3 $SKILL_DIR/scripts/analyze_bloat_history.py --uncommitted <FILE> and refactor any bloat signals (OVERFITTING_H2_SECTION, CRAMMED_LINE).CHANGELOG.md.git add ...).autopush-enabled exits 0, commit and push (git pull --rebase && git push) automatically without asking; otherwise propose the commit/push to the user.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
git-workflow, commit-guidelines, version-bumping, changelog, anti-bloat
Other plugins' skills for the same job
palladius-public-goodies@palladius-skills is listed by palladius/skills — review the source before installing
npx claudepluginhub palladius/skills --plugin palladius-public-goodies66 skills in this plugin
/a2ui(💛) Build and render portable, declarative Generative UIs with Google A2UI (Agent-to-User Interface). Use whenever the user asks to generate, design, or wire interactive UI widgets, cards, forms, or dashboards using A2UI./add-to-portfolio-app(💛) Adds or syncs Talks, Keynotes, Workshops, Articles, Codelabs, Slides, and Videos in Riccardo's personal portfolio application (apps-portfolio) and companion bio repo (my-sessions-and-bio), including SQLite sync, TDD checks, default speaker images, and automated Cloud Run deployment./adk-python(💛) Create and manage AI agents using Google's Agent Development Kit (ADK) for Python. Use when the user wants to build single or multi-agent systems, evaluate agents, or deploy them. Includes instructions for fetching fresh ADK documentation and links for TypeScript and Go development./agy-cli-to-t3-import(💛) Import, resuscitate, and migrate historical or interrupted Antigravity CLI sessions (`agy --conversation <cid>`) into native T3 Code threads with standard title formatting `[agy2t3] 🪦 <Topic> (<short_cid>)` and context handoff./ai-coding(💛) Best practices for AI-assisted coding and maintaining agent system instructions (AGENTS.md, GEMINI.md, CLAUDE.md, CONTRIBUTING.md, SPECS.md, INSTRUCTIONS.md, SKILL.md) and collaborative Google Docs (references/google-docs-best-practices.md). Enforces inclusive AGENTS.md over vendor-specific files, prevents prompt bloat (instruction cramming, single-concept overfitting H2 sections, append-only drift), and provides analyze_bloat_history.py to audit Git history or uncommitted diffs./ai-ethics(💛) Use when evaluating ethical boundaries, ensuring EU AI Act (Regulation (EU) 2024/1689) safety-ladder compliance, handling security vulnerabilities or responsible disclosure, facing pressure to prioritize task completion over safety/honesty, launching multi-agent swarms (carbon footprint), verifying factual/scientific claims against disinformation, enforcing work-to-personal non-exfiltration, or installing/auditing AI_ETHICS.md and CONSTITUTION.md.