Prompt & Workflow Optimizer
name: clawforage-prompt-optimizer
by dainash · published 2026-03-22
$ claw add gh:dainash/dainash-clawforage-prompt-optimizer---
name: clawforage-prompt-optimizer
description: Analyzes your conversation transcripts daily to find patterns, suggest SOUL.md improvements, and recommend skills
version: 0.1.0
emoji: "🔧"
user-invocable: true
metadata: {"openclaw":{"requires":{"bins":["jq","bash"]}}}
---
# 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/ 1This outputs a structured summary of:
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/optimizationYour report MUST follow this structure (use `{baseDir}/templates/weekly-report.md` as reference):
Repeated Patterns
Identify questions asked 2+ times. For each:
SOUL.md Suggestions
Propose specific additions or changes to SOUL.md. Write them as ready-to-copy text blocks. Examples:
Recommended Skills
Based on the user's most common tasks, suggest relevant skills. For each:
Failure Analysis
For each error or multi-attempt task:
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}.mdIf validation fails, fix the missing sections and re-validate.
Constraints
More tools from the same signal band
Order food/drinks (点餐) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
Sign plugins, rotate agent credentials without losing identity, and publicly attest to plugin behavior with verifiable claims and authenticated transfers.
The philosophical layer for AI agents. Maps behavior to Spinoza's 48 affects, calculates persistence scores, and generates geometric self-reports. Give your...