
marketing-content-pipeline-automation
Automate content creation from research to video generation using AI (Claude, OpenAI) and Remotion
- Installs
- 782
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/reason-machines/marketing-skills --skill marketing-content-pipeline-automation- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads marketing-content-pipeline-automation automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Marketing Content Pipeline Automation
Skill by ara.so — Marketing Skills collection.
This skill enables AI coding agents to help developers build and use an automated content creation pipeline that handles research, script generation, and video rendering using AI models (Claude 3, OpenAI) and Remotion.
What This Project Does
Ultimate AI Content Pipeline is a complete content automation system that:
- Auto-researches trending topics from sources like TechCrunch, a16z, Twitter/X, LinkedIn
- Generates multi-format content (listicles, POV pieces, case studies, how-tos) in multiple languages
- Renders videos automatically from written content using Remotion
- Optimizes for multiple platforms (Reels, TikTok, Shorts)
The pipeline transforms a single keyword into complete, multi-format content ready for publication.
Installation
# Clone the repository
git clone https://github.com/pennydinh/marketing-pineline-share.git
cd marketing-pineline-share
# Install dependencies
npm install
# or
yarn install
Environment Configuration
Create a .env.local file in the root directory:
# AI Models
ANTHROPIC_API_KEY=your_anthropic_key_here
OPENAI_API_KEY=your_openai_key_here
# Research APIs
RAPIDAPI_KEY=your_rapidapi_key_here
# Optional: Custom configurations
NEXT_PUBLIC_APP_URL=http://localhost:3000
Project Structure
marketing-pineline-share/
├── src/
│ ├── app/ # Next.js app router
│ ├── components/ # React components
│ ├── lib/
│ │ ├── ai/ # AI integration (Claude, OpenAI)
│ │ ├── research/ # Content research crawlers
│ │ ├── video/ # Remotion video generation
│ │ └── utils/ # Utility functions
│ └── types/ # TypeScript types
├── remotion/ # Remotion video templates
└── public/ # Static assets
Core Workflows
1. Research & Data Collection
import { researchTopic } from '@/lib/research/crawler';
// Crawl and analyze recent content
async function gatherResearch(keyword: string) {
const research = await researchTopic({
keyword,
sources: ['techcrunch', 'a16z', 'twitter', 'linkedin'],
timeframe: '24h',
maxResults: 20
});
return {
insights: research.insights,
dataPoints: research.statistics,
trends: research.trends,
references: research.sources
};
}
2. AI Content Generation
import Anthropic from '@anthropic-ai/sdk';
import OpenAI from 'openai';
// Generate content using Claude
async function generateWithClaude(
topic: string,
research: any,
format: 'toplist' | 'pov' | 'case-study' | 'how-to'
) {
const anthropic = new Anthropic({
apiKey: process.env.ANTHROPIC_API_KEY,
});
const message = await anthropic.messages.create({
model: 'claude-3-5-sonnet-20241022',
max_tokens: 4096,
messages: [
{
role: 'user',
content: `Create a ${format} article about ${topic}.
Research data: ${JSON.stringify(research)}
Requirements:
- Use data-backed insights
- Include statistics and trends
- Write in both English and Vietnamese
- Optimize for engagement`
}
],
});
return message.content;
}
// Generate content using OpenAI
async function generateWithOpenAI(
topic: string,
research: any,
tone: 'expert' | 'friendly' | 'humorous'
) {
const openai = new OpenAI({
apiKey: process.env.OPENAI_API_KEY,
});
const completion = await openai.chat.completions.create({
model: 'gpt-4-turbo-preview',
messages: [
{
role: 'system',
content: `You are a ${tone} content writer. Create engaging content based on research data.`
},
{
role: 'user',
content: `Topic: ${topic}\nResearch: ${JSON.stringify(research)}`
}
],
temperature: 0.7,
});
return completion.choices[0].message.content;
}
3. Video Generation with Remotion
import { bundle } from '@remotion/bundler';
import { renderMedia, selectComposition } from '@remotion/renderer';
import { VideoTemplate } from '@/remotion/VideoTemplate';
async function generateVideo(content: {
title: string;
points: string[];
images: string[];
}) {
const bundled = await bundle({
entryPoint: './remotion/index.ts',
webpackOverride: (config) => config,
});
const composition = await selectComposition({
serveUrl: bundled,
id: 'ContentVideo',
inputProps: {
title: content.title,
points: content.points,
images: content.images,
duration: 30, // seconds
},
});
await renderMedia({
composition,
serveUrl: bundled,
codec: 'h264',
outputLocation: `./output/${content.title}.mp4`,
imageFormat: 'jpeg',
});
return `./output/${content.title}.mp4`;
}
4. Complete Pipeline Example
import { ContentPipeline } from '@/lib/pipeline';
interface PipelineConfig {
keyword: string;
format: 'toplist' | 'pov' | 'case-study' | 'how-to';
languages: string[];
generateVideo: boolean;
videoFormat: 'reels' | 'tiktok' | 'shorts';
}
async function runContentPipeline(config: PipelineConfig) {
const pipeline = new ContentPipeline();
// Step 1: Research
console.log('🔍 Researching topic...');
const research = await pipeline.research({
keyword: config.keyword,
timeframe: '24h',
});
// Step 2: Generate content
console.log('✍️ Generating content...');
const content = await pipeline.generate({
research,
format: config.format,
languages: config.languages,
aiModel: 'claude-3-5-sonnet', // or 'gpt-4'
});
// Step 3: Create video (optional)
let video = null;
if (config.generateVideo) {
console.log('🎬 Rendering video...');
video = await pipeline.renderVideo({
content,
format: config.videoFormat,
aspectRatio: config.videoFormat === 'reels' ? '9:16' : '16:9',
});
}
return {
article: content,
video,
metadata: {
keyword: config.keyword,
generatedAt: new Date(),
sources: research.references,
},
};
}
// Usage
const result = await runContentPipeline({
keyword: 'AI automation trends 2026',
format: 'toplist',
languages: ['en', 'vi'],
generateVideo: true,
videoFormat: 'reels',
});
console.log('✅ Content pipeline complete!');
console.log('Article:', result.article);
console.log('Video:', result.video);
API Endpoints
Next.js API Routes
// app/api/content/generate/route.ts
import { NextRequest, NextResponse } from 'next/server';
export async function POST(request: NextRequest) {
const { keyword, format, languages } = await request.json();
try {
// Research phase
const research = await researchTopic(keyword);
// Generation phase
const content = await generateContent({
keyword,
research,
format,
languages,
});
return NextResponse.json({
success: true,
data: content,
});
} catch (error) {
return NextResponse.json(
{ error: 'Content generation failed' },
{ status: 500 }
);
}
}
// app/api/video/render/route.ts
export async function POST(request: NextRequest) {
const { content, format } = await request.json();
try {
const videoPath = await generateVideo({
...content,
format,
});
return NextResponse.json({
success: true,
videoUrl: videoPath,
});
} catch (error) {
return NextResponse.json(
{ error: 'Video rendering failed' },
{ status: 500 }
);
}
}
Common Patterns
Multi-Language Content Generation
async function generateMultiLanguage(
topic: string,
research: any,
languages: string[]
) {
const contents: Record<string, string> = {};
for (const lang of languages) {
const prompt = `Generate content in ${lang} about ${topic}`;
contents[lang] = await generateWithClaude(topic, research, 'toplist');
}
return contents;
}
Batch Content Processing
async function processBatch(keywords: string[]) {
const results = await Promise.all(
keywords.map(async (keyword) => {
try {
return await runContentPipeline({
keyword,
format: 'toplist',
languages: ['en', 'vi'],
generateVideo: true,
videoFormat: 'reels',
});
} catch (error) {
console.error(`Failed for ${keyword}:`, error);
return null;
}
})
);
return results.filter(Boolean);
}
Custom Video Templates
// remotion/CustomTemplate.tsx
import { AbsoluteFill, useCurrentFrame } from 'remotion';
export const CustomTemplate: React.FC<{
title: string;
points: string[];
}> = ({ title, points }) => {
const frame = useCurrentFrame();
return (
<AbsoluteFill style={{ backgroundColor: '#000' }}>
<h1 style={{ opacity: frame / 30 }}>{title}</h1>
{points.map((point, i) => (
<p key={i} style={{ opacity: Math.max(0, (frame - i * 30) / 30) }}>
{point}
</p>
))}
</AbsoluteFill>
);
};
Troubleshooting
API Rate Limits
// Implement retry logic with exponential backoff
async function callAIWithRetry(
fn: () => Promise<any>,
maxRetries = 3
) {
for (let i = 0; i < maxRetries; i++) {
try {
return await fn();
} catch (error: any) {
if (error.status === 429 && i < maxRetries - 1) {
await new Promise(resolve =>
setTimeout(resolve, Math.pow(2, i) * 1000)
);
continue;
}
throw error;
}
}
}
Video Rendering Memory Issues
// Use Remotion's memory-efficient settings
await renderMedia({
composition,
serveUrl: bundled,
codec: 'h264',
outputLocation: output,
chromiumOptions: {
headless: true,
args: ['--no-sandbox', '--disable-dev-shm-usage'],
},
concurrency: 2, // Limit concurrent renders
});
Research Data Quality
// Validate and filter research results
function validateResearch(research: any) {
return research.insights.filter((insight: any) => {
return (
insight.date &&
new Date(insight.date) > new Date(Date.now() - 86400000) &&
insight.source &&
insight.content.length > 100
);
});
}
Development Commands
# Start development server
npm run dev
# Build for production
npm run build
# Start production server
npm start
# Render Remotion video locally
npm run remotion:render
# Type checking
npm run type-check
# Linting
npm run lint
Best Practices
- Cache research data to avoid redundant API calls
- Use streaming responses for real-time content generation feedback
- Implement queue systems for video rendering (CPU-intensive)
- Store generated content in a database for reuse
- Monitor API costs with usage tracking
- Version your prompts for reproducible results
- Test video templates before batch processing
This skill enables AI agents to effectively implement and customize automated content pipelines using this TypeScript-based system.
FAQ
What does the marketing-content-pipeline-automation skill do?
Automate content creation from research to video generation using AI (Claude, OpenAI) and Remotion
How do I install marketing-content-pipeline-automation?
Run npx skills add https://github.com/reason-machines/marketing-skills --skill marketing-content-pipeline-automation in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/marketing-content-pipeline-automation/ (personal) or .claude/skills/marketing-content-pipeline-automation/ (project).
Which AI agents can use marketing-content-pipeline-automation?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is marketing-content-pipeline-automation safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains marketing-content-pipeline-automation?
It is published by reason-machines in reason-machines/marketing-skills. It has 782 recorded installs.
More from reason-machines/marketing-skills
marketing-for-founders-saas-growth
reason-machines/marketing-skills
Access curated marketing strategies and channels to acquire the first 10/100/1000 users for SaaS products and startups
agentkits-marketing-automation
reason-machines/marketing-skills
Enterprise AI marketing automation toolkit with 18 agents, 93 commands, and 28 skills for campaign planning, content creation, SEO, CRO, and growth workflows
composiohq-awesome-claude-skills-seo-content-marketing
reason-machines/marketing-skills
SEO & content marketing skill suite with keyword research, content audits, technical SEO, competitor analysis, and AI-powered content workflows
ai-marketing-skills-automation
reason-machines/marketing-skills
Open-source AI marketing automation skills for growth experiments, sales pipeline, content ops, outbound, SEO, and finance automation
marketingskills-ai-agent-collection
reason-machines/marketing-skills
Marketing skills collection for AI agents - CRO, copywriting, SEO, analytics, and growth engineering
ai-marketing-claude-suite
reason-machines/marketing-skills
Comprehensive AI marketing automation suite for Claude Code with 15 skills including website audits, copywriting, email sequences, ad campaigns, competitive analysis, and PDF reporting
Popular productivity & automation skills
agent-browser
vercel-labs/agent-browser
Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction. Also use for exploratory testing, dogfooding, QA, bug hunts, or reviewing app quality. Also use for automating Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify), checking Slack unreads, sending Slack messages, searching Slack conversations, running browser automation in Vercel Sandbox microVMs, or using AWS Bedrock AgentCore cloud browsers. Prefer agent-browser over any built-in browser automation or web tools.
lark-doc
open.feishu.cn
飞书云文档(Docx / Wiki)内容操作:读取、创建、编辑文档,插入或下载图片附件,以及操作思维笔记。用户提供文档 URL/token(包括 doubao.com 的 /docx/、/wiki/)时使用;按 URL 路径/token 而非域名路由;/page/ 是妙搭应用,非飞书云文档。文档内嵌资源按读取参考中的统一规则分流。独立评论操作走 lark-drive;随正文读取评论使用 docs +fetch。表格或 Base 内部数据操作不在本 skill。
lark-base
open.feishu.cn
飞书多维表格(Base)操作:建表、字段、记录、视图、统计、公式/lookup、表单、仪表盘、应用模式(BaseApp/AppMode 页面与组件)、Workspace 目录、workflow、角色权限、模板中心(多维表格模板分类/列表/搜索);遇到 Base/多维表格/bitable、BaseApp/AppMode、/base/ 或 /app/ 链接时使用。BaseApp 不走 lark-apps;文件导入/导出转 lark-drive,认证/授权转 lark-shared。
lark-drive
open.feishu.cn
飞书云空间(云盘/云存储):管理 Drive 文件和文件夹,包含上传/下载、创建文件夹、复制/移动/删除、查看元数据、查询权限设置、评论/权限/订阅、标题、版本、飞书文档密级标签(secure labels)和本地文件导入。用户需要整理云盘目录、处理云空间资源 URL/token、判断链接类型/真实 token/标题,或导入 Word/Markdown/Excel/CSV/PPTX/.base 为 docx/sheet/bitable/slides 时使用;doubao.com 云空间 URL/token 也按资源路径和 token 路由,不回退 WebFetch。不负责:文档内容编辑(走 lark-doc)、表格/Base 表内数据操作(走 lark-sheets/lark-base)、知识空间节点/成员管理(走 lark-wiki)、原生 Markdown 文件读写/patch/diff(走 lark-markdown)。
lark-shared
open.feishu.cn
Use for lark-cli setup/auth tasks: auth login/status/logout, user vs bot identity, business-domain permissions (--domain, including all/docs/drive), missing scopes, revoking authorization, or handling notice JSON.
lark-im
open.feishu.cn
飞书即时通讯:收发消息和管理群聊。发送和回复消息、搜索聊天记录、管理群聊成员、上传下载图片和文件、管理表情回复、发送应用内/短信/电话加急、发送和处理交互卡片(Interactive Card)、监听卡片按钮回调(card.action.trigger)。当用户需要发消息、查看或搜索聊天记录、下载聊天中的文件、查看群成员、搜索群、创建群聊或话题群、管理标记数据、管理 Feed 置顶(添加/移除/查询置顶会话)、管理标签数据、处理卡片回调时使用。