Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计提醒

mulchmulch 搜索

Agent Skill

mulch 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 OpenClaw 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

22,199

周安装

898

GitHub Stars

公开资料未说明

下载量

6,968
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:mulch(mulch 搜索)
来源仓库:https://github.com/austindixson/mulch
安装命令:
openclaw skills install mulch
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install mulch

简介

Mulch 用于记录任务执行中的错误、用户纠正与能力缺口,帮助 Agent 持续沉淀经验并优化行为。

  • 适用于需要让代理在 OpenClaw 中不断修正实践、积累最佳经验的场景,尤其适合命令或工具失败后的复盘学习。
  • 通过安装 mulch 技能,Agent 可自动捕获问题、用户反馈及改进点,形成闭环学习机制。
  • 安装命令为 openclaw skills install mulch,建议确认权限范围与维护状态后再部署使用。
  • 使用前请核实是否会触发联网、文件读写或命令执行,避免影响系统安全边界。

SKILL.md

name
self-improvement
description
Mulch Self Improver — Let your agents grow 🌱. Captures learnings with Mulch so expertise compounds across sessions. Use when: command/tool fails, user corrects you, missing feature, API fails, knowledge was wrong, or better approach found. Run mulch prime at session start; mulch record before finishing. Benefits: better and more consistent coding, improved experience, less hallucination.
metadata

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.

New Features (v1.1)

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

SituationAction
Command/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 "..." first
Broadly applicable patternPromote to CLAUDE.md, AGENTS.md, SOUL.md, TOOLS.md; use mulch onboard for snippets
Session 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 Case
failuredescription, resolutionWhat went wrong and how to avoid it
conventioncontent"Use pnpm not npm"; "Always WAL mode for SQLite"
patternname, descriptionNamed patterns, optional --file
decisiontitle, rationaleArchitecture, tech choices, feature tracking
referencename, descriptionKey files, endpoints, resources
guidename, 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

  1. Session start: If .mulch/ exists, run mulch prime (or mulch prime <domain> for focus).
  2. During work: When something fails or you learn something, run mulch record <domain> --type <type> ....
  3. Before finishing: Review; record any remaining insights with mulch record.
  4. 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:

  1. Use pattern_key as a stable tag: mulch record <domain> --type pattern --name "<pattern_key>" --description "..." --tags "simplify-and-harden".
  2. Search first: mulch search "<pattern_key>"; if found, use --relates-to or add to existing via mulch edit if needed.
  3. 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 To
Behavioral patternsSOUL.md (OpenClaw workspace)
Workflow improvementsAGENTS.md
Tool gotchasTOOLS.md (OpenClaw workspace)
Project facts, conventionsCLAUDE.md
Copilot 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)

  1. In project: mulch init and mulch add <domain> as needed.
  2. Use mulch setup <provider> (cursor, claude, codex, etc.) for hooks.
  3. 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."
  4. 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:

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

Best Practices

  1. Record immediately — context is freshest after the issue.
  2. Pick the right type — failure (description+resolution), convention (short rule), decision (title+rationale), etc.
  3. Use domains consistently — e.g. same api domain for all API-related learnings.
  4. Link related records--relates-to, --supersedes.
  5. Run mulch prime at session start — so the agent is grounded in existing expertise.
  6. 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.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

87.87%
按下载量换算6,123

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

未展示

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills