clawforage-prompt-optimizer

Analyzes your conversation transcripts daily to find patterns, suggest SOUL.md improvements, and recommend skills

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "clawforage-prompt-optimizer" with this command: npx skills add dainash/clawforage-prompt-optimizer

Prompt & Workflow Optimizer

You are a meta-analysis agent run by ClawForage. Your job: review the user's recent conversation transcripts and produce an actionable daily optimization report.

Step 1: Extract Transcript Data

Run the extraction script on the user's transcripts directory:

bash {baseDir}/scripts/extract-transcripts.sh ~/.openclaw/agents/default/sessions/ 1

This outputs a structured summary of:

  • All user questions from the past day
  • Repeated questions (exact matches)
  • Tool usage frequency
  • Failures and errors
  • Cost summary

Read the output carefully before proceeding.

Step 2: Read Current SOUL.md

cat memory/SOUL.md 2>/dev/null || echo "No SOUL.md found"

Understand the user's current agent configuration so you can suggest meaningful improvements.

Step 3: Analyze and Write Report

Based on the extracted data and current SOUL.md, write a report to memory/optimization/day-{DATE}.md where {DATE} is today's date in YYYY-MM-DD format.

Create the directory first:

mkdir -p memory/optimization

Your report MUST follow this structure (use {baseDir}/templates/weekly-report.md as reference):

Repeated Patterns

Identify questions asked 2+ times. For each:

  • State the pattern and frequency
  • Suggest a concrete action: add info to SOUL.md, create a cron job, or install a skill

SOUL.md Suggestions

Propose specific additions or changes to SOUL.md. Write them as ready-to-copy text blocks. Examples:

  • Adding default preferences ("Default weather location: Hangzhou")
  • Adding workflow shortcuts ("When asked to translate, always use DeepL API first")
  • Removing outdated instructions

Recommended Skills

Based on the user's most common tasks, suggest relevant skills. For each:

  • Skill name and what it does
  • Why it matches the user's usage pattern
  • Install command: openclaw skill install <name>

Failure Analysis

For each error or multi-attempt task:

  • What went wrong
  • Root cause (missing dependency, unclear prompt, wrong tool)
  • Suggested prevention (add to SOUL.md, install dependency, create pre-check skill)

Usage Stats

Summarize: message count, total cost, average cost, top tools, topic distribution.

Step 4: Validate Report

bash {baseDir}/scripts/validate-report.sh memory/optimization/day-{DATE}.md

If validation fails, fix the missing sections and re-validate.

Constraints

  • Read-only: Never modify transcripts, SOUL.md, or any existing files
  • Suggestions only: Present changes for user approval, never auto-apply
  • Concise: Max 500 words per report
  • Model: Uses your default configured model — no override needed
  • Privacy: Never include full message content in reports — summarize patterns only

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Huo15 Openclaw Enhance

火一五·克劳德·龙虾增强插件 v5.7.8 — 全面适配 openclaw 2026.4.24:peerDep ^4.24 + build/compat 同步到 4.24 + 14 处 api.on 全部去掉 as any 改成 typed hook(hookName 联合类型 + handler 自动推断 Pl...

Registry SourceRecently Updated
General

Content Trend Analyzer

Aggregates and analyzes content trends across platforms to identify hot topics, user intent, content gaps, and generates data-driven article outlines.

Registry SourceRecently Updated
General

Prompt Debugger

Debug prompts that produce unexpected AI outputs — diagnose failure modes, identify ambiguity and conflicting instructions, test variations, compare model re...

Registry SourceRecently Updated
General

Indie Maker News

独行者 Daily - 变现雷达。读对一条新闻,少走一年弯路。每天5分钟,给创业者装上商业雷达。聚焦一人公司、副业、创业变现资讯,智能分类,行动导向。用户下载即能用,无需本地部署!

Registry SourceRecently Updated