Install
openclaw skills install @thcjp/reportopenclaw skills install @thcjp/report核心功能: 本技能提供化报表生成等能力。
~/report/
├── memory.md # Index + preferences
├── {name}/
│ ├── config.md # Report configuration
│ ├── data.jsonl # Historical data
│ └── generated/ # Past reports
Create on first use: mkdir -p ~/report
This skill:
User-driven model:
This skill does NOT:
No fixed requirements. User provides API keys as needed:
export STRIPE_API_KEY="${API_KEY:?请设置环境变量}"
export GITHUB_TOKEN="[REDACTED]"
Config references env var name, never the value.
External delivery (Telegram/webhook/email) sends report content off-device.
file delivery stays local (~/report/{name}/generated/)| Task | File |
|---|---|
| Configuration schema | schema.md |
| Output formats | formats.md |
| Delivery options | delivery.md |
When creating a report:
Example:
User: "Weekly report on my Stripe revenue"
Agent: "I'll need Stripe API access. Please set
STRIPE_API_KEY in your environment."
User: "Done"
→ Config stored with "source": {"type": "api", "env": "STRIPE_API_KEY"}
In ~/report/{name}/config.md:
name: weekly-revenue
schedule: "0 9 * * 1" # Monday 9am
sources:
- type: api
env: STRIPE_API_KEY # User provides
format: chat
delivery: telegram
| Frequency | Cron | Example |
|---|---|---|
| Daily | 0 9 * * * | 9am daily |
| Weekly | 0 9 * * 1 | Monday 9am |
| Monthly | 0 9 1 * * | 1st of month |
| On-demand | - | When user asks |
User configures in config.md:
chat — Reply in conversationtelegram — Send to Telegram (user provides chat ID)file — Save to ~/report/{name}/generated/email — Send via user's configured mail"List my reports" → Read ~/report/memory.md
"Pause X report" → Update config
"Run X now" → Generate on-demand
| 依赖项 | 类型 | 是否必需 | 获取方式 |
|---|---|---|---|
| LLM API | API | 必需 | 由Agent内置LLM提供 |
| 场景 | 输入 | 输出 |
|---|---|---|
| 基础使用 | 用户请求 | 处理结果 |
不适用于:需要人工判断的复杂决策场景
输入: 用户请求
处理: 根据使用流程执行
输出: 处理结果
| 错误场景 | 原因 | 处理方式 |
|---|---|---|
| 配置错误 | 参数缺失或格式错误 | 检查依赖说明中的配置要求 |
| 运行时错误 | 运行环境不满足 | 确认运行环境符合依赖说明 |
| 网络错误 | 连接超时或不可达 | 检查网络连接后重试,参考国内替代方案 |
A: 请先阅读使用流程章节,确认环境满足依赖说明中的要求。
A: 请参考错误处理章节,按照表格中的处理方式操作。
A: 请参考已知限制章节了解具体限制。