Corpus Skill
Use this skill to read and write a user's Corpus data through the Corpus API.
Required environment variables
- -
CORPUS_API_TOKEN: user token for Corpus API access.
Generate CORPUS_API_TOKEN
- 1. Install Corpus AI for iPhone: INLINECODE2
- Open the app and sign in.
- Go to
Integrations -> OpenClaw. - Create an API token and copy it (the full value is shown once).
- Set that value as
CORPUS_API_TOKEN in your OpenClaw skill env.
Optional environment variables
- -
CORPUS_API_BASE_URL: API base URL (default: https://corpusai.app). - INLINECODE8 : HTTP timeout in seconds (default:
30).
OpenClaw config example
CODEBLOCK0
Commands
Run all commands through:
INLINECODE10
Available commands:
- - INLINECODE11
- INLINECODE12
- INLINECODE13
- INLINECODE14
- INLINECODE15
- INLINECODE16
Recommended workflow for implementation tasks
When a user asks for "find items in Corpus and implement":
- 1. Use
search with a focused query. - Use
content for top hits to collect concrete steps. - Produce an implementation plan with explicit file changes.
- Apply code changes in the current working repository after user confirmation.
Safety rules
- - Never print or log
CORPUS_API_TOKEN. - Prefer read operations before write operations.
- Before write operations (
save-url, create-reminder), confirm user intent if the instruction is ambiguous.
Corpus 技能
使用此技能通过 Corpus API 读取和写入用户的 Corpus 数据。
必需的环境变量
- - CORPUSAPITOKEN:用于访问 Corpus API 的用户令牌。
生成 CORPUSAPITOKEN
- 1. 安装 Corpus AI for iPhone:https://apps.apple.com/us/app/corpus-ai/id6748364607
- 打开应用并登录。
- 前往 集成 -> OpenClaw。
- 创建一个 API 令牌并复制它(完整值仅显示一次)。
- 在 OpenClaw 技能环境中将该值设置为 CORPUSAPITOKEN。
可选的环境变量
- - CORPUSAPIBASEURL:API 基础 URL(默认值:https://corpusai.app)。
- CORPUSTIMEOUT_SECONDS:HTTP 超时时间(秒)(默认值:30)。
OpenClaw 配置示例
json
{
skills: {
entries: {
corpus: {
path: /absolute/path/to/skills/corpus,
env: {
CORPUSAPITOKEN: cskliveorjwttoken_here,
CORPUSAPIBASE_URL: https://corpusai.app
}
}
}
}
}
命令
通过以下方式运行所有命令:
python3 {baseDir}/scripts/corpus_api.py [options]
可用命令:
- - profile
- list-content --limit 20 --cursor
- search --query --limit 8
- content --user-content-id
- save-url --url [--user-note ]
- create-reminder --title --description --scheduled-date-utc 2026-02-18T16:00:00Z [--user-content-id ]
实现任务的推荐工作流程
当用户要求在 Corpus 中查找项目并实现时:
- 1. 使用 search 进行精准查询。
- 使用 content 获取最佳匹配结果以收集具体步骤。
- 生成包含明确文件更改的实现计划。
- 在用户确认后,对当前工作仓库应用代码更改。
安全规则
- - 切勿打印或记录 CORPUSAPITOKEN。
- 优先执行读取操作,再执行写入操作。
- 在执行写入操作(save-url、create-reminder)前,如果指令不明确,请确认用户意图。