Panning for gold

From rjmurillo/ai-agents · View interactive version

Panning for gold is an AI agent skill from the GitHub repository rjmurillo/ai-agents. Triage raw unstructured input (transcripts, brain dumps) into evaluated thread inventories and a synthesized gold-found file. Four phases: front-gate, extract, evaluate, synthesize. Use when you say \"pan for gold\", \"triage transcript\", \"synthesize gold-found\", or hand it a voice transcript or

How to use this skill

Skill file

Panning for Gold

Turn raw, unstructured capture into an evaluated, actionable inventory of threads. Four phases: Front-gate, Extract, Evaluate, Synthesize.

<!-- vendor-portability: declared. During synthesis this skill cross-references the consumer's existing artifacts to wire each High-Signal thread to a prior entity: .claude/skills/ SKILL.md files, .project-toolkit/architecture/ADR-.md, .serena/memories/, open GitHub issues, and .project-toolkit/sessions/.json. These are best-effort read targets for the elaboration gate; a vendored install without .agents/ or .serena/ simply has fewer connection candidates, not a broken run. -->

Triggers

| Trigger Phrase | Operation |

|----------------|-----------|

| pan for gold | Run the full extract -> evaluate -> synthesize procedure |

| triage transcript | Build inventory of threads from a raw transcript |

| synthesize gold-found | Generate the final gold-found file from evaluations |

When to Use

Use this skill when:

Use a different skill when:

Workspace Layout

The skill operates inside a workspace root. The default is ./.panning/ in the current working directory; override via --workspace <path> or the PANNING_WORKSPACE environment variable.

<workspace>/
|-- transcripts/          # Raw input (read-only after capture)
|-- inventories/          # Pass1 + final inventories
|-- evaluations/          # Per-thread evaluation files
`-- gold-found/           # Synthesized gold-found files

The script creates missing subdirectories on demand. It never overwrites an existing file unless --force is passed.

Process

Phase 0: Front-gate (run before Extract)

Phase 0 is documentation-only and runs in the agent or human prompt before any pan.py invocation. There is no script enforcement; the LLM or human invoking the pipeline runs the six questions inline (or via the gstack front-gate-before-pipeline skill if it is available in the workspace). pan.py is unchanged and starts at Phase 1.

Run the six forcing questions against the input itself:

  1. Demand Reality: Is anyone (including you) actually waiting on insight from this brain dump, or did you capture it because something was on your mind?
  2. Status Quo: What happens if this transcript sits untriaged for another month? If "nothing breaks," that's a signal.
  3. Desperate Specificity: Name the specific decision, person, or artifact that needs the gold-found output.
  4. Narrowest Wedge: Could you extract one High-Signal thread by hand in 10 minutes instead of running the full four-phase pipeline?
  5. Observation: Have you re-read the transcript recently, or are you triaging from memory of why it felt important when captured?
  6. Future-fit: If extraction produces nothing actionable, will you delete the gold-found file or let it accumulate?

Halt criteria: if Demand Reality is aspirational ("might be useful someday") or Desperate Specificity can't name a downstream consumer, the right move is to discard the transcript or archive it unprocessed. Triaging unmotivated capture produces gold-found files nobody reads.

Phase 1: Extract

Build a pass1 inventory from a transcript without filtering. Every thread that surfaces is recorded.

Each thread block uses this structure:

## Thread N: <short title>

- **Signal**: high | medium | low
- **Quote**: "<verbatim quote that surfaced this thread>"
- **Context**: <one sentence on where this came from>
- **Initial take**: <one sentence on why this might matter>

The pass1 inventory is provisional. A second pass refines and merges into a final inventory.

Phase 2: Evaluate

For each thread in the final inventory, write an evaluation file. The evaluation captures depth: what evidence supports the thread, what would falsify it, what action it implies.

Evaluations are independent. They can be authored serially or in parallel.

Phase 3: Synthesize

Combine the final inventory and the evaluation files into a gold-found markdown file. The gold-found file groups threads by signal level (High-Signal, Medium-Signal, Low-Signal, matching the section headers in references/gold-found-template.md) and includes a metadata block at the top.

Elaboration gate (documentation-only, mandatory for High-Signal threads): Like Phase 0, this gate is LLM-applied, not script-enforced. scripts/synthesis.py appends the raw evaluation content for each thread; it does not parse for Connects to: or fail synthesis when the line is missing. The author of the evaluation (or a manual post-synth edit on the gold-found file) is responsible for producing the line. Future work may add a pan.py validate --gold-found check; until then, the acceptance checklist below is the gate.

For each High-Signal thread, write one explicit connection to an existing artifact. Search these paths:

Write the connection as a one-liner under the thread in the evaluation file (consumed by synth) or add it manually to the gold-found file after synthesis: Connects to: <artifact name> (<one-line why>).

If no connection exists, treat that as a flag, not a feature. Genuinely novel insights are rare; usually "no connection" means either (a) the thread isn't as High-Signal as it looked, or (b) you haven't searched hard enough. Run a vault/skill/session search before promoting it. The forcing function catches false positives and produces compounding knowledge instead of orphan notes.

This is the elaboration principle (Make It Stick) applied at the synthesis layer: new findings are only durable knowledge once wired to existing entities. Standalone artifacts decay; connected ones compound.

CLI

pan.py init      --workspace <path>
pan.py validate  --inventory <file>
pan.py merge     --pass1 <file> --final <file> --output <file>
pan.py synth     --inventory <file> --evaluations <dir> --output <file>

The script delegates to inventory.py for parsing and merging, and synthesis.py for gold-found generation.

Scripts

| Script | Purpose | Exit codes |

|---|---|---|

| scripts/pan.py | CLI entry point for init, validate, merge, and synth subcommands over the workspace. | 0 success; 1 validation failure (malformed inventory or evaluation); 2 usage or I/O error. |

| scripts/inventory.py | Parse, validate, and merge thread inventories (called by pan.py). | Returns to caller; surfaced through pan.py exit codes. |

| scripts/synthesis.py | Generate the gold-found file from the merged inventory and evaluations (called by pan.py synth). | Returns to caller; surfaced through pan.py exit codes. |

Verification

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.