/palladius-public-goodies:chumbiafrom palladius-public-goodies
End-of-session verification, cleanup, and auto-archive protocol. Audits git state (committed, tested, merged to main), cleans up stale sequencer states, merged branches, worktrees, and build caches, then distills learnings and archives the thread.
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.
/learn Piggyback & Auto-ArchiveLineage & References: See
references/about.mdfor howchumbiacompares to and supersedesobra/superpowers(finishing-a-development-branch,verification-before-completion).
Chumbia is the end-of-conversation protocol ("le pulizie DOPO la fatica + /learn piggyback + auto-archiviazione").
For weekly workspace-wide sweeps across $GIT_WORKSPACE_DIR, see git-disk-cleanup.
When invoked, run the 5-step protocol below:
.chumbia.touch):
chumbia_audit.sh creates <GIT_ROOT>/.chumbia.touch with timestamp, branch, and PID.--complete) so git-disk-cleanup can detect interrupted /chumbia runs.main.
.chumbia.touch in place) and list what is pending.git rev-parse --git-dir vs --git-common-dir.~/.gemini/antigravity/worktrees/), merged branches, temporary node_modules/, and run just clean./learn & 🤖 AX Piggyback: Distill session and Agent Experience (AX) learnings, log AX items via ax_toolkit.py learn, and emit a /learn snippet..chumbia.touch & Sign-Off:
t3_thread_organize with action: "archive" (or "settle").<agent-embed> (only if Phase 1 passed) and tell the user to archive manually from the sidebar.CHUMBIA! 💃🕺🎺🦖✨.git clean -fd or git reset --hard. Untracked files may contain active work by the user or other agents..env or .riccardo/.git branch -D is forbidden unless you have first proven git merge-base --is-ancestor <branch> origin/main returns 0 or git cherry -v origin/main <branch> confirms all patches landed).git cherry-pick --abort or git rebase --abort blindly on main if a stale .git/sequencer/ exists after commits were already landed manually — --abort rewinds HEAD to .git/sequencer/abort-safety! Verify whether commits are already on HEAD, and use git cherry-pick --quit to clear stale sequencer state safely without moving HEAD.main, master, gh-pages, production, release/*).node_modules/ in the primary active repository if the user is actively running a foreground dev server there — only remove node_modules/ inside temporary/secondary worktrees or sub-repos after work is finished, or via the project's own just clean recipe.Run a non-destructive diagnostic check (or run bash "$SKILL_DIR/scripts/chumbia_audit.sh" / bash "$SKILL_DIR/scripts/chumbia_audit.sh --json" if available) covering these 6 gates:
git status + git status --porcelain):
git status (or .git/sequencer/, .git/CHERRY_PICK_HEAD, .git/REBASE_HEAD): git status -s / --porcelain hides in-progress cherry-pick/rebase sequencer state! If .git/sequencer/ is left over from a cherry-pick whose commits are already on HEAD, clear it safely with git cherry-pick --quit (never --abort).VERSION / gemini-extension.json and CHANGELOG.md, were they bumped and updated?just test):
justfile with a test recipe exists (just -l | grep -E '^\s*test\b'), are the tests passing?timeout 8 git fetch --prune origin.origin/main, origin/master).main: are there unpushed local commits (git rev-list --count origin/main..HEAD)?<feature-branch>): has <feature-branch> been merged into origin/main (git merge-base --is-ancestor HEAD origin/main), or is there still an open PR/MR waiting to land?main rather than merged with git merge, git merge-base --is-ancestor returns 1. Check git cherry -v origin/main <branch> (all lines prefixed with - means all patches are in origin/main) or inspect the commit log/diff on main to confirm the work has landed.conductor/tracks/<track-id>/metadata.json), are all tasks checked off?feat/foo su main...") and ask if you should complete those steps right now.Once you have verified that all work is safely on origin/main, perform the post-work cleanup:
manage_task with Action: "list").schedule watchers (such as MR/PR polling crons) started during this conversation.Detect whether the current directory is a standard repo checkout or a linked worktree:
GIT_DIR=$(cd "$(git rev-parse --git-dir)" 2>/dev/null && pwd -P)
GIT_COMMON=$(cd "$(git rev-parse --git-common-dir)" 2>/dev/null && pwd -P)
Case A — Inside a Linked Git Worktree (GIT_DIR != GIT_COMMON):
MAIN_ROOT=$(git -C "$(git rev-parse --git-common-dir)/.." rev-parse --show-toplevel 2>/dev/null || git worktree list --porcelain | head -n 1 | sed 's/^worktree //')
WORKTREE_PATH=$(git rev-parse --show-toplevel)
FEATURE_BRANCH=$(git branch --show-current)
<FEATURE_BRANCH> is an ancestor of origin/main (or squashed/cherry-picked):
git merge-base --is-ancestor HEAD origin/main || [ "$(git cherry -v origin/main "$FEATURE_BRANCH" | grep -v '^-' | wc -l)" -eq 0 ]
rm -rf "$WORKTREE_PATH/node_modules" "$WORKTREE_PATH/.turbo" "$WORKTREE_PATH/.next"
cd "$MAIN_ROOT"
timeout 8 git fetch --prune origin
git checkout main && git pull --ff-only origin main
git worktree remove "$WORKTREE_PATH"
if [ -n "$FEATURE_BRANCH" ] && [ "$FEATURE_BRANCH" != "main" ]; then
git branch -d "$FEATURE_BRANCH"
fi
Case B — In Primary Repository or Stale Merged Worktrees Exist (GIT_DIR == GIT_COMMON):
git worktree list. If there are leftover secondary worktrees from this session whose branches are already merged into origin/main and whose git status --porcelain is clean, remove them with git worktree remove <path> and git branch -d <branch>.git worktree prune.main, pull origin/main, and delete the local feature branch (git branch -d <feature-branch>).origin:
git branch -r --merged origin/main | grep -vE 'HEAD|origin/(main|master|gh-pages|production|release)'
origin/main:
git push origin --delete "<feature-branch>"
timeout 8 git fetch --prune origin
just clean & Ephemeral Artifact / node_modules/ Sweepjust clean if available:
clean recipe in its justfile:
if [ -f justfile ] && just -l 2>/dev/null | grep -qE '^\s*clean\b'; then
just clean
fi
node_modules/ & Scratch Caches:
node_modules/ in secondary worktrees or temporary test directories./tmp without ever running git clean.metadata.json status is set to "DONE"./learn & 🤖 AX (Agent Experience) Piggyback ("Cosa Abbiamo Imparato Oggi?")Before declaring CHUMBIA!, run a /learn pass and an Agent Experience (AX) feedback check:
[y/N]), context floods, missing --ai-help / AGENTS.md / llms.txt, or ambiguous multi-path docs?carlessian-agent-experience):
ax_toolkit.py learn:
AX_SCRIPT="$HOME/.gemini/config/skills/carlessian-agent-experience/scripts/ax_toolkit.py"
if [ -f "$AX_SCRIPT" ]; then
python3 "$AX_SCRIPT" learn \
--category <cli|workload|content|gcp-clarity> \
--symptom "<what confused, hung, or bloated the agent>" \
--fix "<the deterministic AX rule or Golden Path fix>"
fi
AGENTS.md / GEMINI.md:
~/.gemini/AGENTS.md, ~/.gemini/GEMINI.md, ~/AGENTS.md, or ~/GEMINI.md — those are chezmoi-managed and identical/templated across machines!AGENTS.md (or the relevant skills/<name>/SKILL.md).~/.gemini/carlessian/AGENTS_LOCAL.md (unmanaged by chezmoi after creation).~/.gemini/carlessian/AGENTS_WORK.md (never leak work details into personal or public repos)./learn snippet with an explicit destination hint (e.g., /learn [target: ~/.gemini/carlessian/AGENTS_LOCAL.md] <frase> or /learn [AX] <frase>), so built-in /learn commands never pollute ~/.gemini/GEMINI.md..chumbia.touch, Auto-Archive & Sign-OffWhen Phases 1, 2, and 3 are complete:
Remove the .chumbia.touch Breadcrumb:
bash "$SKILL_DIR/scripts/chumbia_audit.sh" --complete
Harness-Aware Auto-Archive / Settle:
If on T3 Code (MCP t3-code available):
Call the T3 MCP tool to settle and archive the active thread cleanly:
call_mcp_tool(
ServerName="t3-code",
ToolName="t3_thread_organize",
Arguments={"action": "archive"}
)
(Note: omitting threadId targets the current thread; settling applies automatically at the end of the turn).
If on Antigravity (Desktop / IDE / agy CLI):
⚠️ No programmatic archive exists on Antigravity. There is no documented MCP tool, CLI command, or
<agent-embed>JS bridge to archive the hosting conversation (verified 2026-11-28). Versions ≤ 1.5.4 POSTed to a made-up/_sidecar/send-messageendpoint, swallowed the error, and falsely showed "Sessione Archiviata". Never claim the chat was archived, never invent host endpoints, and never poke undocumented local services or app state to fake it.🚦 Render the card ONLY if every Phase 1 gate passed. If Phase 1 stopped (e.g. a pending credentials mismatch), do NOT render it — its "all green" badges would contradict the blocker.
Render the static Chumbia Sign-Off Card inline in chat (status + manual archive instructions, no fake button):
$SKILL_DIR/scripts/chumbia_applet.html to <appDataDir>/brain/<conversation-id>/chumbia_applet.html using the native file-creation tool (write_file / write_to_file, not shell cp) with ArtifactMetadata (UserFacing: true, RequestFeedback: false). Ensure the HTML loads the CSP-allowlisted Tailwind script (https://www.gstatic.com/antigravity/web/dev/tailwindcss.min.js) rather than https://cdn.tailwindcss.com (blocked by <agent-embed> CSP).<agent-embed src="file:///<appDataDir>/brain/<conversation-id>/chumbia_applet.html"></agent-embed>
(This displays a status card telling the user to archive manually: Sidebar → right-click → Archive, after Unpin if pinned).
End with the Joyful Chumbia Sign-Off:
## 💃🕺🎺 CHUMBIA! 🦖✨
Tutto pulito e archiviato su `main` — puoi chiudere o distruggere questa conversazione in totale tranquillità!
- ✅ **Git & Main**: `origin/main` allineato (`vX.Y.Z`), working tree pulito, test verdi.
- 🌿 **Branch & Worktree**: [Rimosso worktree temporaneo / eliminato branch locale e remoto `<branch>` / `git fetch --prune` eseguito].
- 🧹 **Pulizie Disco & Task**: [`just clean` eseguito / rimossi `node_modules` temporanei / nessun task o cron rimasto attivo].
- 📦 **Session Status**: [Archiviata / Settled via T3 MCP | Antigravity: da archiviare a mano dalla sidebar].
- 🧠 **Learnings & 🤖 AX Loop (`/learn` Piggyback)**:
- 💡 *Takeaways*: [1–3 bullet sintetici].
- 🤖 *AX Growth (`carlessian-agent-experience`)*: [Registrato via `ax_toolkit.py learn` / Nessuna frizione AX rilevata].
- 📌 *Persistenza*: [Già salvato / Consigliato prima di chiudere: `/learn ...`].
What SKILL.md sets; muted values are Claude Code's defaults
palladius-public-goodies@palladius-skills is listed by palladius/skills — review the source before installing
npx claudepluginhub palladius/skills --plugin palladius-public-goodies68 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