# Send Mulch to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "mulch",
    "name": "Mulch",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/RuneweaverStudios/mulch",
    "canonicalUrl": "https://clawhub.ai/RuneweaverStudios/mulch",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/mulch",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=mulch",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "BENCHMARK.md",
      "QUALIFICATION.md",
      "README.md",
      "SKILL.md",
      "_meta.json",
      "assets/LEARNINGS.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "mulch",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-02T15:45:41.417Z",
      "expiresAt": "2026-05-09T15:45:41.417Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=mulch",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=mulch",
        "contentDisposition": "attachment; filename=\"mulch-1.0.5.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "mulch"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/mulch"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/mulch",
    "downloadUrl": "https://openagent3.xyz/downloads/mulch",
    "agentUrl": "https://openagent3.xyz/skills/mulch/agent",
    "manifestUrl": "https://openagent3.xyz/skills/mulch/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/mulch/agent.md"
  }
}
```
## Documentation

### Mulch Self Improver — Let your agents grow 🌱

Structured expertise that accumulates over time, lives in git, and works with any agent. Agents start each session from zero; the pattern discovered yesterday is forgotten today. This skill uses Mulch: agents call mulch record to write learnings and mulch query to read them. Expertise compounds across sessions, domains, and teammates. Mulch is a passive layer — it does not contain an LLM. Agents use Mulch; Mulch does not use agents.

Benefits: Better and more consistent coding · Improved experience · Less hallucination (grounding in project expertise)

When to use: Command/tool fails, user corrects you, user wants a missing feature, your knowledge was wrong, or you found a better approach — record with Mulch and promote proven patterns to project memory. Auto-detection: The hook now detects errors and corrections automatically and prompts to record.

Mechanics: One learning store — .mulch/ (append-only JSONL, git-tracked, queryable). Session start: mulch prime. Recording: mulch record <domain> --type <type> .... No .learnings/ markdown files.

Qualification (features, benefits, pain points): See QUALIFICATION.md. Benchmark (token efficiency, troubleshooting skill improvement): See BENCHMARK.md — e.g. ~54% fewer chars to get same resolutions; find rate same or better; less context → fewer tokens, less noise, lower risk of wrong fix.

### Auto-Detection

The hook now automatically detects learning moments:

Errors/failures — When commands fail or return errors
Corrections — When you say "no", "actually", "wrong", etc.
Retries — When you ask to try again

The agent will prompt: "Want me to record this for next time?"

### Pre-loaded Domains

24 preset domains included in config/domains.json:

api, database, testing, frontend, backend, infra, docs, config,
security, performance, deployment, auth, errors, debugging,
workflow, customer, system, marketing, sales, content,
competitors, crypto, automation, openclaw

### Notifications

When a learning is recorded, you're notified via Telegram.

### Quick Reference

SituationActionCommand/operation or API failsmulch record <domain> --type failure --description "..." --resolution "..."User corrects you / knowledge was wrongmulch record <domain> --type convention "..." or --type pattern --name "..." --description "..."Found better approach, best practicemulch record <domain> --type convention "..." or --type guide --name "..." --description "..."Architectural or tech decisionmulch record <domain> --type decision --title "..." --rationale "..."Feature request (tracking)mulch record <domain> --type decision --title "..." --rationale "..."Key file/endpoint to remembermulch record <domain> --type reference --name "..." --description "..."Similar to existing recordUse --relates-to <domain>:<id> or --supersedes; run mulch search "..." firstBroadly applicable patternPromote to CLAUDE.md, AGENTS.md, SOUL.md, TOOLS.md; use mulch onboard for snippetsSession start (project has .mulch/)Run mulch prime to load expertise into context

### Mulch Setup

Install (optional; npx works without install):

npm install -g mulch-cli
# or: npx mulch-cli <command>

Initialize in project:

mulch init
# Quick: add all preset domains at once
cat config/domains.json | jq -r '.domains[].name' | xargs -I {} mulch add {}
# Or add individually:
mulch add api
mulch add database
mulch add testing
# add domains that match your areas: frontend, backend, infra, docs, config

Provider hooks (remind agent to record):

mulch setup cursor   # or: claude, codex, gemini, windsurf, aider

Onboarding snippet for AGENTS.md/CLAUDE.md:

mulch onboard

### Record Types (Mulch)

TypeRequiredUse Casefailuredescription, resolutionWhat went wrong and how to avoid itconventioncontent"Use pnpm not npm"; "Always WAL mode for SQLite"patternname, descriptionNamed patterns, optional --filedecisiontitle, rationaleArchitecture, tech choices, feature trackingreferencename, descriptionKey files, endpoints, resourcesguidename, descriptionStep-by-step procedures

Optional on any record: --classification (foundational | tactical | observational), --tags, --relates-to, --supersedes, --evidence-commit, --evidence-file, --outcome-status (success | failure).

### Workflow

Session start: If .mulch/ exists, run mulch prime (or mulch prime <domain> for focus).
During work: When something fails or you learn something, run mulch record <domain> --type <type> ....
Before finishing: Review; record any remaining insights with mulch record.
Promote: When a pattern is proven and broadly applicable, add to CLAUDE.md / AGENTS.md / SOUL.md / TOOLS.md; use mulch onboard to generate snippets.

### Finding Domain

Use existing domains from mulch status or mulch query --all.
Run mulch learn to get domain suggestions from changed files.
Common domains: api, database, testing, frontend, backend, infra, docs, config.

### Recurring Patterns and Linking

Search first: mulch search "keyword" or mulch query <domain>.
Link records: mulch record ... --relates-to <domain>:<id> or --supersedes <domain>:<id>.
Recurring issues → promote to CLAUDE.md/AGENTS.md or add to TOOLS.md/SOUL.md so all agents see them.

### Simplify & Harden Feed

For candidates from the simplify-and-harden skill:

Use pattern_key as a stable tag: mulch record <domain> --type pattern --name "<pattern_key>" --description "..." --tags "simplify-and-harden".
Search first: mulch search "<pattern_key>"; if found, use --relates-to or add to existing via mulch edit if needed.
When recurrence is high, promote to CLAUDE.md/AGENTS.md/SOUL.md/TOOLS.md as short prevention rules.

### Periodic Review

When: Before major tasks, after features, weekly.
Commands: mulch status, mulch ready --since 7d, mulch query --all.
Actions: Promote high-value records to project memory; run mulch prune for stale tactical/observational entries if desired; mulch doctor --fix for health.

### Promotion Targets

Learning TypePromote ToBehavioral patternsSOUL.md (OpenClaw workspace)Workflow improvementsAGENTS.mdTool gotchasTOOLS.md (OpenClaw workspace)Project facts, conventionsCLAUDE.mdCopilot context.github/copilot-instructions.md

Use mulch onboard to generate AGENTS.md/CLAUDE.md snippets.

### Detection Triggers

Record when you notice:

User corrects you ("No, that's not right...", "Actually...") → convention or pattern
Command/API/tool fails → failure (description + resolution)
User wants missing capability → decision (title + rationale)
Your knowledge was wrong or outdated → convention
You found a better approach → convention or guide

### OpenClaw Setup

OpenClaw injects workspace files; use Mulch for learnings.

### Installation

clawdhub install self-improving-agent
# or: git clone ... ~/.openclaw/skills/self-improving-agent

### Workspace and Mulch

Session start: Run mulch prime when the project (or workspace) has .mulch/. Optionally add mulch prime output to workspace context if your setup supports it.
Recording: Use mulch record from the project or workspace directory that contains .mulch/.
Promotion: SOUL.md, AGENTS.md, TOOLS.md live in ~/.openclaw/workspace/; add promoted rules there.

### Enable Hook (reminder at bootstrap)

cp -r hooks/openclaw ~/.openclaw/hooks/self-improvement
openclaw hooks enable self-improvement

See references/openclaw-integration.md.

### Generic Setup (Other Agents)

In project: mulch init and mulch add <domain> as needed.
Use mulch setup <provider> (cursor, claude, codex, etc.) for hooks.
Add to CLAUDE.md/AGENTS.md: "Run mulch prime at session start. Record learnings with mulch record <domain> --type failure|convention|decision|pattern|guide|reference."
Run mulch onboard and paste the snippet into your agent docs.

### Multi-Agent Safety

Mulch is safe for concurrent use: advisory file locking, atomic writes, and merge=union in .gitattributes for JSONL. Multiple agents can run mulch prime and mulch record in parallel; locks serialize writes per domain.

### Skill Extraction

When a Mulch record is valuable as a reusable skill:

Get content from mulch query <domain> or mulch search "...".
Create skills/<skill-name>/SKILL.md (template in assets/SKILL-TEMPLATE.md).
Optionally note in the record (e.g. via mulch edit) that it was promoted to a skill.

### Best Practices

Record immediately — context is freshest after the issue.
Pick the right type — failure (description+resolution), convention (short rule), decision (title+rationale), etc.
Use domains consistently — e.g. same api domain for all API-related learnings.
Link related records — --relates-to, --supersedes.
Run mulch prime at session start — so the agent is grounded in existing expertise.
Promote when proven — move broadly applicable rules to CLAUDE.md, AGENTS.md, SOUL.md, TOOLS.md.

### No .learnings/

This skill does not use .learnings/ or markdown log files. All learnings live in .mulch/ and are recorded via the Mulch CLI. If you see references to .learnings/ in older docs, treat them as superseded by Mulch.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: RuneweaverStudios
- Version: 1.0.5
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-02T15:45:41.417Z
- Expires at: 2026-05-09T15:45:41.417Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/mulch)
- [Send to Agent page](https://openagent3.xyz/skills/mulch/agent)
- [JSON manifest](https://openagent3.xyz/skills/mulch/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/mulch/agent.md)
- [Download page](https://openagent3.xyz/downloads/mulch)