
marketing-pipeline-share-automation
Automated AI content pipeline for research, scriptwriting, posting, and video generation using Claude, OpenAI, and Remotion
- Installs
- 754
- 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-pipeline-share-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-pipeline-share-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 Pipeline Share Automation
Skill by ara.so — Marketing Skills collection.
This skill enables AI coding agents to work with the Ultimate AI Content Pipeline - an end-to-end automated content generation system that handles research, scriptwriting, content creation, and video generation using Claude 3, OpenAI, and Remotion.
What This Project Does
Marketing Pipeline Share is a comprehensive TypeScript-based automation system that:
- Auto-scans research: Crawls real-time data from TechCrunch, a16z, Twitter/X, LinkedIn within 24 hours
- Generates multi-format content: Creates articles in various formats (top lists, POV, case studies, how-to) using Claude/OpenAI
- Multi-language support: Automatically produces content in both English and Vietnamese
- Auto-renders videos: Converts written content into infographics and short-form videos using Remotion
- Platform optimization: Exports videos optimized for Reels, TikTok, and Shorts
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
# or
pnpm install
# Set up environment variables
cp .env.example .env
Required Environment Variables
# AI Provider API Keys
OPENAI_API_KEY=your_openai_key
ANTHROPIC_API_KEY=your_claude_key
RAPIDAPI_KEY=your_rapidapi_key
# Database (if applicable)
DATABASE_URL=your_database_url
# Next.js Configuration
NEXT_PUBLIC_APP_URL=http://localhost:3000
Running the Application
# Development mode
npm run dev
# Production build
npm run build
npm run start
# Video rendering (Remotion)
npm run render
Core Architecture
Project Structure
marketing-pineline-share/
├── src/
│ ├── app/ # Next.js app directory
│ ├── components/ # React components
│ ├── lib/ # Core libraries
│ │ ├── ai/ # AI integration (Claude, OpenAI)
│ │ ├── crawler/ # Research crawling logic
│ │ ├── content/ # Content generation
│ │ └── video/ # Remotion video rendering
│ ├── types/ # TypeScript types
│ └── utils/ # Utility functions
├── remotion/ # Video templates
└── public/ # Static assets
Key Features & Usage
1. Research Crawling
import { crawlResearch } from '@/lib/crawler';
// Crawl latest news from multiple sources
async function gatherResearch(keyword: string) {
const sources = ['techcrunch', 'a16z', 'twitter', 'linkedin'];
const research = await crawlResearch({
keyword,
sources,
timeRange: '24h',
maxResults: 50
});
return research;
}
// Example usage
const insights = await gatherResearch('AI marketing automation');
console.log(insights.articles);
console.log(insights.trendingTopics);
2. Content Generation with Claude
import Anthropic from '@anthropic-ai/sdk';
const anthropic = new Anthropic({
apiKey: process.env.ANTHROPIC_API_KEY,
});
async function generateContent(
topic: string,
format: 'toplist' | 'pov' | 'case-study' | 'how-to',
language: 'en' | 'vi'
) {
const prompts = {
toplist: `Create a top 10 list about ${topic} with data-backed insights`,
pov: `Write a thought-provoking point of view article about ${topic}`,
'case-study': `Develop a detailed case study analyzing ${topic}`,
'how-to': `Create a comprehensive how-to guide for ${topic}`
};
const message = await anthropic.messages.create({
model: 'claude-3-5-sonnet-20241022',
max_tokens: 4096,
messages: [{
role: 'user',
content: `${prompts[format]}. Language: ${language}. Include recent data and trends.`
}]
});
return message.content[0].text;
}
// Generate bilingual content
const contentEN = await generateContent('AI content automation', 'toplist', 'en');
const contentVI = await generateContent('AI content automation', 'toplist', 'vi');
3. OpenAI Integration
import OpenAI from 'openai';
const openai = new OpenAI({
apiKey: process.env.OPENAI_API_KEY,
});
async function generateWithGPT(prompt: string, tone: string) {
const toneInstructions = {
expert: 'Use professional, authoritative language with industry terminology',
friendly: 'Write in a conversational, approachable tone',
humorous: 'Include light humor and engaging storytelling'
};
const completion = await openai.chat.completions.create({
model: 'gpt-4-turbo-preview',
messages: [
{
role: 'system',
content: `You are a marketing content expert. ${toneInstructions[tone]}`
},
{
role: 'user',
content: prompt
}
],
temperature: 0.7,
});
return completion.choices[0].message.content;
}
4. Video Generation with Remotion
// remotion/VideoComposition.tsx
import { Composition } from 'remotion';
import { MarketingVideo } from './templates/MarketingVideo';
export const RemotionRoot: React.FC = () => {
return (
<>
<Composition
id="MarketingVideo"
component={MarketingVideo}
durationInFrames={300}
fps={30}
width={1080}
height={1920}
defaultProps={{
title: 'AI Marketing Trends',
content: [],
branding: {}
}}
/>
</>
);
};
// Render video programmatically
import { bundle } from '@remotion/bundler';
import { renderMedia, selectComposition } from '@remotion/renderer';
async function renderContentVideo(
contentData: { title: string; points: string[] }
) {
const bundleLocation = await bundle({
entryPoint: './remotion/index.ts',
webpackOverride: (config) => config,
});
const composition = await selectComposition({
serveUrl: bundleLocation,
id: 'MarketingVideo',
inputProps: contentData,
});
await renderMedia({
composition,
serveUrl: bundleLocation,
codec: 'h264',
outputLocation: `out/${contentData.title}.mp4`,
});
}
5. Complete Pipeline Workflow
import { crawlResearch } from '@/lib/crawler';
import { generateContent } from '@/lib/ai/claude';
import { renderContentVideo } from '@/lib/video/remotion';
import { publishToSocial } from '@/lib/social/publisher';
async function runContentPipeline(keyword: string) {
try {
// Step 1: Research
console.log('🔍 Gathering research...');
const research = await crawlResearch({
keyword,
sources: ['techcrunch', 'twitter'],
timeRange: '24h'
});
// Step 2: Generate content
console.log('✍️ Generating content...');
const content = await generateContent(
keyword,
'toplist',
'en'
);
// Step 3: Create video
console.log('🎬 Rendering video...');
const videoData = {
title: keyword,
points: extractKeyPoints(content),
insights: research.trendingTopics.slice(0, 5)
};
await renderContentVideo(videoData);
// Step 4: Publish
console.log('📤 Publishing...');
await publishToSocial({
content,
video: `out/${keyword}.mp4`,
platforms: ['facebook', 'linkedin', 'twitter']
});
return {
success: true,
content,
videoPath: `out/${keyword}.mp4`
};
} catch (error) {
console.error('Pipeline error:', error);
throw error;
}
}
// Helper function
function extractKeyPoints(content: string): string[] {
// Parse markdown or structured content
const lines = content.split('\n');
return lines
.filter(line => line.match(/^\d+\.|^-|^•/))
.map(line => line.replace(/^\d+\.\s*|^-\s*|^•\s*/, ''))
.slice(0, 10);
}
API Integration Patterns
RapidAPI for Data Enrichment
import axios from 'axios';
async function enrichWithRapidAPI(topic: string) {
const options = {
method: 'GET',
url: 'https://api.rapidapi.com/search',
params: { q: topic, limit: '10' },
headers: {
'X-RapidAPI-Key': process.env.RAPIDAPI_KEY,
'X-RapidAPI-Host': 'your-api-host.rapidapi.com'
}
};
try {
const response = await axios.request(options);
return response.data;
} catch (error) {
console.error('RapidAPI error:', error);
return null;
}
}
Configuration
Content Generation Config
// src/config/content.ts
export const contentConfig = {
formats: ['toplist', 'pov', 'case-study', 'how-to'],
languages: ['en', 'vi'],
tones: ['expert', 'friendly', 'humorous'],
ai: {
claude: {
model: 'claude-3-5-sonnet-20241022',
maxTokens: 4096,
temperature: 0.7
},
openai: {
model: 'gpt-4-turbo-preview',
maxTokens: 3000,
temperature: 0.7
}
},
video: {
defaultFps: 30,
platforms: {
reels: { width: 1080, height: 1920 },
tiktok: { width: 1080, height: 1920 },
youtube: { width: 1920, height: 1080 }
}
}
};
Crawler Configuration
// src/config/crawler.ts
export const crawlerConfig = {
sources: {
techcrunch: {
baseUrl: 'https://techcrunch.com',
selectors: {
article: '.post-block',
title: '.post-block__title',
content: '.article-content'
}
},
twitter: {
apiVersion: 'v2',
maxResults: 100
}
},
rateLimits: {
requestsPerMinute: 30,
concurrent: 5
}
};
Common Patterns
Batch Content Generation
async function batchGenerateContent(keywords: string[]) {
const results = await Promise.allSettled(
keywords.map(async (keyword) => {
const content = await generateContent(keyword, 'toplist', 'en');
const contentVI = await generateContent(keyword, 'toplist', 'vi');
return {
keyword,
en: content,
vi: contentVI
};
})
);
return results
.filter(r => r.status === 'fulfilled')
.map(r => r.value);
}
Error Handling & Retries
async function withRetry<T>(
fn: () => Promise<T>,
maxRetries = 3,
delay = 1000
): Promise<T> {
for (let i = 0; i < maxRetries; i++) {
try {
return await fn();
} catch (error) {
if (i === maxRetries - 1) throw error;
await new Promise(resolve => setTimeout(resolve, delay * (i + 1)));
}
}
throw new Error('Max retries exceeded');
}
// Usage
const content = await withRetry(() =>
generateContent('AI trends', 'toplist', 'en')
);
Scheduling Content
import cron from 'node-cron';
// Schedule daily content generation at 9 AM
cron.schedule('0 9 * * *', async () => {
const keywords = ['AI marketing', 'content automation', 'video trends'];
for (const keyword of keywords) {
await runContentPipeline(keyword);
}
});
Troubleshooting
API Rate Limits
// Implement queue system
import PQueue from 'p-queue';
const queue = new PQueue({
concurrency: 2,
interval: 60000, // 1 minute
intervalCap: 30 // 30 requests per minute
});
async function queuedGenerate(prompt: string) {
return queue.add(() => generateContent(prompt, 'toplist', 'en'));
}
Video Rendering Memory Issues
# Increase Node.js memory limit
NODE_OPTIONS="--max-old-space-size=4096" npm run render
Claude API Errors
async function generateContentSafe(topic: string) {
try {
return await generateContent(topic, 'toplist', 'en');
} catch (error) {
if (error.status === 529) {
console.log('API overloaded, waiting...');
await new Promise(resolve => setTimeout(resolve, 5000));
return generateContent(topic, 'toplist', 'en');
}
throw error;
}
}
Missing Environment Variables
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(', ')}`
);
}
}
// Call at startup
validateEnv();
Advanced Usage
Custom Video Templates
// remotion/templates/CustomTemplate.tsx
import { AbsoluteFill, useCurrentFrame, interpolate } from 'remotion';
export const CustomMarketingVideo: React.FC<{
title: string;
points: string[];
}> = ({ title, points }) => {
const frame = useCurrentFrame();
const opacity = interpolate(frame, [0, 30], [0, 1], {
extrapolateRight: 'clamp',
});
return (
<AbsoluteFill style={{ backgroundColor: '#000' }}>
<div style={{ opacity, padding: 60 }}>
<h1 style={{ color: '#fff', fontSize: 72 }}>{title}</h1>
{points.map((point, i) => (
<p key={i} style={{ color: '#fff', fontSize: 36 }}>
{point}
</p>
))}
</div>
</AbsoluteFill>
);
};
This skill provides comprehensive guidance for AI coding agents to effectively use the Marketing Pipeline Share automation system for end-to-end content creation workflows.
FAQ
What does the marketing-pipeline-share-automation skill do?
Automated AI content pipeline for research, scriptwriting, posting, and video generation using Claude, OpenAI, and Remotion
How do I install marketing-pipeline-share-automation?
Run npx skills add https://github.com/reason-machines/marketing-skills --skill marketing-pipeline-share-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-pipeline-share-automation/ (personal) or .claude/skills/marketing-pipeline-share-automation/ (project).
Which AI agents can use marketing-pipeline-share-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-pipeline-share-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-pipeline-share-automation?
It is published by reason-machines in reason-machines/marketing-skills. It has 754 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