AGENT SKILL

media-to-vault-pipeline

Extract video dialogue, distill factual claims and procedural workflows, verify isnad provenance, and scaffold verified skills and Knowledge Items. Do not use for general video editing or entertainment media.

License 许可
MIT
最近更新
2026-11-15
Stars
★ 0
Forks
0

01 前言 Front Matter

name
media-to-vault-pipeline
description
Extract video dialogue, distill factual claims and procedural workflows, verify isnad provenance, and scaffold verified skills and Knowledge Items. Do not use for general video editing or entertainment media.

02 资源文件 4

03 SKILL.md 正文

Media to Vault Pipeline: Multimedia Transcript to Verified Skill

media-to-vault-pipeline automates the end-to-end operational workflow for extracting spoken audio dialogue from YouTube and technical videos, executing dual-lens cognitive distillation (Rule 41), validating isnad claim provenance, committing canonical dual-file Knowledge Items (Rule 40), and scaffolding production agent skills.

Dependencies

This workflow coordinates and reuses the following core skills:

Quick Start

# Option A: One-Shot Composite Pipeline Execution (Recommended)
python .agents/skills/media-to-vault-pipeline/scripts/media_pipeline_cli.py run --source "https://www.youtube.com/watch?v=EXAMPLE" --ki-id "ki_video_distill_01" --skill-name "sample-domain-skill" --output %TEMP%/pipeline_report.json

# Option B: Granular Multi-Step Execution
# 1. Fetch transcript from YouTube video URL or local file
python .agents/skills/media-to-vault-pipeline/scripts/media_pipeline_cli.py fetch-transcript --source "https://www.youtube.com/watch?v=EXAMPLE" --output %TEMP%/raw_transcript.json

# 2. Distill into dual-lens seams (epistemic claims vs procedural steps)
python .agents/skills/media-to-vault-pipeline/scripts/media_pipeline_cli.py distill-seams --transcript %TEMP%/raw_transcript.json --output %TEMP%/distilled_seams.json

# 3. Verify isnad chain-of-custody for extracted claims
python .agents/skills/media-to-vault-pipeline/scripts/media_pipeline_cli.py verify-isnad --distilled %TEMP%/distilled_seams.json --output %TEMP%/isnad_ledger.json

# 4. Commit to canonical Knowledge Vault (.harness/knowledge/<ki_id>/)
python .agents/skills/media-to-vault-pipeline/scripts/media_pipeline_cli.py commit-vault --ki-id "ki_video_distill_01" --distilled %TEMP%/distilled_seams.json --output %TEMP%/vault_commit.json

# 5. Scaffold production agent skill
python .agents/skills/media-to-vault-pipeline/scripts/media_pipeline_cli.py scaffold-skill --skill-name "sample-domain-skill" --distilled %TEMP%/distilled_seams.json --output %TEMP%/skill_scaffold.json

Utility Scripts

The companion CLI script scripts/media_pipeline_cli.py delegates to media_pipeline_engine.py and implements both composite and modular subcommands:

  • run: Executes the complete media-to-vault pipeline in a single atomic call with isnad validation and canonical dual-file vault commitment.
  • fetch-transcript: Connects to youtube-transcript-fetcher or reads local transcripts, outputting timed segments and dialogue to --output <file.json>.
  • distill-seams: Partitions unstructured media into Seam 1 (Epistemic Ground Truth) and Seam 2 (Procedural Agent Capabilities) per Rule 41.
  • verify-isnad: Validates claim citations against video timestamp anchors, computing confidence scores.
  • commit-vault: Persists canonical dual-file Knowledge Items (metadata.json + summary.md) under .harness/knowledge/<ki_id>/ per Rule 40.
  • scaffold-skill: Generates slotted, frozen skill models (SKILL.md, CARD.md, config.default.yaml) adhering to Rule 37 & 44.

Workflow Stages

Stage 1: Transcript Ingestion

Extract full spoken dialogue, speaker segments, and video timestamps using youtube-transcript-fetcher with automated exponential backoff on transient errors.

Completion criterion: Comprehensive timed dialogue JSON written to output with zero truncated segments.

