Use "bwp" command to create technical content for codewithriver. Supports articles, courses, theory, persona with version management and link sharing
使用 bwp 命令:
有两种方式使用 bwp:
选项1:直接使用完整路径(推荐,无需修改配置)
bash
/home/claw/.openclaw/workspace/skills/build-with-public-writer/scripts/bwp.sh help
选项2:手动添加 alias(可选)
bash
echo alias bwp=/home/claw/.openclaw/workspace/skills/build-with-public-writer/scripts/bwp.sh >> ~/.bashrc
source ~/.bashrc
查看帮助:
bash
bwp help
bash
bwp init
输出:
🚀 正在初始化 Build with Public 项目...
✅ 目录结构已创建
✅ README.md 已创建
✅ .env 已创建
✅ server.py 已创建
📁 项目结构:
articles/ - 技术文章和博客文章
courses/ - 课程大纲和教程
theory/ - 框架和方法论
persona/ - 写作人设和风格
images/ - 文章图片和图表
下一步:
1. 编辑 /home/claw/codewithriver/.env 配置你的设置
2. 运行 bwp article 你的第一篇文章 创建内容
3. 启动服务器: cd /home/claw/codewithriver && python server.py
说明:
bash
bwp article AI 趋势 2026
输出:
✅ 已创建: articles/bwp-2026-03-13-ai-trends-2026-v1.md
📝 编辑: /home/claw/codewithriver/articles/bwp-2026-03-13-ai-trends-2026-v1.md
自动生成的模板包含:
bash
bwp course OpenClaw 技能训练营
输出:
✅ 已创建: courses/openclaw-bootcamp/syllabus-v1.md
📝 编辑: /home/claw/codewithriver/courses/openclaw-bootcamp/syllabus-v1.md
自动生成的模板包含:
bash
bwp theory 写作框架
创建 /home/claw/codewithriver/theory/writing-framework-v1.md
bash
bwp persona 技术专家
创建 /home/claw/codewithriver/persona/tech-expert-style-v1.md
bash
bwp list
输出示例:
📁 codewithriver 中的内容:
📄 文章 (25):
2026-03-13-ai-trends-v1.md
2026-03-12-vibe-coding-v1.md
...
📚 课程 (3):
openclaw-bootcamp
openclaw-masterclass
...
📖 理论 (5):
writing-framework-v1.md
...
🎭 人设 (2):
tech-expert-style-v1.md
...
bash
bwp commit 添加 AI 趋势文章
自动执行:
bash
git add -A
git commit -m content: 添加 AI 趋势文章 (2026-03-13)
bash
bwp link articles/2026-03-13-ai-trends-v1.md
输出:
🔗 可分享链接:
http://localhost:12000/articles/2026-03-13-ai-trends-v1.md
👤 访问凭证已在 .env 中配置
(请查看 /home/claw/codewithriver/.env 获取 AUTHUSERNAME 和 AUTHPASSWORD)
bash
bwp status
输出:
📊 Build with Public - 状态
📁 项目: codewithriver
📍 位置: /home/claw/codewithriver
📝 最近提交:
abc1234 content: 添加新文章 (2026-03-13)
def5678 content: 更新课程大纲 (2026-03-12)
📊 内容统计:
文章: 25 个文件
课程: 3 个目录
理论: 5 个文件
人设: 2 个文件
🟢 服务器: 运行中
codewithriver/
├── articles/ # 📄 技术文章和博客
├── courses/ # 📚 课程大纲和教程
├── theory/ # 📖 理论框架和方法论
├── persona/ # 🎭 写作人设和风格
├── images/ # 🖼️ 文章图片
├── server.py # 🌐 Web 服务器
└── .git/ # 版本控制
bash
bash
创建新版本(手动复制并修改版本号):
bash
✅ 推荐:
2026-03-13-vibe-coding-article-v1.md
2026-03-13-openclaw-syllabus-v1.md
2026-03-13-writing-framework-v1.md
❌ 避免:
article.md
final-draft.md
untitled.md
| 你想写... | 使用命令 | 生成位置 |
|---|---|---|
| 技术博客文章 | bwp article 标题 | articles/ |
| 课程/教程 |
添加到 ~/.bashrc:
bash
alias bwp=/home/claw/.openclaw/workspace/skills/build-with-public-writer/scripts/bwp.sh
alias bwpa=bwp article
alias bwpc=bwp course
alias bwpt=bwp theory
alias bwpp=bwp persona
alias bwpls=bwp list
alias bwpg=bwp commit
bwp link 命令会
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 build-with-public-writer-1776281359 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 build-with-public-writer-1776281359 技能
skillhub install build-with-public-writer-1776281359
文件大小: 12.89 KB | 发布时间: 2026-4-16 18:43