
pennydinh-marketing-pipeline-automation
Automated AI content pipeline for research, scriptwriting, video generation, and multi-platform publishing using Claude, OpenAI, and Remotion
- Installs
- 637
- 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 pennydinh-marketing-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 pennydinh-marketing-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.
Ultimate AI Content Pipeline Skill
Skill by ara.so — Marketing Skills collection.
This skill enables AI coding agents to work with the Ultimate AI Content Pipeline, a comprehensive TypeScript-based system that automates the entire content creation workflow: from real-time research and script generation to video rendering and multi-platform publishing.
What This Project Does
The Ultimate AI Content Pipeline is an end-to-end content automation system that:
- Auto-crawls research data from sources like TechCrunch, a16z, Twitter/X, and LinkedIn
- Generates multi-format content using Claude 3 and OpenAI (toplist, POV, case studies, how-to guides)
- Supports multi-language output (English and Vietnamese simultaneously)
- Renders videos and infographics automatically using Remotion
- Optimizes for multiple platforms (Reels, TikTok, Shorts)
- Provides a Next.js interface for managing the entire pipeline
Installation
Prerequisites
# Node.js 18+ and npm/yarn required
node --version # Should be v18 or higher
Setup Steps
# Clone the repository
git clone https://github.com/pennydinh/marketing-pineline-share.git
cd marketing-pineline-share
# Install dependencies
npm install
# or
yarn install
# Copy environment variables template
cp .env.example .env.local
Environment Configuration
Create a .env.local file with the following variables:
# AI API Keys
OPENAI_API_KEY=your_openai_key_here
ANTHROPIC_API_KEY=your_claude_key_here
RAPIDAPI_KEY=your_rapidapi_key_here
# Application Settings
NEXT_PUBLIC_APP_URL=http://localhost:3000
NODE_ENV=development
# Remotion Configuration
REMOTION_COMPOSITION_ID=MainVideo
REMOTION_CODEC=h264
REMOTION_FPS=30
# Database (if applicable)
DATABASE_URL=your_database_url_here
# Optional: Social Media API Keys
FACEBOOK_PAGE_ACCESS_TOKEN=your_token_here
LINKEDIN_ACCESS_TOKEN=your_token_here
Running the Development Server
npm run dev
# or
yarn dev
Access the application at http://localhost:3000
Key Components & API
1. Research Module (Auto-Scan)
The research module crawls and analyzes recent content from multiple sources.
// src/lib/research/crawler.ts
import { ResearchCrawler } from './research/crawler';
interface CrawlerConfig {
sources: string[];
timeRange: '24h' | '7d' | '30d';
keywords: string[];
maxResults?: number;
}
// Initialize crawler
const crawler = new ResearchCrawler({
sources: ['techcrunch', 'a16z', 'twitter', 'linkedin'],
timeRange: '24h',
keywords: ['AI', 'marketing', 'automation'],
maxResults: 50
});
// Execute research
const researchData = await crawler.scan();
// Process and extract insights
const insights = await crawler.extractInsights(researchData);
console.log(insights);
// Output: { trends, keyPoints, statistics, sources }
2. Content Generation with AI
Generate content in multiple formats using Claude or OpenAI.
// src/lib/ai/content-generator.ts
import { ContentGenerator } from './ai/content-generator';
interface ContentConfig {
provider: 'claude' | 'openai';
format: 'toplist' | 'pov' | 'case-study' | 'how-to';
language: 'en' | 'vi' | 'both';
tone: 'expert' | 'friendly' | 'humorous';
research: ResearchData;
}
const generator = new ContentGenerator({
provider: 'claude',
format: 'toplist',
language: 'both',
tone: 'expert',
research: researchData
});
// Generate content
const content = await generator.generate();
console.log(content);
// Output: {
// en: { title, body, metadata },
// vi: { title, body, metadata }
// }
3. Video Rendering with Remotion
Automatically render videos from generated content.
// src/lib/video/renderer.ts
import { bundle } from '@remotion/bundler';
import { renderMedia, selectComposition } from '@remotion/renderer';
import path from 'path';
interface VideoConfig {
content: GeneratedContent;
format: 'reels' | 'tiktok' | 'shorts';
duration?: number;
}
async function renderVideo(config: VideoConfig) {
const compositionId = 'ContentVideo';
// Bundle the Remotion project
const bundled = await bundle({
entryPoint: path.resolve('./src/remotion/index.ts'),
webpackOverride: (config) => config,
});
// Get composition
const composition = await selectComposition({
serveUrl: bundled,
id: compositionId,
inputProps: {
title: config.content.title,
body: config.content.body,
format: config.format,
},
});
// Render video
const outputPath = path.join(
process.cwd(),
'out',
`video-${Date.now()}.mp4`
);
await renderMedia({
composition,
serveUrl: bundled,
codec: 'h264',
outputLocation: outputPath,
inputProps: composition.defaultProps,
});
return outputPath;
}
// Usage
const videoPath = await renderVideo({
content: generatedContent,
format: 'reels',
duration: 30
});
4. Complete Pipeline Workflow
Orchestrate the entire content creation pipeline.
// src/lib/pipeline/orchestrator.ts
import { Pipeline } from './pipeline/orchestrator';
interface PipelineConfig {
keyword: string;
contentFormat: 'toplist' | 'pov' | 'case-study' | 'how-to';
languages: ('en' | 'vi')[];
generateVideo: boolean;
videoFormat?: 'reels' | 'tiktok' | 'shorts';
autoPublish?: boolean;
}
async function runPipeline(config: PipelineConfig) {
const pipeline = new Pipeline();
// Step 1: Research
console.log('🔍 Starting research phase...');
const research = await pipeline.research({
keyword: config.keyword,
timeRange: '24h',
sources: ['techcrunch', 'a16z', 'twitter']
});
// Step 2: Generate Content
console.log('✍️ Generating content...');
const content = await pipeline.generateContent({
research,
format: config.contentFormat,
languages: config.languages,
tone: 'expert'
});
// Step 3: Render Video (if enabled)
let videoPath = null;
if (config.generateVideo) {
console.log('🎬 Rendering video...');
videoPath = await pipeline.renderVideo({
content: content.en,
format: config.videoFormat || 'reels'
});
}
// Step 4: Publish (if enabled)
if (config.autoPublish) {
console.log('📤 Publishing content...');
await pipeline.publish({
content,
videoPath,
platforms: ['facebook', 'linkedin']
});
}
return {
research,
content,
videoPath,
status: 'completed'
};
}
// Execute pipeline
const result = await runPipeline({
keyword: 'AI marketing automation',
contentFormat: 'toplist',
languages: ['en', 'vi'],
generateVideo: true,
videoFormat: 'reels',
autoPublish: false
});
API Routes (Next.js)
Trigger Pipeline via API
// pages/api/pipeline/run.ts
import type { NextApiRequest, NextApiResponse } from 'next';
import { runPipeline } from '@/lib/pipeline/orchestrator';
export default async function handler(
req: NextApiRequest,
res: NextApiResponse
) {
if (req.method !== 'POST') {
return res.status(405).json({ error: 'Method not allowed' });
}
try {
const { keyword, format, languages, generateVideo } = req.body;
const result = await runPipeline({
keyword,
contentFormat: format,
languages: languages || ['en'],
generateVideo: generateVideo ?? true,
autoPublish: false
});
res.status(200).json(result);
} catch (error) {
console.error('Pipeline error:', error);
res.status(500).json({
error: 'Pipeline execution failed',
message: error.message
});
}
}
Usage with curl
curl -X POST http://localhost:3000/api/pipeline/run \
-H "Content-Type: application/json" \
-d '{
"keyword": "AI marketing tools",
"format": "toplist",
"languages": ["en", "vi"],
"generateVideo": true
}'
Common Patterns
Pattern 1: Batch Content Generation
// Generate multiple content pieces in parallel
async function batchGenerate(keywords: string[]) {
const results = await Promise.all(
keywords.map(keyword =>
runPipeline({
keyword,
contentFormat: 'toplist',
languages: ['en'],
generateVideo: false
})
)
);
return results;
}
const batch = await batchGenerate([
'AI tools 2026',
'Marketing automation',
'Content creation AI'
]);
Pattern 2: Custom Research Sources
// Add custom research sources
import { ResearchCrawler } from './research/crawler';
const customCrawler = new ResearchCrawler({
sources: ['techcrunch', 'a16z'],
timeRange: '24h',
keywords: ['AI'],
customSources: [
{
name: 'CustomBlog',
url: 'https://example.com/feed',
type: 'rss',
parser: (data) => {
// Custom parsing logic
return data.items.map(item => ({
title: item.title,
content: item.content,
date: item.pubDate
}));
}
}
]
});
Pattern 3: Video Template Customization
// src/remotion/compositions/CustomTemplate.tsx
import { AbsoluteFill, useCurrentFrame, interpolate } from 'remotion';
export const CustomTemplate: React.FC<{
title: string;
body: string;
}> = ({ title, body }) => {
const frame = useCurrentFrame();
const opacity = interpolate(frame, [0, 30], [0, 1], {
extrapolateRight: 'clamp',
});
return (
<AbsoluteFill
style={{
backgroundColor: '#000',
justifyContent: 'center',
alignItems: 'center',
opacity,
}}
>
<h1 style={{ color: 'white', fontSize: 60 }}>{title}</h1>
<p style={{ color: 'white', fontSize: 30 }}>{body}</p>
</AbsoluteFill>
);
};
Troubleshooting
Issue: API Rate Limiting
// Implement retry logic with exponential backoff
async function retryWithBackoff<T>(
fn: () => Promise<T>,
maxRetries = 3
): Promise<T> {
for (let i = 0; i < maxRetries; i++) {
try {
return await fn();
} catch (error) {
if (i === maxRetries - 1) throw error;
const delay = Math.pow(2, i) * 1000;
console.log(`Retry ${i + 1}/${maxRetries} after ${delay}ms`);
await new Promise(resolve => setTimeout(resolve, delay));
}
}
throw new Error('Max retries reached');
}
// Usage
const content = await retryWithBackoff(() =>
generator.generate()
);
Issue: Video Rendering Timeout
// Adjust timeout settings
await renderMedia({
composition,
serveUrl: bundled,
codec: 'h264',
outputLocation: outputPath,
timeoutInMilliseconds: 120000, // 2 minutes
chromiumOptions: {
headless: true,
gl: 'swiftshader', // Use software rendering if GPU issues
},
});
Issue: Memory Issues with Large Content
// Process content in chunks
async function processLargeContent(content: string[]) {
const chunkSize = 10;
const results = [];
for (let i = 0; i < content.length; i += chunkSize) {
const chunk = content.slice(i, i + chunkSize);
const processed = await Promise.all(
chunk.map(item => generator.generate(item))
);
results.push(...processed);
// Clear memory between chunks
if (global.gc) global.gc();
}
return results;
}
Issue: Missing Environment Variables
// Validate environment variables at startup
function validateEnv() {
const required = [
'OPENAI_API_KEY',
'ANTHROPIC_API_KEY',
'RAPIDAPI_KEY'
];
const missing = required.filter(key => !process.env[key]);
if (missing.length > 0) {
throw new Error(
`Missing required environment variables: ${missing.join(', ')}\n` +
'Please check your .env.local file'
);
}
}
validateEnv();
Building for Production
# Build the Next.js application
npm run build
# Start production server
npm run start
# Build Remotion video renderer
npm run remotion:build
# Render video in production
npm run remotion:render
Testing the Pipeline
// tests/pipeline.test.ts
import { runPipeline } from '@/lib/pipeline/orchestrator';
describe('Content Pipeline', () => {
it('should generate content from keyword', async () => {
const result = await runPipeline({
keyword: 'test keyword',
contentFormat: 'toplist',
languages: ['en'],
generateVideo: false,
autoPublish: false
});
expect(result.content).toBeDefined();
expect(result.content.en.title).toBeTruthy();
}, 30000); // 30s timeout for AI generation
});
This skill provides comprehensive guidance for working with the Ultimate AI Content Pipeline, covering installation, configuration, key APIs, common patterns, and troubleshooting for automated content creation workflows.
FAQ
What does the pennydinh-marketing-pipeline-automation skill do?
Automated AI content pipeline for research, scriptwriting, video generation, and multi-platform publishing using Claude, OpenAI, and Remotion
How do I install pennydinh-marketing-pipeline-automation?
Run npx skills add https://github.com/reason-machines/marketing-skills --skill pennydinh-marketing-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/pennydinh-marketing-pipeline-automation/ (personal) or .claude/skills/pennydinh-marketing-pipeline-automation/ (project).
Which AI agents can use pennydinh-marketing-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 pennydinh-marketing-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 pennydinh-marketing-pipeline-automation?
It is published by reason-machines in reason-machines/marketing-skills. It has 637 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 marketing & seo skills
reddit-automation
flowkit-labs/skills
Find Reddit threads where people are genuinely asking for what you offer, then draft short, genuinely helpful replies — disclosing your affiliation honestly and naming your product only when it truly answers the question. Two moves: discovery — scan the right subreddits for real needs (recommendation asks, expressed pain, competitor mentions) and rank the few threads where you can actually help; drafting — write from real experience, respect each community's self-promo rules, and keep a human in the loop to review and post. This markets on Reddit the honest way: contribute value, disclose who you are, never astroturf. Distilled from the playbook behind doany.ai's Reddit agent. Triggers on "find reddit opportunities", "reddit marketing", "reddit automation", "reply on reddit for my product", "reddit community engagement", "reddit lead gen", or any ask to turn Reddit threads into genuine, disclosed marketing replies.
twitter-automation
101-skills/superpowers
Automate Twitter/X with posting, engagement, and user management via inference.sh CLI. Apps: x/post-tweet, x/post-create (with media), x/post-like, x/post-retweet, x/dm-send, x/user-follow. Capabilities: post tweets, schedule content, like posts, retweet, send DMs, follow users, get profiles. Use for: social media automation, content scheduling, engagement bots, audience growth, X API. Triggers: twitter api, x api, tweet automation, post to twitter, twitter bot, social media automation, x automation, tweet scheduler, twitter integration, post tweet, twitter post, x post, send tweet
twitter-automation
magentosh/superpowers
Automate Twitter/X with posting, engagement, and user management via inference.sh CLI. Apps: x/post-tweet, x/post-create (with media), x/post-like, x/post-retweet, x/dm-send, x/user-follow. Capabilities: post tweets, schedule content, like posts, retweet, send DMs, follow users, get profiles. Use for: social media automation, content scheduling, engagement bots, audience growth, X API. Triggers: twitter api, x api, tweet automation, post to twitter, twitter bot, social media automation, x automation, tweet scheduler, twitter integration, post tweet, twitter post, x post, send tweet
twitter-automation
qu-skills/superpowers
Automate Twitter/X with posting, engagement, and user management via inference.sh CLI. Apps: x/post-tweet, x/post-create (with media), x/post-like, x/post-retweet, x/dm-send, x/user-follow. Capabilities: post tweets, schedule content, like posts, retweet, send DMs, follow users, get profiles. Use for: social media automation, content scheduling, engagement bots, audience growth, X API. Triggers: twitter api, x api, tweet automation, post to twitter, twitter bot, social media automation, x automation, tweet scheduler, twitter integration, post tweet, twitter post, x post, send tweet
product-launch-video
heygen-com/hyperframes
Turn a product or marketing URL, pasted script, or brief into a product launch / promo video — SaaS promos, feature reveals, product demos, app and company launches. Use when the user wants to market, launch, promote, or reveal a product; the default for any commercial URL. Site tours / showcases of a website route here too — the brief carries the show-it-as-is intent. Unclear → /hyperframes.
twitter-automation
skills-shell/superpowers
Automate Twitter/X with posting, engagement, and user management via inference.sh CLI. Apps: x/post-tweet, x/post-create (with media), x/post-like, x/post-retweet, x/dm-send, x/user-follow. Capabilities: post tweets, schedule content, like posts, retweet, send DMs, follow users, get profiles. Use for: social media automation, content scheduling, engagement bots, audience growth, X API. Triggers: twitter api, x api, tweet automation, post to twitter, twitter bot, social media automation, x automation, tweet scheduler, twitter integration, post tweet, twitter post, x post, send tweet