Tweet Crafter for OpenClaw
Description
Drafts engaging tweets in copy-paste friendly code blocks and generates companion blog posts for various OpenClaw projects and announcements. Integrates with Agent Swarm and enforces ClawHub link best practices.
Tweet Crafter Skill
This skill streamlines the process of creating social media content, specifically tweets, and accompanying blog posts for your OpenClaw projects and journey. It ensures tweets are formatted for easy sharing, adheres to character limits, and intelligently links to relevant resources (like ClawHub skill pages).
Usage
This skill will expose one primary function:
- -
tweet_crafter.draft_content(tweet_prompt: str, blog_context: str, skill_name: str = None, github_repo: str = None, clawhub_link: str = None, mentions: list = [], hashtags: list = [], character_limit: int = 280) -> dict:
Drafts a tweet and a companion blog post. Requires a
tweet_prompt and
blog_context. Optionally takes
skill_name,
github_repo,
clawhub_link,
mentions, and
hashtags.
Returns a dictionary with the drafted tweet (as a string in a code block) and the blog post content.
Commands
This section would detail direct OpenClaw CLI commands to invoke the skill's functions. These will be implemented in scripts/tweet_crafter.py.
Purpose
To automate and standardize the creation of marketing and update content for OpenClaw skills and projects, making it easy to share your progress and achievements across social media and blogs.
Features
- - Intelligent Tweet Drafting: Leverages Agent Swarm to craft engaging and concise tweets.
- Code Block Output: Presents drafted tweets in a code block for easy copy-pasting, preventing formatting issues.
- ClawHub Link Enforcement: Automatically includes ClawHub links for skills where applicable.
- Companion Blog Post Generation: Creates a short blog post to expand on the tweet's announcement.
- Customizable Content: Allows specification of mentions, hashtags, and context.
Configuration (config.json)
This skill might have configuration options for default tweet lengths, common hashtags, or even preferred LLMs for drafting if not handled directly by Agent Swarm. (Currently empty, can be extended.)
OpenClaw的推文撰写工具
描述
以便于复制粘贴的代码块形式起草引人入胜的推文,并为各种OpenClaw项目和公告生成配套博客文章。与Agent Swarm集成,并强制执行ClawHub链接最佳实践。
推文撰写技能
该技能简化了为您的OpenClaw项目和历程创建社交媒体内容(特别是推文)及配套博客文章的过程。它确保推文格式便于分享,遵守字符限制,并智能链接到相关资源(如ClawHub技能页面)。
使用方法
该技能将暴露一个主要功能:
- - tweetcrafter.draftcontent(tweetprompt: str, blogcontext: str, skillname: str = None, githubrepo: str = None, clawhublink: str = None, mentions: list = [], hashtags: list = [], characterlimit: int = 280) -> dict:
起草一条推文和一篇配套博客文章。需要tweet
prompt和blogcontext参数。可选参数包括skill
name、githubrepo、clawhub_link、mentions和hashtags。
返回一个字典,包含起草的推文(以代码块中的字符串形式)和博客文章内容。
命令
本节将详细说明用于调用技能功能的直接OpenClaw CLI命令。这些命令将在scripts/tweet_crafter.py中实现。
目的
自动化和标准化OpenClaw技能和项目的营销及更新内容的创建,方便在社交媒体和博客上分享您的进展和成就。
功能特点
- - 智能推文起草:利用Agent Swarm制作引人入胜且简洁的推文。
- 代码块输出:将起草的推文呈现在代码块中,便于复制粘贴,防止格式问题。
- ClawHub链接强制执行:在适用情况下自动包含技能的ClawHub链接。
- 配套博客文章生成:创建简短的博客文章,扩展推文公告内容。
- 可定制内容:允许指定提及、话题标签和上下文。
配置(config.json)
该技能可能包含默认推文长度、常用话题标签或起草时首选LLM(若非由Agent Swarm直接处理)的配置选项。(当前为空,可扩展。)