/palladius-public-goodies:ai-codingfrom palladius-public-goodies
Enforces best practices for AI-assisted coding: prefers AGENTS.md over vendor-specific files, prevents prompt bloat (instruction cramming, overfitting, append-only drift), and provides analyze_bloat_history.py to audit Git history.
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.
ai-coding)Just like ruby-coding, python-coding, typescript-coding, git-coding, and ai-ethics govern code, version control, and ethical integrity, ai-coding governs how we architect, maintain, and evolve instructions for AI agents across repositories.
System instruction files (AGENTS.md, GEMINI.md, CLAUDE.md, CONTRIBUTING.md, SPECS.md, INSTRUCTIONS.md, SKILL.md) are loaded into the context window on every turn. Keeping them inclusive, modular, and bloat-free is critical for agent reliability and token efficiency.
AGENTS.md Over GEMINI.md (Inclusivity & Single Source of Truth)AGENTS.md is the primary standard: Whenever creating or refactoring project-level instructions for AI coding assistants, prefer AGENTS.md over vendor-specific names like GEMINI.md or CLAUDE.md. AGENTS.md is vendor-neutral, inclusive, and natively discovered by Antigravity, Gemini CLI, OpenClaw/Hermes, Codex, and modern multi-agent harnesses.GEMINI.md (or CLAUDE.md), never duplicate the content. Instead, create a symlink:
ln -s AGENTS.md GEMINI.md
.agents/ (plural): Place modular rules in .agents/rules/<name>.md (trigger: glob or model_decision). .agent/ (singular) is obsolete — always git mv .agent .agents.AI_ETHICS.md & ai-ethics skill): Keep ethical principles out of long inline prose in AGENTS.md. Instead, place the tamper-evident /AI_ETHICS.md (Carlessian Commons Ethics v1.0) in the repository root and link it with a single concise bullet in AGENTS.md (and CONSTITUTION.md if present). REQUIRED SUB-SKILL: Use ai-ethics (verify_ai_ethics.py --install / --check) and enforce the Work Non-Exfiltration Air-Gap whenever operating on a work machine (which gcert).references/google-docs-best-practices.md for <hr> header-fence and H2+ section rules.When patching checked-in system instruction markdowns (AGENTS.md, GEMINI.md, CLAUDE.md, CONTRIBUTING.md, SPECS.md, INSTRUCTIONS.md, SKILL.md), make sure you do not bloat them.
Instruction Cramming (CRAMMED_LINE — "10 instructions in 1 line"):
must, never, always, make sure, ensure, semicolons, comma-chains) into a single run-on line to "save vertical space".Single-Concept Overfitting H2/H3 Section (OVERFITTING_H2_SECTION):
## Heading (or ### Subheading) containing just 1–2 lines/bullets for a narrow, reactive, one-off edge case (e.g., adding ## Dependencies at the bottom of a root GEMINI.md just to say "If you change sub-agents in Septober, remember to update skill X").skills/<name>/SKILL.md), subdirectory AGENTS.md, or .agents/rules/ glob rule where they actually apply (Progressive Disclosure).Append-Only EOF Drift (APPEND_ONLY_EOF):
AGENTS.md / GEMINI.md (+N / -0 lines) without reading or consolidating what is already in the file.Merge Conflict Markers or Wall of Text (CONFLICT_OR_GARBAGE / WALL_OF_TEXT):
<<<<<<< HEAD / ======= / >>>>>>> markers or dumping >25 lines of procedural runbooks into a root prompt file.AGENTS.md / GEMINI.md under ~100–150 lines of high-signal architectural map and invariants; delegate procedural runbooks to skills/ or docs/.analyze_bloat_history.py)Use the bundled script (analyze_bloat_history.py or analize_bloat_history.py) to inspect Git commit history or uncommitted changes on any prompt markdown file:
# 1. Fast, deterministic git history audit on a prompt file (< 20ms)
python3 $SKILL_DIR/scripts/analyze_bloat_history.py GEMINI.md
python3 $SKILL_DIR/scripts/analyze_bloat_history.py AGENTS.md
# 2. Auto-discover and audit all prompt files in a repository (AGENTS.md, GEMINI.md, SPECS.md, etc.)
python3 $SKILL_DIR/scripts/analyze_bloat_history.py --all
# 3. Pre-commit check on uncommitted working-tree / staged changes
python3 $SKILL_DIR/scripts/analyze_bloat_history.py --uncommitted GEMINI.md
# 4. Hybrid LLM evaluation (uses gemini-flash-latest / gemini-3-flash-preview and outputs strict JSON)
python3 $SKILL_DIR/scripts/analyze_bloat_history.py --llm GEMINI.md
# 5. Mark a cured prompt file as CLEAN in .cache/bloat-prevention.json (or use --no-cache for full history)
python3 $SKILL_DIR/scripts/analyze_bloat_history.py --mark-clean GEMINI.md
python3 $SKILL_DIR/scripts/analyze_bloat_history.py --no-cache GEMINI.md
================================================================================
commit #aa6f640 , file GEMINI.md
Date: Sun Sep 27 08:05:27 2026 +0200 | Author: Riccardo Carlesso | Subject: chore: sync
Line 82..87 (@@ -82,2 +82,6 @@)
Bloat Probability: 0.85 (85%) [HIGH] — Signals: OVERFITTING_H2_SECTION, APPEND_ONLY_EOF
Reason: [OVERFITTING_H2_SECTION] Added whole heading '## Dependencies' for a single-concept / 1-item rule...
Diff:
+## Dependencies
+* **Septober Sub-Agents**: If you change the way sub-agents work in Septober...
================================================================================
--llm / --json (Strict JSON Schema):
Always returns a JSON object with:
"error": boolean (true or false)"error_message": string or null"probability": float (0.0 to 1.0, always present — falls back to deterministic probability if LLM API is unreachable)"reason": string (always present — explains why that probability was assigned)"findings": array of per-commit/per-hunk evaluationsWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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.Other plugins' skills for the same job