') + ')', 'gi'); if (regex.test(text)) { found = true; var frag = document.createDocumentFragment(); var parts = text.split(regex); parts.forEach(function(part, i) { if (i % 2 === 0) { frag.appendChild(document.createTextNode(part)); } else { var span = document.createElement('span'); span.className = 'userscript-highlight'; span.textContent = part; frag.appendChild(span); } }); node.parentNode.replaceChild(frag, node); } }); } else if (node.nodeType === 1 && node.childNodes) { // element var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT']; if (!skipTags.includes(node.tagName)) { Array.from(node.childNodes).forEach(highlight); } } } highlight(document.body); // Re-highlight on dynamic content var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1 || node.nodeType === 3) highlight(node); }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ', 'i'); if (__m === '*' || __re.test(location.href)) { // Strip utm_, fbclid, gclid, etc. from all links on page (function() { var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content', 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid', 'ref', 'ref_src', 'source', 'medium', 'campaign']; function cleanUrl(url) { try { var u = new URL(url, window.location.origin); var changed = false; trackingParams.forEach(function(p) { if (u.searchParams.has(p)) { u.searchParams.delete(p); changed = true; } }); return changed ? u.toString() : url; } catch (e) { return url; } } function cleanLinks() { document.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } cleanLinks(); var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1) { if (node.tagName === 'A') cleanLinks(); node.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + ', 'i'); if (__m === '*' || __re.test(location.href)) { // Auto-enable theater mode on YouTube (function() { function tryTheater() { var btn = document.querySelector('button[aria-label="Theater mode"], ytd-player #player button[title="Theater mode"]'); if (btn && !btn.classList.contains('activated')) { btn.click(); } } // Try immediately tryTheater(); // Try after navigation (SPA) var lastUrl = location.href; setInterval(function() { if (location.href !== lastUrl) { lastUrl = location.href; setTimeout(tryTheater, 500); } }, 1000); // Also try on player load var observer = new MutationObserver(tryTheater); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ', 'i'); if (__m === '*' || __re.test(location.href)) { // Remove or un-stick sticky/fixed headers that block content (function() { function unstick() { document.querySelectorAll('header, nav, [role="banner"], .header, .navbar, .sticky, .fixed-top, [style*="position: fixed"], [style*="position:sticky"]').forEach(function(el) { if (el.style.position === 'fixed' || el.style.position === 'sticky' || getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') { el.style.position = 'static'; el.style.top = 'auto'; el.style.zIndex = 'auto'; } }); } unstick(); var observer = new MutationObserver(unstick); observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] }); })(); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); })(); 一言成铺(OneWord Store) · Issue #26 · modelstudioai/modelstudioai.github.io · GitHub
Skip to content

一言成铺(OneWord Store) #26

Description

@solareclipse0130

我做了什么

用一句自然语言指令,跑通了一整条电商内容生产流水线:对 Claude Code 说「给『白桃味0糖气泡水』做一套电商内容」,由它编排阿里百炼 CLI(bl),自动产出商品文案 → 商品主图 → 促销海报 → 口播配音 → 9:16 短视频成片全套交付物。核心是把 6 步链路(文案 text chat → 主图 image generate → 海报 image edit → 配音 speech synthesize → 图生视频 video generate → ffmpeg 合成)固化成一个脚本 make-ecom.sh——换个产品名,同一条指令立刻复用,模板化、可复用、不是一次性手工活。

使用的工具

  • OpenWork / 百炼 CLI(bl v0.1.2,全模态:qwen 文本 / qwen-image 图 / cosyvoice-v3 语音 / happyhorse 视频)
  • Skill 名称:bailian-cli、video-storyboard(分镜+图生视频脚本)、video-marketing(短视频剧本/Hook 结构)、happyhorse-prompt-studio(视频提示词)、bailian-model-recommend(选型)
  • 其他:Claude Code 做自然语言编排(双层 AI:Claude 听懂调度 + 百炼模型生成)、ffmpeg 合成成片

效果展示

一句指令产出,output/ 下五类交付物齐全:

  • 📝 文案:5 个含搜索词标题 + 6 条核心卖点 + 30 秒口播脚本(output/text/copy-v*.json)
  • 🖼 商品主图:纯白背景 4K 产品图,作为后续海报/视频的枢纽素材(output/images/)
  • 🏷 促销海报:自动上中文大字标题 +「尝鲜价 ¥9.9」价签(output/posters/)
  • 🔊 口播配音:cosyvoice 合成(output/audio/vo.mp3)
  • 🎬 短视频成片:9:16 竖屏、5 分镜、含配音的 output/final.mp4 与 final-vertical.mp4

▎ 一句话 → 桌面多出一个文件夹,里面是可直接发布的文案+图+海报+配音+短视频。换产品只改 ./make-ecom.sh "新产品名" "调性" 一个变量即可重跑。

踩坑记录

  1. bl text chat 存 JSON 踩坑:用 --output json 重定向存进去的不是合法 JSON。改用 --quiet 直接存纯文本正文(copy.txt),口播脚本再手动摘成 vo.txt。
  2. 视频生成是异步长任务(最大风险):bl video generate 分钟级、易超时。对策:现场前预生成一份备份成品兜底,并可用 --no-wait 拿 task-id 再轮询。
  3. 国内端点代理冲突:dashscope/aliyuncs.com 走直连,挂代理会 code6 抽风——跑前先关代理。
  4. 配音音色 id 易报错:先 bl speech synthesize --list-voices --model cosyvoice-v3-flash 确认音色 id(用了 longyingxiao_v3 龙应笑·清甜推销女)再写进脚本。
  5. ffmpeg 未预装:是第⑥步合成的硬阻塞,开场第一件事 apt install ffmpeg 装上。
  6. 文案审核:避免「最/第一」等绝对化用语,防止敏感词拦截。

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions