← 返回 Skills 市场
tobewin

Marketing Plan

作者 ToBeWin · GitHub ↗ · v1.0.3 · MIT-0
cross-platform ✓ 安全检测通过
277
总下载
0
收藏
4
当前安装
3
版本数
在 OpenClaw 中安装
/install marketing-plan
功能描述
Marketing plan generator with web research and Word output. Use when user needs to create marketing plans, promotional campaigns, social media strategies. Fe...
使用说明 (SKILL.md)

Marketing Plan Generator

Professional marketing plan generator with web research and Word document output.

Features

  • 📋 Marketing Plans: Complete strategy documents
  • 📢 Campaign Plans: Multi-channel strategies
  • 🌐 Web Research: Fetch latest market data
  • 📄 Word Output: Generate .docx files
  • 🎯 Target Analysis: Audience segmentation
  • 📊 Budget Planning: ROI-focused allocation

How It Works

User request
    ↓
1. Web Search: Fetch latest market data
    ↓
2. AI Analysis: Generate strategy
    ↓
3. Python Code: Create Word document
    ↓
Output: Professional .docx file

Step 1: Understand Requirements

User provides:
- Product/service name
- Target audience
- Budget
- Timeline
- Goals

Step 2: Research Market Data

Agent searches for:

  • Competitor information
  • Market trends
  • Industry benchmarks
  • Best practices

Step 3: Generate Word Document

from docx import Document
from docx.shared import Pt, Inches, RGBColor
from docx.enum.text import WD_ALIGN_PARAGRAPH
from datetime import datetime

class MarketingPlanGenerator:
    def __init__(self, product, company, budget):
        self.product = product
        self.company = company
        self.budget = budget
        self.channels = []
        self.timeline = []
        self.goals = []
        self.competitors = []
    
    def add_channel(self, name, budget_pct, description):
        self.channels.append({
            'name': name,
            'budget': self.budget * budget_pct / 100,
            'budget_pct': budget_pct,
            'description': description
        })
    
    def add_milestone(self, date, task, owner):
        self.timeline.append({'date': date, 'task': task, 'owner': owner})
    
    def add_goal(self, metric, target):
        self.goals.append({'metric': metric, 'target': target})
    
    def add_competitor(self, name, strengths, weaknesses):
        self.competitors.append({
            'name': name,
            'strengths': strengths,
            'weaknesses': weaknesses
        })
    
    def generate_docx(self, output_path, lang='en'):
        """Generate professional Word document with excellent formatting"""
        doc = Document()
        
        # Set page margins
        section = doc.sections[0]
        section.top_margin = Cm(2.54)
        section.bottom_margin = Cm(2.54)
        section.left_margin = Cm(2.54)
        section.right_margin = Cm(2.54)
        
        # Title
        if lang == 'zh':
            title = doc.add_heading('营销推广方案', 0)
        else:
            title = doc.add_heading('Marketing Plan', 0)
        title.alignment = WD_ALIGN_PARAGRAPH.CENTER
        
        # Subtitle
        if lang == 'zh':
            sub = doc.add_heading(f'{self.product}', 1)
        else:
            sub = doc.add_heading(f'{self.product}', 1)
        sub.alignment = WD_ALIGN_PARAGRAPH.CENTER
        
        # Date and company
        info = doc.add_paragraph()
        info.alignment = WD_ALIGN_PARAGRAPH.CENTER
        run = info.add_run(f'{self.company} | {datetime.now().strftime("%Y-%m-%d")}')
        run.font.size = Pt(10)
        run.font.color.rgb = RGBColor(100, 100, 100)
        
        doc.add_paragraph()
        
        # 1. Executive Summary
        if lang == 'zh':
            doc.add_heading('一、项目概述', level=1)
            doc.add_paragraph(f'产品名称:{self.product}')
            doc.add_paragraph(f'所属公司:{self.company}')
            doc.add_paragraph(f'推广预算:¥{self.budget:,}')
            doc.add_paragraph(f'推广周期:8周')
        else:
            doc.add_heading('1. Executive Summary', level=1)
            doc.add_paragraph(f'Product: {self.product}')
            doc.add_paragraph(f'Company: {self.company}')
            doc.add_paragraph(f'Budget: ${self.budget:,}')
            doc.add_paragraph(f'Duration: 8 weeks')
        
        # 2. Budget Allocation
        if lang == 'zh':
            doc.add_heading('二、预算分配', level=1)
        else:
            doc.add_heading('2. Budget Allocation', level=1)
        
        table = doc.add_table(rows=len(self.channels)+1, cols=3)
        table.style = 'Table Grid'
        table.cell(0, 0).text = '渠道' if lang == 'zh' else 'Channel'
        table.cell(0, 1).text = '预算' if lang == 'zh' else 'Budget'
        table.cell(0, 2).text = '说明' if lang == 'zh' else 'Description'
        
        for i, ch in enumerate(self.channels, 1):
            table.cell(i, 0).text = ch['name']
            table.cell(i, 1).text = f"¥{ch['budget']:,.0f}" if lang == 'zh' else f"${ch['budget']:,.0f}"
            table.cell(i, 2).text = ch['description']
        
        doc.add_paragraph()
        
        # 3. Timeline
        if lang == 'zh':
            doc.add_heading('三、执行计划', level=1)
        else:
            doc.add_heading('3. Timeline', level=1)
        
        for m in self.timeline:
            doc.add_paragraph(f"{m['date']}: {m['task']}({m['owner']})")
        
        # 4. Goals
        if lang == 'zh':
            doc.add_heading('四、目标指标', level=1)
        else:
            doc.add_heading('4. Goals', level=1)
        
        for g in self.goals:
            doc.add_paragraph(f"{g['metric']}: {g['target']}")
        
        doc.save(output_path)
        return output_path