Stage 2: Dual-Lens Cognitive Distillation

Bifurcate raw transcript data across the two foundational seams: epistemic principles (facts, mental models) and procedural rules (actions, decision trees) per Rule 41.

Completion criterion: Structured JSON containing partitioned claims and actionable procedural rubrics.

Stage 3: Isnad Provenance Verification

Verify unbroken chain-of-custody for each extracted claim against source timestamps or literature references using epistemic-isnad-audit.

Completion criterion: All claims achieve $\ge 0.85$ isnad confidence with timestamp anchors verified.

Stage 4: Mandatory Checkpoint

Generate an interactive HTML visual brief summarizing extracted knowledge items and proposed skill architectures. Await explicit user confirmation before modifying persistent state.

Completion criterion: Explicit user confirmation received before committing to Knowledge Vault or scaffolding skills.

Stage 5: Vault Commit & Skill Scaffolding

Persist canonical dual-file directories under .harness/knowledge/<ki_id>/ (Rule 40) and scaffold compliant agent skills under .agents/skills/<name>/ (Rule 44).

Completion criterion: Validated Knowledge Item committed and compliant agent skill registered with zero linter errors.

Visual Brief

When transcript distillation completes, generate an interactive HTML visual brief at %TEMP%/media-vault-review-<timestamp>.html rendering the dual-lens seam diagram, claim isnad lineage, and preview cards.

Rate Limiting

The CLI script implements built-in rate limiting (default 2 requests per second) with file-lock synchronization and exponential backoff on HTTP 429 errors to prevent API quota exhaustion during batch ingestion.

Anti-Patterns

  • Single Flat Knowledge Dump — Dumping flat JSON arrays directly into .harness/knowledge/ instead of the canonical dual-file directory format (Rule 40).
  • Unverified Isnad Claims — Promoting extracted statements into persistent memory without timestamp anchors or source citations.
  • Unpartitioned Transcript Bloat — Generating agent skills directly from raw dialogue without bifurcating epistemic ground truth from procedural action rubrics (Rule 41).
  • Bypassing Visual Brief Checkpoint — Creating persistent skills or modifying the vault without user review of extracted claims.

04 同仓库更多 Skills

SpectreDeath
SpectreDeath/Brain-Harness

ui-behavior-primitive-architect

Architect, audit, and verify zero-dependency headless UI behavior primitives, WebMCP agent bridges, WAI-ARIA/SSR/RTL tri-modal checks, and framework expert routing. Do not use for static CSS theme styling or backend database migrations.

★ 0
SpectreDeath
SpectreDeath/Brain-Harness

trustgraph-ontology-governor

Govern knowledge graphs, SHACL-AF triple policies, OntologyRAG subclass validation, PROV-O dual named graphs, and Laya entropy decision scoring. Do not use for relational SQL queries or generic web scraping.

★ 0
SpectreDeath
SpectreDeath/Brain-Harness

shim-harness-governor

Govern universal CLI agent loops, 4-tier tool permissions, ancestor-symlink workspace sandboxes, deterministic-first command routing, collision-safe MCP namespacing, and layered skill loading. Do not use for static UI styling or external SQL analytics.

★ 0
SpectreDeath
SpectreDeath/Brain-Harness

graphiti-zep-memory-governor

Govern bi-temporal knowledge graphs with Graphiti future-edge clamping, MinHash/LSH entity dedup, RRF/MMR reranking, and Zep typed ontologies. Do not use for static SQL joins or generic web crawling.

★ 0
SpectreDeath
SpectreDeath/Brain-Harness

agora-mcp-workbench-architect

Architect, audit, and orchestrate Agora Workbench MCP servers, loopback sidecars, unified state graphs, gateway/dispatcher connectors, and policy-enforced data lakes. Do not use for static frontend CSS styling or non-MCP desktop GUI automation.

★ 0
SpectreDeath
SpectreDeath/Brain-Harness

skill-eval-assurance-runner

Evaluate and assure agent skills using small-N Wilson confidence intervals, unbiased pass^k reliability, deterministic trajectory graders, preflight boundary honesty, and sealed digest verification. Do not use for subjective prose review or unconstrained production deployment.

★ 0