/palladius-common-commands:devrel-frictionlog-codelabfrom palladius-common-commands
Automates friction logging for Google Codelabs: reproduces steps, documents experience, identifies bugs in external repos, and produces actionable reports with multi-instance collision guards and deterministic telemetry.
Ships in palladius-common-commands. 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 automates the process of going through a Google Codelab, reproducing its steps, systematically documenting the experience (a "friction log"), identifying bugs in external repositories, and producing actionable reports.
FL001, FL002, ...) against the exact same unpatched Commit SHA (X)!FLXXX) must record the exact Git Commit SHA and Commit Timestamp (git log -1 --format="%h (%ci)") of the repository/codelab being tested (REPO_COMMIT_HOOK).FL001 on initial commit X (recording Commit SHA X + its timestamp).BUGS.md, open a GitHub/GitLab Issue (GHI/GLI) or Buganizer bug tagged with friction-log and FL001.Fixes #N), review/test it, and merge it into main to produce a new Commit SHA Y.FL002 on the new commit Y to verify fixes and iterate until the scorecard is 100% 🟢 GREEN.#8950858)b/<BUG_ID>) during a Friction Log campaign, you MUST tag the bug with hotlist #8950858 (HOTLIST+=8950858)!bugged CLI: If bugged blocks AI agents (bugged is not suitable for AI agents), invoke it with a clean environment and place bugspec tags at the very bottom of stdin:
echo -e "Friction Log update summary...\n\nHOTLIST+=8950858" | env -i PATH="$PATH" HOME="$HOME" USER="$USER" bugged edit <BUG_ID>
git checkout main or release tag).011F17-0F9CE4-E03264) to each iteration (FL001, FL002, FL003) to guarantee clean state isolation.README.md explaining what changed between Commit X (FL001) and Commit Y (FL002) to justify running the new Friction Log.exit 0 as proof of success: A command returning 0 only proves valid syntax, not that the author's educational goal was achieved.just recipes, npm test, etc.).skills/how-to-use-this-repo/references/).> 📸 TODO(riccardo): add screenshot of ... in the codelab, it is strictly forbidden to ignore it or leave it as a TODO.google-chrome --headless), local ports/proxies, and running services.assets/images/ and the staging directory.TODO with the markdown image tag and verify visual rendering.gcloud secrets describe <SECRET_NAME>), not colliding creations (gcloud secrets create).source .env) by enforcing set dotenv-load := true in justfile.GOOGLE_CLOUD_ACCOUNT), scripts must output clear, actionable, copy-paste terminal remedies rather than failing with cryptic errors.tests_count(FL_{N}) > tests_count(FL_{N-1})). This guarantees that regressions are permanently locked out.docs/CONSTITUTION.md or docs/SPEC.md (or workshop/SKELETON.md), the FL agent MUST verify step compliance against them.FRICTION_LOG/XX.md, the agent MUST write a 160-character Tweet Checkpoint answering:
🐦 Constitution/Spec Tweet: [Yes/No + brief rationale <= 160 chars]gcloud auth list and present selectable active identities (e.g. [email protected], [email protected]).011F17-0F9CE4-E03264).<slug>-fl<NN>-<random>) or use an explicit virgin project ID provided by the user..env files or assume an expired project is valid. Lock the triad with the user first!.env.fl and executes autonomously without pausing between steps.friction_log.yaml / friction_log.json, apiVersion: devrel.google.com/v2alpha1) was introduced in skill v0.3.0.environment.skill.name and environment.skill.version is mandatory starting from v0.3.1 / v0.3.2..env.fl, README.md, FRICTION_LOG.md, friction_log.yaml) must explicitly record the skill version.terraform destroy, unlinking billing, deleting projects) without interactive user UAT validation!gcp_resources_flXXX.md / proof_of_work.md) containing:
terraform destroy and unlink the billing account.CHAT_ID, INCARNATION_ID & gcloud config)<YYYYMMDD>-fl<NNN>).CHAT_ID or Antigravity INCARNATION_ID UUID) into $FOLDER/.env.fl immediately upon start.$FOLDER/.env.fl already exists with a different non-empty CHAT_ID / INCARNATION_ID, the agent MUST halt, warn, and ask the user rather than overwriting an active session!gcloud Configuration:
export CLOUDSDK_ACTIVE_CONFIG_NAME="fl<NNN>-<SLUG>"
gcloud config configurations create "$CLOUDSDK_ACTIVE_CONFIG_NAME" 2>/dev/null || gcloud config configurations activate "$CLOUDSDK_ACTIVE_CONFIG_NAME"
ask_question).When the user provides a Codelab URL, follow these exact steps. Ensure each step is fully completed before moving on to the next. Do not skip steps. This skill is designed to be resumable, so if the execution is interrupted, restart the skill and pick up where you left off.
.env.fl Creation & Collision Check (Atomic First Action)Before fetching any content, scaffolding subdirectories, or enabling cloud APIs:
<YYYYMMDD>-fl<NNN>) exists.$FOLDER/.env.fl. If an active session with a different CHAT_ID / INCARNATION_ID exists, stop and prompt the user.$FOLDER/.env.fl immediately from references/env.template, recording:
# User Prompt: ...)CHAT_ID / INCARNATION_IDFRICTIONLOG_SKILL_VERSION="0.3.5"CLOUDSDK_ACTIVE_CONFIG_NAME="fl<NNN>-<SLUG>"gcloud named configuration (CLOUDSDK_ACTIVE_CONFIG_NAME).Determine the base campaign directory (b<BUG_ID>-<YYYYMMDD>-frictionlog-<CODELAB_SLUG>) and iteration subdirectory (<YYYYMMDD>-fl<NNN>, e.g. 20260911-fl001).
Ensure the Buganizer campaign issue is tagged with hotlist #8950858.
Run the included scripts/setup_scaffold.sh script passing the Codelab URL (or local index.lab.md path) as the second argument:
./scripts/setup_scaffold.sh <YYYYMMDD-frictionlog-CODELAB_TITLE> <CODELAB_URL_OR_MD_PATH> [BUG_ID]
This script automatically creates the directory structure AND invokes scripts/extract_codelab.py, which extracts every step (01.md .. NN.md) and dynamically populates the Step-by-Step Scorecard Table in README.md with the exact N steps, real step titles, and durations!
If setup_scaffold.sh was called without <CODELAB_URL>, run extract_codelab.py directly:
python3 scripts/extract_codelab.py <URL_OR_MD_PATH> <YYYYMMDD-frictionlog-CODELAB_TITLE>/codelab/original
Fallback for JS-rendered Codelabs: If extract_codelab.py yields empty files (due to dynamic JS rendering), use web_fetch or curl to save each step into codelab/original/01.md, 02.md, ..., NN.md (with # Step Title on line 1), and then run:
python3 scripts/extract_codelab.py --sync-readme <YYYYMMDD-frictionlog-CODELAB_TITLE>
This scans codelab/original/*.md and dynamically replaces the placeholder Pagella Semaforica in README.md with the exact N steps and titles!
Copy all the original markdown files into the codelab/proposed/ directory. You will apply fixes and patches to the copies in this directory later.
gcloud auth list and present the available active identities (e.g. [email protected], [email protected]). Ask the user which identity to use.011F17-0F9CE4-E03264).<codelab-slug>-fl<NN>-<random>) and links it to the billing account.PROJECT_ID:
gcloud beta billing projects describe <PROJECT_ID>), and contains no pre-existing colliding resources..env.fl and friction_log.yaml and proceed to Step 4.gcloud to create the project: gcloud projects create <PROJECT_ID> --name="FL <SLUG>".gcloud beta billing projects link <PROJECT_ID> --billing-account=<BILLING_ACCOUNT_ID>..env.fl and friction_log.yaml..env.fl, execute all codelab pages autonomously without stopping between steps.Begin reproducing the codelab autonomously, going through each page (01, 02, ..., NN) sequentially.
For each page XX:
FRICTION_LOG/XX.md already exists and is complete. If it is, skip to the next page. This allows the workflow to be resumable.XX-1? Is our environment and cloud state 100% prepared, or did we carry over half-baked state?FRICTION_LOG/XX.md with the exact blocker and root cause.external-repos/ directory.git log -1 --format="%h (%ci)").chmod +x), broken relative paths, or bugs.GHI) tagged with friction-log and FL00X, and attach a Pull Request (PR) fixing those issues.FRICTION_LOG/XX.md:
* `HH:MM:SS` to track execution time and make the logs easily grep-able.Exit code != 0 or mandatory gate failure).kubectl get pods, curl -I, etc.).> 🐦 **Constitution/Spec Tweet:** [Max 160 chars: did this step adhere to docs/CONSTITUTION.md / SPEC.md?]
Once all pages have been completed, create README.md and FRICTION_LOG.md in the iteration folder. Both files MUST begin with two mandatory synoptic tables:
Must contain the following exact rows:
| Field | Value | Notes / Details |
|---|---|---|
| ITERATION_ID | YYYYMMDD-flNNN (FL-NNN) | e.g., 20260911-fl001 (FL-001) |
| START_DATETIME | YYYY-MM-DD HH:MM:SS TZ | End time: YYYY-MM-DD HH:MM:SS TZ |
| SKILL_VERSION | devrel-frictionlog-codelab vX.Y.Z | Tracked since v0.3.1 (e.g., v0.3.5) |
| AI_RUNNER | Antigravity 2.0 / Gemini CLI 0.37+ | Model: Gemini 3.8 Flash (High) / gemini-3.7-flash |
| PROJECT_ID | <GCP_PROJECT_ID> | GCP Project used for reproduction |
| BILLING_ACCOUNT | <BILLING_ACCOUNT_ID> | Billing Account ID & name |
| TESTER_IDENTITY | <EMAIL> | Identity / gcloud configuration used |
| CODELAB_URL | [Link](https://...) | Staging / Production URL & Google3 CL |
| REPO_COMMIT_HOOK | [repo@SHA](https://...) | Commit Timestamp: YYYY-MM-DD HH:MM:SS TZ (git log -1 --format="%h (%ci)") |
| TRACKING_ISSUES | [b/ID](http://b/...) | [GHI/GLI #N](https://...) | Attached PR/MR: [PR #M](https://...) | Hotlist #8950858 |
| OVERALL_STATUS | 🔴 RED / 🟡 YELLOW / 🟢 GREEN | Summary score & blocker count |
Must grade every single Codelab step (🟢 GREEN, 🟡 YELLOW, 🔴 RED) with duration and concise empirical notes:
| Step # | Codelab Step Title | Vote | Duration | Empirical Verification & Notes |
|---|---|---|---|---|
| 01 | Step 1 (e.g. Setup / Auth) | 🟢 GREEN | ~2m | Identity & billing verified |
| 02 | Step 2 (e.g. Environment Deploy) | 🟡 YELLOW | ~11m | e.g. 1 retry needed due to API race condition |
| 03 | Step 3 | 🔴 RED | ~5m | e.g. Permission denied on script (BUG-03) |
| 04 | Step 4 | 🟢 GREEN | ~4m | Verification passed |
| 05 | Step 5 | 🟢 GREEN | ~5m | Teardown completed |
| ... | ... (Expand/contract to match exact N steps) | ... | ... | ... |
friction_log.json / friction_log.yaml)In addition to the markdown reports, the agent MUST output a deterministic machine-readable manifest (friction_log.json or friction_log.yaml) adhering to apiVersion: devrel.google.com/v2alpha1 (see references/friction_log.yaml).
This manifest MUST record:
git Hook: Target commit SHA, commit timestamp, and dual versions (app version and codelab version).ai_runner: AI Harness used (Antigravity, Gemini CLI, Claude Code), harness version, model string (gemini-2.5-pro), and model pool.human_intervention: Total prompts exchanged, number of manual unblocks by the human, and a 1-line summary of human assistance.steps: Granular array of steps with duration in seconds, errors/warnings count, semantic drift flag, captured screenshots, and the 160-char tweet checkpoint.bugs_logged: Tracked bug IDs, severities, and GHI / GLI / Buganizer links.Mandatory Validation & Autofill Tool: The agent MUST run the included validator to ensure schema compliance before finalizing the log:
python3 scripts/validate_telemetry.py path/to/friction_log.json --autofill
If any mandatory field could not be deduced during execution, --autofill ensures it is safely stamped with explicit UNKNOWN values instead of omitting keys or crashing downstream parsers.
terraform destroy) once the friction log and postmortem artifacts are captured, unless explicitly asked to leave them running.CHANGELOG.md (opens in a new tab)genesis/README.md (opens in a new tab)genesis/devrel-frictionlog-codelab.prompt.md (opens in a new tab)references/README.template.md (opens in a new tab)references/env.template (opens in a new tab)references/friction_log.yaml (opens in a new tab)scripts/extract_codelab.py (opens in a new tab)scripts/extract_codelab_test.py (opens in a new tab)scripts/setup_scaffold.sh (opens in a new tab)scripts/setup_scaffold_test.sh (opens in a new tab)scripts/validate_telemetry.py (opens in a new tab)scripts/validate_telemetry_test.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
palladius-custom-commands@palladius-skills is listed by palladius/skills — review the source before installing
npx claudepluginhub palladius/skills --plugin palladius-custom-commands7 skills in this plugin
/cloud-build-investigation🏗️ | Expert-level SRE skill for Google Cloud Build (GCB) and Cloud Run investigations. Activate when user mentions Cloud Build failures, deployment issues to Cloud Run, or needs help debugging GCB pipelines. Specializes in correlating git commits with build failures, analyzing build logs, and providing systematic debugging workflows./conductor-convergeAudits the current codebase against the active Conductor track's spec.md, plan.md, and code style guides, then appends any unbuilt or partial work as a new Convergence phase in plan.md so conductor-implement can complete it./conductor-worktree-hitlOther plugins' skills for the same job