关于 script-writer
script-writer 是面向 Claude 的 YouTube 脚本写作技能,可依据创作者保存的风格偏好撰写完整视频脚本。它支持多种内容结构,并可调整语气、长度和互动设计。
主要功能
- 01保存写作风格偏好
- 02撰写完整 YouTube 脚本
- 03创建开场钩子与内容结构
- 04适配不同视频类型和长度
- 05生成多种脚本版本
- 06根据反馈修改脚本
适用场景
- 01撰写教程或解说视频脚本
- 02为视频设计开场和互动环节
- 03按频道风格调整脚本语气
- 04修改脚本长度或行动号召
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ ailabs-393/ ai-labs-claude-skills --skill script-writer安装后在 Claude Code 中输入/script-writer确认已加载。
包含的文件
除 SKILL.md 外,安装时一起下载的参考资料和脚本。
index.jspackage.jsonreferences/script_formats.mdscripts/script_db.py详细介绍
脚本撰写
概述
此技能可将 Claude 转变为专业的 YouTube 脚本撰写者,让它了解你独特的风格,并生成完整、引人入胜、针对观众留存和互动效果进行优化的视频脚本。
何时使用此技能
在处理 YouTube 脚本撰写任务时调用此技能:
- 撰写完整的视频脚本
- 创作钩子和开场白
- 设计引人入胜的内容结构
- 将脚本改编为不同形式
- 保持一致的声音和风格
- 生成多个脚本版本
工作流
第 1 步:检查是否已有偏好
python3 scripts/script_db.py is_initialized
如果为“false”,请转到第 2 步。如果为“true”,请转到第 3 步。
第 2 步:收集初始偏好
全面收集脚本撰写偏好:
脚本类型(可多选):
- 教育/教程
- 清单/十大榜单
- 故事/叙事
- 评测
- Vlog 风格
- 评论/观点
- 操作指南
- 解释说明
- 娱乐
语气:
- 专业/权威
- 随意/友好
- 充满活力/热情洋溢
- 教育性/耐心
- 鼓舞人心/激励人心
- 幽默/有趣
- 对话式
目标受众:
- 年龄段(青少年、20 多岁至 30 多岁、35 至 50 岁、50 岁以上)
- 知识水平(初学者、中级、专家)
- 人口统计特征
- 兴趣
- 痛点
风格偏好:
- 措辞风格:简单/直接、描述性/生动、技术性/精准、讲故事
- 句子长度:简短/有力、中等、长句/流畅
- 段落结构:快速切换、均衡、较长段落
- 是否使用反问句:是/否/有时
- 统计数据的使用程度:大量、中等、少量、不使用
视频时长偏好:
- 短视频(3–5 分钟,约 450–750 个单词)
- 中等时长(7–12 分钟,约 1,050–1,800 个单词)
- 长视频(15–30 分钟,约 2,250–4,500 个单词)
钩子风格:
- 问题式
- 大胆陈述
- 冲突/问题
- 承诺/收益
- 震撼效果
- 故事开场
个性:
- 充满活力、表现生动
- 冷静、沉稳
- 机智、幽默
- 严肃、深思熟虑
- 热情、强烈
- 亲切、平易近人
其他偏好:
- 是否使用幽默:是/否/少量使用
- 是否包含统计数据:始终包含/相关时包含/很少包含
- 讲故事的程度:大量/中等/少量
- 行动号召偏好:直接/委婉/尽量少
- 个人轶事:经常/偶尔/很少
- 频道细分领域/重点
保存偏好:
import sys
sys.path.append('[SKILL_DIR]/scripts')
from script_db import save_preferences
preferences = {
"script_types": ["educational", "listicle"],
"tone": "casual-friendly",
"target_audience": {
"age_range": "20s-30s",
"knowledge_level": "beginner-intermediate",
"interests": ["productivity", "technology"]
},
"style": {
"wording": "simple-direct",
"sentence_length": "short-punchy",
"use_questions": True,
"use_statistics": "moderate"
},
"video_length": "medium",
"hook_style": "question-problem",
"personality": "relatable-energetic",
"use_humor": True,
"storytelling_approach": "moderate",
"call_to_action_preference": "direct",
"channel_niche": "productivity tips"
}
save_preferences(preferences)
第 3 步:根据主题生成脚本
用户请求撰写脚本时,收集以下信息:
必要信息:
- 主题/标题:视频内容是什么
- 要点:需要涵盖的主要内容(3–5 点)
- 视频时长:具体时长或使用偏好时长
- 特殊要求:需要包含或避免的具体内容
- 目标关键词:用于 SEO(可选)
请求示例:
User: "Write a script about '5 Productivity Apps That Changed My Life'"
Gather:
- Video length: 10 minutes (medium form)
- Key apps to cover: 5 specific apps
- Angle: Personal experience + practical benefits
- CTA: Link to full app list in description
第 4 步:设计脚本结构
根据偏好和 references/script_formats.md,创建结构:
标准 YouTube 脚本结构:
[HOOK - 0:00-0:10]
Opening line that stops the scroll
[INTRO - 0:10-0:45]
- Quick greeting
- What video is about
- Why viewer should watch
- What they'll learn
- Personal credibility/context
[MAIN CONTENT - 0:45-8:30]
Section 1: [Point 1]
- Introduction to point
- Explanation
- Example/Story
- Benefit/Application
- Transition
Section 2: [Point 2]
- Introduction to point
- Explanation
- Example/Story
- Benefit/Application
- Transition
[Continue for each main point]
[CONCLUSION - 8:30-9:30]
- Recap of main points
- Key takeaway
- Final thought
- Setup for CTA
[CALL TO ACTION - 9:30-10:00]
- Primary CTA (subscribe, like, comment)
- Secondary CTA (links, next video)
- Sign-off
第 5 步:撰写完整脚本
按照结构并结合用户的风格偏好生成完整脚本:
脚本输出示例:
===================================
YOUTUBE SCRIPT
===================================
Title: 5 Productivity Apps That Changed My Life
Duration: ~10 minutes (~1,500 words)
Style: Casual-Friendly, Educational
===================================
[HOOK - 0:00-0:10]
"I used to waste 3 hours every day on useless tasks until I found these 5 apps.
And no, I'm not talking about the ones everyone already knows about."
[INTRO - 0:10-0:45]
"Hey everyone! If you're like me, you've downloaded dozens of productivity apps
only to abandon them after a week. But these 5? They've actually stuck. In fact,
they've saved me over 15 hours every single week for the past 6 months.
Today, I'm sharing the exact apps I use daily, why they work, and how you can
implement them right now. And stick around because app number 5 is so simple,
you'll wonder why you haven't been using it already.
Let's dive in."
[MAIN CONTENT - 0:45-8:30]
[Section 1: App #1 - 1:00-2:30]
"App number one is Notion – but not how you think.
I know, I know – everyone talks about Notion. But here's the thing: most people
overcomplicate it. I used to spend hours building elaborate databases until I
realized I was being productive about being productive, which is just... not
productive.
[Visual cue: Show simple Notion setup]
Here's what changed everything: I now use Notion for exactly THREE things:
- My daily dashboard (shows tasks, goals, and notes)
- A simple content calendar
- Quick capture for random ideas
That's it. No complex databases. No elaborate systems. Just these three pages,
and suddenly Notion became actually useful instead of another project to maintain.
The key? Start simple. You can always add complexity later, but start with one
page and build from there.
Moving on to something completely different..."
[Section 2: App #2 - 2:30-4:00]
"App number two is Sunsama, and this one's all about time blocking done right.
If you've ever written a to-do list and then just... stared at it, paralyzed
about where to start – Sunsama solves that. It's like a calendar and task
manager had a baby.
[Visual cue: Show Sunsama interface]
Every morning, I spend 10 minutes in Sunsama planning my day. I drag tasks into
specific time slots, and it shows me if I'm overcommitting. Game changer.
Before Sunsama, I'd have 20 tasks and no idea how to fit them in. Now? I can see
I only have time for 7 tasks today, so I prioritize accordingly. It's honestly
changed how I approach my entire day.
The best part? At the end of the day, it shows you what you actually completed
versus what you planned. That feedback loop has made me SO much better at
estimating how long things actually take.
Fair warning: it's a paid app. But for me, the $20/month has been worth every
penny in time saved and stress reduced."
[Continue for Apps 3, 4, and 5...]
[CONCLUSION - 8:30-9:30]
"So there you have it – the 5 apps that transformed my productivity:
1. Notion for simple organization
2. Sunsama for time blocking
3. [App 3] for [benefit]
4. [App 4] for [benefit]
5. [App 5] for [benefit]
The most important thing? Don't try to implement all 5 at once. Pick ONE, master
it for a week, then add another. That's how these actually stick.
I've been using this exact setup for 6 months now, and I genuinely can't imagine
going back to my old chaotic system."
[CALL TO ACTION - 9:30-10:00]
"If you found this helpful, smash that subscribe button because I post a new
productivity video every Tuesday.
Also, I've got a full breakdown of all 5 apps with links, pricing, and my exact
setup in the description below – grab that, it's free.
Let me know in the comments which app you're going to try first, and if you have
any productivity apps I should know about, drop those too.
Thanks for watching, and I'll see you in the next one!"
===================================
[END OF SCRIPT]
Word Count: ~1,500 words
Estimated Duration: 10 minutes
Target Audience: 20s-30s productivity enthusiasts
Tone: Casual, friendly, relatable
Key Hooks: Personal transformation, practical tips, simple implementation
Production Notes:
- Need B-roll of all 5 apps in use
- Show simple vs complex Notion setups
- Include time-lapse of daily planning routine
- End screen: Subscribe button + Next video suggestion
===================================
第 6 步:根据反馈优化
展示脚本后:
提供调整选项:
- 加强钩子
- 调整时长(精简或扩展)
- 更改语气(更正式/不那么正式)
- 增加/减少幽默
- 增加更多统计数据
- 简化语言
- 添加讲故事的元素
- 加强 CTA
保存最终版本:
from script_db import add_script
script = {
"title": "5 Productivity Apps That Changed My Life",
"type": "listicle-educational",
"tone": "casual-friendly",
"word_count": 1500,
"duration_minutes": 10,
"content": "[full script text]",
"notes": "Strong personal angle, relatable examples"
}
add_script(script)
最佳实践
1. 创作钩子
- 前 5 秒至关重要
- 作出承诺
- 激发好奇心
- 直击痛点
- 运用打破常规的手法
2. 节奏把控
- 调整句子长度
- 混合使用长短段落
- 层层推进
- 策略性停顿
- 转换能量节奏
3. 互动技巧
- 直接向观众提问
- 分享个人故事
- 提供贴近生活的示例
- 预先回应可能的异议
- 提供社会认同
4. 优化留存率
- 预告后续内容
- 呼应前文
- 每隔 30–60 秒打破一次常规
- 策略性地留出信息悬念
- 兑现作出的承诺
5. 行动号召
- 一个主要行动号召
- 说明能带来的好处
- 具体明确
- 营造轻微的紧迫感
- 自然融入内容
脚本模板
教育教程模板
[HOOK] Problem statement + Promise of solution
[INTRO] Personal context + What you'll learn + Why it matters
[SECTION 1] Concept explanation
- What it is
- Why it matters
- Common mistakes
[SECTION 2] Step-by-step process
- Step 1 with visuals
- Step 2 with examples
- Step 3 with tips
[SECTION 3] Common pitfalls
- What to avoid
- Troubleshooting
[CONCLUSION] Recap + Key takeaway + Next steps
[CTA] Subscribe + Resources + Comment prompt
列表模板
[HOOK] Number tease + Unexpected angle
[INTRO] Context + Why this list matters
[ITEM 5] (Build suspense with countdown)
- What it is
- Why it works
- How to use it
[ITEM 4] Repeat structure
[ITEM 3] Repeat structure
[ITEM 2] Repeat structure
[ITEM 1] (Most important/surprising)
- Extra emphasis
- Best benefit
[CONCLUSION] Recap numbers + Ultimate takeaway
[CTA] Strong directive + Resource mention
故事/叙事模板
[HOOK] Compelling story opening
[INTRO] Setup the story context
[SECTION 1] The problem/conflict
- Build tension
- Show stakes
- Make it relatable
[SECTION 2] The journey
- Challenges faced
- Attempts and failures
- Learning moments
[SECTION 3] The resolution
- How it worked out
- The transformation
[CONCLUSION] Lesson learned + How viewers can apply
[CTA] Invite similar stories + Subscribe
语气示例
轻松友好
"Hey everyone! So, funny story – I completely messed this up last week.
Like, embarrassingly bad. But here's what I learned..."
专业权威
"In today's video, we're examining the three core principles that drive
successful implementation. Based on 5 years of data and research..."
充满活力、热情洋溢
"Okay, THIS is insane! I just discovered something that's going to blow
your mind. Are you ready? Because once you see this..."
耐心讲解
"Let's break this down step by step. Don't worry if it seems complicated
at first – by the end of this video, it'll make perfect sense. First..."
应避免的常见错误
- 开场钩子乏力——5 秒内切入重点
- 开场太长——别在传递价值之前长篇大论
- 缺乏结构——观众需要明确的内容指引
- 语气单调——调整表达活力和节奏
- 信息过载——聚焦关键内容
- 忘记受众——直接与观众交流
- 行动号召埋得太深——表达清晰且便于执行
- 缺乏个性——展现你独特的风格
- 过于正式——YouTube 讲究轻松对话
- 没有视觉提示——加入拍摄备注
交互示例
User: "Write me a script about passive income ideas"
Claude: [Checks preferences - finds casual-friendly tone, medium length, question hooks]
Perfect! Based on your style, I'll write a 10-minute script with your casual,
relatable tone. A few quick questions:
1. How many passive income ideas should I cover? (3-5 works well for 10 minutes)
2. Any specific angle? (beginner-friendly, high-earning, low startup cost?)
3. Personal experience or research-based approach?
User: "5 ideas, beginner-friendly, mix of both personal experience and research"
Claude: [Generates complete script]
Here's your complete script for "5 Passive Income Ideas for Beginners":
[Full formatted script with hook, intro, 5 ideas with personal stories and data,
conclusion, and CTA – all in user's casual-friendly style]
The script is 1,450 words (~10 minutes) with:
✓ Question-based hook about financial freedom
✓ Personal story in intro about your first passive income
✓ Each idea includes: what it is, startup cost, time investment, real example
✓ Mix of your experience and statistics
✓ Natural humor in transitions
✓ Direct CTA about free passive income guide
Want me to adjust anything? I can make it more personal, add more data, or
change the energy level.
技术说明
数据存储:
- 位置:
~/.claude/script_writer.json - 持久保存偏好设置
- 保留脚本历史记录
CLI 命令:
python3 scripts/script_db.py is_initialized
python3 scripts/script_db.py get_preferences
python3 scripts/script_db.py get_scripts
python3 scripts/script_db.py stats
字数指南:
- 语速:每分钟约 150 词
- 短篇(3-5 分钟):450-750 词
- 中篇(7-12 分钟):1,050-1,800 词
- 长篇(15-30 分钟):2,250-4,500 词
资源
scripts/script_db.py
用于管理偏好设置、脚本和模板的数据库。
references/script_formats.md
全面介绍以下内容的指南:
- 常见的 YouTube 视频类型和结构
- 脚本组成部分详解(开场钩子、开场白、内容、结尾、行动号召)
- 不同风格的语气指南
- 根据视频时长制定的时间指南
- 提升互动的技巧
- 应避免的常见错误
- 脚本中的视觉提示
- 针对不同受众的调整
- 平台特定注意事项
评论
支持 Markdown