# sntl84/youtube-agent-skill architecture

> Architecture diagram of the GitHub repository sntl84/youtube-agent-skill, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sntl84/youtube-agent-skill
- Repository: https://github.com/sntl84/youtube-agent-skill

## Overview

This repository is a suite of eleven Claude skills for planning, creating, analyzing, and packaging YouTube content; it does not publish videos. The main workflow is creator-provided material or channel data → a selected skill (sometimes supported by a local Python tool) → a draft, analysis, or recommendation for the creator to review and upload manually. The graph includes the README’s documented capabilities. Relationships between skill prompts and their tools are documented at the product level; source evidence also confirms the chapters and retention tools reuse the edit transcript parser.

Main entry points: [`templates/voice.md`](https://github.com/sntl84/youtube-agent-skill/blob/main/templates/voice.md) (Voice template), [`skills/yt-script/SKILL.md`](https://github.com/sntl84/youtube-agent-skill/blob/main/skills/yt-script/SKILL.md) (Script skill), [`skills/yt-edit/SKILL.md`](https://github.com/sntl84/youtube-agent-skill/blob/main/skills/yt-edit/SKILL.md) (Edit skill), [`skills/yt-viral/SKILL.md`](https://github.com/sntl84/youtube-agent-skill/blob/main/skills/yt-viral/SKILL.md) (Niche research)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_create["Create"]
  node_script_skill["Script skill<br/>[SKILL.md]"]
  node_hook_tool["Hook scorer<br/>[hookscore.py]"]
  node_edit_skill["Edit skill<br/>[SKILL.md]"]
  node_edit_tool["Edit decision list<br/>[deadair.py]"]
  node_shorts_skill["Shorts finder<br/>[SKILL.md]"]
  node_plan_skill["Content planner<br/>[SKILL.md]"]
  node_comment_skill["Comment triage<br/>[SKILL.md]"]
end

subgraph group_analyze["Analyze"]
  node_viral_skill["Niche research<br/>[SKILL.md]"]
  node_viral_tool["Outlier ranker<br/>[swipe.py]"]
  node_retention_skill["Retention analysis<br/>[SKILL.md]"]
  node_retention_tool["Retention analyzer<br/>[retention.py]"]
  node_audit_skill["Channel audit<br/>[SKILL.md]"]
end

subgraph group_publish_prep["Publishing prep"]
  node_package_skill["Title and thumbnail<br/>[SKILL.md]"]
  node_title_tool["Pairing linter<br/>[title.py]"]
  node_seo_skill["SEO assistant<br/>[SKILL.md]"]
  node_chapters_skill["Chapter generator<br/>[SKILL.md]"]
  node_chapters_tool["Chapter validator<br/>[chapters.py]"]
end

subgraph group_shared["Shared resources"]
  node_hook_formulas["Hook formulas<br/>[hooks.json]"]
  node_voice_template["Voice template<br/>[voice.md]"]
end

node_creator(("Creator"))
node_creator_review(("Review and upload"))

node_creator -->|"requests script"| node_script_skill
node_script_skill -->|"scores hooks"| node_hook_tool
node_hook_tool -->|"matches formulas"| node_hook_formulas
node_creator -->|"provides transcript"| node_edit_skill
node_edit_skill -->|"creates edit list"| node_edit_tool
node_creator -->|"requests clip ideas"| node_shorts_skill
node_creator -->|"requests schedule"| node_plan_skill
node_creator -->|"provides comments"| node_comment_skill
node_creator -->|"requests niche research"| node_viral_skill
node_viral_skill -->|"ranks collected videos"| node_viral_tool
node_viral_tool -->|"classifies titles"| node_hook_formulas
node_creator -->|"requests analysis"| node_retention_skill
node_retention_skill -->|"analyzes export"| node_retention_tool
node_retention_tool -->|"loads transcript cues"| node_edit_tool
node_creator -->|"requests channel audit"| node_audit_skill
node_creator -->|"requests packaging"| node_package_skill
node_package_skill -->|"lints pairing"| node_title_tool
node_creator -->|"requests SEO"| node_seo_skill
node_creator -->|"provides transcript"| node_chapters_skill
node_chapters_skill -->|"drafts chapters"| node_chapters_tool
node_chapters_tool -->|"loads transcript cues"| node_edit_tool
node_voice_template -->|"guides voice"| node_script_skill
node_voice_template -->|"guides voice"| node_edit_skill
node_voice_template -->|"guides voice"| node_shorts_skill
node_voice_template -->|"guides voice"| node_plan_skill
node_voice_template -->|"guides voice"| node_comment_skill
node_voice_template -->|"guides voice"| node_viral_skill
node_voice_template -->|"guides voice"| node_retention_skill
node_voice_template -->|"guides voice"| node_audit_skill
node_voice_template -->|"guides voice"| node_package_skill
node_voice_template -->|"guides voice"| node_seo_skill
node_voice_template -->|"guides voice"| node_chapters_skill
node_script_skill -->|"presents draft"| node_creator_review
node_edit_skill -->|"presents edit list"| node_creator_review
node_shorts_skill -->|"presents clip ideas"| node_creator_review
node_plan_skill -->|"presents schedule"| node_creator_review
node_comment_skill -->|"presents replies"| node_creator_review
node_viral_skill -->|"presents findings"| node_creator_review
node_retention_skill -->|"presents analysis"| node_creator_review
node_audit_skill -->|"presents one fix"| node_creator_review
node_package_skill -->|"presents pairing"| node_creator_review
node_seo_skill -->|"presents metadata"| node_creator_review
node_chapters_skill -->|"presents chapters"| node_creator_review

click node_script_skill "https://github.com/sntl84/youtube-agent-skill/blob/main/skills/yt-script/SKILL.md"
click node_hook_tool "https://github.com/sntl84/youtube-agent-skill/blob/main/skills/yt-script/hookscore.py"
click node_edit_skill "https://github.com/sntl84/youtube-agent-skill/blob/main/skills/yt-edit/SKILL.md"
click node_edit_tool "https://github.com/sntl84/youtube-agent-skill/blob/main/skills/yt-edit/deadair.py"
click node_shorts_skill "https://github.com/sntl84/youtube-agent-skill/blob/main/skills/yt-shorts/SKILL.md"
click node_plan_skill "https://github.com/sntl84/youtube-agent-skill/blob/main/skills/yt-plan/SKILL.md"
click node_comment_skill "https://github.com/sntl84/youtube-agent-skill/blob/main/skills/yt-comment/SKILL.md"
click node_viral_skill "https://github.com/sntl84/youtube-agent-skill/blob/main/skills/yt-viral/SKILL.md"
click node_viral_tool "https://github.com/sntl84/youtube-agent-skill/blob/main/skills/yt-viral/swipe.py"
click node_retention_skill "https://github.com/sntl84/youtube-agent-skill/blob/main/skills/yt-retention/SKILL.md"
click node_retention_tool "https://github.com/sntl84/youtube-agent-skill/blob/main/skills/yt-retention/retention.py"
click node_audit_skill "https://github.com/sntl84/youtube-agent-skill/blob/main/skills/yt-audit/SKILL.md"
click node_package_skill "https://github.com/sntl84/youtube-agent-skill/blob/main/skills/yt-package/SKILL.md"
click node_title_tool "https://github.com/sntl84/youtube-agent-skill/blob/main/skills/yt-package/title.py"
click node_seo_skill "https://github.com/sntl84/youtube-agent-skill/blob/main/skills/yt-seo/SKILL.md"
click node_chapters_skill "https://github.com/sntl84/youtube-agent-skill/blob/main/skills/yt-chapters/SKILL.md"
click node_chapters_tool "https://github.com/sntl84/youtube-agent-skill/blob/main/skills/yt-chapters/chapters.py"
click node_hook_formulas "https://github.com/sntl84/youtube-agent-skill/blob/main/skills/yt-script/hooks.json"
click node_voice_template "https://github.com/sntl84/youtube-agent-skill/blob/main/templates/voice.md"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_script_skill,node_hook_tool,node_edit_skill,node_edit_tool,node_shorts_skill,node_plan_skill,node_comment_skill,node_creator_review toneBlue
class node_viral_skill,node_viral_tool,node_retention_skill,node_retention_tool,node_audit_skill toneAmber
class node_package_skill,node_title_tool,node_seo_skill,node_chapters_skill,node_chapters_tool toneMint
class node_hook_formulas,node_voice_template toneRose
class node_creator toneIndigo
```

## Components

### Create

- [Script skill](https://github.com/sntl84/youtube-agent-skill/blob/main/skills/yt-script/SKILL.md): `skills/yt-script/SKILL.md`
- [Hook scorer](https://github.com/sntl84/youtube-agent-skill/blob/main/skills/yt-script/hookscore.py): `skills/yt-script/hookscore.py`
- [Edit skill](https://github.com/sntl84/youtube-agent-skill/blob/main/skills/yt-edit/SKILL.md): `skills/yt-edit/SKILL.md`
- [Edit decision list](https://github.com/sntl84/youtube-agent-skill/blob/main/skills/yt-edit/deadair.py): `skills/yt-edit/deadair.py`
- [Shorts finder](https://github.com/sntl84/youtube-agent-skill/blob/main/skills/yt-shorts/SKILL.md): `skills/yt-shorts/SKILL.md`
- [Content planner](https://github.com/sntl84/youtube-agent-skill/blob/main/skills/yt-plan/SKILL.md): `skills/yt-plan/SKILL.md`
- [Comment triage](https://github.com/sntl84/youtube-agent-skill/blob/main/skills/yt-comment/SKILL.md): `skills/yt-comment/SKILL.md`

### Analyze

- [Niche research](https://github.com/sntl84/youtube-agent-skill/blob/main/skills/yt-viral/SKILL.md): `skills/yt-viral/SKILL.md`
- [Outlier ranker](https://github.com/sntl84/youtube-agent-skill/blob/main/skills/yt-viral/swipe.py): `skills/yt-viral/swipe.py`
- [Retention analysis](https://github.com/sntl84/youtube-agent-skill/blob/main/skills/yt-retention/SKILL.md): `skills/yt-retention/SKILL.md`
- [Retention analyzer](https://github.com/sntl84/youtube-agent-skill/blob/main/skills/yt-retention/retention.py): `skills/yt-retention/retention.py`
- [Channel audit](https://github.com/sntl84/youtube-agent-skill/blob/main/skills/yt-audit/SKILL.md): `skills/yt-audit/SKILL.md`

### Publishing prep

- [Title and thumbnail](https://github.com/sntl84/youtube-agent-skill/blob/main/skills/yt-package/SKILL.md): `skills/yt-package/SKILL.md`
- [Pairing linter](https://github.com/sntl84/youtube-agent-skill/blob/main/skills/yt-package/title.py): `skills/yt-package/title.py`
- [SEO assistant](https://github.com/sntl84/youtube-agent-skill/blob/main/skills/yt-seo/SKILL.md): `skills/yt-seo/SKILL.md`
- [Chapter generator](https://github.com/sntl84/youtube-agent-skill/blob/main/skills/yt-chapters/SKILL.md): `skills/yt-chapters/SKILL.md`
- [Chapter validator](https://github.com/sntl84/youtube-agent-skill/blob/main/skills/yt-chapters/chapters.py): `skills/yt-chapters/chapters.py`

### Shared resources

- [Hook formulas](https://github.com/sntl84/youtube-agent-skill/blob/main/skills/yt-script/hooks.json): `skills/yt-script/hooks.json`
- [Voice template](https://github.com/sntl84/youtube-agent-skill/blob/main/templates/voice.md): `templates/voice.md`

### Other components

- **Creator**
- **Review and upload**

## Connections

- Creator → Script skill: requests script (evidence: `README.md`)
- Script skill → Hook scorer: scores hooks (evidence: `README.md`)
- Hook scorer → Hook formulas: matches formulas (evidence: `skills/yt-script/hookscore.py`)
- Creator → Edit skill: provides transcript (evidence: `README.md`)
- Edit skill → Edit decision list: creates edit list (evidence: `README.md`)
- Creator → Shorts finder: requests clip ideas (evidence: `README.md`)
- Creator → Content planner: requests schedule (evidence: `README.md`)
- Creator → Comment triage: provides comments (evidence: `README.md`)
- Creator → Niche research: requests niche research (evidence: `README.md`)
- Niche research → Outlier ranker: ranks collected videos (evidence: `README.md`)
- Outlier ranker → Hook formulas: classifies titles (evidence: `skills/yt-viral/swipe.py`)
- Creator → Retention analysis: requests analysis (evidence: `README.md`)
- Retention analysis → Retention analyzer: analyzes export (evidence: `README.md`)
- Retention analyzer → Edit decision list: loads transcript cues (evidence: `skills/yt-retention/retention.py`)
- Creator → Channel audit: requests channel audit (evidence: `README.md`)
- Creator → Title and thumbnail: requests packaging (evidence: `README.md`)
- Title and thumbnail → Pairing linter: lints pairing (evidence: `README.md`)
- Creator → SEO assistant: requests SEO (evidence: `README.md`)
- Creator → Chapter generator: provides transcript (evidence: `README.md`)
- Chapter generator → Chapter validator: drafts chapters (evidence: `README.md`)
- Chapter validator → Edit decision list: loads transcript cues (evidence: `skills/yt-chapters/chapters.py`)
- Voice template → Script skill: guides voice (evidence: `README.md`)
- Voice template → Edit skill: guides voice (evidence: `README.md`)
- Voice template → Shorts finder: guides voice (evidence: `README.md`)
- Voice template → Content planner: guides voice (evidence: `README.md`)
- Voice template → Comment triage: guides voice (evidence: `README.md`)
- Voice template → Niche research: guides voice (evidence: `README.md`)
- Voice template → Retention analysis: guides voice (evidence: `README.md`)
- Voice template → Channel audit: guides voice (evidence: `README.md`)
- Voice template → Title and thumbnail: guides voice (evidence: `README.md`)
- Voice template → SEO assistant: guides voice (evidence: `README.md`)
- Voice template → Chapter generator: guides voice (evidence: `README.md`)
- Script skill → Review and upload: presents draft (evidence: `README.md`)
- Edit skill → Review and upload: presents edit list (evidence: `README.md`)
- Shorts finder → Review and upload: presents clip ideas (evidence: `README.md`)
- Content planner → Review and upload: presents schedule (evidence: `README.md`)
- Comment triage → Review and upload: presents replies (evidence: `README.md`)
- Niche research → Review and upload: presents findings (evidence: `README.md`)
- Retention analysis → Review and upload: presents analysis (evidence: `README.md`)
- Channel audit → Review and upload: presents one fix (evidence: `README.md`)
- Title and thumbnail → Review and upload: presents pairing (evidence: `README.md`)
- SEO assistant → Review and upload: presents metadata (evidence: `README.md`)
- Chapter generator → Review and upload: presents chapters (evidence: `README.md`)
