TopRank Skills

Home / Claw Skills / 数据解析 / Report Generator Adarsh
Official OpenClaw rules 54%

Report Generator Adarsh

Report Generator Skill

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 Report Generator Adarsh 技能。 若已安装,则直接安装 Report Generator Adarsh 技能。

Overview

Skill Key
adarshvmore/report-generator-adarsh
Author
adarshvmore
Source Repo
openclaw/skills
Version
-
Source Path
skills/adarshvmore/report-generator-adarsh
Latest Commit SHA
363a8b5671d7eee547327a345c43fe24be54f77d

Extracted Content

SKILL.md excerpt

# Report Generator Skill

## Purpose
Single GPT-4.1-mini call that transforms aggregated marketing data into a structured, professional audit report. This is the ONLY AI call in the entire audit pipeline.

## Input Schema
```typescript
interface AuditData {
 input: AuditInput;
 instagram: InstagramData;
 metaAds: MetaAdsData;
 keywords: KeywordData;
 competitors: CompetitorData;
 websiteAudit: WebsiteAuditData;
 collectedAt: string;
}
```

## Output Schema
```typescript
interface MarketingReport {
 brand: string;
 generatedAt: string;
 sections: ReportSections;
 rawData: AuditData;
 reportMarkdown: string;
}
```

## API Dependencies
- **API:** OpenAI
- **Model:** `gpt-4.1-mini`
- **Auth:** `OPENAI_API_KEY`
- **Cost:** ~$0.001-0.002 per call

## Implementation Pattern
- System prompt defines the analyst persona and exact 6-section format
- User message is the full AuditData JSON
- Single API call with `max_tokens: 1500`, `temperature: 0.4`
- Response markdown is parsed into individual sections via `## ` header splitting
- Token usage is logged for cost tracking
- Fallback report is generated if OpenAI call fails

## Token Budget
- Input: ~1,500-2,000 tokens (JSON data)
- Output: ~800-1,200 tokens (report)

## Error Handling
- Missing API key: returns fallback report with error message
- API failure: returns fallback report with raw data preserved
- All errors logged with context

## Example Usage
```typescript
const report = await generateMarketingReport(auditData);
console.log(report.reportMarkdown);
```

## Notes
- This is the ONLY file that should make OpenAI calls (except competitor collector fallback)
- Never add additional GPT calls to other modules

Related Claw Skills