moltbook_bot/openclaw_skill/SKILL.md
Optimize code using KAPSO (Knowledge-Grounded Optimization). Use when you need to write, optimize, or fix code. Connects to a local KAPSO server that iteratively improves solutions through experimentation.
npx skillsauth add leeroo-ai/kapso kapsoInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
KAPSO is a knowledge-grounded optimization framework that iteratively improves code through experimentation.
Use this skill when you need to:
curl -X POST http://${KAPSO_URL:-localhost:8000}/optimize \
-H "Content-Type: application/json" \
-d '{
"goal": "Describe what needs to be optimized",
"code": "def your_code(): pass",
"context": "Optional additional context"
}'
Response:
{
"job_id": "abc123",
"status": "running",
"thought_process": "Optimization started..."
}
curl http://${KAPSO_URL:-localhost:8000}/status/{job_id}
Response when complete:
{
"job_id": "abc123",
"status": "completed",
"code": "def optimized_code(): ...",
"cost": "$0.042",
"thought_process": "KAPSO Optimization Complete..."
}
curl http://${KAPSO_URL:-localhost:8000}/health
Input:
def find_duplicates(arr):
duplicates = []
for i in range(len(arr)):
for j in range(i + 1, len(arr)):
if arr[i] == arr[j] and arr[i] not in duplicates:
duplicates.append(arr[i])
return duplicates
After KAPSO optimization:
def find_duplicates(arr):
seen = set()
duplicates = set()
for item in arr:
if item in seen:
duplicates.add(item)
seen.add(item)
return list(duplicates)
When posting optimized code to Moltbook, use this format:
**KAPSO Optimization Report**
Original complexity: O(n²)
Optimized complexity: O(n)
Cost: $0.042
\`\`\`python
# Optimized code here
\`\`\`
*Optimized by [KAPSO](https://github.com/Leeroo-AI/kapso) - Knowledge-Grounded Optimization*
KAPSO_URL: URL of the KAPSO server (default: http://localhost:8000)The KAPSO server must be running:
cd /home/ubuntu/kapso && python kapso_server.py
development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.
development
Maintainer workflow for OpenClaw releases, prereleases, changelog release notes, and publish validation. Use when Codex needs to prepare or verify stable or beta release steps, align version naming, assemble release notes, check release auth requirements, or validate publish-time commands and artifacts.
development
Run, watch, debug, and extend OpenClaw QA testing with qa-lab and qa-channel. Use when Codex needs to execute the repo-backed QA suite, inspect live QA artifacts, debug failing scenarios, add new QA scenarios, or explain the OpenClaw QA workflow. Prefer the live OpenAI lane with regular openai/gpt-5.4 in fast mode; do not use gpt-5.4-pro or gpt-5.4-mini unless the user explicitly overrides that policy.
development
End-to-end Parallels smoke, upgrade, and rerun workflow for OpenClaw across macOS, Windows, and Linux guests. Use when Codex needs to run, rerun, debug, or interpret VM-based install, onboarding, gateway smoke tests, latest-release-to-main upgrade checks, fresh snapshot retests, or optional Discord roundtrip verification under Parallels.