Xpersona
O

OpenClaw Self-Improve

CLAWHUB · Unverified

Evidence-based, approval-gated self-improvement workflow for OpenClaw. Use when the user asks to make OpenClaw or any project more reliable, faster, cheaper,...

62
Rank
84
Safety
1.5k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.5K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17cp87fy279ggwne1mqcb6675843tdy:openclaw-self-improve
  1. Install using `clawhub skill install s17cp87fy279ggwne1mqcb6675843tdy:openclaw-self-improve` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/gopendrasharma89-tech/openclaw-self-improve before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-gopendrasharma89-tech-openclaw-self-improve/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

151,803 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: openclaw-self-improve
description: Evidence-based, approval-gated self-improvement workflow for OpenClaw. Use when the user asks to make OpenClaw or any project more reliable, faster, cheaper, safer, or higher quality with measurable before/after evidence. Ships helpers to scaffold a run directory, list and summarize past runs, compare two runs side-by-side, set artifact statuses, validate completeness, and export machine-readable JSON for CI.
license: MIT
required_binaries: bash, git, date, grep, awk, zip, python3
metadata: {"openclaw":{"requires":{"bins":["bash","git","python3","zip"]},"primaryEnv":null,"homepage":"https://clawhub.ai/gopendrasharma89-tech/openclaw-self-improve"}}
---

# OpenClaw Self-Improve

v1.3.0

A repeatable improvement loop that is metrics-first, approval-gated, and rollback-ready. The skill ships small bash/python helpers that scaffold a run directory with required artifacts, validate them, and export machine-readable JSON for CI.

## What v1.3.0 adds

**New helper**

- `compare-runs.sh` — side-by-side comparison of two self-improvement runs. Reads the key fields from each run's run-info.md, baseline.md, proposal.md, validation.md, and outcome.md and prints a row-per-field table that highlights divergences with a `*` marker. Computes an aggregate `verdict` (identical/diverged) and an `outcome_progression` (same/improved/regressed/changed/n/a) so CI can branch on whether the second run actually improved on the first. Supports `--json` for dashboards. Exit code 0 if runs are identical, 1 if they diverge, 2 on argument errors / missing artifacts.

9 end-to-end tests cover: divergence detection, identical-run case, JSON shape, progression direction (improved/regressed/same), missing required args, non-existent run dir, partial-artifact run dir, and the `--help` path.

**No breaking changes**: every v1.2.0 CLI flag and contract still works exactly as before.

## What v1.2.0 adds

**New helpers**

- `list-runs.sh` — enumerate every self-improvement run under `<repo>/.openclaw-self-improve/`, newest first, with mode/baseline/validation/outcome status and a one-line objective per row. Supports `--filter-mode`, `--filter-status`, `--limit`, and `--json`. Exits 3 (not 0) when there are no matching runs so scripts can branch.
- `summarize-run.sh` — print a one-page status overview of a single run by extracting key fields from all six artifacts. Computes an overall verdict (`success` / `regression` / `blocked` / `inconclusive` / `incomplete`) from the three status fields. `--json` for machine-readable output.

**Bug fixes**

- `init-improvement-run.sh` no longer accepts an empty (or whitespace-only) `--objective ""`. A blank objective produced a run with `TODO: define objective` baked in and silently passed validation, which was a footgun. The script now exits 1 with a clear error. Rollback runs are exempt because they do not need an objective.
- `detect-validation-gate.sh` no longer prints nothing on a repo with no detect

_meta.json

{
  "ownerId": "kn7fkwsa5knkdkkachj1p7rwr9843xts",
  "slug": "openclaw-self-improve",
  "version": "1.3.0",
  "publishedAt": 1778682915999
}

references/output-contract.md

# Output Contract for OpenClaw Self-Improve

This document specifies the exact structure and required sections for each output file in an improvement run.

## run-info.md

**Purpose**: Metadata about the run configuration and environment.

**Required Sections**:
- `# Run Info` (heading)
- `- Timestamp (UTC): <value>` (bullet)
- `- Mode: <value>` (bullet)
- `- Repo: <value>` (bullet)
- `- Objective: <value>` (bullet)
- `- Scope: <value>` (bullet)
- `- Validation Gate: <value>` (bullet)
- `- Git Commit: <value>` (bullet)
- `- Git Branch: <value>` (bullet)
- `- Is Git Repository: <value>` (bullet)
- `- Logging Enabled: <value>` (bullet)

**Valid Status Values**: N/A (informational only)

## baseline.md

**Purpose**: Starting state, metrics, and risk assessment before improvements.

**Required Sections**:
- `# Baseline` (heading)
- `## Objective` (heading)
- `## Scope` (heading)
- `## Repo State` (heading)
  - `- Commit: <value>` (bullet)
  - `- Branch: <value>` (bullet)
  - `- Is Git Repository: <value>` (bullet)
- `## Reproduction` (heading)
- `## Metrics` (heading)
- `## Risks` (heading)
- `## Status` (heading)
  - `- <status_value>` (bullet)

**Valid Status Values**: `pass`, `fail`, `blocked`, `inconclusive`

## hypotheses.md

**Purpose**: Ranked improvement hypotheses.

**Required Sections**:
- `# Hypotheses` (heading)
- `## Hypothesis 1` (heading)
- `## Hypothesis 2` (heading)
- `## Hypothesis 3` (heading)
- `## Ranking` (heading)

**Valid Status Values**: N/A (informational only)

## proposal.md

**Purpose**: Approval package with planned changes and rollback plan.

**Required Sections**:
- `# Proposal` (heading)
- `## Selected Hypothesis` (heading)
- `## Planned Changes` (heading)
- `## Files To Edit` (heading)
- `## Validation Gate` (heading)
- `## Rollback Plan` (heading)
- `## Approval Status` (heading)
  - `- <approval_status>` (bullet)

**Valid Approval Status Values**: `pending`, `approved`, `approved and implemented`, `rejected`, `blocked`

## validation.md

**Purpose**: Validation results and before/after comparison.

**Required Sections**:
- `# Validation` (heading)
- `## Commands Run` (heading)
- `## Results` (heading)
- `## Baseline vs New` (heading)
- `## Pass/Fail` (heading)
- `## Status` (heading)
  - `- <status_value>` (bullet)

**Valid Status Values**: `pass`, `fail`, `blocked`, `inconclusive`

## outcome.md

**Purpose**: Summary of changes, evidence, and next iteration.

**Required Sections**:
- `# Outcome` (heading)
- `## Summary` (heading)
- `## Evidence` (heading)
- `## Residual Risk` (heading)
- `## Next Iteration` (heading)
- `## Status` (heading)
  - `- <status_value>` (bullet)

**Valid Status Values**: `pass`, `fail`, `blocked`, `inconclusive`

## run.log (optional)

**Purpose**: Detailed execution log for debugging and audit trail.

**Format**:
```
================================================================================
OpenClaw Self-Improve Run Log
Started: <timestamp>
Run Directory: <path>
Mode: <mode>
Objec

references/playbooks.md

# Improvement Playbooks

This document provides metric selection guidance for common improvement objectives.

## Reliability Playbook

**Objective**: Reduce errors, failures, and flaky behavior.

**Primary Metrics**:
- Failed run count (absolute and percentage)
- Retry count per session
- Error rate by type
- Mean time to recovery (MTTR)
- Flaky test count and pass rate

**Baseline Measurement**:
```bash
# Run 100 representative sessions and count failures
for i in {1..100}; do
  run-session.sh >> session_results.log 2>&1
