/v1tamins:v1-goldpanfrom v1tamins
Mines recent merged PRs and agent session logs for lessons worth documenting as durable solutions. Presents candidates for approval, then invokes /ce-compound to write docs.
Ships in v1tamins. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Pan recent merged PRs and agent session logs (Claude Code, Codex, Cursor) for compound-worthy moments. Present the finds for approval. Drive /ce-compound in lightweight mode over the approved set, one at a time. Discovery is automatic; documentation only happens for items the user approves. Never write solution docs directly — /ce-compound owns that output.
7d)..agents/goldpan/session-notes/compound-candidates-<YYYY-MM-DD>.md and present the top candidates inline./ce-compound in lightweight mode sequentially.Invoke /ce-compound only after explicit per-candidate approval.
Look back over recent activity and name what is worth documenting as a durable solution — typically weekly or after a sprint. Compounding needs fresh material: this skill finds it, /ce-compound writes the doc.
Do not use for:
/ce-compound directly./ce-compound-refresh./v1-deep-review.Pass the window as the skill's argument, e.g. /v1-goldpan 14d. Accepts Nd (days), an explicit since:YYYY-MM-DD, or the literal recalibrate to force a fresh calibration pass before scouting. Default 7d.
If the user does not specify a window, ask once: "Default 7-day window — adjust?". Do not loop.
Resolve solutions_path and pr_base_branch once for the run: explicit request
options take precedence over existing project guidance; otherwise use
docs/solutions and main. Accept non-default paths (including symlinks) and
base branches. Pass the resolved values to each scout and de-dup step, and
carry the solutions destination into the approved writer handoff.
Do not create a Goldpan settings file. If a legacy .agents/goldpan.config.yaml
is present, read its two values as migration evidence, carry them into this
run unless the request or current project guidance overrides them, and report
the resolved values and their source. Recommend moving durable preferences into
existing project guidance. Do not silently replace legacy custom values with
defaults, or create/update that legacy file.
Read calibrated evidence separately:
| File | Default | Purpose |
|---|---|---|
.agents/goldpan-signals.md | absent | Calibrated, project-specific PR signals (verbatim phrases, anti-signals, subsystem priorities, calibration PR set). Generated by Phase 0 calibration. |
If .agents/goldpan-signals.md is absent, run on the universal-signal keyword set. Scoring is weaker until calibration runs.
On every invocation:
.agents/goldpan-signals.md. If present, skip to Phase 1..agents/goldpan-signals.md. After calibration completes, proceed to Phase 1.If the user passed recalibrate as the argument, force-run calibration even if the signals file exists, overwriting it.
Calibration is one-time. Re-run after major team or codebase changes (new authors, large refactors, framework migrations) by invoking /v1-goldpan recalibrate.
Read companion.md before scouting to establish the separate dependency, installation boundary, and missing-component behavior.
since_date — YYYY-MM-DD (today minus N days)mtime_days — integer N for find -mtime -Ngeneral-purpose Agents. Each scout returns a structured text digest (no files written).The scout prompts must:
/ce-compound candidates out of recent activity..agents/goldpan-signals.md exists, pass it inline too (project-specific evidence).Brief: shortlist compound-worthy merged PRs from the window. Score against references/scoring.md and (if present) the project's .agents/goldpan-signals.md. Do not score on assumed language; only the rubric and the calibrated evidence catalogued in those files.
Tooling:
# 1. Pull all merged PRs in window with full bodies + file lists in one call
BASE_BRANCH="<resolved pr_base_branch>" # main when no override
gh pr list --state merged --base "$BASE_BRANCH" \
--search "merged:>=<since_date>" \
--json number,title,mergedAt,author,body,files,headRefName \
--limit 200
# 2. Drop anti-signals (per scoring.md and project signals file) before any further reads.
# 3. For survivors, pull commits and read the diff:
gh pr view <number> --json body,commits,files
gh pr diff <number> | head -400 # cap diff reads
Strongest single tell is in the diff, not the body: any PR that adds an AIDEV-NOTE: (or equivalent project-specific marker noted in the signals file) is almost certainly compound-worthy regardless of body quality.
Calibration: the project signals file's "Calibration PRs" section, if present, lists ~10 known compound-worthy PRs from a prior window. Use them as a sanity check — if your scout's candidate set diverges wildly from that calibration set, your filter is miscalibrated.
Run as one scout, not two. Use compound-engineering's session scripts (discover-sessions.sh, extract-metadata.py, extract-skeleton.py, extract-errors.py) for layout and extraction. Do not parse JSONL yourself.
Brief: discover agent sessions touched within the window for this project, rank them by compound-signal density via the keyword filter, then deep-dive only the top-ranked sessions. Cross-reference any session whose branch/gitBranch matches a merged-PR head branch from Scout A and treat it as supporting evidence for that PR rather than a separate candidate. Standalone candidates from sessions are rarer; promote only when a session resolves a problem that did NOT result in a PR (e.g. an investigation, a runbook gap, or a convention agreed in chat).
Step 1 — Discover and rank with the bundled wrapper (see scripts/discover-sessions.sh):
bash <skill-path>/scripts/discover-sessions.sh <N>
The wrapper invokes compound-engineering's upstream discover-sessions.sh (Claude + Codex active + Cursor) plus a one-line find over ~/.codex/archived_sessions/ to fill an upstream gap, then pipes everything through the upstream extract-metadata.py with a compound-signal keyword set baked in. It resolves those scripts across compound-engineering's plugin layouts automatically (see Upstream Primitives Used). Output is JSONL — one session per line with match_count and keyword_matches, plus a final _meta line.
The default keyword set is the universal compound signals: AIDEV-NOTE, Root Cause, failure mode, that worked, it's fixed, working now, lgtm, problem solved, ship it, etc. If the project's signals file lists additional verbatim phrases, the scout should append them via the COMPOUND_SIGNAL_KEYWORDS env var.
Step 2 — Triage: drop sessions with match_count: 0; sort by match_count; cap to the top ~20 per platform. For each surviving session, the metadata line gives branch, last_ts, and size — branch matching against Scout A is the cheapest dedup.
Step 3 — Deep-dive only the top sessions, using compound-engineering's extract scripts rather than reading raw JSONL:
# Resolve compound-engineering's extract scripts by basename across its plugin
# layouts, newest version first. Set $CE_SKILLS_DIR (a compound-engineering
# "skills" dir) to override.
find_ce_script() {
local script="$1" rel p
for rel in \
"ce-session-extract/scripts/$script" \
"ce-sessions/scripts/$script" \
"ce-compound/scripts/session-history/$script"; do
[ -n "${CE_SKILLS_DIR:-}" ] && [ -f "$CE_SKILLS_DIR/$rel" ] && { printf '%s\n' "$CE_SKILLS_DIR/$rel"; return 0; }
done
local roots=()
[ -d "$HOME/.codex/plugins/cache" ] && roots+=("$HOME/.codex/plugins/cache")
[ -d "$HOME/.claude/plugins/cache" ] && roots+=("$HOME/.claude/plugins/cache")
[ ${#roots[@]} -eq 0 ] && return 1
p="$(find "${roots[@]}" -type f -name "$script" 2>/dev/null \
| grep -E "/compound-engineering/[^/]+/skills/(ce-session-extract|ce-sessions)/scripts/${script}$|/compound-engineering/[^/]+/skills/ce-compound/scripts/session-history/${script}$" \
| sort -V | tail -n1 || true)"
[ -n "$p" ] && { printf '%s\n' "$p"; return 0; }
return 1
}
SKELETON="$(find_ce_script extract-skeleton.py || true)"
[ -n "$SKELETON" ] || { echo "ERROR: compound-engineering extract-skeleton.py not found (ce-session-extract / ce-sessions / ce-compound layouts)" >&2; exit 1; }
ERRORS="$(find_ce_script extract-errors.py || true)" # may be absent in some layouts
# Filtered narrative (user/assistant text + collapsed tool calls) — cap to last N lines
cat <session-file> | python3 "$SKELETON" | tail -n 200
# Tool errors only (Claude is_error: true / Codex non-zero exec) — skip if unavailable
[ -n "$ERRORS" ] && cat <session-file> | python3 "$ERRORS"
Skeleton mode strips thinking blocks and tool-result noise and collapses repeat calls — three orders of magnitude smaller than the raw file. Errors mode surfaces the failed approaches that often anchor a "What didn't work" section.
Anti-signals (drop the session candidate):
solutions_path — already documentedSOLUTIONS_PATH="<resolved solutions_path>" # docs/solutions when no override
grep -ril "<keyword>" "$SOLUTIONS_PATH"/ | head -5
If a clear existing match is found, mark the candidate as covered and demote it (keep in the report under a separate "Already documented" section so the user can decide to refresh).Write to .agents/goldpan/session-notes/compound-candidates-<today>.md using the template in references/report-template.md. Inline in the chat, list only the High candidates with a one-line synopsis and a copy-paste /ce-compound invocation hint, then move directly into Phase 4.
After printing the inline summary (High candidates only), get explicit approval before invoking /ce-compound. Then drive the queue sequentially.
Use AskUserQuestion with multiSelect: true to present the High candidates plus a "None — stop here" option. Offer Medium candidates only if the user asks. The schema for AskUserQuestion is deferred — call ToolSearch with select:AskUserQuestion first to load it.
If AskUserQuestion is unavailable (non-Claude-Code harness, or call errors), fall back to a numbered chat prompt: "Reply with the comma-separated numbers to queue, or none." Do not silently skip the prompt and do not pre-select any candidates.
For each approved candidate, write .agents/goldpan/session-notes/compound-queue/<YYYY-MM-DD>-<slug>.md containing the synthesized evidence. The bundle is the input that /ce-compound will treat as "the recently solved problem". Format:
# Queued compound candidate: <title>
**Source:** PR #<n> | Claude session `<id>` | Codex session `<id>`
**Track:** bug | knowledge
**Suggested category:** <category>/
**Component:** <service-or-module>
## Problem
<the problem in 2-4 sentences, sourced from PR body / session messages>
## What didn't work
<failed approaches, in bullets — bug track only; omit for knowledge track>
## Solution
<the verified fix, with code snippets pulled directly from the PR diff or session>
## Why this works
<root cause + why this addresses it>
## Evidence
- PR #<n>: <url>
- Claude session: <path>
- Codex session: <path>
- Key commits: <sha-list>
The bundle must be self-contained — /ce-compound should not need to re-derive anything from session logs. Pull diff snippets, error messages, and the verifying-it-worked statement directly from the source.
If the synthesis is thin (the source material lacks a clear problem/solution narrative), abort that candidate, log "skipped: thin evidence" in chat, and continue to the next one. Do not invent details.
For each staged bundle, invoke the compound skill via the Skill tool, one at a time:
Skill(skill: "compound-engineering:ce-compound", args: "<title> — see .agents/goldpan/session-notes/compound-queue/<file>; requested solutions destination: <resolved solutions_path>")
Before the call, check the installed companion's destination contract against
the resolved solutions_path. Pass that destination as handoff context. If the
companion cannot honor it, report the mismatch and stop that candidate before
writing; do not silently use its default, edit its configuration, or write the
doc yourself.
Before the call, print the bundle contents into chat as plain markdown so /ce-compound's Phase 0/1 sees the problem in recent conversation. When /ce-compound asks Full vs Lightweight, pick Lightweight unless the user explicitly chose Full at approval time. When it asks about session-history search, choose No — this skill already panned the relevant sessions.
Process one candidate fully before starting the next. After each completes, print a one-line status: OK <verified returned solution path> (created or updated). If /ce-compound reports a failure, mark the bundle file with # STATUS: failed — <reason> at the top and continue to the next.
After the queue drains, print:
Queue complete. Documented N of M approved candidates.
- OK <path1>
- OK <path2>
- FAIL <path3> (skipped: <reason>)
Bundles retained at .agents/goldpan/session-notes/compound-queue/ — delete after review.
Every candidate must have:
title: short imperative phrase # e.g. "Why CacheManager Redis/S3 reads diverge"
source: # one or more
- pr: <number> # OR session: <id> + platform: claude|codex|cursor
- session: <session-id>
platform: claude
date: YYYY-MM-DD
track: bug | knowledge
suggested_category: <category> # from /ce-compound's schema
synopsis: 3-5 sentence summary
why_compound_worthy: one sentence
keywords: [list, for, dedup]
verified: true | false # was the fix actually shipped/verified?
/ce-compound's schema.agents/goldpan-signals.mdUse these primitives from Every's compound-engineering plugin. Do not re-implement them.
ce-compound — writes the actual solution doc. Owns solution writes and the schema; check its supported destination before the handoff.discover-sessions.sh and extract-metadata.py. Wrapped by scripts/discover-sessions.sh.extract-skeleton.py and extract-errors.py. Used directly by Scout B+C deep-dives.The resolver finds these scripts by basename across compound-engineering layouts; set CE_SKILLS_DIR to override.
If the required scripts or workflow are unavailable, report the exact missing component. Install or update the companion only when authorized; do not reimplement it or mark an unexecuted queue item complete.
extract-skeleton.py skeleton mode; never bulk-load JSONL./ce-compound's job — even from Phase 4./ce-compound./ce-compound is sequential by design and the conversation context needs to reset between items./ce-compound-style full prose in the candidate report. The synopsis is a pointer; the staged bundle is the evidence.agents/openai.yaml (opens in a new tab)references/calibration.md (opens in a new tab)references/companion.md (opens in a new tab)references/pr-signals-template.md (opens in a new tab)references/report-template.md (opens in a new tab)references/scoring.md (opens in a new tab)references/sources.md (opens in a new tab)scripts/discover-sessions.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub v1-io/v1tamins --plugin v1tamins42 skills in this plugin
/v1-address-reviewUse when resolving existing PR review comments or threads. Triggers on "address review feedback", "fix review comments", or "resolve review threads"./v1-autoresearch-skillUse when explicitly running a measured optimization loop against a target. Triggers on "run autoresearch" or "keep only measured improvements"./v1-bare-bonesUse when reducing a plan, PRD, or proposal to the smallest useful scope. Triggers on "strip this plan", "MVP only", or "remove scope"./v1-bigxtha-pluginUse when designing or reviewing a skill plugin's architecture, shared resources, skill handoffs, or cross-skill change impact./v1-canon2skillUse when extracting reusable Agent Skill ideas from books, PDFs, articles, courses, or notes. Triggers on "extract skills from this" or "what skills could come from this?"./v1-changelogUse when writing release notes from merged PRs. Triggers on "write changelog", "release notes", or "what shipped".Other plugins' skills for the same job