ht-skills
管理灏天文库文集和文档,支持新建文集、新建文档、查询文集/文档、更新文档、修改文档归属、管理文档层级。适用于 OpenClaw 自主写文章并上传、文集创建、文档入库、文档移动等场景。
About this skill
The `ht-skills` package provides a suite of client-side Python scripts designed for AI agents to interact with the Haotian Library's API. Its core functionality revolves around comprehensive management of 'collections' (文集) and 'documents' (文档). Agents can initiate the creation of new collections and documents, efficiently query existing ones using IDs or names, update document content and associated metadata, modify document ownership by reassigning them to different collections, and meticulously manage their hierarchical structure. This skill proves invaluable for scenarios where an AI agent needs to autonomously generate, upload, categorize, and systematically organize articles or other textual content into a structured library system. The skill incorporates explicit 'Agent Execution Guidelines' (智能体执行规范), which outline the precise sequence of operations, such as requiring a document query before modification or confirming collection names prior to creation. This ensures secure and consistent data interaction with the library. The entire system operates by making authenticated API calls to a backend service, necessitating a `config.json` file configured with an API token for seamless authentication.
Best use case
The primary use case for `ht-skills` is to equip AI agents with the capability to programmatically manage digital content within a dedicated content library. This is perfectly suited for autonomous content creation systems, where an agent might be tasked with drafting articles, generating documentation, or compiling research, and subsequently needs to efficiently store, categorize, and organize this content. Content managers, authors, and developers building AI-driven publishing or knowledge management platforms will find this skill highly beneficial, as it allows agents to handle routine content organization and archival tasks autonomously.
管理灏天文库文集和文档,支持新建文集、新建文档、查询文集/文档、更新文档、修改文档归属、管理文档层级。适用于 OpenClaw 自主写文章并上传、文集创建、文档入库、文档移动等场景。
Successful creation, modification, querying, or reorganization of collections and documents within the Haotian Library, executed according to the user's or agent's instructions.
Practical example
Example input
请将我的新文章 'AI代理的未来' 添加到 '技术趋势' 文集中,文章内容我已经准备好了。
Example output
文集 '技术趋势' (ID: 456) 已找到。文章 'AI代理的未来' (ID: 789) 已成功添加到该文集。
When to use this skill
- When an AI agent needs to autonomously create or update articles and documents in a content library.
- When an agent is tasked with organizing, categorizing, or moving existing content between collections.
- When a content management system requires automated ingestion or publishing of articles.
- When an agent needs to query or list specific collections or documents within the Haotian Library.
When not to use this skill
- When the task does not involve managing content within the Haotian Library system specifically.
- When performing operations that require direct local file system access or manipulation.
- When the user or agent lacks the necessary API token or access to the Haotian Library server.
- For tasks requiring complex real-time conversational interaction with users beyond basic confirmations.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/ht-skills/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How ht-skills Compares
| Feature / Agent | ht-skills | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | medium | N/A |
Frequently Asked Questions
What does this skill do?
管理灏天文库文集和文档,支持新建文集、新建文档、查询文集/文档、更新文档、修改文档归属、管理文档层级。适用于 OpenClaw 自主写文章并上传、文集创建、文档入库、文档移动等场景。
How difficult is it to install?
The installation complexity is rated as medium. You can find the installation instructions above.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
AI Agent for YouTube Script Writing
Find AI agent skills for YouTube script writing, video research, content outlining, and repeatable channel production workflows.
AI Agents for Marketing
Discover AI agents for marketing workflows, from SEO and content production to campaign research, outreach, and analytics.
Best AI Agents for Marketing
A curated list of the best AI agents and skills for marketing teams focused on SEO, content systems, outreach, and campaign execution.
SKILL.md Source
# ht-skills 灏天文库管理(客户端) 通过服务端 API 调用,需配置 `config.json` 中的`token`(个人 API Token)。 --- ## 客户端注意事项(必须遵守) - **查询文集列表**:无 `--limit`、`--offset`,由服务端固定限制。 - **查询文档列表**:必须带 `--collection-id`(文集 ID);若没有文集 ID,需先 `list_collections.py --name "文集名称"` 查询,或**向用户询问目标文集名称**。 - **查询文档列表**:无 `--limit`、`--offset`,由服务端固定限制。 - **更新文档**:`author` 字段不可更新,只能更新 name、content、sort、parent。 - **修改文档归属**:需有目标文集权限;文档属于多个文集时需指定 `--from-collection-id`。 --- ## 智能体执行规范(必须遵守) ### 规范一:修改特定文档 1. **先查询**:使用 `list_documents.py --collection-id <文集ID> --name "关键词"` 或 `get_document.py --id <ID>` 定位要修改的文档,确认文档 ID。 2. **再修改**:使用 `update_document.py --id <ID>` 修改标题、正文。 ### 规范二:添加特定文档 1. **文集必填**:用户必须提供目标文集。若用户未提供或只说「随便加」「你决定」等,**必须主动询问**:「请告知要将文档添加到的文集名称」。 2. **查询文集 ID**:用户给出文集名称后,用 `list_collections.py --name "文集名称"` 查询文集 ID;若不存在则询问是否新建。 3. **添加文档**:使用 `add_document.py --collection-id <ID> --name "标题" [--content 内容] [--content-file 文件路径]`。 ### 规范三:添加文集 1. **用户确认**:新建文集前**必须**让用户确认要创建的文集名称,例如:「将创建文集「xxx」,请确认名称是否正确?」。 2. **确认后再执行**:用户确认后再执行 `create_collection.py --name "文集名称"`。若使用 `--get-if-exists` 则同名已存在时直接返回已有 ID,不重复创建。 ### 规范四:修改文档归属 1. **先定位文档**:用 `list_documents.py --collection-id <文集ID> --name "关键词"` 或 `get_document.py --id <ID>` 确认文档 ID。 2. **确认目标文集**:用户需提供目标文集名称或 ID;若无则 `list_collections.py --name "关键词"` 查询。 3. **执行移动**:使用 `move_document.py --id <文档ID> --collection-id <目标文集ID>`;文档属于多个文集时需加 `--from-collection-id <原文集ID>`。 --- ## 前置条件 1. **config.json**:在 client 目录配置 `config.json`,填写`token`。 2. **环境变量**(可选):`HT_SKILL_SERVER_URL`、`HT_SKILL_TOKEN` 优先级高于 config.json。 3. **依赖**:`pip install requests` ## 脚本目录 所有脚本位于 `scripts/`,在 client 根目录执行。 ## 功能一:新建文集(支持有则用、无则建) ```bash python scripts/create_collection.py --name "文集名称" [--description "50字内简介"] [--brief "500字以上详细介绍"] python scripts/create_collection.py --name "文集名称" --get-if-exists ``` ## 功能二:新建文档到指定文集 ```bash python scripts/add_document.py --collection-id 123 --name "文档标题" [--content "正文"] [--content-file 路径] [--parent 0] ``` ## 功能三:查询文集列表 ```bash python scripts/list_collections.py [--name "关键词"] ``` ## 功能四:查询文集详情 ```bash python scripts/get_collection.py --id 123 [--include-docs] ``` ## 功能五:查询文档列表 ```bash python scripts/list_documents.py --collection-id 123 [--name "关键词"] # collection-id 必填。若无文集 ID,需先 list_collections 查询或向用户询问 ``` ## 功能六:查询文档详情 ```bash python scripts/get_document.py --id 456 ``` ## 功能七:更新文档(修订已发文章) ```bash python scripts/update_document.py --id 456 --name "新标题" python scripts/update_document.py --id 456 --content "新正文" python scripts/update_document.py --id 456 --content-file 文件路径 python scripts/update_document.py --id 456 --sort 50 python scripts/update_document.py --id 456 --parent 0 ``` ## 功能八:修改文档归属(移动到目标文集) ```bash # 将文档移动到目标文集 python scripts/move_document.py --id 456 --collection-id 789 # 文档属于多个文集时,需指定原文集 ID python scripts/move_document.py --id 456 --collection-id 789 --from-collection-id 123 ``` - `--id`:文档 ID(必填) - `--collection-id`:目标文集 ID(必填) - `--from-collection-id`:原文集 ID;文档只属于一个文集可不填,属于多个文集则必填 ## 功能九:设置文档父级(文集内层级) ```bash python scripts/set_document_parent.py --collection-id 123 --document-id 456 --parent 0 [--sort 1] ``` - `parent=0` 表示根文档;同级别 `sort` 越小越靠前
Related Skills
---
name: article-factory-wechat
humanizer
Remove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's comprehensive "Signs of AI writing" guide. Detects and fixes patterns including: inflated symbolism, promotional language, superficial -ing analyses, vague attributions, em dash overuse, rule of three, AI vocabulary words, negative parallelisms, and excessive conjunctive phrases.
linkedin-cli
A bird-like LinkedIn CLI for searching profiles, checking messages, and summarizing your feed using session cookies.
小红书长图文发布 Skill
## 概述
openclaw-youtube
YouTube SERP Scout for agents. Search top-ranking videos, channels, and trends for content research and competitor tracking.
openclaw-media-gen
Generate images & videos with AIsa. Gemini 3 Pro Image (image) + Qwen Wan 2.6 (video) via one API key.
Cold Email Writer
Writes personalized cold emails that actually get replies
Presentation Mastery — Complete Slide Design & Delivery System
You are a Presentation Architect. You help build presentations that persuade, inform, and move people to action. You cover the full lifecycle: audience analysis → narrative structure → slide design → delivery coaching → post-presentation follow-up.
ai-humanizer
Rewrites AI-generated content to sound natural, human, and undetectable. Removes robotic patterns, adds voice variety, and preserves meaning.
Employee Handbook Generator
Build a complete, customized employee handbook for your company. Covers policies, benefits, conduct, leave, remote work, DEI, and compliance — ready for legal review.
afrexai-copywriting-mastery
Write high-converting copy for any medium — landing pages, emails, ads, UX, sales pages, video scripts, and brand voice. Complete methodology with frameworks, templates, scoring rubrics, and swipe files. Use when writing or reviewing any user-facing text.
afrexai-conversion-copywriting
Write high-converting copy for any surface — landing pages, emails, ads, sales pages, product descriptions, CTAs, video scripts, and more. Complete conversion copywriting system with research methodology, 12 proven frameworks, swipe-file templates, scoring rubrics, and A/B testing protocols. Use when you need to write or review any copy meant to drive action.