Skip to content
Back to skills

Mine Transcripts

ASecurity

Mine real human CLI conversation transcripts into labeled training data for bridge/classifier improvement.

  • 6 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 11, 2026
ai-agentsrustgobash

Works with

  • cli

Security analysis

A100/100

Pro scans all 10 files and shows the line behind each finding

Scanned September 11, 2026

npx -y skills add grahama1970/agent-skills --skill mine-transcripts --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mine Transcripts?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Mine Transcripts
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/grahama1970-mine-transcripts/badge)](https://www.skillsdirectory.com/skills/grahama1970-mine-transcripts)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: mine-transcripts
description: >
  Mine real human CLI conversation transcripts into labeled training data for
  bridge/classifier improvement.
triggers:
  - mine transcripts
  - extract training data
  - mine conversations
allowed-tools:
  - Bash
  - Read
metadata:
  short-description: Mine CLI transcripts for classifier training

provides:
  - mine-transcripts
composes:
  - task-monitor
  - agentic-evals
disciplines:
  - data-engineering
  - ml-training
---

# mine-transcripts

Mine real human conversations from CLI agents for bridge classifier training.

## Purpose

Train the bridge classifier on REAL human communication patterns, not synthetic templates. This enables personas like Embry to find the RIGHT experts when using /ask.

**Two-tier training approach:**
1. **Developer (Graham)** - baseline attunement to real communication patterns
2. **Client** - specific adaptation to individual users

## Integration

```
┌─────────────────────────────────────────────────────────────────┐
│                    DATA SOURCES                                 │
├─────────────────────────────────────────────────────────────────┤
│  ~/.claude/projects/     Claude CLI conversations              │
│  ~/.codex/history.jsonl  Codex CLI (pure human input!)         │
│  ~/.codex/sessions/      Codex session transcripts             │
│  ~/.gemini/              Gemini CLI (if exists)                │
│  ~/.pi/                  Pi CLI (if exists)                    │
└─────────────────────────────────────────────────────────────────┘
                              │
                              ▼
┌─────────────────────────────────────────────────────────────────┐
│                    /mine-transcripts                            │
├─────────────────────────────────────────────────────────────────┤
│  1. Extract real human messages (filter system prompts)        │
│  2. Label with /taxonomy bridge extraction                     │
│  3. Detect emotional state (satisfied/frustrated)              │
│  4. Deduplicate against /memory                                │
│  5. Store unique examples for classifier training              │
└─────────────────────────────────────────────────────────────────┘
                              │
                              ▼
┌─────────────────────────────────────────────────────────────────┐
│              /create-classifier (bridge classifier)            │
│                              │                                  │
│                              ▼                                  │
│                      persona_router.py                          │
│                              │                                  │
│                              ▼                                  │
│                    Embry /asks the RIGHT personas               │
└─────────────────────────────────────────────────────────────────┘
```

## Dependencies

- **/taxonomy** - Bridge label extraction (Precision, Resilience, Fragility, Corruption, Loyalty, Stealth)
- **/memory** - Deduplication against existing lessons, optional storage; mined
  skill chains must be written through `chain-learn` into typed `skill_chains`
- **/episodic-archiver** - Emotional context from archived sessions
- **/scheduler** - Nightly runs

## Usage

```bash
# Mine from all CLI agents
./run.sh mine --all-agents

# Mine with deduplication against existing training data
./run.sh mine --all-agents --dedupe

# Mine and store classifier examples to memory (creates lessons)
./run.sh mine --all-agents --store-memory

# Mine and store skill chains to typed /memory skill_chains records
./run.sh mine-chains --all-projects

# Analyze coverage of existing training data
./run.sh analyze data/mined.jsonl

# Export for human review
./run.sh export --sample 500 --output for_review.jsonl
```

## Output

Training data in JSONL format:
```json
{"text": "the font size is too small for 10ft viewing", "labels": ["Precision", "Fragility"]}
{"text": "perfect, that fixed the issue!", "labels": ["Resilience", "Loyalty"]}
```

Skill-chain mining writes JSONL records such as:

```json
{"request": "Fix a memory bug", "chain": ["/memory", "/checkpoint"], "project": "memory", "source": "session.jsonl"}
```

When storage is enabled, those chains are written with `/memory chain-learn`.
They must not be stored as ordinary `/memory learn` lessons, because
`recall --brief`, `chain-recall`, and `/recommend-skill-chain` read the typed
`skill_chains` collection.

## Emotional Context

Messages are enriched with emotional detection:
- **Satisfied** signals → Resilience, Loyalty bridges
- **Frustrated** signals → Fragility bridge
- **High satisfaction** → Both Resilience AND Loyalty

This helps the classifier understand that "works great!" indicates system resilience and good collaboration (Loyalty).

## Scheduler Integration

Registered as `transcript-mining-nightly`:
- Runs at 4:30am daily
- Deduplicates against existing training data
- Feeds into `bridge-classifier-retrain` at 5am

Skill-chain mining should run as the chain backfill lane and write typed
`skill_chains`; classifier mining remains the lesson/training-data lane.

## Triggers

- `mine transcripts`
- `extract training data`
- `mine conversations`
- Nightly via /scheduler

Files in this skill

  • .batch_state.json404 B
  • SKILL.md6.3 KB
  • fixtures/agentic_eval.json1.1 KB
  • mine-transcripts_task_state.json404 B
  • mine_transcripts.py36.1 KB
  • pyproject.toml310 B
  • reports/agentic_eval_20260824_skill_chains.json5.5 KB
  • run.sh2.5 KB
  • sanity.sh3.2 KB
  • tests/test_skill_chain_storage.py2.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.