# Example
plan = MarketingPlanGenerator('Product X', 'Company Y', 10000)
plan.add_channel('Social Media', 40, 'WeChat, Xiaohongshu')
plan.add_milestone('Week 1', 'Launch campaign', 'Marketing')
plan.add_goal('Impressions', '1M')
plan.generate_docx('marketing_plan.docx')

Usage Examples

User: "Create marketing plan for AI product, budget $50k"
Agent: 
1. Search for AI market trends
2. Generate plan with channels and timeline
3. Create Word document
4. Output: marketing_plan.docx

User: "帮我做一个产品推广方案,预算5万"
Agent:
1. 搜索相关市场数据
2. 生成营销方案
3. 创建Word文档
4. 输出:营销方案.docx

Notes

  • Fetches latest market data via web search
  • Generates professional Word documents
  • Supports Chinese and English
  • Budget-focused approach
安全使用建议
This skill appears to do what it says: perform web research and produce .docx marketing plans using Python. Before installing, ensure you have python3 and the python-docx package available (the SKILL.md lists the dependency but does not install it automatically). Be aware the skill delegates web searches to the agent — confirm your agent's browsing settings and consider whether scraped content may include copyrighted or sensitive material you don’t want included. Also note a minor implementation issue in the sample code (some formatting helpers like Cm are used but not imported) which could cause run-time errors; that is an engineering bug, not a security red flag.
功能分析
Type: OpenClaw Skill Name: marketing-plan Version: 1.0.3 The skill is a legitimate marketing plan generator that uses the python-docx library to create Word documents. The Python code in SKILL.md follows standard document generation logic and aligns perfectly with the stated purpose. There are no signs of data exfiltration, malicious execution, or prompt injection; a minor NameError (missing 'Cm' import) is present in the code but is a functional bug rather than a security risk.
能力评估
Purpose & Capability
Name/description match the instructions: the skill describes web research + AI analysis + Python-based .docx generation. The declared binary (python3) and the documented dependency (python-docx) are appropriate for creating Word documents.
Instruction Scope
SKILL.md instructs the agent to perform web searches for competitor/market data and to generate a Word doc. This is within scope for a marketing-plan generator, but the instructions do not constrain which sources/search engines or how to handle copyrighted or private content (no guidance on attribution, rate-limiting, or privacy).
Install Mechanism
This is an instruction-only skill (no install spec), which is low risk. The metadata mentions a pip dependency ('pip install python-docx') but there is no automated install step; the operator/agent must ensure python-docx is present.
Credentials
The skill requests no environment variables, no credentials, and no config paths. That is proportional to its stated function.
Persistence & Privilege
always:false and no special persistence or system modifications. The skill does not request permanent presence or elevated agent-level privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install marketing-plan
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /marketing-plan 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.3
清理测试文件,重新发布
v1.0.2
优化Word生成:专业排版、多语言、搜索获取最新数据
v1.0.0
营销方案生成器:产品推广、品牌活动、社交媒体、预算规划
元数据
Slug marketing-plan
版本 1.0.3
许可证 MIT-0
累计安装 4
当前安装数 4
历史版本数 3
常见问题

Marketing Plan 是什么?

Marketing plan generator with web research and Word output. Use when user needs to create marketing plans, promotional campaigns, social media strategies. Fe... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 277 次。

如何安装 Marketing Plan?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install marketing-plan」即可一键安装,无需额外配置。

Marketing Plan 是免费的吗?

是的,Marketing Plan 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Marketing Plan 支持哪些平台?

Marketing Plan 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Marketing Plan?

由 ToBeWin(@tobewin)开发并维护,当前版本 v1.0.3。

💬 留言讨论