用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/bighardperson/computer-science-skills-collection --skill book-writer命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Auto-generated frontmatter
AndonQ 腾讯云智能客服"领域虾" — 不切窗口、不排队,即刻获得腾讯云全产品线专业解答。支持工单查询(列表/详情/流水)、集团工单与需求单管理、腾讯云全产品线智能问答,以及通过 tccli 调用腾讯云只读查询类 API(如 CVM、CBS、CAM 等)。当用户查询工单、查看工单详情、咨询腾讯云产品问题(如 CVM、轻量应用服务器、COS 等)、查询集团工单/需求单、要求找人工客服、或需要调用腾讯云 API 查询资源信息时使用。
Scan installed OpenClaw skills for malicious code patterns including ClickFix social engineering, reverse shell (RAT), and data exfiltration. Uses OG-Text model for agentic detection.
基于 SOC 职业分类
正在显示 SKILL.md
| name | book-writer |
| description | 使用AI辅助写作的OpenClaw技能,可以根据提示词生成书籍大纲并逐级扩写内容,支持添加公式、图表、代码等元素。适用于学术著作、技术书籍、小说等多种类型的创作。 |
这是一个功能完整的AI辅助写作技能,能够根据用户提供的提示词生成书籍大纲,并逐级扩写各章节内容,支持在内容中插入公式、图表、表格和代码等元素。
# 进入技能目录
cd book-writer
# 安装依赖
python scripts/install_dependencies.py
# 设置环境变量
export OPENAI_API_KEY="your_openai_api_key"
export GOOGLE_CSE_ID="your_google_cse_id" # 用于搜索素材
export GOOGLE_API_KEY="your_google_api_key" # 用于搜索素材
# 生成大纲
python scripts/book_writer.py --action outline --prompt "机器学习入门教程"
# 扩写前三章
python scripts/book_writer.py --action expand --book-path "ml_intro_tutorial" --chapters 1,2,3
scripts/book_writer.py)主生成模块,负责协调整个书籍生成流程。
主要功能:
使用方法:
from scripts.book_writer import BookWriter
writer = BookWriter()
# 生成大纲
outline = writer.generate_outline("深度学习理论与实践")
# 扩写内容
book = writer.expand_book(outline, max_chapters=3)
# 保存书籍
writer.save_book(book, "deep_learning_book")
scripts/content_optimizer.py)优化生成的内容质量。
主要功能:
scripts/material_searcher.py)从网络搜索相关素材。
主要功能:
config.yaml)# API配置
openai:
api_key: ${OPENAI_API_KEY}
model: gpt-4o
max_tokens: 4000
temperature: 0.7
# 搜索API配置
google:
cse_id: ${GOOGLE_CSE_ID}
api_key: ${GOOGLE_API_KEY}
# 书籍生成默认参数
defaults:
max_chapters: 10
max_sections_per_chapter: 5
content_length: "medium" # short, medium, long
include_formulas: true
include_code: true
include_figures: true
include_tables: true
# 存储设置
storage:
output_dir: "generated_books"
temp_dir: "temp_files"
max_storage_gb: 10
python scripts/book_writer.py --action outline --prompt "Python Web开发实战指南" --output my_web_dev_book
python scripts/book_writer.py --action expand --book-path my_web_dev_book --chapters 1,2,3 --include-code true
python scripts/book_writer.py --action full --prompt "量子计算基础理论" --chapters 3 --include-formulas true --citation-style "apa"
将整个 book-writer 目录复制到 OpenClaw 的技能目录中即可使用。
本技能使用MIT许可证。详见项目根目录的LICENSE文件。