done
grep -c "ERROR" session_results.log
grep -c "RETRY" session_results.log
```

**Validation Gate**:
```bash
# Run tests with retry and measure flakiness
pnpm test -- --retries 3 --reporter json > test_results.json
```

**Success Criteria**: Error rate reduced by at least 50%, no increase in flaky tests.

## Performance Playbook

**Objective**: Reduce latency, startup time, or resource usage.

**Primary Metrics**:
- Latency (p50, p95, p99)
- Startup time
- Memory usage
- CPU usage
- Token consumption (for LLM calls)
- Request throughput

**Baseline Measurement**:
```bash
# Measure startup time
time pnpm start -- --no-watch

# Measure latency for 1000 requests
ab -n 1000 -c 10 http://localhost:3000/api/endpoint
```

**Validation Gate**:
```bash
# Measure performance with load testing
pnpm run benchmark -- --duration 60s --concurrency 10
```

**Success Criteria**: Latency reduced by at least 30%, no memory regression.

## Quality Playbook

**Objective**: Improve code quality, test coverage, or reduce defects.

**Primary Metrics**:
- Test coverage percentage
- Regression count
- Code quality score
- Defect density
- Type safety violations

**Baseline Measurement**:
```bash
# Measure test coverage
pnpm test -- --coverage --reporters=json > coverage.json

# Measure code quality
eslint src/ --format json > quality.json
```

**Validation Gate**:
```bash
# Run full test suite with coverage
pnpm test -- --coverage --minCoveragePercentage=80
```

**Success Criteria**: Coverage increased by at least 10%, no quality score decrease.

## Cost Playbook

**Objective**: Reduce token usage, API calls, or computational cost.

**Primary Metrics**:
- Tokens per session
- API call count
- Cost per operation
- Unnecessary tool invocations
- Cache hit rate

**Baseline Measurement**:
```bash
# Run representative sessions and measure token usage
export MEASURE_TOKENS=true
for i in {1..100}; do
  run-session.sh 2>&1 | grep "tokens_used"
done | awk '{sum+=$NF} END {print "Average:", sum/NR}'
```

**Validation Gate**:
```bash
# Measure token usage in production-like conditions
pnpm run measure-cost -- --sessions 100 --output cost_report.json
```

**Success Criteria**: Token usage reduced by at least 20%, no functionality loss.

## Safety Playbook

**Objective**: Improve security, reduce vulnerabilities, or enhance safety.

**Primary Metrics**:
- Vulnerability count by severity
- Security test pass rate
- Unsafe API usage count
- Input validation coverage

skill-card.md

## Description:

OpenClaw Self-Improve provides an evidence-based, approval-gated workflow and helper scripts for improving OpenClaw or other projects with measurable before-and-after validation.

This skill is ready for commercial/non-commercial use.

## Publisher:

[gopendrasharma89-tech](https://clawhub.ai/user/gopendrasharma89-tech)

### License/Terms of Use:

MIT

## Use Case:

Developers and engineers use this skill to run audit, proposal, and approved implementation loops that baseline a repository, prepare an approval package, validate changes, summarize outcomes, and export run data for CI.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Repository-mutating rollback workflows can revert more files than intended if broad rollback targets are used.

Mitigation: Review proposal.md before rollback, avoid broad rollback targets such as . or whole directories, and keep a separate commit, stash, or backup for uncommitted work.

Risk: UX feedback examples can involve real user data when adapted for live studies.

Mitigation: Add privacy and consent handling before using the UX feedback examples with real users.

## Reference(s):

- [Output Contract](references/output-contract.md)
- [Improvement Playbooks](references/playbooks.md)
- [ClawHub Listing](https://clawhub.ai/gopendrasharma89-tech/openclaw-self-improve)
- [ClawHub Skill Page](https://clawhub.ai/gopendrasharma89-tech/skills/openclaw-self-improve)

## Skill Output:

**Output Type(s):** [Text, Markdown, JSON, Shell commands, Configuration, Guidance]

**Output Format:** [Markdown artifacts, JSON summaries, and shell command guidance]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Run artifacts follow references/output-contract.md; helper scripts require bash, git, python3, and zip.]

## Skill Version(s):

1.3.0 (source: release evidence and skill body)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to OpenClaw Self-Improve and adjacent AI workflows.